Hp3par:after volume retyped or migrated, the volume can not work normally.such as clone,create snapshot attach,detach and so on.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Gorka Eguileor |
Bug Description
Version :the newest
reproduce:
1 create a volume A .
2 attach A to an instance.
3 migrate A to another host.
4 Then use A do clone,create snapshot or others.
reasons:
After volume retyped,swap src and dest volume DB records so we can continue using the src id and asynchronously delete the destination id.But the volume name on hp3par has not change.So we can not get the exact volume name from the changed volume id.Function is as follows:
def _get_3par_
"""Get converted 3PAR volume name.
Converts the openstack volume id from
to
We convert the 128 bits of the uuid into a 24character long
base64 encoded string to ensure we don't exceed the maximum
allowed 31 character name limit on 3Par
We strip the padding '=' and replace + with .
and / with -
"""
volume_name = self._encode_
return "osv-%s" % volume_name
Like create,delete .These action will get volume name by volume_id.Then can not get the right volume.
I hope someone can notice the problem.Tks
Changed in cinder: | |
status: | New → Confirmed |
status: | Confirmed → New |
Changed in cinder: | |
assignee: | nobody → Gorka Eguileor (gorka) |
tags: | added: 3par |
related bug:1696906