3438 Commits

Author SHA1 Message Date
Andrey Kurilin
ed2a507b60 Disable NEUTRON_ENFORCE_SCOPE at function job
The following devstack change I3361d33885b2e3af7cad0141f9b799b2723ee8a1
may be a root cause for failing functional job. This commit should
verify this.

Change-Id: Ica272a5ce5d20dcb52e8a636849af2d71e15afb2
2023-11-21 20:37:46 +01:00
dc2cb6cdd5 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: I7b70843227db7e74151f8483485cf9995724438f
2023-09-07 09:37:25 +00:00
David Wlazlo
e464940f39 Typo - nova CLI deprecation warning
Change-Id: I1e604867bd00d51caebcb049777bbc675a398969
18.4.0
2023-05-17 12:21:29 +10:00
67caa10401 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: Iac2e628333518455eef637f626ce6a3b54057afd
2023-02-24 15:09:23 +00:00
Artom Lifshitz
85e4f08309 Bump microversion to 2.95
There are no client-side changes for either 2.94 or 2.95, so just do
the bump and add release notes.

Change-Id: I8c2bfd48526840fc618820b9ae6a12dc98cdef45
18.3.0
2023-02-02 13:36:52 +00:00
Balazs Gibizer
c7cb02f1f7 Make tox.ini tox 4.0.0 compatible
* removed skipsdist=True to make sure novaclient is available in the virtual
  env. The usedevelop and skipsdist does not work together any more
  https://github.com/tox-dev/tox/issues/2730. For bindep we still don't
  need the current repo to be installed in the env so skipsdist added
  there.

Depends-On: https://review.opendev.org/c/zuul/zuul-jobs/+/866943
Change-Id: I979b91570c7b60273f35fbdf8464f6a9ee2007d6
2022-12-22 16:52:04 +01:00
Zuul
c35588d09b Merge "tests: Fix Python 3.11 compatibility" 2022-12-15 14:42:24 +00:00
Zuul
d95e83affe Merge "trivial: Remove use of kwargs" 2022-12-14 21:05:39 +00:00
Stephen Finucane
1d8a06da78 tests: Fix Python 3.11 compatibility
The argparse lib in Python 3.11 will not allow you to register a
subparser more than once with the same name. We were inadvertently doing
this in two of our unit tests as part of our check for version handling.
There's no need for this. Stop doing it and simply create a new parser
each time.

An unnecessary check is removed from one of the tests since it confuses
matters.

Change-Id: I93827f84c456c9f6960e30e2424b67947254752c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-12 17:49:26 +00:00
Stephen Finucane
80ee69aa30 trivial: Remove use of kwargs
Make use of a "sentinel" object to allow us to remove the use of kwargs
and provide a more helpful docstring. With any luck, Python will support
these objects natively in a future release [1].

[1] https://www.python.org/dev/peps/pep-0661/

Change-Id: I411c0393754c8fe8a6698f0d278b73f12209ace8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-12-12 17:43:23 +00:00
Ghanshyam Mann
059398398f Update python classifier for python 3.10
In 2023.1 cycle, we are testing the python 3.10
as voting job so updating the python classifier.

Currently we have py3.8 unit test job running on focal
and python 3.10 job on Jammy.

Change-Id: I4ec8e9663ddf41aa5d3858446e4e382db041ce48
2022-11-22 19:48:27 +00:00
Takashi Natsume
2af1d0c514 Remove unnecessary testing code
Now PrettyTable >= 0.7.2 in requirements.txt,
remove code for PrettyTable < 0.7.2.

Change-Id: Ie6edcc24fbb67394ff8abe0c5f18ad2bed6903ab
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
18.2.0
2022-09-19 01:12:04 +00:00
d4ea897bc9 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: Icf54ae2ae9db6996da6b881898fea2de4b67190c
2022-09-14 09:29:17 +00:00
f50bcbc47f 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: I722c5645b9e039fd5d4e8fc75fd6c614eed593d5
2022-09-09 15:04:19 +00:00
whoami-rajat
94d3445e10 MV 2.93 - Add support to rebuild boot volume
This patch bumps the API microversion to 2.93 to allow
rebuilding a volume backed instance.

Implements: blueprint volume-backed-server-rebuild

Depends-On: https://review.opendev.org/c/openstack/nova/+/830883

Change-Id: Ie46df7ad76082e7631bb26243abed4dc3b1f40ac
2022-09-06 16:42:08 +05:30
Takashi Natsume
be9517cb02 Fix a fixture for keypairs tests
This patch is a follow-up for
I03570d0a49b73021de91dc50b65b1bbf5d4b878b.

The following file is for shell (CLI) tests,
so it does not need to be changed anymore.

* novaclient/tests/unit/v2/fakes.py

Change-Id: I3b1cf5d402b04854177265f2ba429956edb73203
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
18.1.0
2022-08-05 23:58:30 +09:00
Zuul
cdea416cce Merge "Add support for 2.92 : keypair import mandatory" 2022-08-02 16:03:40 +00:00
Zuul
89a76edc8d Merge "Microversion 2.91: Support specifying destination host to unshelve" 2022-08-02 15:47:54 +00:00
Sylvain Bauza
2b5d989990 Add support for 2.92 : keypair import mandatory
Now, when creating a keypair, the 'public_key' parameter is now mandatory.

Depends-On: https://review.opendev.org/c/openstack/nova/+/849133
Implements: blueprint keypair-generation-removal

Change-Id: I03570d0a49b73021de91dc50b65b1bbf5d4b878b
2022-07-28 14:59:47 +02:00
René Ribaud
ee9b277c5f Microversion 2.91: Support specifying destination host to unshelve
This patch adds ``host`` to novaclient api.
This can help administrators to specify a ``host``
to unshelve a shelve offloaded server from 2.91 microversion.

Depends-On: https://review.opendev.org/c/openstack/nova/+/831507
Implements: blueprint unshelve-to-host
Change-Id: I7efc8f0b0ef159e16cefee761bff5d7e90d0c427
2022-07-28 14:49:46 +02:00
OpenStack Proposal Bot
4d4cdb4992 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I9eeb37d4b4771798e09802915c42bf79df9422c0
2022-07-06 03:56:50 +00:00
Takashi Natsume
d867ef6551 Replace old URLs with new ones
Change-Id: I66d76bed4ec19ef7517d88de20fcc32fea635261
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-06-24 08:38:31 +00:00
OpenStack Proposal Bot
81dece8168 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I4bd5c1ed4b6bb7c99e7724d77076bfb759bac376
2022-06-21 03:56:47 +00:00
Ghanshyam Mann
782a467533 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ibb492285ef7d5357c921035409d6654c80df3725
18.0.0
2022-04-29 20:56:13 -05:00
Zuul
6a475043e4 Merge "Remove unnecessary packages in bindep.txt" 2022-04-29 11:57:17 +00:00
Ghanshyam Mann
81a67ac08a Update python classifier as per testing runtime
In Zed cycle, we ave dropped the python 3.6/3.7[1] testing
and its support. Updating the python classifier also to reflect
the same.

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

Change-Id: I06ef1e3f73ddf6c7a62e0d1aa0ab6eeb220436f6
2022-04-21 14:23:05 -05:00
Takashi Natsume
13ab47e786 Remove unnecessary packages in bindep.txt
Change-Id: I3975e5a67e0a8614ac2d6568e294c32a14f789e9
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-04-16 02:55:48 +09:00
Takashi Natsume
a66f070215 Add openssl in bindep.txt
Change-Id: If812bf19a569667b96e4cada106da04346449778
Closes-Bug: 1966551
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-04-10 11:27:07 +00:00
Takashi Natsume
2f45f7cef2 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].

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

Change-Id: I12a04dc2f21bfa6af676f93c099f815e6b2cd370
2022-04-10 11:26:58 +00:00
Stephen Finucane
c408db2dd9 Update pre-commit hook, hacking versions
This was done with 'pre-commit autoupdate'. An invalid message is
removed from the requirements.txt files as it no longer applies with
pip's new dependency resolver.

Change-Id: I01c3ece51f81d67c740e6faca6b77df7c9932435
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-04-08 17:49:08 +09:00
Stephen Finucane
52cdbd271e docs: Update docs to reflect deprecation status
Change-Id: I56b862305b31916cef143494050e5e08b1ac70b1
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-04-06 14:18:05 +01:00
Stephen Finucane
0fb7190c06 Deprecate nova CLI
It is time to signal that we're fully committed to delivering a pure
OSC experience.

Based on the neutron change from 6 (!!) years ago [1]

[1] 3a64a7a166

Change-Id: Ib80548e104a751179f36f2a6ebff9916d38fdf1e
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-04-06 14:17:59 +01:00
Takashi Natsume
cd08a84717 Remove USE_PYTHON3 in .zuul.yaml
USE_PYTHON3 is unnecessary now, so remove it.

Change-Id: I2be7877d3b90d8cf94ab63e735d176a548a13a43
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2022-03-28 12:00:45 +09:00
a36214f393 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: I8057ebf8bd5714acb7fd11223ffbfe8504a5f5dd
2022-03-03 10:51:26 +00:00
Ghanshyam Mann
63d368168c Updating python testing classifier 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 updates the classifier in setup.cfg file.

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

Change-Id: Ic6dbe3ae45089f7947d45dc81eb5d1e29b3d0597
2021-12-17 12:37:29 +00:00
Takashi Natsume
871c50c5b9 Fix check job failures
This patch fixes the following failures.

* package version conflict in the lower-constraints job
* An error about admin endpoint for identity service
  in the python-novaclient-functional job

Closes-bug: 1954916
Closes-bug: 1954917
Change-Id: Ie48dda004aaf5d01d286bdc0d9fe355d58e62d75
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2021-12-17 00:24:47 +09:00
d3b4c01ea4 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: Iff5e28efd84750cf7e0ae166b4828339bad5c7c6
2021-09-10 15:22:39 +00:00
5eb6dd2787 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: I62070f8d3fded9f47c03a8c43d3481b2e2aef367
2021-09-10 15:22:31 +00:00
Stephen Finucane
8066f8c745 Microversion 2.90 - Configurable hostnames
Change-Id: Icd4362a07196e59bafcdfaff44323ce1386d4f55
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Depends-On: https://review.opendev.org/c/openstack/nova/+/778550/
xena-em
2021-09-02 11:01:07 +01:00
Stephen Finucane
01c7a3aa10 tests: Add missing 'nova update' unit tests
We have functional tests for the 'nova update' commands, but no unit
tests to verify e.g. that we can't set a description for the server
before microversion 2.19. Add such tests.

Change-Id: I9af89655a7e7276446a881fd28d21ddd6581048c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-09-02 10:50:52 +01:00
Stephen Finucane
4a5bdde3b0 Add pre-commit
Change-Id: I66ed7fb2f0b4ef5227bdf40d51e3c15c3a54816a
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-09-01 11:09:53 +01:00
Lee Yarwood
cfa172c4fd Microversion 2.89 - os-volume_attachments
Depends-On: https://review.opendev.org/c/openstack/nova/+/804275
Change-Id: If6275dbd3795047c111ac507a12b034e60029df8
2021-08-24 19:10:41 +01:00
Takashi Kajinami
bff8d41370 Use importlib instead of imp
... because the imp module is deprecated since Python 3.4 .

Closes-Bug: #1937904
Change-Id: Ia3f83df336fd243c25f7471d56a44370c11bb5e1
2021-08-16 09:55:38 +09:00
Takashi Kajinami
273c41574a Use Block Storage API v3 instead of API v2
Block Storage API v2 was deprecated during Pike cycle and is being
removed during Xena cycle, and current v3 API should be used instead.

Change-Id: I4b4c08d65e642866d81d7fd12a7c82162a0b979e
2021-07-27 11:00:23 +09:00
Zuul
f431295d81 Merge "Change minversion of tox to 3.18.0" 2021-05-21 15:27:32 +00:00
Takashi Natsume
665f1c8d4c 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 by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I75844ded50c0032445dd27b1ced7f214c754e901
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2021-05-18 22:56:24 +09:00
Takashi Natsume
935fe75a66 Refactor constructing request body
Add a private static method to construct a request body
for create requests in the
novaclient.v2.volumes.VolumeManager class.

Change-Id: I884ad4b471e3d196255901499c75a1a2f0535f65
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2021-05-06 18:00:10 +09:00
YuehuiLei
3dc9ad974e setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ia98a366c65321f76394940be0f9ce2a55dd321d4
2021-05-04 10:53:33 +08:00
zhangboye
b5faf37f1b Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at
each new cycle.

Change-Id: Icad6d0d0d375d1995baa603b091be50797210215
2021-04-20 09:36:29 +08:00
melanie witt
21edd11ba9 Add unit tests for client logger
Change I53caceb08667eb12e27016731868e8015dd10e34 fixed a bug where we
weren't using our novaclient logger default when a logger was not
passed to the Client constructor.

This adds unit tests to assert the fixed behavior and protect against
regression.

Related-Bug: #1921388

Change-Id: I9f622c01a6b1abe328a60de6d3e438e68872dd80
2021-04-10 03:10:04 +00:00