Improve service validation during upgrade Cinder
* Added modules which allow to check and manage services statuses.
Change-Id: Ib51fd5b65c332aa1d9cae2ebcf9ebb7d510a4df3
Related-PROD: PROD-25157
diff --git a/_modules/cinderv3/__init__.py b/_modules/cinderv3/__init__.py
index 9bb71f2..218a23f 100644
--- a/_modules/cinderv3/__init__.py
+++ b/_modules/cinderv3/__init__.py
@@ -8,6 +8,7 @@
from cinderv3 import volumes
from cinderv3 import volume_types
from cinderv3 import volume_actions
+from cinderv3 import services
volume_list = lists.volume_list
volume_list_get_details = lists.volume_list_get_details
@@ -28,6 +29,9 @@
keys_volume_type_get = volume_types.keys_volume_type_get
keys_volume_type_set = volume_types.keys_volume_type_set
image_upload_volume = volume_actions.image_upload_volume
+service_list = lists.service_list
+service_update = services.service_update
+service_wait = services.wait_for_service
__all__ = ('volume_list', 'volume_create', 'volume_delete',
'volume_get_details', 'volume_list_get_details', 'volume_update',
@@ -37,8 +41,7 @@
'volume_type_list', 'volume_type_get_details',
'volume_type_create', 'keys_volume_type_get',
'keys_volume_type_set', 'volume_type_delete',
- 'image_upload_volume',)
-
+ 'image_upload_volume', 'service_list', 'service_update', 'service_wait')
def __virtual__():
if REQUIREMENTS_MET: