Guest User

Untitled

a guest
Nov 7th, 2022
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.66 KB | None | 0 0
  1. └─> cinder snapshot-create --name walt-wallaby 6ba26261-6f02-4cab-8d96-6febcbbd89b3
  2. WARNING:cinderclient.shell:API version 3.70 requested,
  3. WARNING:cinderclient.shell:downgrading to 3.64 based on server support.
  4. 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='')
  5. Sending1 {'snapshot': {'volume_id': '6ba26261-6f02-4cab-8d96-6febcbbd89b3', 'force': None, 'name': 'walt-wallaby', 'description': None, 'metadata': {}}}
  6. 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)
  7.  
  8. ╭─cinder/cinder/api on  stable/wallaby-m3 [$] via 🐍 v3.8.5 (.sap-py3) with (qa-de-3) took 5s ❯
  9. └─> cinder snapshot-create --name walt-wallaby 6ba26261-6f02-4cab-8d96-6febcbbd89b3
  10. WARNING:cinderclient.shell:API version 3.70 requested,
  11. WARNING:cinderclient.shell:downgrading to 3.64 based on server support.
  12. 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='')
  13. Sending1 {'snapshot': {'volume_id': '6ba26261-6f02-4cab-8d96-6febcbbd89b3', 'force': False, 'name': 'walt-wallaby', 'description': None, 'metadata': {}}}
  14. +-------------------+------------------------------------------------------------------+
  15. | Property | Value |
  16. +-------------------+------------------------------------------------------------------+
  17. | created_at | 2022-11-07T16:31:21.893462 |
  18. | description | None |
  19. | group_snapshot_id | None |
  20. | id | 869dc9c5-aa4c-4838-a662-3c5a546613af |
  21. | metadata | {} |
  22. | name | walt-wallaby |
  23. | size | 10 |
  24. | status | creating |
  25. | updated_at | None |
  26. | user_id | ef89980e8bbb98f0f19990a426d914b94ca204432d79bfd02a0eba7fb078b72f |
  27. | volume_id | 6ba26261-6f02-4cab-8d96-6febcbbd89b3 |
  28. +-------------------+------------------------------------------------------------------+
  29.  
  30.  
  31.  
  32.  
  33.  
  34. diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py
  35. index 60239c7..29ae471 100644
  36. --- a/cinderclient/v3/shell.py
  37. +++ b/cinderclient/v3/shell.py
  38. @@ -2216,7 +2216,7 @@ def do_snapshot_list(cs, args):
  39. @utils.arg('--force',
  40. metavar='<True>',
  41. nargs='?',
  42. - default=None,
  43. + default=False,
  44. start_version='3.66',
  45. help=argparse.SUPPRESS)
  46. @utils.arg('--name',
  47. @@ -2252,6 +2252,8 @@ def do_snapshot_create(cs, args):
  48. if args.metadata is not None:
  49. snapshot_metadata = shell_utils.extract_metadata(args)
  50.  
  51. + print(f"do_snapshot_create1 {args}")
  52. +
  53. volume = utils.find_volume(cs, args.volume)
  54. snapshot = cs.volume_snapshots.create(volume.id,
  55. args.force,
  56. @@ -2267,6 +2269,7 @@ def do_snapshot_create(cs, args):
  57. help='Name or ID of volume to snapshot.')
  58. @utils.arg('--force',
  59. nargs='?',
  60. + default=False,
  61. help=argparse.SUPPRESS)
  62. @utils.arg('--name',
  63. metavar='<name>',
  64. @@ -2309,6 +2312,7 @@ def do_snapshot_create(cs, args): # noqa: F811
  65. force = getattr(args, 'force', None)
  66.  
  67. volume = utils.find_volume(cs, args.volume)
  68. + print(f"do_snapshot_create2 {args}")
  69.  
  70. # this is a little weird, but for consistency with the API we
  71. # will silently ignore the --force option when it's passed with
  72. diff --git a/cinderclient/v3/volume_snapshots.py b/cinderclient/v3/volume_snapshots.py
  73. index 9a94422..3dd6c96 100644
  74. --- a/cinderclient/v3/volume_snapshots.py
  75. +++ b/cinderclient/v3/volume_snapshots.py
  76. @@ -113,6 +113,7 @@ class SnapshotManager(base.ManagerWithFind):
  77. 'name': name,
  78. 'description': description,
  79. 'metadata': snapshot_metadata}}
  80. + print(f"Sending1 {body}")
  81. return self._create('/snapshots', body, 'snapshot')
  82.  
  83. @api_versions.wraps("3.66")
  84. @@ -149,6 +150,7 @@ class SnapshotManager(base.ManagerWithFind):
  85. raise ValueError()
  86. except ValueError:
  87. raise ValueError(MV_3_66_FORCE_FLAG_ERROR)
  88. + print(f"Sending2 {body}")
  89. return self._create('/snapshots', body, 'snapshot')
  90.  
  91. def get(self, snapshot_id):
Advertisement
Add Comment
Please, Sign In to add comment