aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/openstack
AgeCommit message (Collapse)AuthorFilesLines
2018-07-31Print stderr in logs when calling cmd over sshCédric Ollivier1-2/+3
Change-Id: I152ac898661a0e99a6232df86689c70c468ceaa5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-31Switch create_server timeout to default valueCédric Ollivier1-1/+0
60s was successfully reached when running all containers (3 containers * 3 branches) in parallel. It also removes the wait attribute (the current impl will meet a possible next asynchronous design) which is useless here. For the time being, only cloudify needs an extra timeout. Change-Id: Ic7741b4c1a3223be076fb69ef70a3cb6c05456c2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-30Delete alt images before removing the accountCédric Ollivier2-2/+2
Else it could raise unauthorized exceptions [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/188/console Change-Id: Ia9b857069f775e2c8ecc5e07cf39b3a1fb7e3540 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-27Stop redirecting output to json filesCédric Ollivier1-15/+10
Rally may print additional data to console which results in an invalid json files. The json files are generated via rally instead of dumping stdout. It's mandatory to backport the next bugfix [1] in stable/fraser. [1] https://gerrit.opnfv.org/gerrit/#/c/60265/ Change-Id: Ifbd90e685a7b52c70b3110a46e3c7991eddc05f4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-24Merge "Revert "Temporarily disable Snaps CreateRouterSuccessTests""Cedric Ollivier1-10/+7
2018-07-24Protect vs OS_TENANT_NAME or _ID in shakerCédric Ollivier1-1/+4
It fixes the possible mismatch if both OS_TENANT and OS_PROJECT are set [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/lastFailedBuild/console Change-Id: I66b6e3cf30a34aff1234da00cdd6b40da92089e5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-23Detect admin or Admin roleCédric Ollivier1-1/+7
As Keystone roles are case insensitive, Admin is checked as well. Change-Id: I28a611add7890c3188a289d1e24c043d88c34ea1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-23Create heat_stack_owner if requiredCédric Ollivier1-0/+11
It allows testing OpenStack Queens and older [1]. It will be improved in a second change for latest OpenStack releases (if deprecated). [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/174/console Change-Id: I6e91e8c45d335aa606370c35b0a03b990e22c165 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-22Revert "Temporarily disable Snaps CreateRouterSuccessTests"Cédric Ollivier1-10/+7
This reverts commit 74c4e99c18d00d80ce7a2c2f0c36e656a842b966. Change-Id: I6fdfd080e0e3b46e1d65b992e680daefe260add9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-22Revert "Temporarily disable HOT including OS::Nova::FloatingIPAssociation"Cédric Ollivier1-13/+11
This reverts commit 59ba5abb31018282bca796ee0c0652d61192c6bf. Change-Id: I87a01b828668123dc9d96f5ac7823686ff0fb10e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-21Skip Snaps testcases when OpenStack RockyCédric Ollivier1-0/+13
Snaps is testing vs OpenStack Queens following the traditional release track. Then Snaps testcases must be skipped vs OpenStack master as deployed by Apex. Snaps isn't compatible yet with the last Cinder changes (API microversions) which is out of its current scope [1]. [1] http://artifacts.opnfv.org/logs/functest/lf-pod1/2018-07-19_05-29-02/functest.log Change-Id: I1e93527d9c87eb11bf7fd0cc9d04597614d32370 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-20Increase create server timeout for shaker testDelia Popescu1-1/+1
Change-Id: Ie0fdfd2bbd93952bcd35a30c96b7980ffeb0d87c Signed-off-by: Delia Popescu <delia.popescu@enea.com>
2018-07-20Cover cinder testcasesDelia Popescu1-3/+4
JIRA: FUNCTEST-908 Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ie9662877cba89ea96de4403ee2b736c118a044d5 Signed-off-by: Delia Popescu <delia.popescu@enea.com>
2018-07-18Increase timeout when creating serversCédric Ollivier1-0/+1
It takes times to prepare disk on compute nodes (spawning). The default value is enough for all cirros VMs but it has to be increased for all cloudify VMs (4.1G). Change-Id: I3f1fc0142a73c586e9219a2718bfc467cc48e275 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-17Set filename_alt in tempestCédric Ollivier1-0/+1
Change-Id: I9137ee30bd2107ec23ef6cfea92ccfc5f010410d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-17Leverage cloudify_ims on CloudifyCédric Ollivier2-7/+2
It also defines 2 new methods to avoid duplicating code: - TenantNetwork1.get_public_auth_url() - VmReady1.publish_image_alt() Shaker and Tempest are updated as well. Change-Id: Ie9095c57c580b95f067d5a8275ad71818b4df335 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-16Rename Patrole config fieldsCédric Ollivier1-2/+2
Else it conflicts with the new tempest config fields [1]. It makes sense to switch to includes here. [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-virtual-daily-master/566/console Change-Id: If7b3025b4003ea5704c6a3cdeae8cd00f1c5509e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-15Temporarily disable CreateInstanceSingleNetworkTestsCédric Ollivier1-6/+7
It can only work if tests are executed via admin (+default domain) [1]. [1] https://jira.opnfv.org/browse/SNAPS-322 Change-Id: I80dbb46a2197af77fe83ee8768f46bb70b2a810c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-15Dynamically skip neutron_trunk and barbicanCédric Ollivier3-27/+34
It avoids fasly testcases in failure for end users. It also removes the neutron_trunk class which is now useless (Queens). Change-Id: I3f5a1ac84a50e061da6eadcc5c9bafb2e99050db Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-14Set swift_operator_role if requiredCédric Ollivier1-0/+14
Apex creates member as default role which conflicts with the default swift_operator_role [1]. It detects the default role in lowercase as well and write it in rally.conf if required. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-virtual-suite-master/116/console Change-Id: Ic4dc98c793207fc32ff35852472742c92db6699c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-14Temporarily disable HOT including OS::Nova::FloatingIPAssociationCédric Ollivier1-11/+13
Change-Id: I31b76c5b3604845367c10f6e5d55c415042f6d47 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-12Handle certificate in shaker.pyCédric Ollivier1-1/+7
http://artifacts.opnfv.org/logs/functest/huawei-virtual2/2018-07-11_18-47-21/functest.log Change-Id: I9049a06031db2335410828ecb30e763077360bc3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-12Avoid duplicating tempest section in rally.confCédric Ollivier1-1/+2
Change-Id: I79598cce2c7dfe0a2e969ddd32735c3eb189fa7a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-11Add tempest section in rally.confCédric Ollivier1-0/+1
It completes the previous patch [1][2]. [1] https://gerrit.opnfv.org/gerrit/#/c/59681/ [2] https://build.opnfv.org/ci/view/functest/job/functest-compass-virtual-daily-master/555/console Change-Id: I93ad9db2c7a8a0691fed8bf58f5e21d8f3dc9c57 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-11Clean all possible resourcesCédric Ollivier6-18/+28
It checks all openstack resources before cleaning. It allows removing images even if the test fail quickly. Change-Id: I1763b8a70fa7ffeb03c435e8e775c7afd1a7adac Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-11Check the status of inherited stepsCédric Ollivier3-3/+6
Change-Id: If63c228f2844194279b560515f4ab24a4ee88be0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-11Force result = 0 if exceptionCédric Ollivier2-0/+2
self.result can be positive due to intermediary steps (scenarios). Else it can return false positives [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-virtual-suite-master/113/console Change-Id: Iecadee7f7380fda5273a0668aff1b441647c45aa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-11Merge "Update rally image name regex"Cedric Ollivier1-0/+11
2018-07-11Update rally image name regexCédric Ollivier1-0/+11
The default value doesn't conform with our image names. Else it downloads the image from internet which may be not possible (offline testing, proxy or deployment l3 issues [1]) [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-virtual-suite-master/113/console Change-Id: I7d951967784d591e7155fe8582299aaa9b680b10 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-11Run script only if volume device is foundDelia Popescu2-2/+2
Add back volume device name search on instance. If vol is not attached script should not run. In the current state, if volume is not found, write_data returns positive result and read_data cannot find any new file Change-Id: Ifaa8af1e6d5c66f5ac776c83bebde526e77a9fd8 Signed-off-by: Delia Popescu <delia.popescu@enea.com>
2018-07-10Force region to RegionOne if OS_REGION_NAME is unsetCédric Ollivier1-2/+2
tempest still selects the first one if unset [1]. JIRA: FUNCTEST-990 [1] https://docs.openstack.org/tempest/latest/sampleconf.html Change-Id: I238d47173c2c4aa1db694028e4d44b80b0e280f1 Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
2018-07-09Force public identity endpoint in ShakerCédric Ollivier1-1/+1
It conforms with our VNFs by calling public endpoints (from VM). It fixes by design the issues when testing Compass [1] due to export OS_INTERFACE=publicURL [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/180/consoleFull Change-Id: Iea15506ba5910879d05e61cfd20da2c0878e569b Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com>
2018-07-09Merge "Refactor tempest common"Cedric Ollivier6-379/+45
2018-07-09Add Vmtp as a new testcaseCédric Ollivier2-0/+153
VMTP is a small python application that will automatically perform ping connectivity, round trip time measurement (latency) and TCP/UDP throughput. JIRA: FUNCTEST-980 Change-Id: I8e94fc52a429f505ac14e14bbb9d0a3b20996ba4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-08Refactor tempest commonCédric Ollivier6-379/+45
It also renames two testcases and updates all docs because tests run in parallel in case of tempest smoke. To force one thread as before: run: module: 'functest.opnfv_tests.openstack.tempest.tempest' class: 'TempestCommon' args: mode: '^tempest\.(api|scenario).*\[.*\bsmoke\b.*\]$' option: - '--concurrency=1' JIRA: FUNCTEST-989 Change-Id: I1348f5908400a5046be8edf983db4afa12e546c3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-08Merge "Cover vping_ssh"Cedric Ollivier1-2/+0
2018-07-08Temporarily disable Snaps CreateRouterSuccessTestsCédric Ollivier1-7/+10
The test could be falsy regarding the possible external network configs [1]. This patch will be reverted as soon as the bug is closed [2]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-fraser/246/console [2] https://jira.opnfv.org/browse/SNAPS-320 Change-Id: I680656b300f0d669e8d96bec6c94a4a804ebbecb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-07Cover vping_sshCédric Ollivier1-2/+0
Change-Id: I37c52057a45d76e081a1a0145baee96041ca25a5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-06Fix delete_keypair argCédric Ollivier1-0/+1
It uses keypair name instead of id as expected by Shade. It also increases timers as it boots an ubuntu VM. Change-Id: I8cd131e7c7a94c8f6b0fcc54a4d75ef8af31b807 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-05Set timeout for create, attach and detach volumeDelia Popescu1-4/+9
Without timeout for volume opperations the testcase will fail only after functest timeout Change-Id: I669c7933846574c09fc7db06a2a2ce7d101a44f5 Signed-off-by: Delia Popescu <delia.popescu@enea.com>
2018-07-02Merge "Inherit rally from VmReady1"Cedric Ollivier2-129/+16
2018-06-30Inherit rally from VmReady1Cédric Ollivier2-129/+16
It also fixes clean(). Change-Id: I42d1305d5cdb5a717cfa7fce26798ac7102310f7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-29Remove floating ip of second instance in cinder testcaseDelia Popescu1-1/+1
Change-Id: I30e30f1d35bb83984b63d7308331fc7bfee53955 Signed-off-by: Delia Popescu <delia.popescu@enea.com>
2018-06-25Remove list_zones() which requires dnsCédric Ollivier1-1/+1
Change-Id: I271545a654a1a508c8b47a3fa4dcf72ad314a154 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-25Implement connection_check via shade tooCédric Ollivier4-44/+59
SNAPS connection_check tests are merged into api_check. It would ease debugging deployment as well [1] [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/127/console Change-Id: I30254a46c3dc6874881d687e36903c6b7878d63d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-24Force the use of public endpoints in shaker.pyCédric Ollivier1-7/+31
It now leverages on the new user created and gets the public endpoint. Change-Id: Iead106e614a73708cb13e33b49a2f438766a3056 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-24Fix hardcoded values in cinder_testCédric Ollivier4-331/+55
Only Fuel attaches a kdrive in all cases and then increase the device numbers. cinder_test now leverages on VOLUME_DEVICE_NAME as tempest. It also updates the testcase to leverage on the right scenario. Change-Id: Ib5cd17f69411f608f1b79e704604dc481581ebe0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-24Improve scenarios to reduce duplicate codesCédric Ollivier5-323/+42
Change-Id: I71f79b9ac8314ac979d4b1009f662baa7c93a4fd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-23Fix user/project create operationsCédric Ollivier1-3/+8
os_client_config creates a singleton which forbids the previous processing. It also cleans remaining resources and allows publishing public images (needed by Tempest) Change-Id: I3a0ad8664b263d3ee8599efe2973465006d5750b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-22Update tempest to inherit from VmReady1Cédric Ollivier3-146/+47
It also copies tempest.conf due to side effects raised by Barbican plugins. Change-Id: Ie87680f5d2e68527a5a61aac302838afc339dde8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>