Node adopt crashes when adopting a compute node

Bug #1815111 reported by Jack Kuei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin
Confirmed
Undecided
Jack Kuei

Bug Description

Environment:
devstack master senlin: 66a62021a14e6eccc7a25d57c8ef5d8467da638a

Feb 01 22:29:08 devstack senlin-api[13674]: snapshot=req.snapshot)
Feb 01 22:29:08 devstack senlin-api[13674]: File "/usr/local/lib/python2.7/dist-packages/osprofiler/profiler.py", line 159, in wrapper
Feb 01 22:29:08 devstack senlin-api[13674]: result = f(*args, **kwargs)
Feb 01 22:29:08 devstack senlin-api[13674]: File "/opt/stack/senlin/senlin/profiles/base.py", line 287, in adopt_node
Feb 01 22:29:08 devstack senlin-api[13674]: return profile.do_adopt(obj, overrides=overrides, snapshot=snapshot)
Feb 01 22:29:08 devstack senlin-api[13674]: File "/opt/stack/senlin/senlin/profiles/os/nova/server.py", line 1489, in do_adopt
Feb 01 22:29:08 devstack senlin-api[13674]: sg['name'] for sg in server.security_groups
Feb 01 22:29:08 devstack senlin-api[13674]: TypeError: 'NoneType' object is not iterable
Feb 01 22:29:08 devstack senlin-api[13674]:

Steps to create:
1) Create a compute node
2) Adopt a compute node

HTTP Stream:
POST /v1/nodes/adopt HTTP/1.1
Host: 10.0.0.121:8778
User-Agent: gophercloud/2.0.0
Connection: close
Content-Length: 216
Accept: application/json
Content-Type: application/json
Openstack-Api-Version: clustering 1.7
X-Auth-Token: gAAAAABcXIOAk5Snz5uVItdDtl8wNJeqW5zkrts68QEEBBr3sEAvHBIqI9PMVFa1DxFNtm5SQ8wRIucu2_5bWr0sTNeNfKnOJ65ybJD8uvvLVdp-qx816KXIu283Mp6RIu1Pzq1a6NxqA3BpU62CVeCwnAyIiOYDJBfs-bYuqfRSIRJkMJOX-yo
Accept-Encoding: gzip

{"identity":"d0969c5f-6e0f-4745-9a0c-4c202f7fbf50","metadata":{},"name":"TESTACC-KaHkAt30","overrides":{"flavor":"m1.tiny","image":"cirros-0.3.5-x86_64-disk"},"role":null,"snapshot":false,"type":"os.nova.server-1.0"}

Changed in senlin:
status: New → Confirmed
assignee: nobody → XueFeng Liu (jonnary-liu)
assignee: XueFeng Liu (jonnary-liu) → Jack Kuei (jkuei)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.