Volume multi-attach broken in Ussuri

Bug #1883853 reported by Justinas Balciunas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

Bug Description

Using Horizon version: 18.3.2, Ussuri

Multi-attach functionality doesn't work in Horizon. It is, however, fully functional using CLI.

root@kolla-ussuri:/etc/kolla# openstack volume list --all-projects
+--------------------------------------+----------------+--------+------+---------------------------------------------------------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+----------------+--------+------+---------------------------------------------------------------+
| 7ee22536-4ba7-418e-be4e-82a53d19f35e | vol-multiattch | in-use | 7 | Attached to b325846f-4231-48c6-a815-7db4ca5d1acc on /dev/sdb |
+--------------------------------------+----------------+--------+------+---------------------------------------------------------------+

root@kolla-ussuri:/etc/kolla# openstack --os-compute-api-version 2.87 server add volume 5e5281c0-65e7-4baa-b94b-a616e54dc159 7ee22536-4ba7-418e-be4e-82a53d19f35e
root@kolla-ussuri:/etc/kolla# cinder show 7ee22536-4ba7-418e-be4e-82a53d19f35e
+--------------------------------+----------------------------------------------------------------------------------+
| Property | Value |
+--------------------------------+----------------------------------------------------------------------------------+
| attached_servers | ['b325846f-4231-48c6-a815-7db4ca5d1acc', '5e5281c0-65e7-4baa-b94b-a616e54dc159'] |
| attachment_ids | ['83fe9c55-2803-434e-bbf3-90aa93c876e2', '8c4cc75b-c8d6-4aed-8939-8e2703453228'] |
| availability_zone | AZ2 |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-06-17T07:01:54.000000 |
| description | |
| encrypted | False |
| group_id | None |
| id | 7ee22536-4ba7-418e-be4e-82a53d19f35e |
| metadata | |
| migration_status | None |
| multiattach | True |
| name | vol-multiattch |
| os-vol-host-attr:host | z141-ost-ctrl2@unity_z141#POOL-1 |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 4e04be9ff9824855be22d0f54176f552 |
| provider_id | sv_11 |
| replication_status | None |
| service_uuid | fec22e75-346b-4cfa-9ea9-059424efb522 |
| shared_targets | True |
| size | 7 |
| snapshot_id | None |
| source_volid | None |
| status | in-use |
| updated_at | 2020-06-17T07:12:24.000000 |
| user_id | 390ed4681a7995dc8833b1b176b41595b9d1053357a38de2da9b4de2ab0fa5b5 |
| volume_type | AZ2-SSD |
+--------------------------------+----------------------------------------------------------------------------------+

Revision history for this message
Justinas Balciunas (justinas-balciunas) wrote :
Download full text (3.5 KiB)

Additional information:

Horizon screenshots:
https://ibb.co/Lhq9n2Y
https://ibb.co/wzqnxmg

CLI outputs:
root@kolla-ussuri:/etc/kolla# openstack volume list --all-projects
+--------------------------------------+------+-----------+------+-------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+------+-----------+------+-------------+
| 8bcd50fb-b200-4fa2-9441-b68c5472ac9c | vol1 | available | 5 | |
+--------------------------------------+------+-----------+------+-------------+
root@kolla-ussuri:/etc/kolla#
root@kolla-ussuri:/etc/kolla#
root@kolla-ussuri:/etc/kolla# openstack volume show 8bcd50fb-b200-4fa2-9441-b68c5472ac9c
+--------------------------------+------------------------------------------------------------------+
| Field | Value |
+--------------------------------+------------------------------------------------------------------+
| attachments | [] |
| availability_zone | AZ2 |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-06-17T09:10:27.000000 |
| description | |
| encrypted | False |
| id | 8bcd50fb-b200-4fa2-9441-b68c5472ac9c |
| migration_status | None |
| multiattach | True |
| name | vol1 |
| os-vol-host-attr:host | z141-ost-ctrl2@unity_z141#POOL-1 |
| os-vol-mig-status-attr:migstat | None |
| os-vol-mig-status-attr:name_id | None |
| os-vol-tenant-attr:tenant_id | 4e04be9ff9824855be22d0f54176f552 |
| properties | |
| replication_status | None |
| size | 5 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| type ...

Read more...

Revision history for this message
Justinas Balciunas (justinas-balciunas) wrote :

Added screenshot with volume "Manage attachments" dialog window which shows that after attaching the multi-attach volume to one instance it is no longer possible to attach it to another one.

Screenshot: https://ibb.co/NLfYYpS

Revision history for this message
Justinas Balciunas (justinas-balciunas) wrote :

With the same volume as in the screenshots:

openstack --os-compute-api-version 2.87 server add volume 5e5281c0-65e7-4baa-b94b-a616e54dc159 8bcd50fb-b200-4fa2-9441-b68c5472ac9c

root@kolla-ussuri:/etc/kolla# openstack volume show 8bcd50fb-b200-4fa2-9441-b68c5472ac9c -f json
{
  "attachments": [
    {
      "id": "8bcd50fb-b200-4fa2-9441-b68c5472ac9c",
      "attachment_id": "797c3cf8-486f-4686-8bfa-a9b35f509a91",
      "volume_id": "8bcd50fb-b200-4fa2-9441-b68c5472ac9c",
      "server_id": "b325846f-4231-48c6-a815-7db4ca5d1acc",
      "host_name": "z141-ost-comp4",
      "device": "/dev/sdb",
      "attached_at": "2020-06-17T09:20:18.000000"
    },
    {
      "id": "8bcd50fb-b200-4fa2-9441-b68c5472ac9c",
      "attachment_id": "df329fe6-d668-4989-ace0-b1bc47aca504",
      "volume_id": "8bcd50fb-b200-4fa2-9441-b68c5472ac9c",
      "server_id": "5e5281c0-65e7-4baa-b94b-a616e54dc159",
      "host_name": "z141-ost-comp1",
      "device": "/dev/sdb",
      "attached_at": "2020-06-17T09:54:24.000000"
    }
  ],
  "availability_zone": "AZ2",
  "bootable": "false",
  "consistencygroup_id": null,
  "created_at": "2020-06-17T09:10:27.000000",
  "description": "",
  "encrypted": false,
  "id": "8bcd50fb-b200-4fa2-9441-b68c5472ac9c",
  "migration_status": null,
  "multiattach": true,
  "name": "vol1",
  "os-vol-host-attr:host": "z141-ost-ctrl2@unity_z141#POOL-1",
  "os-vol-mig-status-attr:migstat": null,
  "os-vol-mig-status-attr:name_id": null,
  "os-vol-tenant-attr:tenant_id": "4e04be9ff9824855be22d0f54176f552",
  "properties": {},
  "replication_status": null,
  "size": 5,
  "snapshot_id": null,
  "source_volid": null,
  "status": "in-use",
  "type": "AZ2-SSD",
  "updated_at": "2020-06-17T09:54:28.000000",
  "user_id": "390ed4681a7995dc8833b1b176b41595b9d1053357a38de2da9b4de2ab0fa5b5"
}

Horizon screenshots:
https://ibb.co/T2M2s4M
https://ibb.co/3cVtbMX

Revision history for this message
Vishal Manchanda (vishalmanchanda) wrote :

Hi, I Successfully succeed to attach the same volume to multiple instances with the Ussuri branch.

Also in the bug report, you attached these screenshot [1], [2] which shows the same that you have
attached your volume 'vol1' with two instances qq1 and qq2. So what's the issue here?

Please correct me if I am wrong.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Justinas Balciunas (justinas-balciunas) wrote :

I've made those screenshots to show that *displaying* the volume is attached to multiple instances works, however, if you notice this command in the comment above ("openstack --os-compute-api-version 2.87 server add volume 5e5281c0-65e7-4baa-b94b-a616e54dc159 8bcd50fb-b200-4fa2-9441-b68c5472ac9c") then it's clear that I had to attach the volume to another instance using CLI rather than Horizon because Horizon simply refuses to allow me to do so.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.