Activity log for bug #1248799

Date Who What changed Old value New value Message
2013-11-07 02:44:56 hougangliu bug added bug
2013-11-07 02:45:20 hougangliu information type Private Security Public
2013-11-07 02:49:38 hougangliu description when unshelve a vm, if this vm has been offloaded, the process would involve re-scheduling. in nova/conductor/manager.py def unshelve_instance(self, context, instance): elif instance.vm_state == vm_states.SHELVED_OFFLOADED: try: with compute_utils.EventReporter(context, self.db, 'get_image_info', instance.uuid): image = self._get_image(context, sys_meta['shelved_image_id']) except exception.ImageNotFound: with excutils.save_and_reraise_exception(): LOG.error(_('Unshelve attempted but vm_state not SHELVED ' 'or SHELVED_OFFLOADED'), instance=instance) instance.vm_state = vm_states.ERROR instance.save() filter_properties = {} hosts = self._schedule_instances(context, image, filter_properties, instance) <<<<<this would cause exception,when it occurs, the instance wil <<<<<stuck in task_state: unshelving forever host = hosts.pop(0)['host'] self.compute_rpcapi.unshelve_instance(context, instance, host, image) when unshelve a vm, if this vm has been offloaded, the process would involve re-scheduling. in nova/conductor/manager.py def unshelve_instance(self, context, instance): elif instance.vm_state == vm_states.SHELVED_OFFLOADED:             try:                 with compute_utils.EventReporter(context, self.db,                         'get_image_info', instance.uuid):                     image = self._get_image(context,                             sys_meta['shelved_image_id'])             except exception.ImageNotFound:                 with excutils.save_and_reraise_exception():                     LOG.error(_('Unshelve attempted but vm_state not SHELVED '                                 'or SHELVED_OFFLOADED'), instance=instance)                     instance.vm_state = vm_states.ERROR                     instance.save()             filter_properties = {}             hosts = self._schedule_instances(context, image,                                              filter_properties,instance) <<<<<this re-scheduling would cause exception,when it occurs,the <<<<<<instance will be stuck in task_state: unshelving forever             host = hosts.pop(0)['host']             self.compute_rpcapi.unshelve_instance(context, instance, host,                     image)
2013-11-14 08:03:48 Guangya Liu (Jay Lau) nova: assignee Jay Lau (jay-lau-513)
2013-11-14 17:36:20 Andrew Laski nova: importance Undecided Low
2013-11-15 18:50:48 Andrew Laski nova: status New Confirmed
2013-11-23 07:40:33 OpenStack Infra nova: status Confirmed In Progress
2013-11-28 16:28:09 OpenStack Infra nova: status In Progress Fix Committed
2013-12-03 23:12:12 Russell Bryant nova: milestone icehouse-1
2013-12-04 10:31:22 Thierry Carrez nova: status Fix Committed Fix Released
2014-04-17 08:57:04 Thierry Carrez nova: milestone icehouse-1 2014.1