7417 Commits

Author SHA1 Message Date
Mridula Joshi
2a9a4c8e0e Fix overwriting of existing tags while creating new tags
It was observed that md-tag-create-multiple
(/v2/metadefs/namespaces/{namespace_name}/tags) API overwrites
existing tags for specified namespace rather than creating new one
in addition to the existing tags.
This patch resolves the issue by introducing a header 'X-Openstack-Append'
which on being True will append the new tags to existing ones and
if False will continue to overwrite the tags.

Implements: blueprint append-tags
Closes-Bug: #1939169
Change-Id: I29448746b14c542e5fbf0283011968ae1516642e
2022-02-16 05:45:06 +00:00
Zuul
a42fda92dc Merge "[APIImpact] Quota usage API" 2022-02-08 03:33:58 +00:00
Zuul
43df45f9a6 Merge "Add fips check jobs" 2022-02-07 09:18:00 +00:00
Zuul
d615de6b73 Merge "Remove six.moves.urllib usage" 2022-02-07 04:49:15 +00:00
Ade Lee
0f13754f84 Add fips check jobs
Some jobs have been modified to run to confirm that functionality is
still working when FIPS is enabled on the nodes.

As the FIPS tests currently run on centos nodes, code is added
to the test-setup script to set up the databases correctly.  Also had
to increase the swap space on the nodes; see [0] for an explanation.

The current FIPS jobs run using python 3.6 on centos-8-stream.  We will
modify these to run on centos-9-stream and python 3.9 in a
subsequent patch.

[0] https://review.opendev.org/c/openstack/devstack/+/803706

Change-Id: I060d8247c7b09f63990ea411e6c6a056bb50410d
2022-02-03 13:19:20 -05:00
Dan Smith
f865b8cac7 [APIImpact] Quota usage API
This adds a /v2/info/usage API endpoint which exposes to the user
their current limits and usage.

The discovery API does not (appear to) have existing tests, so this
adds a module for that, although only usage tests are added currently.

Implements: blueprint quota-api
Change-Id: I50c98bac50f815bdb9baae024e77afd388f74554
2022-02-03 09:55:50 -08:00
Zuul
472c1635ca Merge "Remove six.moves.http_client usage" 2022-02-03 09:12:25 +00:00
Zuul
518606a65d Merge "Remove six.moves.range usage" 2022-02-03 08:22:10 +00:00
Zuul
fb875de154 Merge "Replace six.BytesIO, six.StringIO usage" 2022-02-02 21:55:08 +00:00
Zuul
2b6a089d89 Merge "Remove six.text_type, six.binary_type usage" 2022-02-02 21:55:05 +00:00
Zuul
d7368446e4 Merge "Fix tests on Python3.10" 2022-01-27 16:14:08 +00:00
Stephen Finucane
87ba56161b Remove six.moves.urllib usage
Change-Id: I71be65ef7b8f710e9317419d7b38559b39f461b0
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 14:54:05 +00:00
Stephen Finucane
9679ffc463 Remove six.moves.http_client usage
This is a rather beefy change due to the number of usages of this
import. The changes are trivial though.

Change-Id: I7badeeaca438b0291f4ed86670e7f217e6372c61
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 14:54:05 +00:00
Stephen Finucane
39e667a145 Remove six.moves.range usage
This is the same as the 'range' keyword in Python 3

Change-Id: If3aa008522c24e870b7bf13de32b8ed1b27cb519
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 14:54:05 +00:00
Stephen Finucane
67b531b143 Replace six.BytesIO, six.StringIO usage
Change-Id: I007da2ba19b4e18f7c4f64d1503a18815a3f8ce4
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 14:54:05 +00:00
Stephen Finucane
6bd7c188ee Remove six.text_type, six.binary_type usage
Change-Id: I2ed464202f8b645aed11490e111c61d3c7423c11
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2022-01-27 14:54:00 +00:00
Cyril Roelandt
800ba9645d Fix tests on Python3.10
Both test_property_protection_with_missing_operation and
test_property_protection_with_misspelt_operation rely on a bug in Python
3.9: the "]" character in a section name is not read, so section
'^[0-9]' is read as '^[0-9'. This causes _compile_rule to fail and raise
the exception the tests are expecting.

In Python 3.10, this bug has been fixed and the exception is no longer
raised. Instead, CONFIG.get() raises a NoOptionError in _load_rules,
which is not caught.

Closes-Bug: #1954321
Change-Id: Ibce11ac002dc900299d478ea875797dd1f8df17e
2022-01-25 20:19:47 +01:00
Erno Kuvaja
71c1e4b18a Bump SQLalchemy to version that supports PY3.9
Bumping SQLAlchemy to 1.3.14, which is first version supporting
Python 3.9 runtime, this hopefully addresses the issue reported.

Change-Id: I73f0c7c067fcab00a97cd925cad19edd64b6eb45
Closes-Bug: #1957167
2022-01-21 12:59:01 +00:00
Zuul
e0413eb56c Merge "Updating python testing as per Yoga testing runtime" 2022-01-21 10:50:44 +00:00
Zuul
464524db0d Merge "Use LOG.warning instead of deprecated LOG.warn" 2022-01-20 07:15:52 +00:00
Takashi Kajinami
0a5b511729 Use LOG.warning instead of deprecated LOG.warn
The LOG.warn method is deprecated[1] and the LOG.warning method should
be used instead.

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: Ie0cac63dedf69728392f293f4551e495aebf4d40
2022-01-19 11:36:12 +09:00
Zuul
909597c434 Merge "Update Interop doc" 2022-01-18 18:45:54 +00:00
Zuul
b8887edd78 Merge "Remove dead psutil-related code" 2022-01-18 18:45:52 +00:00
Stephen Finucane
502fa0ffc8 Remove six.iteritems usage
We also remove hacking tests for this, along with those for iterkeys and
itervalues (no usage of these).

Change-Id: If5b46580078eb756651ac6118f502eccdc693646
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2021-12-21 13:01:56 +00:00
Stephen Finucane
0562e3335b Remove six.add_metaclass usage
Change-Id: If0d2ad8357ea759638c6b83c04ec7a2f3cf9f6bd
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2021-12-21 11:38:47 +00:00
Ghanshyam Mann
ed1183919a 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 updates the functional and tips jobs to test
on py39, also update the classifier in setup.cfg file.

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

Change-Id: I6e1c64961f0feb920e45ef6a6ed29f2e32265768
2021-12-13 20:57:28 -06:00
Zuul
4ee7799aa7 Merge "Imported Translations from Zanata" 2021-11-30 05:59:54 +00:00
whoami-rajat
de8c850269 Replace FakeObject with mock.MagicMock
In glance cinder functional tests, we currently use FakeObject class
to create mock objects which has limited functionality.
Replacing it with mock.MagicMock will prevent failures like in change
I129181b2338e09d094ee552a62500c6e460ee621 and other features as well.

Change-Id: I5afa2541bc28970191ea9fd76bf44eb9aaaa1081
2021-11-26 08:43:06 -05:00
OpenStack Proposal Bot
89769785e1 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ib820ac6eb1a3732bacb622e9215f22231ec6dc89
2021-11-25 02:27:15 +00:00
Rajat Dhasmana
6fd949a966 Refactor glance cinder tests
Legacy attachment API calls were removed/replaced from the code with
new attachment API support in glance store with change[1]
This patch removes the same methods mocked in the tests.

[1] https://review.opendev.org/c/openstack/glance_store/+/782200

Change-Id: I111fc36dcf3bc203f21377a3095a2170d00bb9bf
2021-11-24 02:09:49 -05:00
Zuul
1db6e66f93 Merge "Remove broken tempest-full-py3-opensuse15 job" 2021-11-23 06:36:37 +00:00
Zuul
7231a44b18 Merge "Add "bochs" as a possible video model" 2021-11-18 08:32:14 +00:00
Zuul
79f285623c Merge "Add missing packages to test dependencies" 2021-11-17 08:06:16 +00:00
Kashyap Chamarthy
bfc7a178e3 Add "bochs" as a possible video model
In Xena, this commit[1] support for the "bochs" video model (the device
is recommended for UEFI guest), but neglected to update Glance
documentation.  Correct that now.

[1] https://opendev.org/openstack/nova/commit/c590843974
    "Allow 'bochs' as a display device option"

Change-Id: I2026a81d3611e069fbcd1a79c2384d18cb5a653d
Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
2021-11-15 14:42:49 +01:00
Martin Kopec
fd36d6450e Update Interop doc
The commit replaces DefCore committee (a former name) by
Interop Working Group (the current name) and updates a few
more old interop references.

Change-Id: I09c02f3adc2ba5acb2c325e462bc6e54dd23d0fb
2021-11-08 10:47:05 +00:00
Andre Aranha
474c600b8a Add missing packages to test dependencies
The tests are failing when running on Centos due to lack of
qemu-img package and python3-devel.
This patch is adding the missing packages to bindep.txt.

Closes-Bug: #1947146

Change-Id: I99ab96a7f8b6fdf6a27faf1fe0ea0328f89b154f
2021-11-04 11:46:06 +00:00
Ghanshyam Mann
458e2b7b45 Remove broken tempest-full-py3-opensuse15 job
tempest-full-py3-opensuse15 is failing all the time[1] and
opensuse is not tested/supported distro in testing runtime
or devstack anymore. So let's remove opensuse broken job from
tempest too.

Needed-By: https://review.opendev.org/c/openstack/tempest/+/816569

[1] https://zuul.opendev.org/t/openstack/builds?job_name=tempest-full-py3-opensuse15

Change-Id: Iae7ec150fb51d7e9d019182223062e6462084617
2021-11-03 15:54:52 -05:00
Zuul
a693e066b3 Merge "Fix typos" 2021-10-20 00:01:42 +00:00
Zuul
ff8e3d4a0a Merge "Add libpcre3-dev/pcre-devel to bindep.txt" 2021-10-13 17:31:31 +00:00
Zuul
9e12eb6501 Merge "Update qcow test to use qcow2 instead" 2021-10-13 11:41:34 +00:00
Andre Aranha
947e541fc0 Update qcow test to use qcow2 instead
qemu-img package for Centos 8 doesn't support qcow disk format anymore,
due to this, tests using qcow are failing with
`Unknown file format 'qcow'`.
This patch updates the qcow tests for qcow2 instead.

Closes-Bug: #1946457

Change-Id: If488ae4299a6cab521eec9c5e9ce4f29f94057e1
2021-10-13 10:31:27 +00:00
Zuul
9b30e7fe0e Merge "Use singular they instead of "he/she" where possible" 2021-10-13 08:00:17 +00:00
Cyril Roelandt
0ca2f92161 Fix typos
Change-Id: I5e7776324c01e467799b1296c35b84dc0c10cce2
2021-10-13 03:02:52 +02:00
Zuul
46fb37112c Merge "Use single quotes in image policies" 2021-10-12 21:50:29 +00:00
OpenStack Proposal Bot
5e28820195 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I568a92201793a0907f1d45f547a551c38cac00f4
2021-10-11 06:49:59 +00:00
Zuul
56cc683055 Merge "trivial: Double quote check_str for consistency" 2021-10-06 23:20:29 +00:00
Cyril Roelandt
88d586f038 Use singular they instead of "he/she" where possible
Change-Id: I5a30a62f8d62e2c97c30e795317e95c207e196b9
Closes-Bug: #1946166
2021-10-06 15:33:46 +02:00
Cyril Roelandt
8436401b60 Remove dead psutil-related code
When we moved from psutil 1.x to psutil 2.x, we needed to have code that
supports both version for a little while. We are now enforcing the use
of psutil>=3.2.2, so we can safely get rid of the code tailored for
psutil<2.

Change-Id: I409d7e079acbfdc5bf4ef8236f99eaa00c29ba40
2021-09-28 21:04:21 +02:00
Cyril Roelandt
6bfe0a9737 Add libpcre3-dev/pcre-devel to bindep.txt
This is required to run "tox -edocs".

Change-Id: Iba9b5c660628bae77708911ef0459992e01c93c4
Closes-Bug: #1870205
2021-09-28 20:11:25 +02:00
Lance Bragstad
37696e8c55 Use single quotes in image policies
The oslopolicy-sample-generator wraps strings in double quotes, which
breaks with the glance sample policy file since it's using double quotes
to evaluate strings.

This commit fixes the issue so that we're using single quotes in the
check strings so oslo.policy can wrap them with double-quotes and it
won't break yaml parsers.

Change-Id: I4f4553d91e58047c05ea853a8eb3764376338a45
2021-09-23 12:59:11 +00:00