Winstackers project has been retired
- https://review.opendev.org/c/openstack/governance/+/886880
this commit removes the content of oswin-tempest-plugin
deliverables of this project
Change-Id: I489d36a539cb943c1d7216390e469a471719a2cf
Update docs building and cleanup:
* Switch to sphinx-build
* Update requirements for Sphinx and openstackdocstheme for
python 3, remove oslosphinx which is dead, create
doc/requirements.txt file
* Remove unneeded doc and translation sections from setup.cfg
* Remove install_command, it's unneeded, the default is fine.
* Move constraints into deps, use TOX_CONSTRAINTS instead of obsolete
UPPER_CONSTRAINTS
* Switch to hacking 3.0, fix problems found
Change-Id: If3c5094d7fbdc9033851024c8e3ae364e4768521
Ceilometer API was removed in Queens, meaning that test_metrics has
not way to validate the metrics collected by the ceilometer-polling
agent.
The metrics are instead sent and collected by Gnocchi.
This patch adds a Gnocchi client, and updates the test_metrics
to use this client properly.
Change-Id: Id999d758505de10abb356befb854736e1904f6ee
This test suite verifies that the instance metrics are properly published
and collected and have non-zero values. The verification is done via the
ceilometer API.
Waiting for the ceilometer compute agent to poll the resources is crucial,
otherwise the test suite will fail due to the fact that no samples would
be found published before checking the samples.
The ceilometer agent's polling interval should have the same value as
the test suite's polled_metric_delay. This can be done in two ways:
a. Configure tempest's polled_metric_delay, by adding the following
line in tempest.conf, in the telemetry section:
polled_metric_delay = <desired value>
b. Set the interval value in pipeline.yaml on the compute node to the
desired value and restart the ceilometer compute agent.
The second method is preferred, as the interval value defined in
pipeline.yaml is 600 seconds, which would mean each test would last
at least 10 minutes.
Change-Id: I2ad696c221fba860a30621686b464b8486bea583
Python allows multiple inheritance, which we use in order to mix and
match test scenarios and actions.
Python performs method resolution as follows:
- checks if the method is defined in the current class.
- if not, check parents, left to right.
Since all tests have test_base as its left-most parent, all methods
are resolved in test_base, which is not the desired behaviour. This
affects optional_feature mixin in particular.
Change-Id: I19d3bdef85a12ef45b600aa4fc68afd390b96c9f
Splits the _ResizeMixin into _ResizeMixin and _ResizeNegativeMixin.
Not all test scenarios have negative test scenarios (the cluster tests).
Change-Id: Icab2ebe1233f1bcf4f469d141a8046a5bbbed38e
test_cluster overrides the test_base's _create_server method, but
it does not respect its signature, leading to issues when flavors are
passed to the method.wq
Change-Id: I6cb0a279bbff653369591246749874b315ed33ab
A new config group is being added, allowing specifying WinRM
credentials to be used when accessing Hyper-V hosts. This will
also allow setting a transport type other than 'plaintext'.
At the same time, this change adds a new helper method that may
be used in order to run commands on the Hyper-V hosts.
Change-Id: I5852154d8275ebd36785bcf56899da3257f1a5a8
This test checks if secure boot feature can be turned on or off for
booting a machine with secure boot capabilities.
Change-Id: I22be6d01edb5428f612e838fde6289a2c1319caf
When an asymmetric NUMA topology is required, all the NUMA
cells have to be explicitly described.
Nova will reject a request to build / resize an instance if it doesn't
fit into the available NUMA topology. If the compute nodes only have
1 NUMA node, an instance spanning 2 NUMA nodes cannot be built.
Change-Id: I054ad6f567771f12ccf92f690ecd9bb18c4fa532
If the configured flavor has a disk size of 1 GB, the negative
resize test will fail, because the nova API does not allow
resizing disks to 0 GB.
This patch will instead create a bigger flavor, and resize to the
vanilla one.
Change-Id: I733dab539a3b97a16d0dd14a9bc294c1446c5131
The lowest limit for disk usage for Hyper-V instances is 8 KB/s.
Setting it that low, however, can lead to some test timeouts, as
the VM may fail to finish booting in time.
Increases the QoS limit to 1 MB/s.
Change-Id: Iedc8f1add74e4c299f76613a622976b348f278f0
Mixin does a live migration and checks if old host is different
from destination host.
Mixin is used in test_cluster.py and test_vnuma.py.
Change-Id: Ia647b78b24feeba4e6b74ed08a21e8ac0955920d
This test checks if RemoteFX feature can be turned on or off.
Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>
Change-Id: I2fbab9e43a577c5a6509df8fcca7a71de8806ad1
Hyper-V VMs can be clustered, making them highly available.
We can force a VM failover through WinRM, causing the VM to
restart on another host. For this, the Hyper-V hosts must have
WinRM enabled.
A VM must have network connectivity after the failover,
and operations (resize, migrate, etc.) must still succeed after failover.
Adds the following config options:
- cluster_enabled (default = False)
- username
- password
- failover_timeout (default = 120 seconds)
- failover_sleep_interval (default = 5 seconds)
Adds HyperVClusterTest.
An optional feature can be defined as a feature that can be turned
off / on through resize (e.g.: vNUMA, RemoteFX, QoS, SR-IOV, PCI
passthrough).
Adds _OptionalFeatureMixin, which contains the following test cases:
* test_feature
* test_resize_add_feature
* test_resize_remove_feature
Adds HyperVvNumaTestCase.
The mixin contains code and tests necessary in order to test
different scenarios / features with cold resize.
The mixins will ensure that the Feature classes they are mixed
into will still behave properly after cold resize.
The mixin contains code and tests necessary in order to
test different scenarios / features with cold migration.
The mixins will ensure that the Feature classes they are mixed
into will still behave properly after cold migration.
Adds the following config options under the "hyperv" section:
- hypervisor_version (the compute nodes' hypervisor_version)
- vhd_image_ref
- vhdx_image_ref
- gen2_image_ref
Adds tests for VHD, VHDX, Generation 2 VM images.