Adding `image import` command

Change-Id: I7254d30431894879c8bd20e2263d83b12c99d5c8
This commit is contained in:
Mridula Joshi 2023-04-12 09:42:14 +00:00
parent 864f51f427
commit 16c78fef15
3 changed files with 6 additions and 5 deletions

View File

@ -1813,7 +1813,7 @@ class ImportImage(command.ShowOne):
method=parsed_args.import_method,
uri=parsed_args.uri,
remote_region=parsed_args.remote_region,
remote_image=parsed_args.remote_image,
remote_image_id=parsed_args.remote_image,
remote_service_interface=parsed_args.remote_service_interface,
stores=parsed_args.stores,
all_stores=parsed_args.all_stores,

View File

@ -1861,7 +1861,7 @@ class TestImageImport(TestImage):
method='glance-direct',
uri=None,
remote_region=None,
remote_image=None,
remote_image_id=None,
remote_service_interface=None,
stores=None,
all_stores=None,
@ -1889,7 +1889,7 @@ class TestImageImport(TestImage):
method='web-download',
uri='https://example.com/',
remote_region=None,
remote_image=None,
remote_image_id=None,
remote_service_interface=None,
stores=None,
all_stores=None,
@ -1990,7 +1990,7 @@ class TestImageImport(TestImage):
method='copy-image',
uri=None,
remote_region=None,
remote_image=None,
remote_image_id=None,
remote_service_interface=None,
stores=['fast'],
all_stores=None,
@ -2021,7 +2021,7 @@ class TestImageImport(TestImage):
method='glance-download',
uri=None,
remote_region='eu/dublin',
remote_image='remote-image-id',
remote_image_id='remote-image-id',
remote_service_interface='private',
stores=None,
all_stores=None,

View File

@ -387,6 +387,7 @@ openstack.image.v2 =
image_stage = openstackclient.image.v2.image:StageImage
image_task_show = openstackclient.image.v2.task:ShowTask
image_task_list = openstackclient.image.v2.task:ListTask
image_import = openstackclient.image.v2.image:ImportImage
image_metadef_namespace_create = openstackclient.image.v2.metadef_namespaces:CreateMetadefNameSpace
image_metadef_namespace_delete = openstackclient.image.v2.metadef_namespaces:DeleteMetadefNameSpace