As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).
Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.
Story: #2007865
Task: #40223
Change-Id: I1f8577e560fd3ffad0c3b6edfc4c74dddedfa719
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ia8fea320d8b09a89c999ace06769436a5335bcc6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
stestr is recommended by OpenStack Project Testing Interface for running tests
[1]. This change migrates to stestr for running unit tests and coverage
job. Modified `cover` env allows running it as Zuul job and visualising
its results in Gerrit.
[1] https://governance.openstack.org/tc/reference/pti/python.html#python-test-running
Change-Id: I9e8b79d7a18cd36946daff10abb1a2f43b1aa3a1
* All the telemetry related projects intree tempest plugins
are now moved to telemetry-tempest-plugin
Change-Id: I57738964f65495364dcc74821634d54aea1769fd
oslo.cache is only used in the Gnocchi dispatcher, and not at all in tests.
Therefore it seems wrong to list it in tests.
Rather than always depending on it, let's just put it in the gnocchi flavor.
Change-Id: I8990ba139bba0d573ecd4d8567a88d92acb29605
python-subunit is not used directly anywhere
and it is dependency of both testrepository
and os-testr.
Change-Id: I8e07f5d657696d850d04c7a6b65ae11c4030f836
Project documents are being reprocessed due to document migration[1].
Update the docs theme to openstackdocstheme instead of oslosphinx.
[1] https://review.openstack.org/#/c/472275/
Change-Id: I505d837cc4e60356497cd37a8c9a12f846ffdf0d
olso.mockpatch has been deprecated since I3efb3c64ebce396e756a47d110a74fe8604b6b72.
We now remove it in favor of native fixtures.
Change-Id: I28ebf3f672f736c15d8df035179fec80581e937f
Error handling of libvirt driver work 'sometimes'.
Some error are catched only with we lookup for a instance
uuid, but not for other libvirt operation.
This change rewrites the logic to catch libvirt error on
each inpector method. This ensures we catch all errors whatever
which libvirt method raises it.
We also leverage tenacity instead of the custom retry code.
Change-Id: Idd54c18ece42c2dce3baf82626d30d5c2e5a49d6
test.call_until_true has been deprecated since Newton on Tempest side,
and now Tempest provides test_utils.call_until_true as the stable
library method. So this patch switches to use the stable method before
removing old test.call_until_true on Tempest side.
Change-Id: If8985f511d434af0449992b2bc3540da9b3a0591
gabbi supports grabbing historical queries. leverage that so we
don't need to make redundant requests to grab same data.
Change-Id: If89f864e995bcba41dc45e57f5dcc73f30cc4120
This change leverages the Gnocchi Batch API by using it
in the Ceilometer dispatcher for measurements.
It introduces a small behavior change in the dispatcher.
The resource metadata update is now decorrelated from measures posting.
So, even if posting measurements fail, the resource metadata will
be updated.
Change-Id: I140e7301a31bbee50c2c8bc3ff2d78925680a573
This removes these tests because they:
1. Depends on httplib2 which is being deprecated
2. Test running of `ceilometer-api' which is anyhow tested in the
devstack functional testing.
Closes-Bug: #1556985
Change-Id: Ic5fd445c651e28a37ee3ec72fbb0894486af6be6
os-win is a library containing Windows / Hyper-V related code.
It contains utils modules that are used by nova, cinder,
networking_hyperv, os-brick. It also contains Hyper-V metrics
related utils, which can be used in ceilometer.
Adds os-win to requirements.txt.
Replaces the current usage of *Utils classes in the
Hyper-V Inspector with the equivalent *Utils classes
from os-win.
Adds decorators to the HyperVInspector methods that prevent
os-win specific exceptions to leak outside the inspector.
Depends-On: Ia937399c999d7293799a864a322323e3d2efc123
Depends-On: I1256b632be7aa90561338b595b9406c30f406c7c
Change-Id: Ic637e2a9c929cac88b1cb99f5b55dd70c4f84c47