← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1633535] Re: Cinder fails to attach second volume to Nova VM

 

I'm not sure I follow here; this seems like something on the Manila side
not Cinder or Nova. If I just create two volume (or 3 or 4) in Cinder
and attach them to an instance that seems to work just fine:

jgriffith@bdr75:~/devstack$ nova volume-attach 15fb3379-1811-46ca-bdc3-35cccafb1233 1bf11fab-2329-4506-9cdb-3bf4af8688bc
+----------+--------------------------------------+
| Property | Value                                |
+----------+--------------------------------------+
| device   | /dev/vdb                             |
| id       | 1bf11fab-2329-4506-9cdb-3bf4af8688bc |
| serverId | 15fb3379-1811-46ca-bdc3-35cccafb1233 |
| volumeId | 1bf11fab-2329-4506-9cdb-3bf4af8688bc |
+----------+--------------------------------------+
jgriffith@bdr75:~/devstack$ nova volume-attach 15fb3379-1811-46ca-bdc3-35cccafb1233 51dbb65b-5da8-435c-ae2d-895efac90dca

+----------+--------------------------------------+
| Property | Value                                |
+----------+--------------------------------------+
| device   | /dev/vdc                             |
| id       | 51dbb65b-5da8-435c-ae2d-895efac90dca |
| serverId | 15fb3379-1811-46ca-bdc3-35cccafb1233 |
| volumeId | 51dbb65b-5da8-435c-ae2d-895efac90dca |
+----------+--------------------------------------+
jgriffith@bdr75:~/devstack$
jgriffith@bdr75:~/devstack$ nova volume-attach 15fb3379-1811-46ca-bdc3-35cccafb1233 a7c1c1eb-246b-4531-95fb-d6068ef3313e
+----------+--------------------------------------+
| Property | Value                                |
+----------+--------------------------------------+
| device   | /dev/vdd                             |
| id       | a7c1c1eb-246b-4531-95fb-d6068ef3313e |
| serverId | 15fb3379-1811-46ca-bdc3-35cccafb1233 |
| volumeId | a7c1c1eb-246b-4531-95fb-d6068ef3313e |
+----------+--------------------------------------+
jgriffith@bdr75:~/devstack$ nova list; cinder list
+--------------------------------------+------+--------+------------+-------------+---------------------+
| ID                                   | Name | Status | Task State | Power State | Networks            |
+--------------------------------------+------+--------+------------+-------------+---------------------+
| 15fb3379-1811-46ca-bdc3-35cccafb1233 | test | ACTIVE | -          | Running     | private=192.168.0.5 |
+--------------------------------------+------+--------+------------+-------------+---------------------+
+--------------------------------------+--------+----------+------+-------------+----------+--------------------------------------+
| ID                                   | Status | Name     | Size | Volume Type | Bootable | Attached to                          |
+--------------------------------------+--------+----------+------+-------------+----------+--------------------------------------+
| 1bf11fab-2329-4506-9cdb-3bf4af8688bc | in-use | -        | 1    | lvmdriver-1 | false    | 15fb3379-1811-46ca-bdc3-35cccafb1233 |
| 51dbb65b-5da8-435c-ae2d-895efac90dca | in-use | -        | 1    | lvmdriver-1 | false    | 15fb3379-1811-46ca-bdc3-35cccafb1233 |
| 6d4107b1-78a4-45e1-92c2-05182f4aab38 | in-use | fedora24 | 10   | solidfire   | true     |                                      |
| a7c1c1eb-246b-4531-95fb-d6068ef3313e | in-use | -        | 1    | lvmdriver-1 | false    | 15fb3379-1811-46ca-bdc3-35cccafb1233 |
| d8e6dda2-2f00-4db7-a101-fea3ad5f011a | in-use | cirros   | 1    | solidfire   | true     |                                      |
+--------------------------------------+--------+----------+------+-------------+----------+--------------------------------------+
jgriffith@bdr75:~/devstack$


``````````````````

ssh onto the Instance and:
$ ls /dev | grep vd
vda
vdb
vdc
vdd
$

Our volume sare vdb, vdc, and vdd

** Changed in: cinder
       Status: Confirmed => Invalid

-- 
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/1633535

Title:
  Cinder fails to attach second volume to Nova VM

Status in Cinder:
  Invalid
Status in ec2-api:
  New
Status in Manila:
  Confirmed
Status in OpenStack Compute (nova):
  New
Status in tempest:
  New

Bug description:
  Cinder fails to attach second volume to Nova VM. This second volume gets "in-use" status, but does not have any attachments. Also,  such volume cannot be detached from VM [4].  Test gerrit change [2] proves that commit to Cinder [3] is THE CAUSE of a bug.
  Also, bug was reproduced even before merge of [3] with "gate-rally-dsvm-cinder" CI job [4], but, I assume, no one has paid attention to this.

  Local testing shows that IF bug appears then volume never gets
  attached and list of attachments stays empty. And waiting between
  'create' (wait until 'available' status) and 'attach' commands does
  not help at all.

  How to reproduce:
  1) Create VM
  2) Create Volume
  3) Attach volume (2) to the VM (1)
  4) Create second volume
  5) Try attach second volume (4) to VM (1) - it will fail.

  [Tempest] Also, the fact that Cinder gates passed with [3] means that
  tempest does not have test that attaches more than one volume to one
  Nova VM. And it is also tempest bug, that should be addressed.

  [Manila] In scope of Manila project, one of its drivers is broken -
  Generic driver that uses Cinder as backend.

  [1] http://logs.openstack.org/64/386364/1/check/gate-manila-tempest-
  dsvm-postgres-generic-singlebackend-ubuntu-xenial-
  nv/eef11b0/logs/screen-m-shr.txt.gz?level=TRACE#_2016-10-14_15_15_19_898

  [2] https://review.openstack.org/387915

  [3]
  https://github.com/openstack/cinder/commit/6f174b412696bfa6262a5bea3ac42f45efbbe2ce
  ( https://review.openstack.org/385122 )

  [4] http://logs.openstack.org/22/385122/1/check/gate-rally-dsvm-
  cinder/b0332e2/rally-
  plot/results.html.gz#/CinderVolumes.create_snapshot_and_attach_volume/failures

To manage notifications about this bug go to:
https://bugs.launchpad.net/cinder/+bug/1633535/+subscriptions