Description of problem: Launching Instance fails with image property hw_disk_bus=scsi and flavor has ephemeral disk Version-Release number of selected component (if applicable): Red Hat OpenStack Platform 10 How reproducible: Always Steps to Reproduce: 1. create a image in glance with property hw_disk_bus=scsi 2. create a flavor with ephemeral disk included 3. Launch the instance Actual results: Instance fails to spawn with Expected results: 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [req-ee8830aa-af24-41b6-bc76-c04660cad606 130dd53f32b64593b37903a5a293bda9 62864afed913420daa7f4d8ccc751a0d - - -] [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] Instance failed to spawn 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] Traceback (most recent call last): 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 2087, in _build_resources 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] yield resources 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 1928, in _build_and_run_instance 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] block_device_info=block_device_info) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 2674, in spawn 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] destroy_disks_on_failure=True) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5013, in _create_domain_and_network 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] destroy_disks_on_failure) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] self.force_reraise() 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] six.reraise(self.type_, self.value, self.tb) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4985, in _create_domain_and_network 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] post_xml_callback=post_xml_callback) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 4896, in _create_domain 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] guest = libvirt_guest.Guest.create(xml, self._host) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 129, in create 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] encodeutils.safe_decode(xml)) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__ 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] self.force_reraise() 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] six.reraise(self.type_, self.value, self.tb) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py", line 125, in create 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] domain = host.write_instance_config(xml) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/host.py", line 906, in write_instance_config 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] return self.get_connection().defineXML(xml) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 186, in doit 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] result = proxy_call(self._autowrap, f, *args, **kwargs) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 144, in proxy_call 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] rv = execute(f, *args, **kwargs) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 125, in execute 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] six.reraise(c, e, tb) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib/python2.7/site-packages/eventlet/tpool.py", line 83, in tworker 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] rv = meth(*args, **kwargs) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] File "/usr/lib64/python2.7/site-packages/libvirt.py", line 3585, in defineXML 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] if ret is None:raise libvirtError('virDomainDefineXML() failed', conn=self) 2018-02-20 02:44:31.113 969429 ERROR nova.compute.manager [instance: b7f8d946-496a-49f9-9991-48f2c32cc7fa] libvirtError: unsupported configuration: Found duplicate drive address for disk with target name 'sda' controller='0' bus='0' target='0' unit='0' Additional info: Tried 2 cases: 1. VM root disk is a volume 2. VM root disk is local disk.
seems we might have to add "hw_scsi_model=virtio-scsi" as well.
(In reply to Martin Schuppert from comment #1) > seems we might have to add "hw_scsi_model=virtio-scsi" as well. Yes you made good point. Can you share the packages versions used? It might be related to bug 1495158 as you have noticed to me on IRC.
openstack-nova-14.0.8-5.el7ost
So,Do we need to set hw_scsi_model=virtio-scsi as mandatory for hw_disk_bus=scsi?
Yes, for libvirt driver I think we only support SCSI with a virtio-scsi controller.
Nova version prior to openstack-nova-14.0.8-2.el7ost (including) works with just setting hw_disk_bus=scsi in the image property. Post openstack-nova-14.0.8-4.el7ost, we have to set both hw_scsi_model=virtio-scsi and hw_disk_bus=scsi to make sure instance spawns with ephemeral disk. Note: Using hugepages and CPU pinning can alter the results.
(In reply to PURANDHAR SAIRAM MANNIDI from comment #6) > Note: Using hugepages and CPU pinning can alter the results. What do you mean by that? can you provide more information I don't see the relation between HP/pinning and SCSI controller. Also, can I suggest to decrease the severity since it was a configuration issue?
Yes, there is no relation to it. we can close this ticket as we have updated the documentation with a note saying that we need hw_scsi_model=virtio-scsi when hw_disk_bus=scsi is set.
A patch sent upstream is going to address this issue: https://review.openstack.org/#/c/538310/ Do you have possibility to make a test?
According to our records, this should be resolved by openstack-nova-14.1.0-22.el7ost. This build is available now.
Hi there, If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text. If this bug does not require doc text, please set the 'requires_doc_text' flag to -. Thanks, Alex
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2714