python-manilaclient 4.7.0__py3-none-any.whl → 4.8.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. manilaclient/api_versions.py +1 -1
  2. manilaclient/common/cliutils.py +2 -2
  3. manilaclient/osc/v2/quotas.py +0 -1
  4. manilaclient/osc/v2/services.py +26 -2
  5. manilaclient/osc/v2/share.py +1 -1
  6. manilaclient/osc/v2/share_network_subnets.py +10 -0
  7. manilaclient/osc/v2/share_networks.py +10 -7
  8. manilaclient/tests/functional/base.py +1 -1
  9. manilaclient/tests/functional/osc/base.py +4 -2
  10. manilaclient/tests/functional/osc/test_resource_locks.py +4 -4
  11. manilaclient/tests/functional/osc/test_share_access_rules.py +2 -2
  12. manilaclient/tests/functional/osc/test_share_network_subnets.py +2 -2
  13. manilaclient/tests/functional/osc/test_share_services.py +2 -1
  14. manilaclient/tests/functional/osc/test_share_snapshot_instances.py +75 -0
  15. manilaclient/tests/unit/fakes.py +1 -1
  16. manilaclient/tests/unit/osc/v2/test_quotas.py +17 -7
  17. manilaclient/tests/unit/osc/v2/test_services.py +69 -12
  18. manilaclient/tests/unit/osc/v2/test_share.py +6 -0
  19. manilaclient/tests/unit/osc/v2/test_share_networks.py +1 -2
  20. manilaclient/tests/unit/v2/fakes.py +1 -1
  21. manilaclient/tests/unit/v2/test_limits.py +2 -2
  22. manilaclient/tests/unit/v2/test_share_networks.py +2 -2
  23. manilaclient/v2/services.py +10 -2
  24. manilaclient/v2/shares.py +2 -0
  25. manilaclient/v2/shell.py +1 -0
  26. {python_manilaclient-4.7.0.dist-info → python_manilaclient-4.8.1.dist-info}/AUTHORS +4 -0
  27. {python_manilaclient-4.7.0.dist-info → python_manilaclient-4.8.1.dist-info}/METADATA +17 -17
  28. {python_manilaclient-4.7.0.dist-info → python_manilaclient-4.8.1.dist-info}/RECORD +33 -32
  29. {python_manilaclient-4.7.0.dist-info → python_manilaclient-4.8.1.dist-info}/WHEEL +1 -1
  30. {python_manilaclient-4.7.0.dist-info → python_manilaclient-4.8.1.dist-info}/entry_points.txt +0 -1
  31. python_manilaclient-4.8.1.dist-info/pbr.json +1 -0
  32. python_manilaclient-4.7.0.dist-info/pbr.json +0 -1
  33. {python_manilaclient-4.7.0.dist-info → python_manilaclient-4.8.1.dist-info}/LICENSE +0 -0
  34. {python_manilaclient-4.7.0.dist-info → python_manilaclient-4.8.1.dist-info}/top_level.txt +0 -0
@@ -27,7 +27,7 @@ from manilaclient import utils
27
27
 
28
28
  LOG = logging.getLogger(__name__)
29
29
 
30
- MAX_VERSION = '2.82'
30
+ MAX_VERSION = '2.83'
31
31
  MIN_VERSION = '2.0'
32
32
  DEPRECATED_VERSION = '1.0'
33
33
  _VERSIONED_METHOD_MAP = {}
@@ -251,8 +251,8 @@ def get_service_type(f):
251
251
  return getattr(f, 'service_type', None)
252
252
 
253
253
 
254
- def pretty_choice_list(l):
255
- return ', '.join("'%s'" % i for i in l)
254
+ def pretty_choice_list(choices):
255
+ return ', '.join("'%s'" % choice for choice in choices)
256
256
 
257
257
 
258
258
  def exit(msg=''):
@@ -160,7 +160,6 @@ class QuotaSet(command.Command):
160
160
  "gigabytes": parsed_args.gigabytes,
161
161
  "snapshot_gigabytes": parsed_args.snapshot_gigabytes,
162
162
  "share_networks": parsed_args.share_networks,
163
- "per_share_gigabytes": parsed_args.per_share_gigabytes,
164
163
  }
165
164
 
166
165
  if parsed_args.share_type is not None:
@@ -13,6 +13,7 @@ from osc_lib.command import command
13
13
  from osc_lib import exceptions
14
14
  from osc_lib import utils as osc_utils
15
15
 
16
+ from manilaclient import api_versions
16
17
  from manilaclient.common._i18n import _
17
18
 
18
19
 
@@ -44,9 +45,20 @@ class SetShareService(command.Command):
44
45
  action='store_true',
45
46
  help=_('Disable share service'),
46
47
  )
48
+ parser.add_argument(
49
+ "--disable-reason",
50
+ metavar="<reason>",
51
+ help=_("Reason for disabling the service "
52
+ "(should be used with --disable option)")
53
+ )
47
54
  return parser
48
55
 
49
56
  def take_action(self, parsed_args):
57
+ if parsed_args.disable_reason and not parsed_args.disable:
58
+ msg = _("Cannot specify option --disable-reason without "
59
+ "--disable specified.")
60
+ raise exceptions.CommandError(msg)
61
+
50
62
  share_client = self.app.client_manager.share
51
63
 
52
64
  if parsed_args.enable:
@@ -58,9 +70,19 @@ class SetShareService(command.Command):
58
70
  "Failed to enable service: %s" % e))
59
71
 
60
72
  if parsed_args.disable:
73
+ if parsed_args.disable_reason:
74
+ if share_client.api_version < api_versions.APIVersion("2.83"):
75
+ raise exceptions.CommandError(
76
+ "Service disable reason can be specified only with "
77
+ "manila API version >= 2.83")
61
78
  try:
62
- share_client.services.disable(
63
- parsed_args.host, parsed_args.binary)
79
+ if parsed_args.disable_reason:
80
+ share_client.services.disable(
81
+ parsed_args.host, parsed_args.binary,
82
+ disable_reason=parsed_args.disable_reason)
83
+ else:
84
+ share_client.services.disable(
85
+ parsed_args.host, parsed_args.binary)
64
86
  except Exception as e:
65
87
  raise exceptions.CommandError(_(
66
88
  "Failed to disable service: %s" % e))
@@ -127,6 +149,8 @@ class ListShareService(command.Lister):
127
149
  'State',
128
150
  'Updated At'
129
151
  ]
152
+ if share_client.api_version >= api_versions.APIVersion("2.83"):
153
+ columns.append('Disabled Reason')
130
154
 
131
155
  data = (osc_utils.get_dict_properties(
132
156
  service._info, columns) for service in services)
@@ -350,7 +350,7 @@ class DeleteShare(command.Command):
350
350
 
351
351
  if parsed_args.force:
352
352
  share_client.shares.force_delete(share_obj)
353
- if parsed_args.soft:
353
+ elif parsed_args.soft:
354
354
  if share_client.api_version >= api_versions.APIVersion(
355
355
  '2.69'):
356
356
  share_client.shares.soft_delete(share_obj)
@@ -21,6 +21,7 @@ from osc_lib import utils as oscutils
21
21
 
22
22
  from manilaclient import api_versions
23
23
  from manilaclient.common._i18n import _
24
+ from manilaclient.common import cliutils
24
25
 
25
26
 
26
27
  LOG = logging.getLogger(__name__)
@@ -135,6 +136,15 @@ class CreateShareNetworkSubnet(command.ShowOne):
135
136
  share_network_id=share_network_id)
136
137
  )
137
138
  subnet_data = subnet_create_check[1]
139
+ if subnet_data:
140
+ if parsed_args.formatter == 'table':
141
+ for k, v in subnet_data.items():
142
+ if isinstance(v, dict):
143
+ capabilities_list = [v]
144
+ dict_values = cliutils.convert_dict_list_to_string(
145
+ capabilities_list
146
+ )
147
+ subnet_data[k] = dict_values
138
148
  else:
139
149
  share_network_subnet = share_client.share_network_subnets.create(
140
150
  neutron_net_id=parsed_args.neutron_net_id,
@@ -308,13 +308,16 @@ class CreateShareNetwork(command.ShowOne):
308
308
  elif parsed_args.availability_zone:
309
309
  availability_zone = parsed_args.availability_zone
310
310
 
311
- share_network = share_client.share_networks.create(
312
- name=parsed_args.name,
313
- description=parsed_args.description,
314
- neutron_net_id=parsed_args.neutron_net_id,
315
- neutron_subnet_id=parsed_args.neutron_subnet_id,
316
- availability_zone=availability_zone,
317
- )
311
+ kwargs = {
312
+ "name": parsed_args.name,
313
+ "description": parsed_args.description,
314
+ "neutron_net_id": parsed_args.neutron_net_id,
315
+ "neutron_subnet_id": parsed_args.neutron_subnet_id,
316
+ }
317
+ if availability_zone:
318
+ kwargs['availability_zone'] = availability_zone
319
+ share_network = share_client.share_networks.create(**kwargs)
320
+
318
321
  share_network_data = share_network._info
319
322
  share_network_data.pop('links', None)
320
323
  if parsed_args.formatter == 'table':
@@ -98,7 +98,7 @@ class BaseTestCase(base.ClientTestBase):
98
98
  res["deleted"] = False
99
99
  if "client" not in res:
100
100
  res["client"] = cls.get_cleanup_client()
101
- if not(res["deleted"]):
101
+ if not res["deleted"]:
102
102
  res_id = res["id"]
103
103
  client = res["client"]
104
104
  deletion_params = res.get("deletion_params")
@@ -145,7 +145,7 @@ class OSCClientTestBase(base.ClientTestBase):
145
145
  snapshot_id=None, properties=None, share_network=None,
146
146
  description=None, public=False, share_type=None,
147
147
  availability_zone=None, share_group=None,
148
- add_cleanup=True, client=None,
148
+ add_cleanup=True, client=None, wait=None,
149
149
  wait_for_status='available'):
150
150
 
151
151
  name = name or data_utils.rand_name('autotest_share_name')
@@ -174,6 +174,8 @@ class OSCClientTestBase(base.ClientTestBase):
174
174
  cmd = cmd + ' --availability-zone %s' % availability_zone
175
175
  if share_group:
176
176
  cmd = cmd + ' --share-group %s' % share_group
177
+ if wait:
178
+ cmd = cmd + ' --wait'
177
179
 
178
180
  share_object = self.dict_result('share', cmd, client=client)
179
181
  self._wait_for_object_status(
@@ -422,7 +424,7 @@ class OSCClientTestBase(base.ClientTestBase):
422
424
  if availability_zone:
423
425
  cmd += f' --availability-zone {availability_zone}'
424
426
  if restart_check:
425
- cmd += f' --restart-check'
427
+ cmd += ' --restart-check'
426
428
 
427
429
  check_result = self.dict_result('share', cmd)
428
430
  return check_result
@@ -109,7 +109,7 @@ class ResourceLockTests(base.OSCClientTestBase):
109
109
  'lock list --lock-context user '
110
110
  f' --resource {self.share["id"]}')
111
111
  self.assertEqual(2, len(locks))
112
- self.assertNotIn(lock_3['id'], [l['ID'] for l in locks])
112
+ self.assertNotIn(lock_3['id'], [lock['ID'] for lock in locks])
113
113
 
114
114
  locks = self.listing_result('share',
115
115
  'lock list --lock-context user'
@@ -118,9 +118,9 @@ class ResourceLockTests(base.OSCClientTestBase):
118
118
  ' --sort-dir desc '
119
119
  ' --limit 1')
120
120
  self.assertEqual(1, len(locks))
121
- self.assertIn(lock_2['id'], [l['ID'] for l in locks])
122
- self.assertNotIn(lock_1['id'], [l['ID'] for l in locks])
123
- self.assertNotIn(lock_3['id'], [l['ID'] for l in locks])
121
+ self.assertIn(lock_2['id'], [lock['ID'] for lock in locks])
122
+ self.assertNotIn(lock_1['id'], [lock['ID'] for lock in locks])
123
+ self.assertNotIn(lock_3['id'], [lock['ID'] for lock in locks])
124
124
 
125
125
  def test_lock_set_unset_lock_reason(self):
126
126
  lock = self.create_resource_lock(self.share['id'],
@@ -186,7 +186,7 @@ class ListShareAccessRulesTestCase(base.OSCClientTestBase):
186
186
  output = self.openstack(
187
187
  'share',
188
188
  params=f'access list {share["id"]} --access-to {access_to_filter}',
189
- flags=f'--os-share-api-version 2.82')
189
+ flags='--os-share-api-version 2.82')
190
190
  access_rule_list = self.parser.listing(output)
191
191
 
192
192
  self.assertTrue(len(access_rule_list) == 1)
@@ -214,7 +214,7 @@ class ShowShareAccessRulesTestCase(base.OSCClientTestBase):
214
214
  self.assertEqual(access_rule_show['created_at'],
215
215
  access_rule['created_at'])
216
216
  self.assertEqual(access_rule_show['properties'], '')
217
- self.assertTrue('updated_at' in access_rule_show)
217
+ self.assertIn('updated_at', access_rule_show)
218
218
 
219
219
 
220
220
  class SetShareAccessTestCase(base.OSCClientTestBase):
@@ -25,7 +25,7 @@ class ShareNetworkSubnetsCLITest(base.OSCClientTestBase):
25
25
  share_network['id'])
26
26
 
27
27
  self.assertEqual('True', check_result['compatible'])
28
- self.assertEqual('{}', check_result['hosts_check_result'])
28
+ self.assertEqual('', check_result['hosts_check_result'])
29
29
 
30
30
  def test_openstack_share_network_create_check_restart(self):
31
31
  share_network = self.create_share_network()
@@ -34,4 +34,4 @@ class ShareNetworkSubnetsCLITest(base.OSCClientTestBase):
34
34
  share_network['id'], restart_check=True)
35
35
 
36
36
  self.assertEqual('True', check_result['compatible'])
37
- self.assertEqual('{}', check_result['hosts_check_result'])
37
+ self.assertEqual('', check_result['hosts_check_result'])
@@ -45,11 +45,12 @@ class ShareServicesTestCase(base.OSCClientTestBase):
45
45
  first_service = service[0]
46
46
  self.openstack(f'share service set {first_service["Host"]} '
47
47
  f'{first_service["Binary"]} '
48
- '--disable')
48
+ '--disable --disable-reason test')
49
49
  result = self.listing_result('share service',
50
50
  'list --status disabled')
51
51
  self.assertEqual(first_service['ID'], result[0]['ID'])
52
52
  self.assertEqual('disabled', result[0]['Status'])
53
+ self.assertEqual('test', result[0]['Disabled Reason'])
53
54
 
54
55
  # enable the share service again
55
56
  self.openstack(f'share service set {first_service["Host"]} '
@@ -0,0 +1,75 @@
1
+ # Licensed under the Apache License, Version 2.0 (the "License"); you may
2
+ # not use this file except in compliance with the License. You may obtain
3
+ # a copy of the License at
4
+ #
5
+ # http://www.apache.org/licenses/LICENSE-2.0
6
+ #
7
+ # Unless required by applicable law or agreed to in writing, software
8
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
10
+ # License for the specific language governing permissions and limitations
11
+ # under the License.
12
+
13
+ from manilaclient.tests.functional.osc import base
14
+
15
+
16
+ class ShareSnapshotInstancesCLITest(base.OSCClientTestBase):
17
+
18
+ def test_openstack_share_snapshot_instance_list(self):
19
+ share = self.create_share()
20
+ snapshot = self.create_snapshot(share['id'])
21
+ share_snapshot_instances_list = self.listing_result(
22
+ 'share snapshot instance', 'list --detailed')
23
+ self.assertTableStruct(share_snapshot_instances_list, [
24
+ 'ID',
25
+ 'Snapshot ID',
26
+ 'Status',
27
+ 'Created At',
28
+ 'Updated At',
29
+ 'Share ID',
30
+ 'Share Instance ID',
31
+ 'Progress',
32
+ 'Provider Location'
33
+ ])
34
+ self.assertIn(snapshot['id'],
35
+ [item['Snapshot ID'] for item in (
36
+ share_snapshot_instances_list)])
37
+
38
+ def test_openstack_share_snapshot_instance_show(self):
39
+ share = self.create_share()
40
+ snapshot = self.create_snapshot(share['id'], wait=True)
41
+
42
+ share_snapshot_instance = self.listing_result(
43
+ "share snapshot instance", f'list --snapshot {snapshot["id"]}')
44
+ result = self.dict_result('share snapshot instance',
45
+ f'show {share_snapshot_instance[0]["ID"]}')
46
+
47
+ self.assertEqual(share_snapshot_instance[0]['ID'], result['id'])
48
+ self.assertEqual(share_snapshot_instance[0]['Snapshot ID'],
49
+ result['snapshot_id'])
50
+
51
+ listing_result = self.listing_result(
52
+ 'share snapshot instance', f'show '
53
+ f'{share_snapshot_instance[0]["ID"]}')
54
+ self.assertTableStruct(listing_result, [
55
+ 'Field',
56
+ 'Value'
57
+ ])
58
+
59
+ def test_openstack_share_snapshot_instance_set(self):
60
+ share = self.create_share()
61
+ snapshot = self.create_snapshot(share['id'], wait=True)
62
+ share_snapshot_instance = self.listing_result(
63
+ "share snapshot instance", f'list --snapshot {snapshot["id"]}')
64
+ result1 = self.dict_result('share snapshot instance',
65
+ f'show {share_snapshot_instance[0]["ID"]}')
66
+ self.assertEqual(share_snapshot_instance[0]['ID'], result1['id'])
67
+ self.assertEqual(snapshot['id'], result1['snapshot_id'])
68
+ self.assertEqual('available', result1['status'])
69
+
70
+ self.openstack('share snapshot instance set '
71
+ f'{share_snapshot_instance[0]["ID"]} --status error')
72
+ result2 = self.dict_result('share snapshot instance',
73
+ f'show {share_snapshot_instance[0]["ID"]}')
74
+ self.assertEqual(share_snapshot_instance[0]["ID"], result2['id'])
75
+ self.assertEqual('error', result2['status'])
@@ -65,7 +65,7 @@ class FakeClient(object):
65
65
  break
66
66
 
67
67
  assert found, 'Expected %s %s; got %s' % (
68
- expected, self.client.callstack)
68
+ expected[0], expected[1], self.client.callstack)
69
69
 
70
70
  if body is not None:
71
71
  try:
@@ -78,8 +78,7 @@ class TestQuotaSet(TestQuotas):
78
78
  share_networks=None,
79
79
  shares=40,
80
80
  snapshot_gigabytes=None,
81
- snapshots=None,
82
- per_share_gigabytes=None)
81
+ snapshots=None)
83
82
  self.assertIsNone(result)
84
83
  mock_find_resource.assert_not_called()
85
84
  self.quotas_mock.assert_not_called()
@@ -107,7 +106,6 @@ class TestQuotaSet(TestQuotas):
107
106
  shares=40,
108
107
  snapshot_gigabytes=None,
109
108
  snapshots=None,
110
- per_share_gigabytes=None,
111
109
  tenant_id=self.project.id,
112
110
  user_id=None)
113
111
  self.assertIsNone(result)
@@ -135,7 +133,6 @@ class TestQuotaSet(TestQuotas):
135
133
  shares=None,
136
134
  snapshot_gigabytes=None,
137
135
  snapshots=None,
138
- per_share_gigabytes=None,
139
136
  tenant_id=self.project.id,
140
137
  user_id=None)
141
138
  self.assertIsNone(result)
@@ -164,7 +161,6 @@ class TestQuotaSet(TestQuotas):
164
161
  shares=None,
165
162
  snapshot_gigabytes=None,
166
163
  snapshots=None,
167
- per_share_gigabytes=None,
168
164
  tenant_id=self.project.id,
169
165
  user_id=None)
170
166
  self.assertIsNone(result)
@@ -195,7 +191,6 @@ class TestQuotaSet(TestQuotas):
195
191
  snapshot_gigabytes=None,
196
192
  snapshots=None,
197
193
  tenant_id=self.project.id,
198
- per_share_gigabytes=None,
199
194
  user_id=None)
200
195
  self.assertIsNone(result)
201
196
 
@@ -290,7 +285,6 @@ class TestQuotaSet(TestQuotas):
290
285
  shares=None,
291
286
  snapshot_gigabytes=None,
292
287
  snapshots=None,
293
- per_share_gigabytes=None,
294
288
  tenant_id=self.project.id,
295
289
  user_id=None)
296
290
  self.assertIsNone(result)
@@ -311,6 +305,22 @@ class TestQuotaSet(TestQuotas):
311
305
  self.assertRaises(
312
306
  exceptions.CommandError, self.cmd.take_action, parsed_args)
313
307
 
308
+ def test_quota_set_per_share_gigabytes_exception(self):
309
+ self.app.client_manager.share.api_version = api_versions.APIVersion(
310
+ '2.61')
311
+ arglist = [
312
+ self.project.id,
313
+ '--per-share-gigabytes', '10',
314
+ ]
315
+ verifylist = [
316
+ ('project', self.project.id),
317
+ ('per_share_gigabytes', 10)
318
+ ]
319
+
320
+ parsed_args = self.check_parser(self.cmd, arglist, verifylist)
321
+ self.assertRaises(
322
+ exceptions.CommandError, self.cmd.take_action, parsed_args)
323
+
314
324
  def test_quota_set_per_share_gigabytes(self):
315
325
  arglist = [
316
326
  self.project.id,
@@ -10,9 +10,11 @@
10
10
  # License for the specific language governing permissions and limitations
11
11
  # under the License.
12
12
  #
13
+ import ddt
13
14
  from osc_lib import exceptions
14
15
  from osc_lib import utils as oscutils
15
16
 
17
+ from manilaclient import api_versions
16
18
  from manilaclient.osc import utils
17
19
  from manilaclient.osc.v2 import services as osc_services
18
20
  from manilaclient.tests.unit.osc.v2 import fakes as manila_fakes
@@ -96,6 +98,33 @@ class TestShareServiceSet(TestShareService):
96
98
  self.share_service.binary)
97
99
  self.assertIsNone(result)
98
100
 
101
+ def test_service_set_disable_with_reason(self):
102
+ self.app.client_manager.share.api_version = api_versions.APIVersion(
103
+ "2.83")
104
+ reason = 'earthquake'
105
+ arglist = [
106
+ '--disable',
107
+ '--disable-reason', reason,
108
+ self.share_service.host,
109
+ self.share_service.binary,
110
+ ]
111
+ verifylist = [
112
+ ('host', self.share_service.host),
113
+ ('binary', self.share_service.binary),
114
+ ('disable', True),
115
+ ('disable_reason', reason),
116
+ ]
117
+ parsed_args = self.check_parser(self.cmd, arglist, verifylist)
118
+
119
+ result = self.cmd.take_action(parsed_args)
120
+
121
+ self.services_mock.disable.assert_called_with(
122
+ self.share_service.host,
123
+ self.share_service.binary,
124
+ disable_reason=reason
125
+ )
126
+ self.assertIsNone(result)
127
+
99
128
  def test_share_service_set_disable_exception(self):
100
129
  arglist = [
101
130
  self.share_service.host,
@@ -116,6 +145,7 @@ class TestShareServiceSet(TestShareService):
116
145
  parsed_args)
117
146
 
118
147
 
148
+ @ddt.ddt
119
149
  class TestShareServiceList(TestShareService):
120
150
 
121
151
  columns = [
@@ -127,22 +157,31 @@ class TestShareServiceList(TestShareService):
127
157
  'state',
128
158
  'updated_at'
129
159
  ]
160
+ columns_with_reason = columns + ['disabled_reason']
130
161
 
131
162
  column_headers = utils.format_column_headers(columns)
163
+ column_headers_with_reason = utils.format_column_headers(
164
+ columns_with_reason)
132
165
 
133
166
  def setUp(self):
134
167
  super(TestShareServiceList, self).setUp()
135
168
 
136
169
  self.services_list = (
137
- manila_fakes.FakeShareService.create_fake_services()
170
+ manila_fakes.FakeShareService.create_fake_services(
171
+ {'disabled_reason': ''})
138
172
  )
139
173
  self.services_mock.list.return_value = self.services_list
140
174
  self.values = (oscutils.get_dict_properties(
141
175
  i._info, self.columns) for i in self.services_list)
176
+ self.values_with_reason = (oscutils.get_dict_properties(
177
+ i._info, self.columns_with_reason) for i in self.services_list)
142
178
 
143
179
  self.cmd = osc_services.ListShareService(self.app, None)
144
180
 
145
- def test_share_service_list(self):
181
+ @ddt.data('2.82', '2.83')
182
+ def test_share_service_list(self, version):
183
+ self.app.client_manager.share.api_version = api_versions.APIVersion(
184
+ version)
146
185
  arglist = []
147
186
  verifylist = []
148
187
  parsed_args = self.check_parser(self.cmd, arglist, verifylist)
@@ -157,10 +196,17 @@ class TestShareServiceList(TestShareService):
157
196
  'state': None,
158
197
  'zone': None
159
198
  })
160
- self.assertEqual(self.column_headers, columns)
161
- self.assertEqual(list(self.values), list(data))
162
-
163
- def test_share_service_list_host_status(self):
199
+ if api_versions.APIVersion(version) >= api_versions.APIVersion("2.83"):
200
+ self.assertEqual(self.column_headers_with_reason, columns)
201
+ self.assertEqual(list(self.values_with_reason), list(data))
202
+ else:
203
+ self.assertEqual(self.column_headers, columns)
204
+ self.assertEqual(list(self.values), list(data))
205
+
206
+ @ddt.data('2.82', '2.83')
207
+ def test_share_service_list_host_status(self, version):
208
+ self.app.client_manager.share.api_version = api_versions.APIVersion(
209
+ version)
164
210
  arglist = [
165
211
  '--host', self.services_list[0].host,
166
212
  '--status', self.services_list[1].status
@@ -181,10 +227,17 @@ class TestShareServiceList(TestShareService):
181
227
  'state': None,
182
228
  'zone': None
183
229
  })
184
- self.assertEqual(self.column_headers, columns)
185
- self.assertEqual(list(self.values), list(data))
186
-
187
- def test_share_service_list_binary_state_zone(self):
230
+ if api_versions.APIVersion(version) >= api_versions.APIVersion("2.83"):
231
+ self.assertEqual(self.column_headers_with_reason, columns)
232
+ self.assertEqual(list(self.values_with_reason), list(data))
233
+ else:
234
+ self.assertEqual(self.column_headers, columns)
235
+ self.assertEqual(list(self.values), list(data))
236
+
237
+ @ddt.data('2.82', '2.83')
238
+ def test_share_service_list_binary_state_zone(self, version):
239
+ self.app.client_manager.share.api_version = api_versions.APIVersion(
240
+ version)
188
241
  arglist = [
189
242
  '--binary', self.services_list[0].binary,
190
243
  '--state', self.services_list[1].state,
@@ -207,5 +260,9 @@ class TestShareServiceList(TestShareService):
207
260
  'state': self.services_list[1].state,
208
261
  'zone': self.services_list[1].zone
209
262
  })
210
- self.assertEqual(self.column_headers, columns)
211
- self.assertEqual(list(self.values), list(data))
263
+ if api_versions.APIVersion(version) >= api_versions.APIVersion("2.83"):
264
+ self.assertEqual(self.column_headers_with_reason, columns)
265
+ self.assertEqual(list(self.values_with_reason), list(data))
266
+ else:
267
+ self.assertEqual(self.column_headers, columns)
268
+ self.assertEqual(list(self.values), list(data))
@@ -425,6 +425,8 @@ class TestShareDelete(TestShare):
425
425
 
426
426
  result = self.cmd.take_action(parsed_args)
427
427
  self.shares_mock.delete.assert_called_with(shares[0], None)
428
+ self.shares_mock.soft_delete.assert_not_called()
429
+ self.shares_mock.force_delete.assert_not_called()
428
430
  self.assertIsNone(result)
429
431
 
430
432
  def test_share_delete_many(self):
@@ -481,6 +483,8 @@ class TestShareDelete(TestShare):
481
483
  result = self.cmd.take_action(parsed_args)
482
484
 
483
485
  self.shares_mock.force_delete.assert_called_once_with(shares[0])
486
+ self.shares_mock.delete.assert_not_called()
487
+ self.shares_mock.soft_delete.assert_not_called()
484
488
  self.assertIsNone(result)
485
489
 
486
490
  def test_share_delete_with_soft(self):
@@ -500,6 +504,8 @@ class TestShareDelete(TestShare):
500
504
  result = self.cmd.take_action(parsed_args)
501
505
 
502
506
  self.shares_mock.soft_delete.assert_called_once_with(shares[0])
507
+ self.shares_mock.delete.assert_not_called()
508
+ self.shares_mock.force_delete.assert_not_called()
503
509
  self.assertIsNone(result)
504
510
 
505
511
  def test_share_delete_wrong_name(self):
@@ -79,8 +79,7 @@ class TestShareNetworkCreate(TestShareNetwork):
79
79
  name=None,
80
80
  description=None,
81
81
  neutron_net_id=None,
82
- neutron_subnet_id=None,
83
- availability_zone=None)
82
+ neutron_subnet_id=None)
84
83
 
85
84
  self.assertCountEqual(self.columns, columns)
86
85
  self.assertCountEqual(expected_data.values(), data)
@@ -1087,7 +1087,7 @@ class FakeHTTPClient(fakes.FakeHTTPClient):
1087
1087
  return (200, {}, {'extra_specs': {'k': 'v'}})
1088
1088
 
1089
1089
  def delete_types_1_extra_specs_k(self, **kw):
1090
- return(204, {}, None)
1090
+ return (204, {}, None)
1091
1091
 
1092
1092
  def delete_types_1(self, **kw):
1093
1093
  return (202, {}, None)
@@ -160,5 +160,5 @@ class TestLimitsManager(utils.TestCase):
160
160
  api.client.get.assert_called_once_with('/limits')
161
161
 
162
162
  self.assertIsInstance(lim, limits.Limits)
163
- for l in lim.absolute:
164
- self.assertEqual(l1, l)
163
+ for li in lim.absolute:
164
+ self.assertEqual(l1, li)
@@ -50,7 +50,7 @@ class ShareNetworkTest(utils.TestCase):
50
50
  api_version = api_versions.APIVersion(microversion)
51
51
  values = self.values.copy()
52
52
  if (api_version >= api_versions.APIVersion("2.26")):
53
- del(values['nova_net_id'])
53
+ del values['nova_net_id']
54
54
  body_expected = {share_networks.RESOURCE_NAME: values}
55
55
 
56
56
  manager = share_networks.ShareNetworkManager(
@@ -123,7 +123,7 @@ class ShareNetworkTest(utils.TestCase):
123
123
  api_version = api_versions.APIVersion(microversion)
124
124
  values = self.values.copy()
125
125
  if (api_version >= api_versions.APIVersion("2.26")):
126
- del(values['nova_net_id'])
126
+ del values['nova_net_id']
127
127
  body_expected = {share_networks.RESOURCE_NAME: values}
128
128
 
129
129
  manager = share_networks.ShareNetworkManager(
@@ -66,19 +66,27 @@ class ServiceManager(base.Manager):
66
66
  def enable(self, host, binary): # noqa
67
67
  return self._do_enable(host, binary, RESOURCE_PATH)
68
68
 
69
- def _do_disable(self, host, binary, resource_path=RESOURCE_PATH):
69
+ def _do_disable(self, host, binary, resource_path=RESOURCE_PATH,
70
+ disable_reason=None):
70
71
  """Disable the service specified by hostname and binary."""
71
72
  body = {"host": host, "binary": binary}
73
+ if disable_reason:
74
+ body["disabled_reason"] = disable_reason
72
75
  return self._update("%s/disable" % resource_path, body)
73
76
 
74
77
  @api_versions.wraps("1.0", "2.6")
75
78
  def disable(self, host, binary):
76
79
  return self._do_disable(host, binary, RESOURCE_PATH_LEGACY)
77
80
 
78
- @api_versions.wraps("2.7") # noqa
81
+ @api_versions.wraps("2.7", "2.82") # noqa
79
82
  def disable(self, host, binary): # noqa
80
83
  return self._do_disable(host, binary, RESOURCE_PATH)
81
84
 
85
+ @api_versions.wraps("2.83") # noqa
86
+ def disable(self, host, binary, disable_reason=None): # noqa
87
+ return self._do_disable(host, binary, RESOURCE_PATH,
88
+ disable_reason=disable_reason)
89
+
82
90
  def server_api_version(self, url_append=""):
83
91
  """Returns the API Version supported by the server.
84
92
 
manilaclient/v2/shares.py CHANGED
@@ -357,6 +357,8 @@ class ShareManager(base.MetadataCapableManager):
357
357
  def list(self, detailed=True, search_opts=None, # noqa
358
358
  sort_key=None, sort_dir=None, return_raw=False):
359
359
  """Get a list of all shares."""
360
+ if search_opts is None:
361
+ search_opts = {}
360
362
  search_opts.pop("is_soft_deleted", None)
361
363
  return self.do_list(detailed=detailed, search_opts=search_opts,
362
364
  sort_key=sort_key, sort_dir=sort_dir,
manilaclient/v2/shell.py CHANGED
@@ -4884,6 +4884,7 @@ def do_extend(cs, args):
4884
4884
  share = _find_share(cs, args.share)
4885
4885
  _print_share(cs, share)
4886
4886
 
4887
+
4887
4888
  @cliutils.arg('share', metavar='<share>',
4888
4889
  help='Name or ID of share to shrink.')
4889
4890
  @cliutils.arg('new_size',
@@ -22,6 +22,7 @@ Chen <dstbtgagt@foxmail.com>
22
22
  Chris MacNaughton <chris.macnaughton@canonical.com>
23
23
  Christian Berendt <berendt@b1-systems.de>
24
24
  Chuck Fouts <fchuck@netapp.com>
25
+ Clifford Emeka <emclidon@gmail.com>
25
26
  Clinton Knight <cknight@netapp.com>
26
27
  Cloud User <stack@devstack-maari.novalocal>
27
28
  Corey Bryant <corey.bryant@canonical.com>
@@ -98,6 +99,7 @@ Stephen Finucane <sfinucan@redhat.com>
98
99
  Stephen Finucane <stephenfin@redhat.com>
99
100
  Sun Jun <jun.sun@intel.com>
100
101
  Swapnil Kulkarni (coolsvap) <me@coolsvap.net>
102
+ Takashi Kajinami <kajinamit@oss.nttdata.com>
101
103
  Takashi Kajinami <tkajinam@redhat.com>
102
104
  Thomas Bechtold <tbechtold@suse.com>
103
105
  Tom Barron <tpb@dyncloud.net>
@@ -159,12 +161,14 @@ luke.li <lilu7189@fiberhome.com>
159
161
  maaoyu <maaoyu@inspur.com>
160
162
  mark.sturdevant <mark.sturdevant@hpe.com>
161
163
  melissaml <ma.lei@99cloud.net>
164
+ morozovalekseywot <morozovalekseywot@gmail.com>
162
165
  namrata <namrata.sitlani@citynetwork.eu>
163
166
  nidhimittalhada <nidhimittal19@gmail.com>
164
167
  paulali <paulali@protonmail.com>
165
168
  pengyuesheng <pengyuesheng@gohighsec.com>
166
169
  qingszhao <zhao.daqing@99cloud.net>
167
170
  ricolin <rico.l@inwinstack.com>
171
+ sdailey <samuel.dailey@ndus.edu>
168
172
  shu-mutou <shu-mutou@rf.jp.nec.com>
169
173
  silvacarloss <ces.eduardo98@gmail.com>
170
174
  sneha.gaddam <sneha.gaddam@capitalone.com>
@@ -1,12 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-manilaclient
3
- Version: 4.7.0
3
+ Version: 4.8.1
4
4
  Summary: Client library for OpenStack Manila API.
5
5
  Home-page: https://docs.openstack.org/python-manilaclient/latest/
6
6
  Author: OpenStack
7
7
  Author-email: openstack-discuss@lists.openstack.org
8
- License: UNKNOWN
9
- Platform: UNKNOWN
10
8
  Classifier: Development Status :: 5 - Production/Stable
11
9
  Classifier: Environment :: Console
12
10
  Classifier: Environment :: OpenStack
@@ -19,19 +17,23 @@ Classifier: Programming Language :: Python :: 3 :: Only
19
17
  Classifier: Programming Language :: Python :: 3
20
18
  Classifier: Programming Language :: Python :: 3.8
21
19
  Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
22
  Requires-Python: >=3.8
23
- Requires-Dist: Babel (!=2.4.0,>=2.3.4)
24
- Requires-Dist: PrettyTable (>=0.7.1)
25
- Requires-Dist: debtcollector (>=1.2.0)
26
- Requires-Dist: osc-lib (>=1.10.0)
27
- Requires-Dist: oslo.config (>=5.2.0)
28
- Requires-Dist: oslo.log (>=3.36.0)
29
- Requires-Dist: oslo.serialization (!=2.19.1,>=2.18.0)
30
- Requires-Dist: oslo.utils (>=3.33.0)
31
- Requires-Dist: pbr (!=2.1.0,>=2.0.0)
32
- Requires-Dist: python-keystoneclient (>=3.8.0)
33
- Requires-Dist: requests (>=2.14.2)
34
- Requires-Dist: simplejson (>=3.5.1)
23
+ License-File: LICENSE
24
+ License-File: AUTHORS
25
+ Requires-Dist: pbr !=2.1.0,>=2.0.0
26
+ Requires-Dist: oslo.config >=5.2.0
27
+ Requires-Dist: oslo.log >=3.36.0
28
+ Requires-Dist: oslo.serialization !=2.19.1,>=2.18.0
29
+ Requires-Dist: oslo.utils >=3.33.0
30
+ Requires-Dist: PrettyTable >=0.7.1
31
+ Requires-Dist: requests >=2.14.2
32
+ Requires-Dist: simplejson >=3.5.1
33
+ Requires-Dist: Babel !=2.4.0,>=2.3.4
34
+ Requires-Dist: osc-lib >=1.10.0
35
+ Requires-Dist: python-keystoneclient >=3.8.0
36
+ Requires-Dist: debtcollector >=1.2.0
35
37
 
36
38
  ========================
37
39
  Team and repository tags
@@ -141,5 +143,3 @@ Quick-start using keystone::
141
143
  .. _How to Contribute: https://docs.openstack.org/infra/manual/developers.html
142
144
  .. _Release Notes: https://docs.openstack.org/releasenotes/python-manilaclient
143
145
 
144
-
145
-
@@ -1,5 +1,5 @@
1
1
  manilaclient/__init__.py,sha256=yLvujNabAf28-BYLBD9MEqkumXr9nfohOAOgvce5qxA,1248
2
- manilaclient/api_versions.py,sha256=g70vynh7rdccHw1_-mvQk74yqwGlIQ0OgZ8VyGuBcIM,15186
2
+ manilaclient/api_versions.py,sha256=fbbkGJQ5nZsrMHn8m5ePNH4uZRSqhU7wiYR9ZPfuveM,15186
3
3
  manilaclient/base.py,sha256=WpHQ_j0o0K4gJp6SoT9Ns0bSQbR8xxO051W6qYOiXBY,18336
4
4
  manilaclient/client.py,sha256=_8GKDn72tiY34X5qLeNYYm5PGucPuusyTBBcFsTgBlI,2387
5
5
  manilaclient/config.py,sha256=pyazLQjW3IbblaSX-PtkRnu49E0oADThFXjR0ijIxYE,10524
@@ -9,7 +9,7 @@ manilaclient/shell.py,sha256=GLFzviKijmPFEPpPj84AfAi_NZGP7ClnX6VEJMuorxU,32358
9
9
  manilaclient/utils.py,sha256=8UNEI_5L2Wa_gBPzfYjg7qsJiYw9usj1RCnXcUytcQ0,2107
10
10
  manilaclient/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  manilaclient/common/_i18n.py,sha256=-ia90LTyuQwvJXncEvUZTmoFk7n3_5B3Cib28B1nev0,1131
12
- manilaclient/common/cliutils.py,sha256=0xDpMCbzCfeCRYnWqAqOR-tKEDdzx14T6B1gNhxtdYE,8150
12
+ manilaclient/common/cliutils.py,sha256=_JnNgXbwdn-nrJXupv88yhATYFs57slr7IipJR53DVM,8172
13
13
  manilaclient/common/constants.py,sha256=cdkAnu5rq3GFWUHiFUwjOlzb8dqwSXN2fN3F4T3iej4,4098
14
14
  manilaclient/common/httpclient.py,sha256=G9az_rzNGFLa1JTbb3B3ueRGioKFxqOH6zC0EN9Xdxw,7277
15
15
  manilaclient/common/apiclient/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -21,11 +21,11 @@ manilaclient/osc/utils.py,sha256=2CcJ70UZ1zxYRVBGCjA3urVCM9yFUQ6-XG4yiu1BsD4,402
21
21
  manilaclient/osc/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  manilaclient/osc/v2/availability_zones.py,sha256=hJAcEhqcxwbto8fFlgESbLHmfguYmbUrA2i9s7ZURe0,1310
23
23
  manilaclient/osc/v2/messages.py,sha256=Z_nM0b7GWbYUFf2T-d2q8yWNT4eroYDv1c3LeJsdHU4,6631
24
- manilaclient/osc/v2/quotas.py,sha256=RiXTQGs-DtXCMFyrmIjTxr2qesbUrvRyJRWMatB3G9Q,14775
24
+ manilaclient/osc/v2/quotas.py,sha256=bRF1U8wjjBqeaDROlB3kyi-2cTA-iElCc677l0hRo_o,14707
25
25
  manilaclient/osc/v2/resource_locks.py,sha256=rGsdpkxYA3ZQ4UFTNeq0GDpbb_MZ4b5QJYCxD4duKXs,14033
26
26
  manilaclient/osc/v2/security_services.py,sha256=48ML9X7_4iZTlDIFRI9UmvtpW0J7HOC3jb0Kt6S4Wfg,20321
27
- manilaclient/osc/v2/services.py,sha256=Rxb6JLZOR0666CJrT1fIDFB0XP0pf7ueEA-u48Osx6A,4321
28
- manilaclient/osc/v2/share.py,sha256=8UkPIJGW6tNMG-Vag5pU5q288fgJyCjxC35-tZYBaSM,53039
27
+ manilaclient/osc/v2/services.py,sha256=ulQQAGxypJmDFddA694HUpDiPqKOr1grQilEiXvt-S4,5486
28
+ manilaclient/osc/v2/share.py,sha256=8j8ItU1yCPO4TuBgO2BWE-tYKpmaYuKGZmoQDzTz0_k,53041
29
29
  manilaclient/osc/v2/share_access_rules.py,sha256=815R8utTN3T9LPQ-eC2KPvUrI3HeVUDeh5Pqvw8OH-U,17889
30
30
  manilaclient/osc/v2/share_backups.py,sha256=17yE6Z5NrKzpUNuajSBnlaYZy3YRFQT9_ID-DAq3JL8,14055
31
31
  manilaclient/osc/v2/share_group_snapshots.py,sha256=Vkq2vK0K7vaDxKl3TBVm_xMWpJZRfn80JIqusLoFiWY,14824
@@ -35,8 +35,8 @@ manilaclient/osc/v2/share_groups.py,sha256=7njPDWgxF_tMwBkyZPEOhDf7qe0ThPENm2fYG
35
35
  manilaclient/osc/v2/share_instance_export_locations.py,sha256=i5ulZz6PCDbZd_KXoE_Cj1toRRTXSt5Bru-R-HhPC08,3089
36
36
  manilaclient/osc/v2/share_instances.py,sha256=1DlW2ldo6VjzBMgovozgDh2g6HDkHMLANS43ZecGhtQ,7645
37
37
  manilaclient/osc/v2/share_limits.py,sha256=3TtNFRYKd6VsUDjrFL_OZXq92dVO2luMGVHAelu08g8,2202
38
- manilaclient/osc/v2/share_network_subnets.py,sha256=dZ6ZGHyH889gNKXRSCUkA4HMnrlc8rFIa0H5REDgSaA,13048
39
- manilaclient/osc/v2/share_networks.py,sha256=9iRXepC192lYDKu0NIcHXEGTRZwlUWeV68C4HHarv6Q,27777
38
+ manilaclient/osc/v2/share_network_subnets.py,sha256=VPWCfRkDZ5YZusxIMpcU2I7ioqlg1IDvg3qEhGPXbBY,13540
39
+ manilaclient/osc/v2/share_networks.py,sha256=p76RERV_1aQJwRqACMn9vYH83NW3JAJ2zkhnK0EtvMg,27859
40
40
  manilaclient/osc/v2/share_pools.py,sha256=4TjomBQby4D0fL43FFCfrfau0TTsv1i-MswZNFEPt9g,3636
41
41
  manilaclient/osc/v2/share_replica_export_locations.py,sha256=FYUpNjb1jEzfCwmLh6-Kiczx_TKeVnOaQDCBoZZPn1s,2831
42
42
  manilaclient/osc/v2/share_replicas.py,sha256=pc97Y2WPWKXkeZF2Oahxz2PfEyxQ3coUmy2eC3hj3vM,14367
@@ -50,7 +50,7 @@ manilaclient/osc/v2/share_types.py,sha256=Zlk-P4WQsQj-6Bb3FapdF2agWItlYurT_Hb0xL
50
50
  manilaclient/osc/v2/data/manila.csv,sha256=N5se8hFGVuraUd66hNsr8ACLm1Yt_DZys4KkKJgcVFU,13353
51
51
  manilaclient/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  manilaclient/tests/functional/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
- manilaclient/tests/functional/base.py,sha256=zauJBjyVBtEL-VNO-OBXUa8TluBYINTYLgckmB9NH8o,21493
53
+ manilaclient/tests/functional/base.py,sha256=iFh_tvq1YN9FGmDDT369x2T25pJM3Kxtc7634KPJlSs,21492
54
54
  manilaclient/tests/functional/client.py,sha256=Nxn04gnGD8v7eKTKaSmBVBuEFrPieNKcmB2kidMO2aE,90065
55
55
  manilaclient/tests/functional/exceptions.py,sha256=V0GlvBuE9bWFu1G5SM-2YX1hOzATkLuDg7rpdZDND_Q,2322
56
56
  manilaclient/tests/functional/test_availability_zones.py,sha256=8WVIvEY3PFXPzHk8-3Bdg8c4pdZbwoGtCa9Iu8qRpPM,2146
@@ -79,27 +79,28 @@ manilaclient/tests/functional/test_snapshot_instances_export_locations.py,sha256
79
79
  manilaclient/tests/functional/test_snapshots_export_locations.py,sha256=XAwNvhRllqZTvFZRwsecCyS9TIA6YmfXT7Z8a6mHeow,3584
80
80
  manilaclient/tests/functional/utils.py,sha256=VJDsDterboa_JzM2h6x-ZPckAf5RDrlbhOpOApZNuRI,4955
81
81
  manilaclient/tests/functional/osc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
82
- manilaclient/tests/functional/osc/base.py,sha256=xx1qqCvhYTUOmXX7R575YxrdMZ_Vk8DMOcRc4krXPMY,17506
82
+ manilaclient/tests/functional/osc/base.py,sha256=-Q23mnx_xzI5KuH6HYA9K42HdVxEnwqYpXdihGULyHs,17567
83
83
  manilaclient/tests/functional/osc/test_availability_zones.py,sha256=qzxGjDWVFjPo257L3hweSIB4RFb0MoS6gdaizqh3Q0o,980
84
84
  manilaclient/tests/functional/osc/test_messages.py,sha256=JBN6GnKetb0zmxVqF6_LOtzI70H78iEhK4xUThTazng,4110
85
- manilaclient/tests/functional/osc/test_resource_locks.py,sha256=k7lNCEmefNLhLp-0DO-J7B38d0F6RCNMbE9sgyTbGGI,7052
86
- manilaclient/tests/functional/osc/test_share_access_rules.py,sha256=r__Dh5coS4kPwUZq6wUfZcPm1j7vtQn1j6DJdf43Ouc,9286
85
+ manilaclient/tests/functional/osc/test_resource_locks.py,sha256=P0G5lwywHiISslT4KLMP0vftfc5F2cbIZ5jbp5kChoY,7076
86
+ manilaclient/tests/functional/osc/test_share_access_rules.py,sha256=AFNcdl0uRqeKIvmX5s90J0nWNGaWbxUtI3cTJqUfFec,9281
87
87
  manilaclient/tests/functional/osc/test_share_backups.py,sha256=sWzpdxnz2KKX9BQ6nYFwMUlA74ZLFlmsVwcxciTKM1A,5178
88
88
  manilaclient/tests/functional/osc/test_share_group_type_access.py,sha256=hjGjhCpz8N5PJdNY0AQrFX_kZ9PLZgNpElRw7H9mKd4,3533
89
89
  manilaclient/tests/functional/osc/test_share_limits.py,sha256=nkQ7gQLTh9bwO-e4eU5WEK5D-IHJqOxQkUNL6BlMLOc,1281
90
- manilaclient/tests/functional/osc/test_share_network_subnets.py,sha256=-ebJTJRZYpdg-aHf8Di9hgQuQRpneVqDBXU02xvWwrk,1418
90
+ manilaclient/tests/functional/osc/test_share_network_subnets.py,sha256=SsLJmC2ZFyNFQiTFowzRTdoQDaaxoFA0traZdl8Pnvc,1414
91
91
  manilaclient/tests/functional/osc/test_share_networks.py,sha256=_9vOnd_cc25HkBp7G-jA4m5x7LaEZvwzBBNzfG8ttII,3896
92
92
  manilaclient/tests/functional/osc/test_share_pools.py,sha256=svBFXZrlIdP13rcS-SWRU9YIiXT9nns16sGjq7kX5eA,1539
93
93
  manilaclient/tests/functional/osc/test_share_replica_export_locations.py,sha256=MsLgNKRWTANUm80Af7P2wFdNPVOJwOAoW3xY_W8wkUU,2618
94
94
  manilaclient/tests/functional/osc/test_share_replicas.py,sha256=j2GJ_df2K6hn_gg16z-gsgRY8lVohCfjBWySubUjtbo,2248
95
- manilaclient/tests/functional/osc/test_share_services.py,sha256=6Xh6itHfJVOAJF9LbZZDBpRYvscFAFboSiNCkP7LeHA,2264
95
+ manilaclient/tests/functional/osc/test_share_services.py,sha256=BkSwMvInWbrjQozerjRHmDpy-vj0ZYnSC-Rg2xVLn6g,2349
96
+ manilaclient/tests/functional/osc/test_share_snapshot_instances.py,sha256=NGqIoqZDmDyj0-iw9GBVrMeutzVkBEp8buxP4Gpp2U0,3329
96
97
  manilaclient/tests/functional/osc/test_share_snapshots.py,sha256=FvpqDj7X0obBbl6MWnWie9EPvyP_mhRnfh7X5WVreQ4,7773
97
98
  manilaclient/tests/functional/osc/test_share_transfers.py,sha256=blMJtgEnL9e7ZS1Wjk0hNb3PyFtLwv0hdipR-MMmO14,3541
98
99
  manilaclient/tests/functional/osc/test_share_types.py,sha256=W972L4-KRRhA4d-TZlU3pp9OoS_ElAbLx3y_0mtfRNQ,5408
99
100
  manilaclient/tests/functional/osc/test_shares.py,sha256=uUcD6tKOQQt9q02NhyJyE5XZHPTlA386onx1HD8W65s,8626
100
101
  manilaclient/tests/functional/osc/test_shares_group_type.py,sha256=rwDFUoFk2bzC_cDtfFaxXwcY2U_2mOKWcdrHBo7YeGw,6111
101
102
  manilaclient/tests/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
- manilaclient/tests/unit/fakes.py,sha256=oHvEZaZCITj5bjE_6r7l0-jJKNcsxJtpiBjJdWUYppA,2919
103
+ manilaclient/tests/unit/fakes.py,sha256=Si-wEAKt8ZCVS8JDrCOd07VmK-Vh8gjYxClc098HaV0,2935
103
104
  manilaclient/tests/unit/test_api_versions.py,sha256=r6ByMJfp6BP7MaCNLugB26tAX7YrDZ2gMrCQnVhvTO0,14907
104
105
  manilaclient/tests/unit/test_base.py,sha256=EJD_zLWcaTS4WnPChBAgHcBuJLUn6XLd7aSsbFWozBc,2734
105
106
  manilaclient/tests/unit/test_client.py,sha256=KSFs7s96rJ3dK9YIH5TOYHc2OEPLacaKc5v3QHtb2tw,5305
@@ -116,11 +117,11 @@ manilaclient/tests/unit/osc/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
116
117
  manilaclient/tests/unit/osc/v2/fakes.py,sha256=KOMZxenRWGCCcfB-7xeHmRvFkM_WecYFZ0fnEa0a3LU,51641
117
118
  manilaclient/tests/unit/osc/v2/test_availability_zones.py,sha256=lXruckwicufvzmp9uutvG9dIm-7UU0lGx9uzXVeAm3o,1963
118
119
  manilaclient/tests/unit/osc/v2/test_messages.py,sha256=XiBKFNZNUEmKI9XL-X3G-tE220kiWQ7usvn3QExizW8,6194
119
- manilaclient/tests/unit/osc/v2/test_quotas.py,sha256=rZCm1bqp_9qmUDspveFlo5CbmFkv_O-meORHn1u9HsM,15984
120
+ manilaclient/tests/unit/osc/v2/test_quotas.py,sha256=T7v3_Zt1TqWWZiD089fMpdrvuIWEoDo6eYPddajaZCg,16278
120
121
  manilaclient/tests/unit/osc/v2/test_resource_locks.py,sha256=8PeAVw2PLDSOII3mXzyzxIfs55cLpUas-t4j-ySCdhQ,10236
121
122
  manilaclient/tests/unit/osc/v2/test_security_services.py,sha256=dIZGOgWfY3rAul4IyV2jAImxaewAlMQ8jr9ac1NwniQ,22375
122
- manilaclient/tests/unit/osc/v2/test_services.py,sha256=S2rUL6nO006_zUCt_-heSA_PuTIp4qNQDfKuI0SaKAI,6858
123
- manilaclient/tests/unit/osc/v2/test_share.py,sha256=dsC6KmzYoDuIa3NFUSp_Va2SjND6YDcoXAu_FMqr4oU,67767
123
+ manilaclient/tests/unit/osc/v2/test_services.py,sha256=LA5KBW9z0_bID4WrCqIbFydUeutsLZWxSPuIqEW5PRA,9276
124
+ manilaclient/tests/unit/osc/v2/test_share.py,sha256=Cat_SEHRnv1tW9PcO7lk4HU0zUHkiBJIw626Ctmalg4,68101
124
125
  manilaclient/tests/unit/osc/v2/test_share_access_rules.py,sha256=eDaZ9gM58b66Ea_0nstI0RHOEqE4HbR0kAkaYCLDXr0,20521
125
126
  manilaclient/tests/unit/osc/v2/test_share_backups.py,sha256=vegKOqKJ150WSQqMiGbhHw5iMuRUdx_Bt3K-Ae9DKmU,13644
126
127
  manilaclient/tests/unit/osc/v2/test_share_group_snapshots.py,sha256=zkchulCEXnzHQxgoVJmSo_LffCnPO2kEAu81sKHiL-8,21560
@@ -131,7 +132,7 @@ manilaclient/tests/unit/osc/v2/test_share_instance_export_locations.py,sha256=F0
131
132
  manilaclient/tests/unit/osc/v2/test_share_instances.py,sha256=OCgMnmdhAM6s7aayty9XHwv6Ohq6BFTrFxUhu74LRU8,12339
132
133
  manilaclient/tests/unit/osc/v2/test_share_limits.py,sha256=BXXlPJ4fThHKlBdY9OYf7tynSLCqwPstXt1gV6xIrK0,3044
133
134
  manilaclient/tests/unit/osc/v2/test_share_network_subnets.py,sha256=HNlYaF93wVVf0DlUG3Ejx8qio5hQYPlrMtyWUwhZoDs,16353
134
- manilaclient/tests/unit/osc/v2/test_share_networks.py,sha256=BO9ncD-cGAq92HFg3MD28olVhD25r8YvnX4ZUSOd0_w,27426
135
+ manilaclient/tests/unit/osc/v2/test_share_networks.py,sha256=21w-WJe58ltDdbSsNY1x08Us4nESmnO5O0PfjLqzl98,27390
135
136
  manilaclient/tests/unit/osc/v2/test_share_pools.py,sha256=URIdUtT3eQqtLWCHRKGu4t6cmI45qItQg3JXWBvC-z0,5395
136
137
  manilaclient/tests/unit/osc/v2/test_share_replica_export_locations.py,sha256=vdRF8FJxdoHT6XWuRpHgBK-va9q6td9ES2Hask3lfJY,3996
137
138
  manilaclient/tests/unit/osc/v2/test_share_replicas.py,sha256=cdmUNK96olSe0TgOUMD8fVxsoX0hVJFkCHThcxxeUmc,22544
@@ -156,10 +157,10 @@ manilaclient/tests/unit/v1/test_share_types.py,sha256=-ZUqSPQ6kydh9EZtyIVfBKRYqc
156
157
  manilaclient/tests/unit/v1/test_shares.py,sha256=pkDKFJXmrIQU3SR9x9eciAZtlR_9b8Ie6BfOpc_RmFE,1155
157
158
  manilaclient/tests/unit/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
159
  manilaclient/tests/unit/v2/fake_clients.py,sha256=Znrr1EGp41zvIQfo1TWsOIYujbcnPHUEeiGPoGLzU1I,6889
159
- manilaclient/tests/unit/v2/fakes.py,sha256=tm9nsxzodgcT_vOYn53pwhTpLPKN4qNsH_A4kU4Zn2Y,47272
160
+ manilaclient/tests/unit/v2/fakes.py,sha256=V1KvlSQGnSr-C0RiYJairFnJ7IHAAhQYVeuycodjy58,47273
160
161
  manilaclient/tests/unit/v2/test_availability_zones.py,sha256=hwCT9WseG3ajJD1EnD34wBxmEnWYjhlbv0adYgZRoEc,2129
161
162
  manilaclient/tests/unit/v2/test_client.py,sha256=_f1kKaTrbNbNsVoaRFuh8zJ5FS1-d2xoChbqMJF-3aU,13669
162
- manilaclient/tests/unit/v2/test_limits.py,sha256=XP-PEk2K6o7XbFeekRBQP8S0l5kSvsfzk8lMliydOcE,5456
163
+ manilaclient/tests/unit/v2/test_limits.py,sha256=cZcEedCdtv0SngEAiidwo2xzHLDhrSC4vuX_acJmppU,5458
163
164
  manilaclient/tests/unit/v2/test_messages.py,sha256=NSAmhgCGolkJOKe_uyLPj7mSthcUZzqXxti-shGJ5xo,4375
164
165
  manilaclient/tests/unit/v2/test_quota_classes.py,sha256=qS_6zydG7VGVDSuWHUxJLKNxgqs1KgencM80Gi_PxmQ,2780
165
166
  manilaclient/tests/unit/v2/test_quotas.py,sha256=cTTQ3Y80vMOcaSdHKLBduObiMOnsijugERZRA77lxGo,12085
@@ -175,7 +176,7 @@ manilaclient/tests/unit/v2/test_share_groups.py,sha256=g3j7EvWPzD_JiXmlyfegUq8QH
175
176
  manilaclient/tests/unit/v2/test_share_instance_export_locations.py,sha256=9ecdUXZm8M8B9tKqrewxWycFOJWNt2kWIaT3UFiQj08,2142
176
177
  manilaclient/tests/unit/v2/test_share_instances.py,sha256=1WIDW-feR4nWOLrxq4lS9X1qYoDpZsEMfUP0A8Uxj2Q,4436
177
178
  manilaclient/tests/unit/v2/test_share_network_subnets.py,sha256=LK_FIknHlRkdDOt8PuGGVy2kGuWIXgMB1RsmsPJ0bEw,3069
178
- manilaclient/tests/unit/v2/test_share_networks.py,sha256=53QDKpIWdE-cuC-uFXDKaYdPjvq-1BtLyAt0k5MRWAU,11773
179
+ manilaclient/tests/unit/v2/test_share_networks.py,sha256=s0jVWqm9M5mWMSw8REpcC7cIUQouSuBcETTKghPE8FY,11771
179
180
  manilaclient/tests/unit/v2/test_share_replica_export_locations.py,sha256=CoxuGR0D6kTcyaKVnMNtJ2Qk2w-C5Uv2wTm3a1bIlQQ,1894
180
181
  manilaclient/tests/unit/v2/test_share_replicas.py,sha256=mWAe7Cv2-Wa6DrxYUoLLYiMn6Z66HsNIaubc9W7rMGk,5851
181
182
  manilaclient/tests/unit/v2/test_share_servers.py,sha256=HuCtUUmE0HmjStcGGSYI4mVN0CVps5cN7nz-xnaElWY,11823
@@ -214,7 +215,7 @@ manilaclient/v2/quotas.py,sha256=JEj7AB-0TBtx0h_TlwjbdW8bT6xrUQ6OUJlosoZVCvk,110
214
215
  manilaclient/v2/resource_locks.py,sha256=ocB21rxZEUXR5DHOkCuKetta5GEC5oTkAKSo4GPPOpw,4713
215
216
  manilaclient/v2/scheduler_stats.py,sha256=jPaDyUqZkHy9DPMHM-nqWKTv-Yii9Qh6YNAy-qqWp_U,1528
216
217
  manilaclient/v2/security_services.py,sha256=xhUWdfcd6O3cq0OTjASSpTpUseUeoOgZkwBH2TqdJYM,9732
217
- manilaclient/v2/services.py,sha256=IHVldgwyqTamkFaS_l1Qe4my3r2lnhuXqXC2koQQwzU,3357
218
+ manilaclient/v2/services.py,sha256=CempsR6sd674om1NnYbQjRlNMaIWuSC4ltth64_OsEA,3717
218
219
  manilaclient/v2/share_access_rules.py,sha256=XjLl-vk_TOdFRTcGLS8YqzfZAHi1wNHb8VzMJvlBuFI,2994
219
220
  manilaclient/v2/share_backups.py,sha256=QQhRWT_txSd3wdGpg4NcrtV_N-wgdmQnhx9y3eOyGtI,4832
220
221
  manilaclient/v2/share_export_locations.py,sha256=51inpPBztPqlMfNGJU-DWgfoMC6XJ9912bgHkyQ1POU,1801
@@ -236,15 +237,15 @@ manilaclient/v2/share_snapshots.py,sha256=VyoR6xpLy-CRaQvoRS-7w8eVL7fyooBRu2xr14
236
237
  manilaclient/v2/share_transfers.py,sha256=blgj20xF3BEj3mRoXjsf_QuRCXaYjVPf24En8EAcjyM,4526
237
238
  manilaclient/v2/share_type_access.py,sha256=kK-dHI4eDnJWaQsU670IG2A2rE1kmegiIT7Rtiy4Afs,2373
238
239
  manilaclient/v2/share_types.py,sha256=wKhwZcxh-SUytrUtPtV1hyBYw8ZHbjLqhKUR92dyo3g,10307
239
- manilaclient/v2/shares.py,sha256=nUC1JLrc6kU5liHh-Cz7ywhdzeiE5LHykIKDW8Z5ops,31781
240
- manilaclient/v2/shell.py,sha256=BeNcMY2n3HvvczNhMJ6sVuigwYEX9SKdV-TbiII92kI,225607
240
+ manilaclient/v2/shares.py,sha256=ZrA6k225c4haTYVLKq3c1nKjxtq1iWbxQFNwEU532Dk,31842
241
+ manilaclient/v2/shell.py,sha256=W_kuVwubxzT7muCCB5WfVhPKrYh8Q70pbu3higD22LA,225608
241
242
  manilaclient/v2/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
242
243
  manilaclient/v2/contrib/list_extensions.py,sha256=_JSrPBEca2oR3dUbRNDBahAqo9V4bAEpNx0Si2gOWN4,1448
243
- python_manilaclient-4.7.0.dist-info/AUTHORS,sha256=1BE-fSrQ3ogxIoXskJCEAqSR2DbR65rCmKqCgr3kKKE,7143
244
- python_manilaclient-4.7.0.dist-info/LICENSE,sha256=0vWIdNcdtTV9HZ7UlIezDadLSry5oS_2BzPolooTi4Y,11837
245
- python_manilaclient-4.7.0.dist-info/METADATA,sha256=VvyrDvj9oiCPClUXDRhwtDyuEG7Z6vQ39RByigb7298,5451
246
- python_manilaclient-4.7.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
247
- python_manilaclient-4.7.0.dist-info/entry_points.txt,sha256=-vfysXuwIYFL-CeP5OT0UH10KLPzH2dW5h7fTI16jL4,11626
248
- python_manilaclient-4.7.0.dist-info/pbr.json,sha256=QxsNa7LtDIuK4nbTnfnQWGXDSy_QzwpEakArXuB-yOc,46
249
- python_manilaclient-4.7.0.dist-info/top_level.txt,sha256=qaZZFY6QOsBxs6dp1YW7M0XnIHyctWinAWIOOrnA0pQ,13
250
- python_manilaclient-4.7.0.dist-info/RECORD,,
244
+ python_manilaclient-4.8.1.dist-info/AUTHORS,sha256=mmB-B7ece_hG2L_ZFgFykjkqWSmnxQS8m8keuz6cpMs,7305
245
+ python_manilaclient-4.8.1.dist-info/LICENSE,sha256=0vWIdNcdtTV9HZ7UlIezDadLSry5oS_2BzPolooTi4Y,11837
246
+ python_manilaclient-4.8.1.dist-info/METADATA,sha256=kILmawiIgzlgWbcHm_sf09mafeujA6oo_urbhTWy3ZM,5536
247
+ python_manilaclient-4.8.1.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
248
+ python_manilaclient-4.8.1.dist-info/entry_points.txt,sha256=bPgpr3XWT8Izm2szoipEn4cx2BZBra6Qq-rT0C5G0rc,11625
249
+ python_manilaclient-4.8.1.dist-info/pbr.json,sha256=v2WX5xcb8BtYP-uAuWQ_LAl_JTDkzoFkL-7xIfMkYX0,46
250
+ python_manilaclient-4.8.1.dist-info/top_level.txt,sha256=qaZZFY6QOsBxs6dp1YW7M0XnIHyctWinAWIOOrnA0pQ,13
251
+ python_manilaclient-4.8.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.34.2)
2
+ Generator: setuptools (75.3.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -152,4 +152,3 @@ share_unset = manilaclient.osc.v2.share:UnsetShare
152
152
 
153
153
  [oslo.config.opts]
154
154
  manilaclient.config = manilaclient.config:list_opts
155
-
@@ -0,0 +1 @@
1
+ {"git_version": "453dc27", "is_release": true}
@@ -1 +0,0 @@
1
- {"git_version": "64f5814", "is_release": true}