Python 3.13 is now part of tested runtimes.
Change-Id: I8434084ec823d6d918205aa5651dad60402daa48
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit introduces the "openstack optimize action update" command
that allows cloud admins to manually update action states. The only
current use case is to mark actions as SKIPPED before starting an
action plan.
Additionally, the option `--reason` can be used to provide a text that
will be stored as part of the status_message field.
Command usage:
openstack optimize action update --state SKIPPED --reason "reason" <uuid>
The feature requires Watcher API microversion 1.5 or higher and includes
automatic version checking.
In order to assert specific strings in stderr, I'm enabling
`merge_stderr` option by default in execute. It's totally backwards
compatible, so I'm not parametrizing it.
Implements: blueprint add-skip-actions
Assisted-By: Claude (claude-sonnet-4)
Depends-On: https://review.opendev.org/c/openstack/watcher/+/955753/
Change-Id: Ice88c0ab58c0cfd784c707620da89a891055ffc2
Signed-off-by: Alfredo Moralejo <amoralej@redhat.com>
The last release of openstack to support python 3.9
was 2025.1 (epoxy), with this change watcherclient now
requires 3.10.
Change-Id: Iae0b4e113e149bca82c61c478c3cdf269057d0aa
Signed-off-by: Sean Mooney <work@seanmooney.info>
It is no longer directly used by any test code in this repository since
we switched to stestr[1].
It is now installed as a dependency of stestr.
[1] 1086b23454
Change-Id: I24cdf2affb06939d0c610abe7c5c97672be4124f
pip 23.1 removed the "setup.py install" fallback for projects
that do not have pyproject.toml and now uses a pyproject.toml
which is vendored in pip.
To address that, this change adds the minimal pyproject.toml
to enable pbr to be properly used to build editable wheels.
This is required to support installing devstack on
centos stream 9 and related distros with GLOBAL_VENV=True
Without this change the wsgi scripts are not generated in
editable mode. i.e. pip install -e /opt/stack/keystone
See https://pip.pypa.io/en/stable/news/#v23-1
and https://github.com/pypa/pip/issues/8368 for more
details on the removal of the fallback support.
setuptools v64.0.0 is used to support editable installs
via its PEP-660 implmentation
https://github.com/pypa/setuptools/pull/3488
Change-Id: Ia68aa799a0c4daaffd59c6faa2b59a5dda4015a8
Functional tests are meant to validate the openstack optimize cli
functionality. The code was kept in watcher-tempest-plugin repo.
Tempest plugin repo was meant to store tempest related api and
scenario tests, not functional tests. This patch moves the code
from watcher-tempest-plugin to watcherclient repo.
It also adds:
- tox target for running functional tests
- New zuul job based on devstack-tox-functional to run functional
tests.
Note: Now functional tests are running via tox and OS_* variable.
That's why It also drops tempest credentials factory to get creds from
tempest.conf.
Related-bug: #2100741
Change-Id: Ibf25c9cd6b8cd6b228f759d7393af5fe6a357d7f
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
tox now always recreates an env although the env is shared using envdir
options.
~~~
$ tox -e genpolicy
genpolicy: recreate env because env type changed from
{'name': 'genconfig', 'type': 'VirtualEnvRunner'} to
{'name': 'genpolicy', 'type': 'VirtualEnvRunner'}
~~~
According to the maintainer of tox, this functionality is not intended
to be supported.
https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293
Change-Id: I1c4a0780f890b679b83c7ff8d87c549cee3cdd58
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg
Change-Id: I3a938c4d27f987f4fa1a60d41baf9da74b32a78f
The lower constraints job was already removed[1] and the file content
is no longer tested.
[1] 52a3fd062d
Change-Id: Ife61e9de574bc0fd78bd733a33e41ac6cb48d12d
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: I8343a54a94d64741325c0cbdd89e01e939bf73ac
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
python-watcherclient could not be built reproducibly.
This is because the documentation generates automatic documentation for
the "main()" entrypoint method's arguments, one of which is "sys.argv".
During document generation this results in documentation examples like:
def main(argv=['-b', 'html', 'doc/source',
'«ABSOLUTE_BUILD_DIR»/debian/python-watcherclient-doc/usr/.../html']):
… etc. Patch attached that sets "None" instead but retains the existing
fallback logic.
[0] https://reproducible-builds.org/
Please note that this was reported in the Debian tracker:
https://bugs.debian.org/960607
and that the fix was applied to the Debian package.
Change-Id: I502bb2d11d90ce4c46c14904a8c048ea824f11d5
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: Ib952d51523684ba21b1247a0cef59ea5552ecdca
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.
Change-Id: I31972595411d814700b6b51113827f438085170a