yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #47091
[Bug 1551565] [NEW] KeyError:launch an instance form an iso image
Public bug reported:
When use the following command to launch an instance from an iso image,
we get keyerror log form /var/log/nova/nova-compute.log on the compute
node. Version of openstack is kilo.
[root@2C5_10_DELL05 ~]#nova boot --image 37c089ac-8a49-410d-a8df-
96b736130e3c --flavor m1.small --nic net-id=1610f3b6-553c-45ad-9f1f-
2f8e06086576 --block-device
id=1812f5b6-0d69-4337-bce5-a06e9f0370f3,source=volume,dest=volume
--availability-zone nova:slot5-SBCJ Boot_from_image_with_volume
log:
2016-02-25 18:24:25.879 915 ERROR nova.compute.manager [req-8dc0fcdb-608f-4938-96e6-fc0e4aadfe69 c8c4ba6337684fcfa98a26259e7e7ba0 203c8802ac2343ab9e2a7ab11aa710de - - -] [instance: 38e3ebf2-4a22-4beb-b2f6-9d94ef2d1879] Cannot reboot instance: u'/dev/vdb'
2016-02-25 18:24:26.286 915 INFO nova.scheduler.client.report [req-8dc0fcdb-608f-4938-96e6-fc0e4aadfe69 c8c4ba6337684fcfa98a26259e7e7ba0 203c8802ac2343ab9e2a7ab11aa710de - - -] Compute_service record updated for ('slot5-SBCJ', 'slot5-SBCJ')
2016-02-25 18:24:26.297 915 ERROR oslo_messaging.rpc.dispatcher [req-8dc0fcdb-608f-4938-96e6-fc0e4aadfe69 c8c4ba6337684fcfa98a26259e7e7ba0 203c8802ac2343ab9e2a7ab11aa710de - - -] Exception during message handling: u'/dev/vdb'
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 8509, in reboot_instance
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher reboot_type)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher payload)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 71, in wrapped
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher return f(self, context, *args, **kw)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 379, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher LOG.warning(msg, e, instance_uuid=instance_uuid)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 350, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 429, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 407, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 395, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3640, in reboot_instance
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher self._set_instance_obj_error_state(context, instance)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3621, in reboot_instance
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher bad_volumes_callback=bad_volumes_callback)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2621, in reboot
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher block_device_info)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2721, in _hard_reboot
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher write_to_disk=True)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5094, in _get_guest_xml
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher memory_backup_file=memory_backup_file)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4917, in _get_guest_config
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher flavor, guest.os_type)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4032, in _get_guest_storage_config
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher info = disk_mapping[vol_dev]
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher KeyError: u'/dev/vdb'
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher
** Affects: nova
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1551565
Title:
KeyError:launch an instance form an iso image
Status in OpenStack Compute (nova):
New
Bug description:
When use the following command to launch an instance from an iso
image, we get keyerror log form /var/log/nova/nova-compute.log on the
compute node. Version of openstack is kilo.
[root@2C5_10_DELL05 ~]#nova boot --image 37c089ac-8a49-410d-a8df-
96b736130e3c --flavor m1.small --nic net-id=1610f3b6-553c-45ad-9f1f-
2f8e06086576 --block-device
id=1812f5b6-0d69-4337-bce5-a06e9f0370f3,source=volume,dest=volume
--availability-zone nova:slot5-SBCJ Boot_from_image_with_volume
log:
2016-02-25 18:24:25.879 915 ERROR nova.compute.manager [req-8dc0fcdb-608f-4938-96e6-fc0e4aadfe69 c8c4ba6337684fcfa98a26259e7e7ba0 203c8802ac2343ab9e2a7ab11aa710de - - -] [instance: 38e3ebf2-4a22-4beb-b2f6-9d94ef2d1879] Cannot reboot instance: u'/dev/vdb'
2016-02-25 18:24:26.286 915 INFO nova.scheduler.client.report [req-8dc0fcdb-608f-4938-96e6-fc0e4aadfe69 c8c4ba6337684fcfa98a26259e7e7ba0 203c8802ac2343ab9e2a7ab11aa710de - - -] Compute_service record updated for ('slot5-SBCJ', 'slot5-SBCJ')
2016-02-25 18:24:26.297 915 ERROR oslo_messaging.rpc.dispatcher [req-8dc0fcdb-608f-4938-96e6-fc0e4aadfe69 c8c4ba6337684fcfa98a26259e7e7ba0 203c8802ac2343ab9e2a7ab11aa710de - - -] Exception during message handling: u'/dev/vdb'
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 142, in _dispatch_and_reply
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher executor_callback))
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 186, in _dispatch
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher executor_callback)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line 130, in _do_dispatch
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 8509, in reboot_instance
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher reboot_type)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 88, in wrapped
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher payload)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/exception.py", line 71, in wrapped
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher return f(self, context, *args, **kw)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 379, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher LOG.warning(msg, e, instance_uuid=instance_uuid)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 350, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 429, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 407, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher kwargs['instance'], e, sys.exc_info())
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 395, in decorated_function
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher return function(self, context, *args, **kwargs)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3640, in reboot_instance
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher self._set_instance_obj_error_state(context, instance)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher six.reraise(self.type_, self.value, self.tb)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 3621, in reboot_instance
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher bad_volumes_callback=bad_volumes_callback)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2621, in reboot
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher block_device_info)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2721, in _hard_reboot
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher write_to_disk=True)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5094, in _get_guest_xml
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher memory_backup_file=memory_backup_file)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4917, in _get_guest_config
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher flavor, guest.os_type)
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4032, in _get_guest_storage_config
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher info = disk_mapping[vol_dev]
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher KeyError: u'/dev/vdb'
2016-02-25 18:24:26.297 915 TRACE oslo_messaging.rpc.dispatcher
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1551565/+subscriptions
Follow ups