Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- └─> cinder snapshot-create --name walt-wallaby 6ba26261-6f02-4cab-8d96-6febcbbd89b3
- WARNING:cinderclient.shell:API version 3.70 requested,
- WARNING:cinderclient.shell:downgrading to 3.64 based on server support.
- do_snapshot_create2 Namespace(collect_timing=False, command='', debug=False, description=None, display_description=None, display_name=None, force=None, func=<function do_snapshot_create at 0x112114790>, help=False, insecure=False, metadata=None, name='walt-wallaby', os_auth_strategy='keystone', os_auth_type='', os_auth_url='https://identity-3.qa-de-3.cloud.sap/v3', os_cacert=None, os_cert=None, os_default_domain_id=None, os_default_domain_name=None, os_domain_id=None, os_domain_name=None, os_endpoint='', os_endpoint_type='publicURL', os_key=None, os_password='100Farts&smells!', os_project_domain_id='', os_project_domain_name='monsoon3', os_project_id='', os_project_name='cc-demo', os_region_name='qa-de-3', os_system_scope=None, os_token='', os_trust_id=None, os_url='', os_user_domain_id='', os_user_domain_name='monsoon3', os_user_id='', os_username='i530566', os_volume_api_version=None, profile='', retries=0, service_name='', service_type=None, timeout=600, volume='6ba26261-6f02-4cab-8d96-6febcbbd89b3', volume_service_name='')
- Sending1 {'snapshot': {'volume_id': '6ba26261-6f02-4cab-8d96-6febcbbd89b3', 'force': None, 'name': 'walt-wallaby', 'description': None, 'metadata': {}}}
- ERROR: Invalid input for field/attribute force. Value: None. None is not of type 'boolean', 'string' (HTTP 400) (Request-ID: req-30bcb28a-8512-4247-924c-8f81030fbf11)
- ╭─cinder/cinder/api on stable/wallaby-m3 [$] via 🐍 v3.8.5 (.sap-py3) with (qa-de-3) took 5s ❯
- └─> cinder snapshot-create --name walt-wallaby 6ba26261-6f02-4cab-8d96-6febcbbd89b3
- WARNING:cinderclient.shell:API version 3.70 requested,
- WARNING:cinderclient.shell:downgrading to 3.64 based on server support.
- do_snapshot_create2 Namespace(collect_timing=False, command='', debug=False, description=None, display_description=None, display_name=None, force=False, func=<function do_snapshot_create at 0x10811c790>, help=False, insecure=False, metadata=None, name='walt-wallaby', os_auth_strategy='keystone', os_auth_type='', os_auth_url='https://identity-3.qa-de-3.cloud.sap/v3', os_cacert=None, os_cert=None, os_default_domain_id=None, os_default_domain_name=None, os_domain_id=None, os_domain_name=None, os_endpoint='', os_endpoint_type='publicURL', os_key=None, os_password='100Farts&smells!', os_project_domain_id='', os_project_domain_name='monsoon3', os_project_id='', os_project_name='cc-demo', os_region_name='qa-de-3', os_system_scope=None, os_token='', os_trust_id=None, os_url='', os_user_domain_id='', os_user_domain_name='monsoon3', os_user_id='', os_username='i530566', os_volume_api_version=None, profile='', retries=0, service_name='', service_type=None, timeout=600, volume='6ba26261-6f02-4cab-8d96-6febcbbd89b3', volume_service_name='')
- Sending1 {'snapshot': {'volume_id': '6ba26261-6f02-4cab-8d96-6febcbbd89b3', 'force': False, 'name': 'walt-wallaby', 'description': None, 'metadata': {}}}
- +-------------------+------------------------------------------------------------------+
- | Property | Value |
- +-------------------+------------------------------------------------------------------+
- | created_at | 2022-11-07T16:31:21.893462 |
- | description | None |
- | group_snapshot_id | None |
- | id | 869dc9c5-aa4c-4838-a662-3c5a546613af |
- | metadata | {} |
- | name | walt-wallaby |
- | size | 10 |
- | status | creating |
- | updated_at | None |
- | user_id | ef89980e8bbb98f0f19990a426d914b94ca204432d79bfd02a0eba7fb078b72f |
- | volume_id | 6ba26261-6f02-4cab-8d96-6febcbbd89b3 |
- +-------------------+------------------------------------------------------------------+
- diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py
- index 60239c7..29ae471 100644
- --- a/cinderclient/v3/shell.py
- +++ b/cinderclient/v3/shell.py
- @@ -2216,7 +2216,7 @@ def do_snapshot_list(cs, args):
- @utils.arg('--force',
- metavar='<True>',
- nargs='?',
- - default=None,
- + default=False,
- start_version='3.66',
- help=argparse.SUPPRESS)
- @utils.arg('--name',
- @@ -2252,6 +2252,8 @@ def do_snapshot_create(cs, args):
- if args.metadata is not None:
- snapshot_metadata = shell_utils.extract_metadata(args)
- + print(f"do_snapshot_create1 {args}")
- +
- volume = utils.find_volume(cs, args.volume)
- snapshot = cs.volume_snapshots.create(volume.id,
- args.force,
- @@ -2267,6 +2269,7 @@ def do_snapshot_create(cs, args):
- help='Name or ID of volume to snapshot.')
- @utils.arg('--force',
- nargs='?',
- + default=False,
- help=argparse.SUPPRESS)
- @utils.arg('--name',
- metavar='<name>',
- @@ -2309,6 +2312,7 @@ def do_snapshot_create(cs, args): # noqa: F811
- force = getattr(args, 'force', None)
- volume = utils.find_volume(cs, args.volume)
- + print(f"do_snapshot_create2 {args}")
- # this is a little weird, but for consistency with the API we
- # will silently ignore the --force option when it's passed with
- diff --git a/cinderclient/v3/volume_snapshots.py b/cinderclient/v3/volume_snapshots.py
- index 9a94422..3dd6c96 100644
- --- a/cinderclient/v3/volume_snapshots.py
- +++ b/cinderclient/v3/volume_snapshots.py
- @@ -113,6 +113,7 @@ class SnapshotManager(base.ManagerWithFind):
- 'name': name,
- 'description': description,
- 'metadata': snapshot_metadata}}
- + print(f"Sending1 {body}")
- return self._create('/snapshots', body, 'snapshot')
- @api_versions.wraps("3.66")
- @@ -149,6 +150,7 @@ class SnapshotManager(base.ManagerWithFind):
- raise ValueError()
- except ValueError:
- raise ValueError(MV_3_66_FORCE_FLAG_ERROR)
- + print(f"Sending2 {body}")
- return self._create('/snapshots', body, 'snapshot')
- def get(self, snapshot_id):
Advertisement
Add Comment
Please, Sign In to add comment