$subject, we noticed this while debugging an encrypted volume test failure where the volume somehow became unencrypted just as QEMU attempted to attach it. Looking through the logs I noticed that there were two parallel requests to attach volumes at the time that were served by different c-vol backends.
The following for our encrypted volume from the 10.4.70.186:3260 portal:
https://040bad29f060e1f76339-88856c79572ad1783ad6e63321e57df6.ssl.cf2.rackcdn.com/761452/11/check/nova-next/fdaaa19/compute1/logs/screen-n-cpu.txt
43354 Mar 03 20:53:06.469770 ubuntu-focal-limestone-regionone-0023285105 nova-compute[53948]: DEBUG os_brick.initiator.connectors.iscsi [None req-66e30ff7-e88c-41ea-a6a4-46c71c9e31ed tempest-TestEncryptedCinderVolumes-409494569 tempest-TestEncryptedCinderVolumes-409494569-project] ==> connect_volume: call "{'args': (<os_brick.initiator.connectors.iscsi.ISCSIConnector object at 0x7fae3034b520>, {'target_discovered': False, 'target_portal': '10.4.70.186:3260', 'target_iqn': 'iqn.2010-10.org.openstack:volume-bf8c3d96-627d-40e1-ab47-56ed93fdcd3e', 'target_lun': 1, 'volume_id': 'bf8c3d96-627d-40e1-ab47-56ed93fdcd3e', 'auth_method': 'CHAP', 'auth_username': 'njEARKnLNcLdjg9qL3di', 'auth_password': '***', 'encrypted': True, 'qos_specs': None, 'access_mode': 'rw', 'cacheable': False}), 'kwargs': {}}" {{(pid=53948) trace_logging_wrapper /usr/local/lib/python3.8/dist-packages/os_brick/utils.py:147}}
[..]
43387 Mar 03 20:53:07.637853 ubuntu-focal-limestone-regionone-0023285105 nova-compute[53948]: DEBUG nova.virt.libvirt.volume.iscsi [None req-66e30ff7-e88c-41ea-a6a4-46c71c9e31ed tempest-TestEncryptedCinderVolumes-409494569 tempest-TestEncryptedCinderVolumes-409494569-project] Attached iSCSI volume {'type': 'block', 'scsi_wwn': '360000000000000000e00000000010001', 'path': '/dev/disk/by-id/scsi-360000000000000000e00000000010001'} {{(pid=53948) connect_volume /opt/stack/nova/nova/virt/libvirt/volume/iscsi.py:65}}
Then another for another test from the 10.4.70.243:3260 portal:
https://040bad29f060e1f76339-88856c79572ad1783ad6e63321e57df6.ssl.cf2.rackcdn.com/761452/11/check/nova-next/fdaaa19/compute1/logs/screen-n-cpu.txt
43418 Mar 03 20:53:11.790157 ubuntu-focal-limestone-regionone-0023285105 nova-compute[53948]: DEBUG os_brick.initiator.connectors.iscsi [None req-1d89a295-e88b-4e20-92f4-a869856e21a3 tempest-TestStampPattern-2018003410 tempest-TestStampPattern-2018003410-project] ==> connect_volume: call "{'args': (<os_brick.initiator.connectors.iscsi.ISCSIConnector object at 0x7fae3034b520>, {'target_discovered': False, 'target_portal': '10.4.70.243:3260', 'target_iqn': 'iqn.2010-10.org.openstack:volume-afe9efc1-3914-40d8-854d-cfbcf3603188', 'target_lun': 1, 'volume_id': 'afe9efc1-3914-40d8-854d-cfbcf3603188', 'auth_method': 'CHAP', 'auth_username': 'AzBZtUgYDZ6bRCuHzFRQ', 'auth_password': '***', 'encrypted': False, 'qos_specs': None, 'access_mode': 'rw', 'cacheable': False}), 'kwargs': {}}" {{(pid=53948) trace_logging_wrapper /usr/local/lib/python3.8/dist-packages/os_brick/utils.py:147}}
[..]
43489 Mar 03 20:53:12.998566 ubuntu-focal-limestone-regionone-0023285105 nova-compute[53948]: DEBUG nova.virt.libvirt.volume.iscsi [None req-1d89a295-e88b-4e20-92f4-a869856e21a3 tempest-TestStampPattern-2018003410 tempest-TestStampPattern-2018003410-project] Attached iSCSI volume {'type': 'block', 'scsi_wwn': '360000000000000000e00000000010001', 'path': '/dev/sdb'} {{(pid=53948) connect_volume /opt/stack/nova/nova/virt/libvirt/volume/iscsi.py:65}}
Note that each results in the same 360000000000000000e00000000010001 scsi_wwn as these are independent iSCSI/LVM c-vol backends providing each volume even if the /dev/sd paths are different.
I've never fully understood why we run c-vol on the computes tbh but unless they can coordinate or avoid duplicating WWNs then I guess we can't run them in parallel?
Another data point, this time in the nova-live-migration job. Again I see two volumes attached from different backends with the same WWN, this time os-brick returns different sd devices and not the device-mapper links:
https:/ /zuul.opendev. org/t/openstack /build/ fb643b53835341a c8589afeadfa704 4d/log/ compute1/ logs/screen- n-cpu.txt
Mar 08 22:29:56.730776 ubuntu- focal-rax- dfw-0023379061 nova-compute[ 53492]: DEBUG os_brick. initiator. connectors. iscsi [None req-a7c2d69f- 2b26-46a5- 9588-0500ed40ec f2 tempest- LiveMigrationTe st-303521084 tempest- LiveMigrationTe st-303521084- project] Connected to sda using {'target_ discovered' : False, 'target_portal': '10.208. 224.42: 3260', 'target_iqn': 'iqn.2010- 10.org. openstack: volume- 3d034a25- 2301-44f7- b10a-7e0a46402c 29', 'target_lun': 1, 'volume_id': '3d034a25- 2301-44f7- b10a-7e0a46402c 29', 'auth_method': 'CHAP', 'auth_username': 'V2L87oQWgpAL7w PMRFng' , 'auth_password': '***', 'encrypted': False, 'qos_specs': None, 'access_mode': 'rw', 'cacheable': False} {{(pid=53492) _connect_vol /usr/local/ lib/python3. 8/dist- packages/ os_brick/ initiator/ connectors/ iscsi.py: 675}} focal-rax- dfw-0023379061 nova-compute[ 53492]: DEBUG os_brick. initiator. connectors. iscsi [None req-a7c2d69f- 2b26-46a5- 9588-0500ed40ec f2 tempest- LiveMigrationTe st-303521084 tempest- LiveMigrationTe st-303521084- project] <== connect_volume: return (1163ms) {'type': 'block', 'scsi_wwn': '36000000000000 0000e0000000001 0001', 'path': '/dev/sda'} {{(pid=53492) trace_logging_ wrapper /usr/local/ lib/python3. 8/dist- packages/ os_brick/ utils.py: 171}} focal-rax- dfw-0023379061 nova-compute[ 53492]: DEBUG nova.virt. libvirt. volume. iscsi [None req-a7c2d69f- 2b26-46a5- 9588-0500ed40ec f2 tempest- LiveMigrationTe st-303521084 tempest- LiveMigrationTe st-303521084- project] Attached iSCSI volume {'type': 'block', 'scsi_wwn': '36000000000000 0000e0000000001 0001', 'path': '/dev/sda'} {{(pid=53492) connect_volume /opt/stack/ nova/nova/ virt/libvirt/ volume/ iscsi.py: 65}}
Mar 08 22:29:56.732310 ubuntu-
Mar 08 22:29:56.732775 ubuntu-
Mar 08 22:30:02.484937 ubuntu- focal-rax- dfw-0023379061 nova-compute[ 53492]: DEBUG os_brick. initiator. connectors. iscsi [None req-2ade7ce2- 8fca-4d71- 8c30-496fa8e8fc e4 tempest- LiveAutoBlockMi grationV225Test -766901728 tempest- LiveAutoBlockMi grationV225Test -766901728- project- admin] Connected to sdb using {'target_ discovered' : False, 'target_portal': '10.208. 224.30: 3260', 'target_iqn': 'iqn.2010- 10.org. openstack: volume- 2384d911- 102d-4b91- bd63-4c73baabd6 b6', 'target_lun': 1, 'volume_id': '2384d911- 102d-4b91- bd63-4c73baabd6 b6', 'auth_method': 'CHAP', 'auth_username': 'rpEQU9A9uBRqDk LWVwkL' , 'auth_password': '***', 'encrypted': False, 'qos_specs': None, 'access_mode': 'rw', 'cacheable': False} {{(pid=53492) _connect_vol /usr/local/ lib/python3. 8/dist- packages/ os_brick/ initiator/ connectors/ iscsi.py: 675}} focal-rax- dfw-0023379061 nova-compute[ 53492]: DEBUG os_brick. initiator. connectors. iscsi [None req-2ade7ce2- 8fca-4d71- 8c30-496fa8e8fc e4 tempest- LiveAutoBlockMi grationV225Test -766901728 tempest- LiveAutoBlockMi grationV225Test -766901728- project- admin] <== connect_volume: return (1164ms) {'type': 'block', 'scsi_wwn': '36000000000000 0000e0000000001 0001', 'path...
Mar 08 22:30:02.487079 ubuntu-