Commit Graph

35 Commits

Author SHA1 Message Date
Ghanshyam Mann 0976964257 Retire oswin-tempest-plugin: remove repo content
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
2023-09-09 12:30:57 -07:00
Roman Popelka 9b090f1d7a Remove create_keypair method
As tempest.scenario.manager was announced stable interface in Tempest 27.0.0[1] it can be now reused in plugins.

Replaced methods:
	* create_keypair

Etherpad concerning this effort:
https://etherpad.opendev.org/p/tempest-scenario-manager-cleanup

[1] https://docs.openstack.org/releasenotes/tempest/v27.0.0.html#release-notes-27-0-0

Change-Id: Ib540c643882e7dc656c81b9fe9e113ee569a5fd2
2022-03-08 11:22:50 +00:00
Andreas Jaeger 801924705c Update docs building, cleanup
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
2020-05-03 11:55:53 +02:00
Claudiu Belu dac28d1334 Fixes test_metrics test
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
2018-02-22 01:52:54 -08:00
Zuul f1f2f8c29a Merge "Adds metrics collection scenario" 2017-11-21 11:13:55 +00:00
Claudiu Belu bce179882a Adds metrics collection scenario
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
2017-11-16 14:02:53 +00:00
Claudiu Belu cfe2ef1600 sets test_qos hypervisor version to 6003
Hyper-V disk QoS is supported on Windows / Hyper-V Server 2012 R2
or newer.

Change-Id: I981347ecfcba59e89c8d7537cda00a0d20e0e124
2017-09-11 14:41:23 -07:00
Claudiu Belu ab50a17aff Fixes tests method resolution
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
2017-09-07 05:18:02 -07:00
Claudiu Belu 975fe2382d Deduplicates optional_feature tests
The optional_feature mixin's tests can use the _check_resize
helper method, reducing the code duplication.

Change-Id: I3e3c9be1fe5ba3629e9c7b8db4917c421ce7bd71
2017-09-07 11:36:45 +00:00
Claudiu Belu 49f63c77d3 splits the resize mixin into two
Splits the _ResizeMixin into _ResizeMixin and _ResizeNegativeMixin.
Not all test scenarios have negative test scenarios (the cluster tests).

Change-Id: Icab2ebe1233f1bcf4f469d141a8046a5bbbed38e
2017-09-07 01:36:07 -07:00
Jenkins 727c9981cf Merge "Fixes flavor ref usage" 2017-09-07 08:35:00 +00:00
Claudiu Belu fb70f974b2 Fixes flavor ref usage
The test_base's _get_flavor_ref method should be used
when a flavor ref is required. Optional features rely on that
method, as it adds the optional feature as a flavor extra_spec.

The optional_feature's _get_flavor_ref should use the class' _FLAVOR_REF,
not the CONF.compute.flavor_ref. Some tests might require a different
flavor (secure_boot tests).

Change-Id: Ie7f0b0f20fe76a7df5a9b60c8f4c290e810eb2df
2017-09-06 16:22:24 +00:00
Jenkins efcec59cfa Merge "Fixes wsman's methods" 2017-09-06 14:40:51 +00:00
Claudiu Belu 1d804fdf2c Fixes wsman's methods
In a previous patch, a few extra arguments were added to
wsman's functions, but the argument names were a bit inconsistent,
or not passed correctly. This patch addresses this issue.

Change-Id: I93ee19248bb8fd511d3a42265d936cd2fff2839f
2017-09-06 04:23:28 -07:00
Claudiu Belu dbdca9de9f Fixes test_cluster _create_server method
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
2017-09-06 03:56:26 -07:00
Jenkins f83c7e2ea1 Merge "Update WinRM config options" 2017-09-06 10:37:30 +00:00
Jenkins ccf4693683 Merge "Add secure boot optional feature test" 2017-09-06 10:37:21 +00:00
Jenkins 0620e74ce2 Merge "Add Live Migration Mixin" 2017-09-06 10:26:57 +00:00
Alexandru Muresan ef51813201 Update WinRM config options
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
2017-09-05 10:30:59 +03:00
Alexandru Muresan 4f383d6843 Add secure boot optional feature test
This test checks if secure boot feature can be turned on or off for
booting a machine with secure boot capabilities.

Change-Id: I22be6d01edb5428f612e838fde6289a2c1319caf
2017-09-04 14:17:48 +03:00
Claudiu Belu 45e252c159 Fixes vNUMA resize negative test
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
2017-09-01 14:59:00 +00:00
Jenkins 7467321d6a Merge "Fixes disk resize negative test" 2017-09-01 14:01:34 +00:00
Claudiu Belu 6e1bb25132 Fixes disk resize negative test
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
2017-09-01 13:09:00 +00:00
Claudiu Belu 76fe6540d2 Increase the test_qos disk usage limit
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
2017-08-31 11:53:12 -07:00
Alexandru Muresan 11f87904b2 Add Live Migration Mixin
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
2017-08-31 14:55:49 +03:00
Claudiu Belu fb57b6104e Fixes optional_feature's test_resize_remove_feature
The test was supposed to create a VM having the configured feature,
and then remove it through resize.

Change-Id: I2c9984f49412ad36f71c4e9da81a6fd6edcf0e43
2017-08-29 14:41:05 +00:00
Alexandru Muresan b3f383b62b Add RemoteFX optional feature test
This test checks if RemoteFX feature can be turned on or off.

Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com>

Change-Id: I2fbab9e43a577c5a6509df8fcca7a71de8806ad1
2017-08-09 16:50:53 +00:00
Alexandru Muresan ddc4157b33 Add qos optional feature for disk I/O operations
This test checks if qos feature can be turned on or off for
disk I/O operations

Change-Id: I60626e8d53eaa5d11fff5111c0cde91008669bdd
2017-08-09 08:42:43 +00:00
Claudiu Belu 4212a327ee Fixes flake8 and unittest errors
Change-Id: I4398a098da08ed8e086edac86fe8d68a06cf8eda
2017-07-31 02:46:46 -07:00
Claudiu Belu 763348b367 Adds Hyper-V Cluster scenario
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.
2017-07-18 03:27:54 -07:00
Claudiu Belu baa1ef318b Adds OptionalFeature mixin and vNUMA test case
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.
2017-07-18 03:26:48 -07:00
Claudiu Belu 696da58fde Adds cold resize Mixin
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.
2017-07-18 03:26:48 -07:00
Claudiu Belu 136ef0ac9d Adds cold migration Mixin
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.
2017-07-18 03:26:48 -07:00
Claudiu Belu 7f0fa003af Adds first basic tests and config options
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.
2017-07-18 03:26:43 -07:00
Claudiu Belu caa38fbc51 Apply Tempest plugin cookiecutter 2017-06-22 15:05:58 -07:00