OS API servers update() should use result of compute_api.update()

Bug #1192011 reported by Chris Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Unassigned

Bug Description

nova/api/openstack/compute/servers.py:update() has this code:

1003 try:
1004 instance = self.compute_api.get(ctxt, id)
1005 req.cache_db_instance(instance)
1006 self.compute_api.update(ctxt, instance, **update_dict)
1007 except exception.NotFound:
1008 msg = _("Instance could not be found")
1009 raise exc.HTTPNotFound(explanation=msg)
1010
1011 instance.update(update_dict)
1012
1013 self._add_instance_faults(ctxt, [instance])
1014 return self._view_builder.show(req, instance)

line 1011 currently doesn't play well with unified-objects, and is probably not what you really want here. Instead of that, we should probably use the result of the compute_api.update() call on line 1006.

Chris Behrens (cbehrens)
Changed in nova:
status: New → Triaged
tags: added: unified-objects
Changed in nova:
importance: Undecided → Medium
Changed in nova:
assignee: nobody → Alexei Kornienko (alexei-kornienko)
Changed in nova:
status: Triaged → In Progress
Revision history for this message
Alexei Kornienko (alexei-kornienko) wrote :
Revision history for this message
Alexei Kornienko (alexei-kornienko) wrote :
Changed in nova:
assignee: Alexei Kornienko (alexei-kornienko) → nobody
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: havana-3 → 2013.2
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.