Commit Graph

220 Commits

Author SHA1 Message Date
Zuul 4758f1ab2b Merge "reno: Update master for unmaintained/wallaby" 2024-03-21 10:16:55 +00:00
Zuul cd5de35939 Merge "reno: Update master for unmaintained/xena" 2024-03-21 10:16:54 +00:00
Zuul 202cd63e1c Merge "reno: Update master for unmaintained/victoria" 2024-03-21 10:14:28 +00:00
OpenStack Release Bot 7465708afa Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2024.1.

Sem-Ver: feature
Change-Id: Ib1857448c2cb7e455d5002c27c6f0d83c999539e
2024-03-12 18:15:08 +00:00
OpenStack Release Bot 87146b3ba2 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I11cca41f839e77e098ca9587d2be3b3ccd3c3dc3
2024-03-05 18:51:54 +00:00
OpenStack Release Bot 6171458f19 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: Iea7bda93d140e7480d593959e703023e7b0b16c3
2024-03-05 18:50:18 +00:00
OpenStack Release Bot 3756d27ea0 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I6bd5d63df72cde21a290d7276614c8e8a6db16a2
2024-03-05 18:48:20 +00:00
OpenStack Release Bot e6c1acf841 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I019a0e5a66ee2dce6608e868c5a0362d8c3b32e1
2024-02-06 14:27:33 +00:00
Takashi Kajinami a40c18d64e Bump hacking
hacking 3.0.x is too old. This also removes the note about old behavior
of pip which has been changed in recent versions.

Change-Id: I5a8dc51a94c8284c9c869728981dcb19de63d941
2024-01-17 01:41:54 +09:00
Zuul 09afc71258 Merge "Update master for stable/2023.2" 2023-09-29 11:21:27 +00:00
Zuul 908acf9812 Merge "Update master for stable/xena" 2023-09-29 11:19:56 +00:00
OpenStack Release Bot 51535111db Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.2.

Sem-Ver: feature
Change-Id: I28e9cc11f79f8ae506b98f2cfc7bc6e68eef5a32
2023-09-07 09:37:12 +00:00
OpenStack Release Bot ffa3822bc8 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/2023.1.

Sem-Ver: feature
Change-Id: I61bf3f0fa2cff8c80affabff9d78a6fab91ba815
2023-02-24 15:09:09 +00:00
Ghanshyam Mann b6505e20ba Use pypi released version of placement in functional tests
osc-placement functional tests are using the master version
of placement which is failing due to the constraints mismatch
on stable branches testing.

- https://zuul.opendev.org/t/openstack/build/a2cc830f28f44ed5ae0e1c5f0a99ac75

During the discussion in Nova meeting, we did not find any reason why
we are using the latest placement on stable branch testing of osc-placement
- https://meetings.opendev.org/meetings/nova/2023/nova.2023-01-10-16.00.log.html#l-47

Below is the original patch which started using the placement from master
source.
- https://review.opendev.org/c/openstack/osc-placement/+/651939

To avoid the constraints mismatch on stable branch testing which can
happen in future also, let's use it from pypi version which will be the
same way as nova functional tests doing
- 26f24b7086/tox.ini (L64)

Also, remove basepython/ignore_basepython_conflict from tox.ini. Tox 4.2.6
still failing with the missing interpreter for [testenv:functional{,-py38,
-py39,-py310}]. It is due to a conflict between basepython = python3
and the version fragment in the generative target suppressed by
ignore_basepython_conflict = true.

This patch removes basepython = python3 assuming that developers already
switched for python3 in their environment as python2.7 is EOL.

Ref: https://review.opendev.org/c/openstack/nova/+/869545

Change-Id: I4e3e5732411639054baaa9211a29e2e2c8210ac0
2023-01-10 14:50:45 -06:00
Balazs Gibizer fdf10423bf Make tox.ini tox 4.0.0 compatible
* removed skipdist=True to make sure osc-placement is available in the
  virtual env

Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/866943
Change-Id: I9891ce31b45694c0d5be5da3a99173136272dfc6
2022-12-22 16:15:31 +01:00
Ghanshyam Mann e326856965 Update gate jobs as per the 2023.1 cycle testing runtime
As per 2023.1 testing runtime[1], we need to test on Ubuntu
Jammy (which will be taken care by tempest and devstack patches
to move base jobs to Jammy) and at least single job to run on
Ubutnu Focal (for smooth upgrade). Also, python 3.10 testing is
voting now.

This commit makes python 3.10 functional job as voting and python 3.10
unit test job are voting via generic template. Python 3.8/3.9 jobs are
running on Focal and python 3.10 on Jammy.

[1] https://governance.openstack.org/tc/reference/runtimes/2023.1.html

Change-Id: I97b82399af9a640353ba979965c202afcb224163
2022-11-22 19:47:01 +00:00
OpenStack Release Bot 4d53be7bad Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ieb6339cd677c76f0158cc19c9a0bf32b2237594d
2022-09-14 09:25:53 +00:00
OpenStack Release Bot 5407bd432b Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/zed.

Sem-Ver: feature
Change-Id: I381fb75fc354af99751917d95f30bbfca7adfc8b
2022-09-09 15:04:05 +00:00
Zuul aa14e9ccde Merge "Support microversion 1.39" 2022-06-30 14:37:56 +00:00
Zuul 5e46c52c5c Merge "Replace deprecated assertRaisesRegexp" 2022-06-28 16:27:35 +00:00
Zuul b3bee2939a Merge "Change minversion of tox to 3.18.0" 2022-06-06 01:45:28 +00:00
Zuul f04489bb8c Merge "Add Python3 zed unit tests" 2022-06-02 15:43:11 +00:00
Balazs Gibizer 9545623054 Support microversion 1.39
The CLI now support the following syntax both for openstack resource
providers list and allocation candidate list commands:

  --required T1,T2 --required T3

and it means (T1 or T2) and T3.

In the allocation candidate list command the above can be used both
outside and in a --group context.

Story: 2005345
Story: 2005346

Depends-On: https://review.opendev.org/c/openstack/placement/+/826719

Change-Id: I38ff55bdd072f3a9c1ed03e28192d045cb4096cf
2022-06-01 14:09:29 +02:00
Takashi Natsume 9101797227 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

I needed to squash in another change that is dropping the py36 and py37
support. We cannot do that separately as those jobs are already failing.

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I378d5c3c1f3e96696670a4865caf5901269a5ee4
2022-06-01 14:08:13 +02:00
Zuul 6c1ebc9d42 Merge "Remove usage of six" 2022-05-18 18:38:00 +00:00
Zuul 242a1265d9 Merge "Remove usage of six" 2022-05-18 18:33:53 +00:00
Takashi Natsume d4ef2a9494 Change minversion of tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace whitelist_externals with allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I004d9563d006a1cce1e2fe7fbcd11fbf41e023fe
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-03-29 11:36:04 +09:00
OpenStack Release Bot 9f671b51da Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/xena.

Sem-Ver: feature
Change-Id: Ida17fdbe9fce1971106bba7f84318b9a191a5589
2022-03-18 20:48:18 +01:00
OpenStack Release Bot 7f77e98abd Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/yoga.

Sem-Ver: feature
Change-Id: Ib9f97090a45e7e633c4f4667603c02c406447067
2022-03-03 10:51:11 +00:00
Takashi Natsume 73e496ff6c Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I711896a5855fdf881106819b9d05c0b048d46627
2022-02-16 14:44:33 +00:00
Ghanshyam Mann 0c24adb61e Updating python testing as per Yoga testing runtime
Yoga testing runtime[1] has been updated to add py39
testing as voting. Unit tests update are
handled by the job template change in openstack-zuul-job

- https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/820286

this commit makes other required changes in zuul.yaml and
update the classifier in setup.cfg file.

[1] https://governance.openstack.org/tc/reference/runtimes/yoga.html


Change-Id: Ia2caf2508604743cfddbdc76bc520641d1c647d1
2021-12-14 02:26:24 +00:00
l Luis db84950f55 Replace deprecated assertRaisesRegexp
The assertRaisesRegexp method has been deprecated since it was renamed
to assertRaisesRegex in Python 3.2.

https://docs.python.org/3/library/unittest.html#deprecated-aliases

Change-Id: I4d19f3e0314f912e83d931bf061d0eacb13987f4
2021-11-10 17:08:44 +08:00
songwenping 1f2fdddd9c Remove usage of six
Remove six-library Replace the following items with Python 3 style code.
- six.raise_from
- six.StringIO
- six.moves
- requirement.txt

Change-Id: If3d810a1dbe7d506aa55cc07717babec8393b8c5
2021-10-25 07:26:36 +00:00
songwenping 99d5dcc170 Remove usage of six
Remove six-library Replace the following items with Python 3 style code.
- six.string_types
- six.text_type

Change-Id: I8d06743b7a21cfa4db88f9503e2ab9247f6685b8
2021-10-03 07:24:34 +00:00
Balazs Gibizer 0ea8f1b05d Fix allocation show / unset with empty allocation
Add a guards for empty allocations in the allocation parsing code of
allocation show and allocation unset.

Closes-Bug: #1942740
Change-Id: Ic0e6e981d6602a76935f6bc6d9ffb0a707a5b1a9
2021-09-06 15:11:47 +02:00
Balazs Gibizer 087dd64dd2 Repro allocation show bug with empty allocation
This patch adds a functional test case to reproduce the bug when an
allocation show command on an empty (non existent) allocation causes
KeyError as the code expects project_id in the response but the
response is {"allocations":{}}. Also similarly for allocation unset
where microversion 1.38 fails on parsing out consumer_type from the
empty allocation too.

Related-Bug: #1942740

Change-Id: Iea27c9376480e3e94d12eec56b466331e5c6f171
2021-09-06 15:10:37 +02:00
melanie witt 5e38a59317 Add support for microversion 1.38 consumer types
Story: 2005473
Task: 42878

Depends-On: https://review.opendev.org/c/openstack/placement/+/679486

Change-Id: I1b7d7095e62dc80191ff3e199959fb4d7df6f68e
2021-08-12 20:37:38 +00:00
Zuul b0a74d094d Merge "Mark microversion 1.37 supported" 2021-07-31 01:20:41 +00:00
Sean Mooney 281ace20df default to max version when no session
This change fixes a regresssion intoduced
by the supprot for microverion auto-negotiation
which resulted in the inablity to generate
bash autocompltion.

When the client_manager does not have a api session established
such as when being invoked for auto completion this
change modifies get_version to return version.MAX_VERSION_NO_GAP

Story: #2008958
Task: #42592
Change-Id: I90e1e3caeaa22ff51df515226b3ac5c7b64c88b6
2021-06-09 14:38:57 +00:00
Zuul 37e47afc88 Merge "Add openstackclient-plugin-jobs" 2021-05-20 13:00:41 +00:00
Zuul 3a3710c6ee Merge "Note env OS_PLACEMENT_API_VERSION support" 2021-05-20 12:57:44 +00:00
Zuul 869769e3bf Merge "Add "--resource-class" to allocation unset" 2021-05-14 15:22:20 +00:00
Zuul f012c8144b Merge "Verify result for inventory set --dry-run" 2021-05-14 15:22:17 +00:00
Zuul b6f1e6b450 Merge "Add py38 package metadata" 2021-05-14 15:22:05 +00:00
Zuul 4cb78129e5 Merge "Use TOX_CONSTRAINTS_FILE" 2021-05-14 15:21:58 +00:00
Zuul f7c8443c65 Merge "Add functional-py39 tox target" 2021-05-14 15:20:09 +00:00
Zuul e2944aa521 Merge "setup.cfg: Replace dashes with underscores" 2021-05-13 09:19:50 +00:00
Tetsuro Nakamura 39befda0d7 Verify result for inventory set --dry-run
There were tests to verify that 'resource provider inventory set'
command with --dry-run and --aggregate option changes nothing on
the server side but there was no test to verify the result of that
command. This patch adds the test.

Change-Id: I8d2c25a654928d8d46d5e1d0ee203600c9a72600
2021-05-13 06:29:04 +00:00
Tetsuro Nakamura a4ac717a48 Add "--resource-class" to allocation unset
The ``openstack resource provider allocation unset`` command now
supports ``--resource-class`` option, which accepts string of a
resource class. This will remove allocations for the given resource
class from all the providers. If ``--provider`` option is also
specified, allocations to remove will be limited to the given resource
class of the given resource provider.

example1::

  # remove VGPU allocation from provider P for this consumer.
  allocation unset <consumer_uuid> --provider P --resource-class VGPU

example2::

  # remove VGPU allocations from all providers for this consumer.
  allocation unset <consumer_uuid> --resource-class VGPU

Change-Id: I91baf9de5205ec15023706a1646556850302d3d9
Story: #2006779
Task: #37304
2021-05-13 06:23:54 +00:00
Tetsuro Nakamura 9778535263 Note env OS_PLACEMENT_API_VERSION support
The placement client (osc-placement) supports the
``OS_PLACEMENT_API_VERSION`` environment variable,
but it is not described in the ``openstack -h`` command.

So this patch adds the description as well as other
environment variables.

Change-Id: I41a3718bfa27ecf370c7375b4f761cda47866b1a
2021-05-12 02:55:15 +00:00