We are going to release Tempest new tag which work with
the stable/2024.1 constraint so use that in the tox env.
For example: if anyone use Tempest new tag in future say
1 year later then tox env also should use the 2024.1 contstraint for
compatibility instead master.
These need to be move back to master constraint once release is done.
Change-Id: I4e8fe7650f088ecbbbb279c35f8931c71de4ece1
Glance did not initially support the vmdk-with-footer image format,
but will after it moves to the oslo version of format-inspector. So,
skip this test if it fails, to account for older versions.
Needed-By: https://review.opendev.org/c/openstack/glance/+/927291
Change-Id: Ieb20fc63ccc65769778e6303bd321837dc57169f
This makes the image import format test not skip ISO and assert that
the import conversion process does not change it from iso to something
else.
Depends-On: https://review.opendev.org/c/openstack/glance/+/923676
Change-Id: I2e88b0a086838d68055ac9a5808b84c8dc1efc2e
Nova originally did not support vmdk-with-footer and the test asserted
that fact. Now we need to fix nova and have this test work with both
fixed and non-fixed code. Since the tests are not split by image
format, we can easily skip in the case where an image is marked as
usable, but fails in a known way, which will allow us to pass the
job with and without a fixed nova.
Change-Id: I71268fa915055300e1cb42e592bc62a1f276d733
Currently when aggregating potential target hosts via
get_host_other_than, it's hostname filtering only addresses the suffix
'-ironic'. In the event that pattern is located within the hostname e.g.
nova-cell1-compute-ironic-compute-0, then it will still be used as a
target candidate. Update tempest to allow for a configurable hostname
pattern to filter on when searching for candidates.
Also updated additional testcases that are still using the suffix only
check when removing guests with ironic in the name.
Change-Id: If5bab817e04412512186be2195cd2437bd310980
Glance previously would fail to import ISO images because they could
not be converted by qemu-img. The proper behavior is to give them
special handling and leave them as ISOs without failing, so that
people can use things like web-download to ingest ISOs into glance.
However, the current test asserts that they fail (status=queued) so
we need to skip that case until glance fixes that feature and then we
can test it properly here.
Needed-By: https://review.opendev.org/c/openstack/glance/+/923676
Change-Id: Ia29d4ab7ab923c37db2779255958c4c4da8e8997
This adds tests to make sure that nova rejects invalid image formats
and also rejects any format when the disk_format does not match the
image content.
Change-Id: I29b1af0a4034decad3d6ec0191460c251a745300
This tests our image format samples against glance's import
conversion routine and asserts that it rejects unsafe and unusable
images. Note that glance does not support conversion from iso/udf,
which is called out here in the test.
Depends-On: https://review.opendev.org/c/openstack/glance/+/923624
Change-Id: Ibda8ea567bc81d21add3f72d8e620b34c8726136
This implements testing of image formats based on the sample images
in os-test-images. We should be able to assert that formats we accept
are allowed by glance and formats that we do not are rejected.
Note that glance currently does not do enough of this validation, so
not nearly enough of the unusable samples are currently rejected,
but this will serve as a base from which to start implementing and
testing that in glance.
This adds testscenarios as a dependency and uses that utility along
with the load_tests() protocol to generate test scenarios from the
manifest file. This results in separate tests for each image format,
without us needing to manually add those cases (and without the risk
of missing some because we don't).
Depends-On: https://review.opendev.org/c/openstack/devstack/+/925425
Change-Id: I4536b6b36b23071447ea8efbfcd2b3a313414034
When running tempest cleanup --prefix, there is an issue with
cleaning up keypairs, because of incorrect listing of them. This
issue is solved by setting the right dictionary key.
Change-Id: I81da575b0f40d2f04440a322b3b694f332c5d58e
Zuul can do better resource allocation if it learns early that a job
will fail even when tests haven't completed yet. This is done by adding
a regular expression that will match on a single failing test within a
tempest run. The regex is copied from what the zuul project has already
been using successfully for some time.
Change-Id: I8c9488a55d04e32384d1523a9658a8711b05c340
The first item of image.disk_formats and image.container_formats
tempest options is used by default if the options are not
specified by the person runnig tempest.
The most likely format to be used and supported are bare and qcow2,
so let's switch to those as default options.
Also, move raw to the second place of disk_formats because
a specific test (test_list_images_param_disk_format from the
tempest.api.image.v2.test_images.ListUserImagesTest class)
requires an image in raw format, but its initializer only
creates a subset of the images (only the first 6 (!) items
of all combinations of container_formats and disk_formats)
which means that raw should be in the first 6 combinations.
Change-Id: Iab3e5205e2ec6cd5a253715ff87853b2805e4819
We are working to get support of new location APIs in glance,
where we are adding hash calculation mechanism once the image
location is added. Since new location api is async,
we need to wait for the task to finish before performing the
cleanup else we will fail due to the existing bug [1].
[1]: https://bugs.launchpad.net/glance/+bug/2045769
Change-Id: Ibde7620c9388fdbc93f741e38c9d63fca44a1bbb
This patch adds a test for verifying that hostname allows
FQDN and can contains periods in hostname starting API microversion 2.94.
This patch also verifies hostname from the metadata api and also checks
hostname allows character length above 64 .
Also, adding a config feature flag dhcp_domain to set the suffix in
order to verify the hostname correctly .
Relates to : https://review.opendev.org/c/openstack/nova/+/869812
Change-Id: If92d4b469bfff4b205801bdd5ea8fd943942b943
These tests can be removed now, because the identity v2 API was removed
from Keystone during Queens cycle and Queens is no longer supported
by current master of tempest.
This also deprecates the related options so that we can drop these
options later.
Change-Id: I0be2273890cecaa26da37624c185c1bd367b2acf
This patch fixes the incomplete cleanup of unit tests for
`record_resources()` function. These unit tests are tied with the
tempest cleanup --resource-list option. The issue was the creation
of None file and resource_list.json file while running unit tests.
Closes-Bug: #2070449
Change-Id: Id8ff96606b30d52ad4c8a6bd31bcb09ae03cc963
`http_image config` option of `image` section is still referring
to old cirros image `cirros-0.3.1-x86_64-uec.tar.gz`.
Updated it to use new cirros image `cirros-0.6.2-x86_64-uec.tar.gz`.
Change-Id: I55e2fbd062c476e839fe8404bae18e918e745bc5
Current http_image config format downloads tar.gz image which is no
more useful since recent changes in glance to fix CVE-2024-32498.
It will fail to import the image using web-download method as we
anticipate disk-format is qcow2 but it's not. Same it will further
fail if image_conversion plugin is enabled in the environment.
Introduced new config parameter http_qcow2_image which will by
default has reference to qcow2 image.
Change-Id: Ic07a55edc9a0ae713265220c9711f3dee48093fc
Recent changes in glance to fix CVE-2024-32498 causes some tests
to fail because those tests assumes disk-format is qcow2 or ami
but it is actually raw and fails to detect the format.
Change-Id: Id92cbcece145426ec95c46649a2f11c3d19ad4bd
This change adds 30mins to the timeout to account
for timeouts on slow nodes and gather more data.
once stabilised we should consider
enabling zswap, or adding more swap to account
for OOM issues thereby allowing a higher concurrency
to reduce overall execution time.
Change-Id: I9529f554acb5b67401ed1cb8700a916c7131ec02
This patch adds a test where we test the following workflow:
1. Create image
2. Create a bootable volume from Image
3. Launch an instance from the bootable volume
4. Take snapshot of the instance -- which creates the volume snapshot
5. Delete the image
In the above workflow, steps 2 and 3 are performed together as we
create the instance as volume backed providing the image ID to
instance create call.
Change-Id: Ie9c27e7e7305147b7081c5f1dcc8f1631081fda5