2017-06-12 11:09:57 |
jingtao liang |
bug |
|
|
added bug |
2017-06-12 11:10:57 |
jingtao liang |
summary |
Hp3par:after volume retyped or migrate, the volume can not work normally.such as clone,create snapshot attach,detach and so on. |
Hp3par:after volume retyped or migrated, the volume can not work normally.such as clone,create snapshot attach,detach and so on. |
|
2017-06-12 11:12:03 |
jingtao liang |
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 exchanged volume id.Function as follows:
def _get_3par_vol_name(self, volume_id):
"""Get converted 3PAR volume name.
Converts the openstack volume id from
ecffc30f-98cb-4cf5-85ee-d7309cc17cd2
to
osv-7P.DD5jLTPWF7tcwnMF80g
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_name(volume_id)
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 |
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_vol_name(self, volume_id):
"""Get converted 3PAR volume name.
Converts the openstack volume id from
ecffc30f-98cb-4cf5-85ee-d7309cc17cd2
to
osv-7P.DD5jLTPWF7tcwnMF80g
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_name(volume_id)
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 |
|
2017-07-22 02:38:52 |
jingtao liang |
cinder: status |
New |
Confirmed |
|
2017-07-22 02:40:08 |
jingtao liang |
cinder: status |
Confirmed |
New |
|
2020-05-19 14:56:19 |
Gorka Eguileor |
cinder: assignee |
|
Gorka Eguileor (gorka) |
|
2020-05-20 13:52:51 |
Sofia Enriquez |
bug |
|
|
added subscriber Sofia Enriquez |
2020-05-26 14:02:35 |
OpenStack Infra |
cinder: status |
New |
In Progress |
|
2020-06-17 16:26:14 |
OpenStack Infra |
cinder: status |
In Progress |
Fix Released |
|
2020-06-24 15:23:52 |
OpenStack Infra |
tags |
|
in-stable-ussuri |
|
2020-06-29 14:16:15 |
OpenStack Infra |
tags |
in-stable-ussuri |
in-stable-train in-stable-ussuri |
|
2020-07-14 11:24:29 |
OpenStack Infra |
tags |
in-stable-train in-stable-ussuri |
in-stable-stein in-stable-train in-stable-ussuri |
|
2020-07-28 15:20:40 |
Eric Harney |
tags |
in-stable-stein in-stable-train in-stable-ussuri |
3par in-stable-stein in-stable-train in-stable-ussuri |
|