VNX: use delete instead of remove
storops is using 'delete' for destroying objects instead of 'remove',
we need to correct related wrong usage in in VNX cinder driver as well.
Change-Id: I86683070084f5ccf846f0cf01dc58d9d71572c9b
Closes-bug: #1631100
(cherry picked from commit 95dacbfa16
)
This commit is contained in:
parent
7361c4036b
commit
05ce46f431
@ -1745,7 +1745,7 @@ test_terminate_connection_cleanup_remove_sg:
|
|||||||
sg:
|
sg:
|
||||||
_properties: *sg_base_prop
|
_properties: *sg_base_prop
|
||||||
_methods:
|
_methods:
|
||||||
remove:
|
delete:
|
||||||
disconnect_host:
|
disconnect_host:
|
||||||
get_alu_hlu_map: {}
|
get_alu_hlu_map: {}
|
||||||
|
|
||||||
@ -1758,7 +1758,7 @@ test_terminate_connection_cleanup_deregister:
|
|||||||
sg:
|
sg:
|
||||||
_properties: *sg_base_prop
|
_properties: *sg_base_prop
|
||||||
_methods:
|
_methods:
|
||||||
remove:
|
delete:
|
||||||
disconnect_host:
|
disconnect_host:
|
||||||
get_alu_hlu_map: {}
|
get_alu_hlu_map: {}
|
||||||
vnx:
|
vnx:
|
||||||
|
@ -982,7 +982,7 @@ class CommonAdapter(object):
|
|||||||
try:
|
try:
|
||||||
LOG.info(_LI("Storage Group %s is empty."), sg.name)
|
LOG.info(_LI("Storage Group %s is empty."), sg.name)
|
||||||
sg.disconnect_host(sg.name)
|
sg.disconnect_host(sg.name)
|
||||||
sg.remove()
|
sg.delete()
|
||||||
if self.itor_auto_dereg:
|
if self.itor_auto_dereg:
|
||||||
self._deregister_initiator(host)
|
self._deregister_initiator(host)
|
||||||
except storops_ex.StoropsException:
|
except storops_ex.StoropsException:
|
||||||
|
Loading…
Reference in New Issue
Block a user