Bug 1623365
| Summary: | rhos14: multiattach' set - MultiattachNotSupportedByVirtDriver | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | bkopilov <bkopilov> | ||||
| Component: | openstack-nova | Assignee: | Lee Yarwood <lyarwood> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Archit Modi <amodi> | ||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | urgent | ||||||
| Version: | 14.0 (Rocky) | CC: | aavraham, berrange, bkopilov, dasmith, egallen, eglynn, jhakimra, kchamart, lyarwood, sbauza, sgordon, srevivo, tshefi, vromanso | ||||
| Target Milestone: | beta | Keywords: | Triaged | ||||
| Target Release: | 14.0 (Rocky) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | openstack-nova-18.0.0-0.20180822155218.14d9e9f.0rc1.el7ost | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1625971 (view as bug list) | Environment: | |||||
| Last Closed: | 2019-01-11 11:51:31 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1033180, 1624971, 1625971, 1661022, 1746984, 1761502 | ||||||
| Attachments: |
|
||||||
|
Description
bkopilov
2018-08-29 08:10:14 UTC
How to reproduce :
(LVM backend)
#1
Create multi-attach type:
(overcloud) [stack@undercloud-0 ~]$ cinder type-show c963d843-5670-4ac3-a6d7-63ffa33bb0c3
+---------------------------------+--------------------------------------+
| Property | Value |
+---------------------------------+--------------------------------------+
| description | None |
| extra_specs | multiattach : <is> True |
| id | c963d843-5670-4ac3-a6d7-63ffa33bb0c3 |
| is_public | True |
| name | multiattach |
| os-volume-type-access:is_public | True |
| qos_specs_id | None |
+---------------------------------+--------------------------------------+
#2 create a volume with this type (multi-attach)
(overcloud) [stack@undercloud-0 ~]$ cinder show e3279478-6434-4606-8281-23ae1bb5635d
+--------------------------------+---------------------------------------+
| Property | Value |
+--------------------------------+---------------------------------------+
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2018-08-29T08:22:14.000000 |
| description | None |
| encrypted | False |
| id | e3279478-6434-4606-8281-23ae1bb5635d |
| metadata | |
| migration_status | None |
| multiattach | True |
| name | ttt |
| os-vol-host-attr:host | hostgroup@tripleo_iscsi#tripleo_iscsi |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 0e838e1e87ca4771829590536082da4b |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2018-08-29T08:22:15.000000 |
| user_id | 8280ea313ca64c58860fa33eb332dc08 |
| volume_type | multiattach |
+--------------------------------+---------------------------------------+
#3 boot an instance
(overcloud) [stack@undercloud-0 ~]$ nova show 187952f2-9166-4125-98b5-00f36b235aa5
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | compute-1.localdomain |
| OS-EXT-SRV-ATTR:hostname | test |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.localdomain |
| OS-EXT-SRV-ATTR:instance_name | instance-000002bd |
| OS-EXT-SRV-ATTR:kernel_id | |
| OS-EXT-SRV-ATTR:launch_index | 0 |
| OS-EXT-SRV-ATTR:ramdisk_id | |
| OS-EXT-SRV-ATTR:reservation_id | r-6dui1oxv |
| OS-EXT-SRV-ATTR:root_device_name | /dev/vda |
| OS-EXT-SRV-ATTR:user_data | - |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2018-08-29T08:24:49.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2018-08-29T08:24:31Z |
| description | - |
| flavor:disk | 1 |
| flavor:ephemeral | 0 |
| flavor:extra_specs | {} |
| flavor:original_name | test |
| flavor:ram | 64 |
| flavor:swap | 0 |
| flavor:vcpus | 1 |
| hostId | f19bae6bad7f47b0cde8a0ae46be684f608a0ae32a89cb871fc7cb75 |
| host_status | UP |
| id | 187952f2-9166-4125-98b5-00f36b235aa5 |
| image | cirros (a499431f-fcfe-4eea-a722-be34bb6ba6f0) |
| key_name | - |
| locked | False |
| metadata | {} |
| name | test |
| os-extended-volumes:volumes_attached | [] |
| private network | 100.100.100.10 |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tags | [] |
| tenant_id | 0e838e1e87ca4771829590536082da4b |
| trusted_image_certificates | - |
| updated | 2018-08-29T08:27:13Z |
| user_id | 8280ea313ca64c58860fa33eb332dc08 |
+--------------------------------------+----------------------------------------------------------+
#4 Try to attach the instance to the volume
(overcloud) [stack@undercloud-0 ~]$ nova --os-compute-api-version 2.62 volume-attach 187952f2-9166-4125-98b5-00f36b235aa5 e3279478-6434-4606-8281-23ae1bb5635d
ERROR (Conflict): Volume e3279478-6434-4606-8281-23ae1bb5635d has 'multiattach' set, which is not supported for this instance. (HTTP 409) (Request-ID: req-e96f504c-a8d3-4859-bc1f-15fe816d09b8)
How to reproduce :
(LVM backend)
#1
Create multi-attach type:
(overcloud) [stack@undercloud-0 ~]$ cinder type-show c963d843-5670-4ac3-a6d7-63ffa33bb0c3
+---------------------------------+--------------------------------------+
| Property | Value |
+---------------------------------+--------------------------------------+
| description | None |
| extra_specs | multiattach : <is> True |
| id | c963d843-5670-4ac3-a6d7-63ffa33bb0c3 |
| is_public | True |
| name | multiattach |
| os-volume-type-access:is_public | True |
| qos_specs_id | None |
+---------------------------------+--------------------------------------+
#2 create a volume with this type (multi-attach)
(overcloud) [stack@undercloud-0 ~]$ cinder show e3279478-6434-4606-8281-23ae1bb5635d
+--------------------------------+---------------------------------------+
| Property | Value |
+--------------------------------+---------------------------------------+
| attached_servers | [] |
| attachment_ids | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2018-08-29T08:22:14.000000 |
| description | None |
| encrypted | False |
| id | e3279478-6434-4606-8281-23ae1bb5635d |
| metadata | |
| migration_status | None |
| multiattach | True |
| name | ttt |
| os-vol-host-attr:host | hostgroup@tripleo_iscsi#tripleo_iscsi |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 0e838e1e87ca4771829590536082da4b |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| updated_at | 2018-08-29T08:22:15.000000 |
| user_id | 8280ea313ca64c58860fa33eb332dc08 |
| volume_type | multiattach |
+--------------------------------+---------------------------------------+
#3 boot an instance
(overcloud) [stack@undercloud-0 ~]$ nova show 187952f2-9166-4125-98b5-00f36b235aa5
+--------------------------------------+----------------------------------------------------------+
| Property | Value |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | compute-1.localdomain |
| OS-EXT-SRV-ATTR:hostname | test |
| OS-EXT-SRV-ATTR:hypervisor_hostname | compute-1.localdomain |
| OS-EXT-SRV-ATTR:instance_name | instance-000002bd |
| OS-EXT-SRV-ATTR:kernel_id | |
| OS-EXT-SRV-ATTR:launch_index | 0 |
| OS-EXT-SRV-ATTR:ramdisk_id | |
| OS-EXT-SRV-ATTR:reservation_id | r-6dui1oxv |
| OS-EXT-SRV-ATTR:root_device_name | /dev/vda |
| OS-EXT-SRV-ATTR:user_data | - |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2018-08-29T08:24:49.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2018-08-29T08:24:31Z |
| description | - |
| flavor:disk | 1 |
| flavor:ephemeral | 0 |
| flavor:extra_specs | {} |
| flavor:original_name | test |
| flavor:ram | 64 |
| flavor:swap | 0 |
| flavor:vcpus | 1 |
| hostId | f19bae6bad7f47b0cde8a0ae46be684f608a0ae32a89cb871fc7cb75 |
| host_status | UP |
| id | 187952f2-9166-4125-98b5-00f36b235aa5 |
| image | cirros (a499431f-fcfe-4eea-a722-be34bb6ba6f0) |
| key_name | - |
| locked | False |
| metadata | {} |
| name | test |
| os-extended-volumes:volumes_attached | [] |
| private network | 100.100.100.10 |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tags | [] |
| tenant_id | 0e838e1e87ca4771829590536082da4b |
| trusted_image_certificates | - |
| updated | 2018-08-29T08:27:13Z |
| user_id | 8280ea313ca64c58860fa33eb332dc08 |
+--------------------------------------+----------------------------------------------------------+
#4 Try to attach the instance to the volume
(overcloud) [stack@undercloud-0 ~]$ nova --os-compute-api-version 2.62 volume-attach 187952f2-9166-4125-98b5-00f36b235aa5 e3279478-6434-4606-8281-23ae1bb5635d
ERROR (Conflict): Volume e3279478-6434-4606-8281-23ae1bb5635d has 'multiattach' set, which is not supported for this instance. (HTTP 409) (Request-ID: req-e96f504c-a8d3-4859-bc1f-15fe816d09b8)
on compute side (versions): root@compute-1 heat-admin]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 8898c6826c69 192.168.24.1:8787/rhosp14/openstack-neutron-openvswitch-agent:2018-08-23.1 "kolla_start" 22 hours ago Up 22 hours (healthy) neutron_ovs_agent e5f0109f4f48 192.168.24.1:8787/rhosp14/openstack-cron:2018-08-23.1 "kolla_start" 22 hours ago Up 22 hours logrotate_crond f39adfefbd9b 192.168.24.1:8787/rhosp14/openstack-nova-compute:2018-08-23.1 "kolla_start" 22 hours ago Up 22 hours (healthy) nova_migration_target f2b8905505cf 192.168.24.1:8787/rhosp14/openstack-ceilometer-compute:2018-08-23.1 "kolla_start" 22 hours ago Up 22 hours ceilometer_agent_compute 8ee095dd0f8d 192.168.24.1:8787/rhosp14/openstack-nova-compute:2018-08-23.1 "kolla_start" 22 hours ago Up 22 hours (healthy) nova_compute 0eaefffd328d 192.168.24.1:8787/rhosp14/openstack-iscsid:2018-08-23.1 "kolla_start" 22 hours ago Up 22 hours (healthy) iscsid 6c28e9a255a7 192.168.24.1:8787/rhosp14/openstack-nova-libvirt:2018-08-23.1 "kolla_start" 22 hours ago Up 22 hours (healthy) nova_libvirt 22b54f6e3a82 192.168.24.1:8787/rhosp14/openstack-nova-libvirt:2018-08-23.1 "kolla_start" 22 hours ago Up 22 hours nova_virtlogd Attaching /var/log/containers/nova/nova-compute.log Benny Created attachment 1479407 [details]
nova-compute.log
It appears that the following QEMU and Libvirt checks need to be updated downstream as https://bugzilla.redhat.com/show_bug.cgi?id=1378242 was backported to 3.9 in RHEL 7.5: nova/virt/libvirt/driver.py 576 def _set_multiattach_support(self): 577 # Check to see if multiattach is supported. Based on bugzilla 578 # https://bugzilla.redhat.com/show_bug.cgi?id=1378242 and related 579 # clones, the shareable flag on a disk device will only work with 580 # qemu<2.10 or libvirt>=3.10. So check those versions here and set 581 # the capability appropriately. 582 if (self._host.has_min_version(lv_ver=MIN_LIBVIRT_MULTIATTACH) or 583 not self._host.has_min_version(hv_ver=(2, 10, 0))): 584 self.capabilities['supports_multiattach'] = True 585 else: 586 LOG.debug('Volume multiattach is not supported based on current ' 587 'versions of QEMU and libvirt. QEMU must be less than ' 588 '2.10 or libvirt must be greater than or equal to 3.10.') 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/RHEA-2019:0045 |