OSAPI: NoneType when creating server w/out a personality

Bug #736846 reported by Dan Prince
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Dan Prince

Bug Description

Using nova bzr815:

I'm getting the following stack trace when creating a server using the OS API:

--
(nova.api.openstack): TRACE: result = method(**arg_dict)
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/servers.py", line 176, in create
(nova.api.openstack): TRACE: injected_files = self._get_injected_files(personality)
(nova.api.openstack): TRACE: File "/usr/lib/pymodules/python2.6/nova/api/openstack/servers.py", line 223, in _get_injected_files
(nova.api.openstack): TRACE: for item in personality:
(nova.api.openstack): TRACE: TypeError: 'NoneType' object is not iterable
(nova.api.openstack): TRACE:
--

NOTE: No personality was specified when sending the request.

Related branches

Dan Prince (dan-prince)
Changed in nova:
assignee: nobody → Dan Prince (dan-prince)
Dan Prince (dan-prince)
Changed in nova:
status: New → In Progress
Revision history for this message
Dan Prince (dan-prince) wrote :

For the record I hit this when using bindings to create servers with the OS API. Kind of a corner case but some bindings for Cloud Servers and Openstack send 'personality: null' (valid JSON) when creating a server.

Dan Prince (dan-prince)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → 2011.2
status: Fix Committed → Fix Released
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.