python-blazarclient 4.0.0__tar.gz → 4.1.0__tar.gz

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 (89) hide show
  1. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/AUTHORS +1 -0
  2. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/ChangeLog +16 -0
  3. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/PKG-INFO +1 -1
  4. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/allocations.py +1 -1
  5. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/floatingips.py +1 -1
  6. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/hosts.py +2 -2
  7. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/leases.py +1 -1
  8. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/shell_commands/leases.py +8 -0
  9. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/python_blazarclient.egg-info/PKG-INFO +1 -1
  10. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/python_blazarclient.egg-info/SOURCES.txt +2 -0
  11. python-blazarclient-4.1.0/python_blazarclient.egg-info/pbr.json +1 -0
  12. python-blazarclient-4.1.0/releasenotes/notes/flavor-based-instance-reservation-ec9730ddfeabdf15.yaml +4 -0
  13. python-blazarclient-4.1.0/releasenotes/source/2024.1.rst +6 -0
  14. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/index.rst +1 -0
  15. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/victoria.rst +1 -1
  16. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/wallaby.rst +1 -1
  17. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/xena.rst +1 -1
  18. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/yoga.rst +1 -1
  19. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/zed.rst +1 -1
  20. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/test-requirements.txt +1 -5
  21. python-blazarclient-4.0.0/python_blazarclient.egg-info/pbr.json +0 -1
  22. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/.stestr.conf +0 -0
  23. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/.zuul.yaml +0 -0
  24. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/HACKING.rst +0 -0
  25. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/LICENSE +0 -0
  26. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/MANIFEST.in +0 -0
  27. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/README.rst +0 -0
  28. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/__init__.py +0 -0
  29. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/base.py +0 -0
  30. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/client.py +0 -0
  31. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/command.py +0 -0
  32. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/exception.py +0 -0
  33. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/i18n.py +0 -0
  34. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/osc/__init__.py +0 -0
  35. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/osc/plugin.py +0 -0
  36. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/shell.py +0 -0
  37. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/__init__.py +0 -0
  38. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/test_base.py +0 -0
  39. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/test_client.py +0 -0
  40. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/test_command.py +0 -0
  41. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/test_plugin.py +0 -0
  42. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/test_shell.py +0 -0
  43. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/v1/__init__.py +0 -0
  44. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/v1/shell_commands/__init__.py +0 -0
  45. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/v1/shell_commands/test_floatingips.py +0 -0
  46. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/v1/shell_commands/test_hosts.py +0 -0
  47. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/tests/v1/shell_commands/test_leases.py +0 -0
  48. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/utils.py +0 -0
  49. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/__init__.py +0 -0
  50. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/client.py +0 -0
  51. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/shell_commands/__init__.py +0 -0
  52. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/shell_commands/allocations.py +0 -0
  53. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/shell_commands/floatingips.py +0 -0
  54. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/v1/shell_commands/hosts.py +0 -0
  55. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/blazarclient/version.py +0 -0
  56. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/doc/requirements.txt +0 -0
  57. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/python_blazarclient.egg-info/dependency_links.txt +0 -0
  58. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/python_blazarclient.egg-info/entry_points.txt +0 -0
  59. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/python_blazarclient.egg-info/not-zip-safe +0 -0
  60. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/python_blazarclient.egg-info/requires.txt +0 -0
  61. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/python_blazarclient.egg-info/top_level.txt +0 -0
  62. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/.placeholder +0 -0
  63. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/bug-1777548-6b5c770abc6ac360.yaml +0 -0
  64. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/bug-1783296-set-start-date-to-now-e329a6923c11432f.yaml +0 -0
  65. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/default-affinity-value-150947560fd7da3c.yaml +0 -0
  66. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/drop-python2-c3c1601e92a9b87a.yaml +0 -0
  67. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/floatingip-reservation-update-5823a21516135f17.yaml +0 -0
  68. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/floatingip-support-d184a565f324d31b.yaml +0 -0
  69. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/host-allocation-fad8e511cb13c0e8.yaml +0 -0
  70. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/host-resource-property-9ac5c21bd3ca6699.yaml +0 -0
  71. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/ksa-loading-9731c570772c826a.yaml +0 -0
  72. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/openstackclient-support-f591eef2dc3c1a8b.yaml +0 -0
  73. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/parse-required-floatingips-f79f79d652e371ae.yaml +0 -0
  74. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/respect-selected-region-a409773f851ccb47.yaml +0 -0
  75. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/notes/separate-id-parser-argument-from-showcommand-ce92d0c52dd1963e.yaml +0 -0
  76. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/2023.1.rst +0 -0
  77. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/2023.2.rst +0 -0
  78. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/_static/.placeholder +0 -0
  79. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/_templates/.placeholder +0 -0
  80. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/conf.py +0 -0
  81. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/rocky.rst +0 -0
  82. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/stein.rst +0 -0
  83. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/train.rst +0 -0
  84. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/unreleased.rst +0 -0
  85. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/releasenotes/source/ussuri.rst +0 -0
  86. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/requirements.txt +0 -0
  87. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/setup.cfg +0 -0
  88. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/setup.py +0 -0
  89. {python-blazarclient-4.0.0 → python-blazarclient-4.1.0}/tox.ini +0 -0
@@ -15,6 +15,7 @@ Hiroki Ito <ito.hiroki@lab.ntt.co.jp>
15
15
  Jason Anderson <jasonanderson@uchicago.edu>
16
16
  Jay Lau <liugya@cn.ibm.com>
17
17
  Jeremy Stanley <fungi@yuggoth.org>
18
+ John Garbutt <john.garbutt@stackhpc.com>
18
19
  Mark Powers <markpowers@uchicago.edu>
19
20
  Martin Kopec <mkopec@redhat.com>
20
21
  Masahito Muroi <muroi.masahito@lab.ntt.co.jp>
@@ -1,6 +1,22 @@
1
1
  CHANGES
2
2
  =======
3
3
 
4
+ 4.1.0
5
+ -----
6
+
7
+ * Bump hacking to 7.0.0 and fix linting issues
8
+ * Support flavor-based instance reservation
9
+ * reno: Update master for unmaintained/zed
10
+ * Update master for stable/2024.1
11
+ * reno: Update master for unmaintained/xena
12
+ * reno: Update master for unmaintained/wallaby
13
+ * reno: Update master for unmaintained/victoria
14
+
15
+ 4.0.1
16
+ -----
17
+
18
+ * reno: Update master for unmaintained/yoga
19
+
4
20
  4.0.0
5
21
  -----
6
22
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: python-blazarclient
3
- Version: 4.0.0
3
+ Version: 4.1.0
4
4
  Summary: Client for OpenStack Reservation Service
5
5
  Home-page: https://launchpad.net/blazar
6
6
  Author: OpenStack
@@ -30,5 +30,5 @@ class AllocationClientManager(base.BaseClientManager):
30
30
  resp, body = self.request_manager.get('/%s/allocations' % resource)
31
31
  allocations = body['allocations']
32
32
  if sort_by:
33
- allocations = sorted(allocations, key=lambda l: l[sort_by])
33
+ allocations = sorted(allocations, key=lambda alloc: alloc[sort_by])
34
34
  return allocations
@@ -43,5 +43,5 @@ class FloatingIPClientManager(base.BaseClientManager):
43
43
  resp, body = self.request_manager.get('/floatingips')
44
44
  floatingips = body['floatingips']
45
45
  if sort_by:
46
- floatingips = sorted(floatingips, key=lambda l: l[sort_by])
46
+ floatingips = sorted(floatingips, key=lambda fip: fip[sort_by])
47
47
  return floatingips
@@ -51,7 +51,7 @@ class ComputeHostClientManager(base.BaseClientManager):
51
51
  resp, body = self.request_manager.get('/os-hosts')
52
52
  hosts = body['hosts']
53
53
  if sort_by:
54
- hosts = sorted(hosts, key=lambda l: l[sort_by])
54
+ hosts = sorted(hosts, key=lambda host: host[sort_by])
55
55
  return hosts
56
56
 
57
57
  def list_properties(self, detail=False, all=False, sort_by=None):
@@ -76,7 +76,7 @@ class ComputeHostClientManager(base.BaseClientManager):
76
76
 
77
77
  if sort_by:
78
78
  resource_properties = sorted(resource_properties,
79
- key=lambda l: l[sort_by])
79
+ key=lambda rp: rp[sort_by])
80
80
  return resource_properties
81
81
 
82
82
  def get_property(self, property_name):
@@ -91,7 +91,7 @@ class LeaseClientManager(base.BaseClientManager):
91
91
  resp, body = self.request_manager.get('/leases')
92
92
  leases = body['leases']
93
93
  if sort_by:
94
- leases = sorted(leases, key=lambda l: l[sort_by])
94
+ leases = sorted(leases, key=lambda lease: lease[sort_by])
95
95
  return leases
96
96
 
97
97
  def _add_lease_date(self, values, lease, key, delta_date, positive_delta):
@@ -52,6 +52,12 @@ CREATE_RESERVATION_KEYS = {
52
52
  "resource_properties": "",
53
53
  "resource_type": 'virtual:instance'
54
54
  },
55
+ "flavor:instance": {
56
+ "flavor_id": "",
57
+ "amount": "",
58
+ "affinity": "None",
59
+ "resource_type": 'flavor:instance'
60
+ },
55
61
  "others": {
56
62
  ".*": None
57
63
  }
@@ -226,6 +232,8 @@ class CreateLeaseBase(command.CreateCommand):
226
232
  defaults = CREATE_RESERVATION_KEYS['virtual:instance']
227
233
  elif "virtual:floatingip" in res_str:
228
234
  defaults = CREATE_RESERVATION_KEYS['virtual:floatingip']
235
+ elif "flavor:instance" in res_str:
236
+ defaults = CREATE_RESERVATION_KEYS['flavor:instance']
229
237
  else:
230
238
  defaults = CREATE_RESERVATION_KEYS['others']
231
239
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: python-blazarclient
3
- Version: 4.0.0
3
+ Version: 4.1.0
4
4
  Summary: Client for OpenStack Reservation Service
5
5
  Home-page: https://launchpad.net/blazar
6
6
  Author: OpenStack
@@ -58,6 +58,7 @@ releasenotes/notes/bug-1777548-6b5c770abc6ac360.yaml
58
58
  releasenotes/notes/bug-1783296-set-start-date-to-now-e329a6923c11432f.yaml
59
59
  releasenotes/notes/default-affinity-value-150947560fd7da3c.yaml
60
60
  releasenotes/notes/drop-python2-c3c1601e92a9b87a.yaml
61
+ releasenotes/notes/flavor-based-instance-reservation-ec9730ddfeabdf15.yaml
61
62
  releasenotes/notes/floatingip-reservation-update-5823a21516135f17.yaml
62
63
  releasenotes/notes/floatingip-support-d184a565f324d31b.yaml
63
64
  releasenotes/notes/host-allocation-fad8e511cb13c0e8.yaml
@@ -69,6 +70,7 @@ releasenotes/notes/respect-selected-region-a409773f851ccb47.yaml
69
70
  releasenotes/notes/separate-id-parser-argument-from-showcommand-ce92d0c52dd1963e.yaml
70
71
  releasenotes/source/2023.1.rst
71
72
  releasenotes/source/2023.2.rst
73
+ releasenotes/source/2024.1.rst
72
74
  releasenotes/source/conf.py
73
75
  releasenotes/source/index.rst
74
76
  releasenotes/source/rocky.rst
@@ -0,0 +1 @@
1
+ {"git_version": "e1f6650", "is_release": true}
@@ -0,0 +1,4 @@
1
+ ---
2
+ features:
3
+ - |
4
+ Add support for creating flavor-based instance reservations.
@@ -0,0 +1,6 @@
1
+ ===========================
2
+ 2024.1 Series Release Notes
3
+ ===========================
4
+
5
+ .. release-notes::
6
+ :branch: stable/2024.1
@@ -6,6 +6,7 @@
6
6
  :maxdepth: 1
7
7
 
8
8
  unreleased
9
+ 2024.1
9
10
  2023.2
10
11
  2023.1
11
12
  zed
@@ -3,4 +3,4 @@ Victoria Series Release Notes
3
3
  =============================
4
4
 
5
5
  .. release-notes::
6
- :branch: stable/victoria
6
+ :branch: unmaintained/victoria
@@ -3,4 +3,4 @@ Wallaby Series Release Notes
3
3
  ============================
4
4
 
5
5
  .. release-notes::
6
- :branch: stable/wallaby
6
+ :branch: unmaintained/wallaby
@@ -3,4 +3,4 @@ Xena Series Release Notes
3
3
  =========================
4
4
 
5
5
  .. release-notes::
6
- :branch: stable/xena
6
+ :branch: unmaintained/xena
@@ -3,4 +3,4 @@ Yoga Series Release Notes
3
3
  =========================
4
4
 
5
5
  .. release-notes::
6
- :branch: stable/yoga
6
+ :branch: unmaintained/yoga
@@ -3,4 +3,4 @@ Zed Series Release Notes
3
3
  ========================
4
4
 
5
5
  .. release-notes::
6
- :branch: stable/zed
6
+ :branch: unmaintained/zed
@@ -1,11 +1,7 @@
1
1
  # The order of packages is significant, because pip processes them in the order
2
2
  # of appearance. Changing the order has an impact on the overall integration
3
3
  # process, which may cause wedges in the gate later.
4
- hacking>=1.1.0,<3.0.1 # Apache-2.0
5
- # remove this pyflakes from here once you bump the
6
- # hacking to 3.2.0 or above. hacking 3.2.0 takes
7
- # care of pyflakes version compatibilty.
8
- pyflakes>=2.1.1
4
+ hacking>=7.0.0,<7.1.0 # Apache-2.0
9
5
 
10
6
  oslotest>=3.2.0 # Apache-2.0
11
7
  fixtures>=3.0.0 # Apache-2.0/BSD
@@ -1 +0,0 @@
1
- {"git_version": "6f20a2b", "is_release": true}