Bug 1296492 - Volume id is changed during retype a volume
Volume id is changed during retype a volume
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: 6.0 (Juno)
Assigned To: Eric Harney
: ZStream
Depends On:
  Show dependency treegraph
Reported: 2016-01-07 06:04 EST by lkuchlan
Modified: 2016-04-26 12:27 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-01-26 11:47:06 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
logs (12.86 MB, application/x-tar)
2016-01-07 06:31 EST, lkuchlan
no flags Details

External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1531806 None None None 2016-01-07 06:07 EST

  None (edit)
Description lkuchlan 2016-01-07 06:04:17 EST
Description of problem:
After retype a volume to a new back end, the volume id is changed under /var/lib/cinder/mnt/ , while under cinder list the id is not changed.
The volume id is not matching between cinder list to /var/lib/cinder/mnt/ 
* In my setup I used with Netapp-nfs as back end

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Retype a volume to a new back end  

Actual results:
Volume id is changed under /var/lib/cinder/mnt/

Expected results:
The volume id should not change and should be matching between cinder list to /var/lib/cinder/mnt/

Additional info:
Comment 1 lkuchlan 2016-01-07 06:31 EST
Created attachment 1112418 [details]
Comment 2 Gorka Eguileor 2016-01-26 11:47:06 EST
Current behavior is considered correct, since there are different identifiers for a volume, the Cinder identifier and the identifier in the backend. and there's no requirement that these 2 need to match, so this is not really a bug.

When doing a migration we'll be changing the backend identifier associated to the cinder identifier in all drivers.  Only in latest OSP versions some drivers will try to rename the backend volume identifier to match the cinder identifier and leave it unchanged if cannot change it, for the sake of convenience, not because it is a bug.

If the name_id of the volume in the DB does not match the new id, then that would be a bug.

Note You need to log in before you can comment on or make changes to this bug.