NetApp Eseries - Migration not working correctly

Bug #1370098 reported by Yogesh
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Medium
Navneet
Juno
Fix Released
Medium
Navneet

Bug Description

Steps to reproduce -
1. Setup the env for multiple backends.
2. Create a cinder volume on c-mode/7-mode or DFM backend.
3. Perform the migration using 'cinder migrate' command to E-Series backend.
4. Once the migration is completed, try to perform some operation on migrated volume e.g. extend the volume size. or delete the volume.

Expected Result -
Any operation supported by normal volume should be supported by migrated volume.

Actual Result -
While trying to extend the size of the migrated volume, it throws an error -

2014-09-16 10:33:19.806 ERROR cinder.volume.manager [req-afdf1557-48aa-43f2-b8d8-7a7727a6c640 2825d2913d1e4449a4bbd4003db25c9c 613c58ce004740d4a873517bc8de80c0] volume ca7cb4e0-1696-4f44-aba6-b6432da1c5c3: Error trying to extend volume
2014-09-16 10:33:19.806 TRACE cinder.volume.manager Traceback (most recent call last):
2014-09-16 10:33:19.806 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/manager.py", line 1144, in extend_volume
2014-09-16 10:33:19.806 TRACE cinder.volume.manager self.driver.extend_volume(volume, new_size)
2014-09-16 10:33:19.806 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/netapp/eseries/iscsi.py", line 634, in extend_volume
2014-09-16 10:33:19.806 TRACE cinder.volume.manager src_vol = self._get_volume(volume['id'])
2014-09-16 10:33:19.806 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/netapp/eseries/iscsi.py", line 253, in _get_volume
2014-09-16 10:33:19.806 TRACE cinder.volume.manager return self._get_cached_volume(label)
2014-09-16 10:33:19.806 TRACE cinder.volume.manager File "/opt/stack/cinder/cinder/volume/drivers/netapp/eseries/iscsi.py", line 256, in _get_cached_volume
2014-09-16 10:33:19.806 TRACE cinder.volume.manager vol_id = self._objects['volumes']['label_ref'][label]
2014-09-16 10:33:19.806 TRACE cinder.volume.manager KeyError: 'ZJ6LJYAWSZHUJK5GWZBS3IOFYM'
2014-09-16 10:33:19.806 TRACE cinder.volume.manager

Revision history for this message
Yogesh (ykshirsa) wrote :
Revision history for this message
Yogesh (ykshirsa) wrote :
Mike Perez (thingee)
tags: added: drivers netapp
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/138121

Changed in cinder:
assignee: nobody → Navneet (singn)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/138121
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=c61577773c6da7dbe9d21c9f25962192119ce165
Submitter: Jenkins
Branch: master

commit c61577773c6da7dbe9d21c9f25962192119ce165
Author: Navneet Singh <email address hidden>
Date: Mon Sep 22 04:18:48 2014 +0530

    NetApp fix vol migration unusability

    This patch fixes the volume migration related issue
    in which the volume became unusable after successfull inbound
    migration due to volume id usage instead of name_id.

    Closes-bug: #1370098

    Change-Id: Iacb14ea07890859b5cf8a27c150aa5f6e8a98777

Changed in cinder:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in cinder:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/154891

Jay Bryant (jsbryant)
Changed in cinder:
importance: Undecided → Medium
tags: added: migration
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (stable/juno)

Reviewed: https://review.openstack.org/154891
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=a2a48a2d83791614525e7da94d5dacad0a3d7271
Submitter: Jenkins
Branch: stable/juno

commit a2a48a2d83791614525e7da94d5dacad0a3d7271
Author: Navneet Singh <email address hidden>
Date: Mon Sep 22 04:18:48 2014 +0530

    NetApp fix vol migration unusability

    This patch fixes the volume migration related issue
    in which the volume became unusable after successfull inbound
    migration due to volume id usage instead of name_id.

    Closes-bug: #1370098

    Change-Id: Iacb14ea07890859b5cf8a27c150aa5f6e8a98777
    (cherry picked from commit c61577773c6da7dbe9d21c9f25962192119ce165)

tags: added: in-stable-juno
Thierry Carrez (ttx)
Changed in cinder:
milestone: kilo-1 → 2015.1.0
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.