Commit Graph

8856 Commits

Author SHA1 Message Date
Kevin Benton
6f455aa398 Reverse order of get_unused_ip_addresses
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
2016-07-18 07:00:46 +00:00
Kevin Benton
a70710bb36 Don't enable DHCP on floating IP subnet tests
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
2016-07-08 15:24:38 -07:00
Jenkins
d519cb7195 Merge "Factor up (most) CONF value in clients.Manager" 2016-07-07 10:44:07 +00:00
Andrea Frittoli (andreaf)
de5fb0cf58 Factor up (most) CONF value in clients.Manager
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
2016-07-06 23:54:26 +01:00
Jenkins
617e65ac03 Merge "Making delete_on_termination configurable" 2016-07-06 14:18:36 +00:00
Jenkins
d9266a13d3 Merge "Add available params in subnets client's comment" 2016-07-06 14:18:25 +00:00
Jenkins
e1570f3a5d Merge "Add available params in networks client's comment" 2016-07-06 14:09:05 +00:00
Jenkins
83da4f5d74 Merge "Extend server schema for extended volume attribute" 2016-07-06 13:06:20 +00:00
Jenkins
6e9a2e5a16 Merge "Disable file injection by default" 2016-07-06 11:19:25 +00:00
Jenkins
5d5488ecb6 Merge "Add documentation for glance api" 2016-07-06 10:27:47 +00:00
Jenkins
f81f5b5cc6 Merge "Tempest: Fixed a typo" 2016-07-06 10:27:38 +00:00
Jenkins
613cdbc320 Merge "Fix minor details in README" 2016-07-06 08:52:35 +00:00
Jenkins
d2f46265c1 Merge "Update quickstart for revised temepst init setup" 2016-07-06 08:50:51 +00:00
Lv Fumei
294846c0d3 Add available params in networks client's comment
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
2016-07-06 14:21:29 +08:00
Lv Fumei
fbfe20f5c0 Add available params in subnets client's comment
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
2016-07-06 14:10:12 +08:00
Jenkins
6afd72d074 Merge "Remove duplicated identity v2 clients" 2016-07-06 00:29:02 +00:00
Jenkins
a1f2ebe6ff Merge "Fix test_project_create_with_parent" 2016-07-05 22:19:05 +00:00
Jenkins
90c0779f06 Merge "Backup create using force flag" 2016-07-05 22:14:57 +00:00
Puneet Arora
9ed4104ee9 Tempest: Fixed a typo
Change-Id: I03e97fb446431adc1f113327ca54ae523a10602c
2016-07-05 20:00:07 +00:00
Matthew Treinish
dced423202
Fix minor details in README
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
2016-07-05 14:31:57 -04:00
Matthew Treinish
531b01c017
Update quickstart for revised temepst init setup
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
2016-07-05 11:25:26 -04:00
Andrea Rosa
c4b0e0091b Making delete_on_termination configurable
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
2016-07-05 14:25:45 +01:00
Jenkins
0b2c35e3d7 Merge "Add purge flag in image_meta_to_headers" 2016-07-05 12:53:29 +00:00
Jenkins
66483ceacc Merge "Restriction on sequence of allowed address pairs" 2016-07-05 10:37:22 +00:00
ghanshyam
da566b99a2 Extend server schema for extended volume attribute
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
2016-07-05 19:34:32 +09:00
Jenkins
7030633ab1 Merge "Use find_test_caller in test_utils instead of in misc" 2016-07-05 08:17:19 +00:00
Rodrigo Duarte
49b387ab78 Fix test_project_create_with_parent
The cleanup was being done in the wrong order, we can never try
to delete a project with children.

Change-Id: Ib2a3934d0698a1223e368d03f5671989120901f7
2016-07-04 17:16:12 -03:00
OpenStack Proposal Bot
b002833f41 Updated from global requirements
Change-Id: I7373cde724ca25b844e15eac3d33a5cb805040db
2016-07-04 17:29:23 +00:00
Jenkins
236954be0c Merge "Add parent_id to create_project" 2016-07-04 16:04:06 +00:00
Jenkins
6fddc299d8 Merge "Fix teardown of the identity api" 2016-07-04 13:58:59 +00:00
Matt Riedemann
0baba7096a Disable file injection by default
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
2016-07-04 08:47:35 -04:00
zhufl
43488a5d9a Add purge flag in image_meta_to_headers
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
2016-07-04 15:55:52 +08:00
Jenkins
c7f4d2bd2a Merge "Cleanup tempest quickstart" 2016-07-02 14:23:08 +00:00
Jenkins
68ab4d0a16 Merge "Add basic tempest run instructions to the quickstart" 2016-07-01 19:43:58 +00:00
Jenkins
0d6c4c2163 Merge "Add support for specifying a config file to tempest run" 2016-07-01 19:43:26 +00:00
Matthew Treinish
ab77cbfb72
Cleanup tempest quickstart
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
2016-07-01 15:15:43 -04:00
Ken'ichi Ohmichi
20a1d1144d Remove duplicated identity v2 clients
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
2016-07-01 12:03:21 -07:00
Gyorgy Szombathelyi
edb0a3b8fd Fix teardown of the identity api
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
2016-07-01 13:35:14 +02:00
zhufl
88c89b52aa Use find_test_caller in test_utils instead of in misc
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
2016-07-01 18:09:05 +08:00
Jenkins
6406a4432d Merge "Adds clone/snapshot volume test for create volume" 2016-07-01 09:36:57 +00:00
Jenkins
0720ebc26b Merge "Tidy up document index page" 2016-07-01 08:37:34 +00:00
Jenkins
9ca03f8670 Merge "Fix subunit describe calls utility document warnings" 2016-07-01 05:23:16 +00:00
Matthew Treinish
85c8e3e60d
Add basic tempest run instructions to the quickstart
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
2016-06-30 19:41:36 -04:00
Jenkins
e73c981024 Merge "Add support for workspaces to tempest run" 2016-06-30 23:07:30 +00:00
Matthew Treinish
30c9ee51e8
Add support for specifying a config file to tempest run
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
2016-06-30 18:28:08 -04:00
Erlon R. Cruz
8dbbc297b4 Adds clone/snapshot volume test for create volume
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
2016-06-30 17:13:06 -03:00
bkopilov
cb1c629746 Add documentation for glance api
Added links for available params for glance v2 api.

Change-Id: I25d32ba3f2ebabc8132470d098ca2703c9f9eac6
2016-06-30 22:54:45 +03:00
Jenkins
ff4f588628 Merge "Add plugin registry generation to sphinx build" 2016-06-30 11:43:32 +00:00
Jenkins
61b82bf236 Merge "Add whitelist and blacklist file options to tempest run" 2016-06-30 01:15:36 +00:00
Jenkins
aaff550eda Merge "Fix search disk name for the config_drive in scenario test" 2016-06-29 19:59:23 +00:00