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
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
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
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>
This is the same as the 'range' keyword in Python 3
Change-Id: If3aa008522c24e870b7bf13de32b8ed1b27cb519
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
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
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
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>
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
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
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>
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
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
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
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
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