If a test author forgets to disable DHCP on a subnet
used for a test (e.g. I17e201ef8822cace86bf805d6bd5a2e4d0e9084d),
returning the first IP address in the subnet can race with the
creation of the DHCP port. As a defensive measure this adjusts
the logic to get unused IP addresses starting with the last
addresses in the subnet instead.
Change-Id: I31b9fcc9140de08e907bec08584a8c29ec6004e9
The test 'test_create_update_floatingip_with_port_multiple_ip_address'
creates a port with multiple fixed IPs by retrieving unused IP addresses
and then assigning them.
Change I84195b0eb63b7ca6a4e00becbe09e579ff8b718e adjusted the unused IP
selection logic so it now picks IPs close to the start of the CIDR so there
is a potential race with the IP for the DHCP port. (the previous logic chose
IPs at the end to avoid this)
This patch just disables DHCP on the subnet since it's not needed for the
tests to avoid racing the DHCP agent.
Change-Id: I17e201ef8822cace86bf805d6bd5a2e4d0e9084d
Closes-Bug: #1600398
Factor up CONF dependencies from the client manager class, so
that the part of it independent from CONF and unstable interfaces
can be moved to the manager base class, and be useful to external
consumers (such as plugins).
An helper function is defined in config.py to help extract from
configuration the parameters relevant for service client __init__.
This is used for Tempest own service clients and will be used by
plugins as well.
Partially-implements: bp client-manager-refactor
Change-Id: I19cdcf6f84144f6b1b0223a41a52f5b6e4b8fdd1
Some interfaces in networks client have **kwargs parameter, but no api
reference links are given. so this is to add "Available params" in their
comments.
Change-Id: I34a8bbe92326f1f37554838a00932aaf712b2a33
Some interfaces in subnets client have **kwargs parameter, but no api
reference links are given. so this is to add "Available params" in their
comments.
Change-Id: I770cf5cce2c532b914db74742bc86629db43ae60
This commit makes 3 updates to the README. First it adds a link to the
official documentation at the top of the README. We've had a number of
bugs filed where people think the docs are broken because github
doesn't understand sphinx directives in its rst rendering. Including
a link to the openstack hosted logs will make it clear that the docs
output is only via sphinx. The second cleanup is adding an internal
link to the tempest configuration guide in the quickstart. The
quickstart alludes to configuring tempest, but never actually provides
an explanation on how to do it. Adding the link to the configuration
guide should clear up any potential confusion. The last change here is
removing the external shield images from the readme. These raise sphinx
warnings (which we want to stop), and violate at least one distros
packaging process for questionable value.
Closes-Bug: #1589428
Change-Id: I0f797478624df704c03a00bc3fae89bfcea5799a
This commit updates the quickstart to reflect reality when using
tempest init. The quickstart documented our original ideal expectation
of how things worked, but because of python packaging limitations we
had to adjust it's behavior. However, the quickstart was never updated
to reflect this change.
Change-Id: Icbc0c005a344c25b7ab7d3fd059a9401747eca3f
Closes-Bug: #1598882
In the compute.create_test_server method the delete_on_termination
parameter for the block device mapping is hard coded to be True, this
change allows to pass it as keyword argument, if it is not passed we
keep True as default value.
Change-Id: I38fea4c9e0aca0d0c2fb97fd7d323c4e808ae050
extended volume attribute adds the 'id' in
'os-extended-volumes:volumes_attached' but JSON schema only check
the type array.
We should check 'id' with additional property false. Because v2.3
version adds another attribute in this response which can be strongly
verified on previous versions.
Change-Id: Icf6148017cdbc4f48d3ef9a964ee39fedda72b4e
The cleanup was being done in the wrong order, we can never try
to delete a project with children.
Change-Id: Ib2a3934d0698a1223e368d03f5671989120901f7
Nova change 9ce99a44cf85e431227536e2251ef05b52e61524 disabled
file injection with the libvirt driver by default back in Icehouse.
With nova change Ieb0f64847e31622bd86d1c5f4672c37b3a89f197,
requesting file injection on a host that disables it will result
in a failure.
Tempest should also disable file injection by default since the
entire stack has to be configured properly to test this.
Change-Id: Ibcf7f87feda86242de17c035fd62a86aabebf919
Closes-Bug: #1598581
When calling image_client_v1's update_image with "purge" flag,
it raise 400 Bad Request with message "Bad header: x-image-meta-purge-props".
This is to add purge transform in image_meta_to_headers to support purge flag.
Change-Id: I2a30c2fc746701805f9e9cc77068c7eaa17dbcb8
Closes-Bug: #1597591
This commit cleans up some of the tempest quickstart to have a better
flow, use consistent terminology, and clean up some wording and
formatting.
Change-Id: I889cf6d4ba92adf3b8bf185265c5ce197009c998
On the commit I3c09396f36a82d484de226cfe27848b6916cb636 , we kept
these clients intentionaly to avoid breaking the other gates.
Now we are ready to remove them by putting patches on
https://review.openstack.org/#/q/status:open+branch:master+topic:use-tempest-lib
Change-Id: I769e09771e28119a19d3462b233518ba5ae7426e
Depends-On: I74a5d5ed43f758b88a22ded293d85d046005d41f
Commit 03f09f989b removed the
_try_wrapper function, which added ['id'] to all wrapped objects.
Re-add this to correctly pass the id of the object to the delete
functions, instead of the whole object.
Change-Id: I29b4995c8599e6906b40fc14f0977302b649cc65
find_test_caller is now moved from misc to test_utils, but there
are still some calling to find_test_caller which will cause "WARNING
tempest.lib.common.utils.misc [-] tempest.lib.common.utils.misc.
find_test_caller is deprecated in favor of tempest.lib.common.
utils.test_utils.find_test_caller".
Change-Id: Icbd4c7a45677b4bb031fc40d6b47dd6a72af6f02
This commit adds details for using tempest run to execute tempest tests
to the quickstart guide in the readme.
Partially-implements: bp tempest-run-cmd
Change-Id: I7c5b51e4f055424fa62b1b262b2d1c96918e46eb
This commit adds a new cli option --config-file for specifying where
the tempest config file lives on disk. This adds the final execution
mode to tempest and enables running tempest from anywhere including
outside of a workspace or tempest repo. It does this making a temporary
.testr.conf on disk (which it cleans up) and a .testrepository (which
stays for history).
Change-Id: I74ae79147244d60bd0ddd9cc460900f3ab69f3f0
Cinder supports creation of volume from snapshot, image, or another volume as
source. In the case of snapshots and volume sources, its allowed that the
created volumes are bigger than the source. Cinder has had several backends
that has this checking broken. We need to have this tempest test running in
Cinder CIs to identify possible bugs and test submitted fixes that meant to fix
those bugs.
Co-Authored-By: Marcus V R Nascimento <marcusvrn@gmail.com>
Change-Id: I829c0e6f99fff0ec0bd5366c9d2e79b1b073f0a3