summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-01-20Fix one typo in docstring (tempest.py)Cédric Ollivier1-1/+1
Change-Id: I46053c92660139f4004d9cec8d1cfb6817cc0e07 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit bf976b4f606860630ffa967fe70a36a7e5954828)
2019-01-20Take control over Rally logicsCédric Ollivier1-4/+25
Rally selects the first external network [1] which could raise side effects if: - another testcase is creating a dummy external network in // - all external subnets are not reachable from jumphost It's now overriden by EXTERNAL_NETWORK as defined in Functest Rally creates a new shared network if one already exists [2]. As juju now allows other shared networks, it can be safely created by Functest to allow only one logic and to handle provider networks, different name servers, etc... [1] https://github.com/openstack/rally-openstack/blob/master/rally_openstack/verification/tempest/config.py#L146 [2] https://github.com/openstack/rally-openstack/blob/master/rally_openstack/verification/tempest/context.py#L85 Change-Id: Icf8c08077d4b0a9eb1c2e1b7309c62957b0a3b63 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit ee52195f4476d3debf9c3f92c6d808256a199500)
2019-01-20Move logics out of TempestCommon.__init__()Cédric Ollivier2-22/+34
It conforms with best programming practices. It allows muting console and increasing log level (debug). Change-Id: I0e0cfef6abe3b354a43817fcb242c71da701e237 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit b482b494ce695e83cca0a10e7750200fd1be42ea)
2019-01-14Remove fds in Gambia jjbsCédric Ollivier1-1/+0
FDS didn't participate to Gambia. Change-Id: I3b1c43bc729587616c4aff999738e96ec7f88b47 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-01-14Remove former ci jobsCédric Ollivier5-437/+0
They can now be generated via the new ansible role. Change-Id: I7746d08b940e8d6906cb023c39bc87d8dee441cc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 12023f6a1a040c07f805553a1f5c65ab3940d638)
2019-01-07Check if key exists instead of leveraging on update_if_existsCédric Ollivier1-5/+12
It seems falsy (see line 72) 2019-01-07 11:50:32,550 - functest.core.cloudify - DEBUG - try 9: Cloudify Manager isn't up and running Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/functest/core/cloudify.py", line 72, in execute "foo", "bar", update_if_exists=True) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/secrets.py", line 86, in create response = self.api.put('/secrets/{0}'.format(key), data=data) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 263, in put timeout=timeout) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 224, in do_request verify=self.get_request_verify(), timeout=timeout) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 158, in _do_request self._raise_client_error(response, request_url) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 119, in _raise_client_error response=response) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 131, in _prepare_and_raise_exception status_code, error_code=error_code, response=response) CloudifyClientError: 409: <Secret id=`foo` tenant=`default_tenant`> already exists on <Tenant name=`default_tenant`> Change-Id: I6f4e2719ad2e55e997ebbd158dce4c6a204b2c36 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 73f4aee1a22e502a7775a9be43829174f18fbc84)
2019-01-07Print traceback as debug during cloudify triesCédric Ollivier1-2/+4
The traceback is printed as debug to avoid priting the first unsuccessful tries in console. It will ease debugging issues as for [1] [1] https://gerrit.opnfv.org/gerrit/#/c/66253/ Change-Id: I89992ea4452b24788cc06dec4c384a263b704efb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 9ba1fe31f31a3381eef29d820c688feb2c51a7cb)
2019-01-07Prevent from CloudifyClientError (key already exists)Cédric Ollivier1-1/+2
It has rarely occured in Orange Openlab [1]. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/functest/core/cloudify.py", line 70, in execute self.cfy_client.secrets.create("foo", "bar") File "/usr/lib/python2.7/site-packages/cloudify_rest_client/secrets.py", line 86, in create response = self.api.put('/secrets/{0}'.format(key), data=data) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 263, in put timeout=timeout) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 224, in do_request verify=self.get_request_verify(), timeout=timeout) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 158, in _do_request self._raise_client_error(response, request_url) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 119, in _raise_client_error response=response) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 131, in _prepare_and_raise_exception status_code, error_code=error_code, response=response) CloudifyClientError: 409: <Secret id=`foo` tenant=`default_tenant`> already exists on <Tenant name=`default_tenant`> Change-Id: Ic61d0c729f13caa552a0b0a00dad35e50d130e01 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit b8a115906e4f6e598e7e1f1b59e2b1fb201af6a5)
2019-01-07Merge "Publish "Functest on steroids" (Plugfest-Gambia)" into stable/gambiaCedric Ollivier3-0/+230
2019-01-06Switch from port to dport in site.ymlCédric Ollivier1-1/+1
port is reserved in ansible Change-Id: I87842857514e8fb589e565ece83552418a93c550 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 0f440f10bd1567c76720e106813908e01f288ad4)
2019-01-06Publish "Functest on steroids" (Plugfest-Gambia)Cédric Ollivier3-0/+230
It will be completed by demos: - deploy your own Functest CI/CD toolchains (Functest bot) - deploy your own CI/CD toolchains for your test case - run Functest on Raspberry PI The presentation is avalaible in [1] [1] http://testresults.opnfv.org/functest/gambia/ Change-Id: If69f11a3f7dde070e3af0f8a5b082b5ec1443bbb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6a31d033b8aef014e62cf6f94f2f98358ed99b90)
2019-01-05Update reveal.js to 3.7.0Cédric Ollivier1-0/+0
Change-Id: Id15b52df33897447221283166a4a1d1249a38774 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 7e6262c1acb6556611c05c63ddd61421cf57ec35)
2019-01-05Conform with new tag configsCédric Ollivier2-26/+54
It allows generating gate jobs. Change-Id: I741da199bca7617e73eb1e4638fcb4139b872141 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit eaaec1d3083ba4d579a77345de219409048ee9d7)
2018-12-27Disable nose html output pluginCédric Ollivier2-2/+0
It doesn't run vs py36. Change-Id: Ief5b6ac58a1c2e8aa840362433d94d403e6b52c5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit f89763ed82a429e83a903895eea037bd1c8bd064)
2018-12-27Update Xtesting to 0.61Cédric Ollivier2-64/+101
It now generates html reports for unit tests (snaps). Change-Id: Ica8fab2b383723957c1068c5accbcab9568002ac Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 98ee1837b939f32c2c3bc17787065d0bf0a22c3f)
2018-12-20Select Rocky for Neutron Rally jobsCédric Ollivier2-2/+2
It fixes our gates (the testcase was developed just after OpenStack Rocky). Change-Id: Ic1eac9a54115a56c60e609faea818989cd2bfce8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-12-19Fix Gambia's ansible/site.ymlCédric Ollivier1-5/+5
Change-Id: I67a8514d76b33a3e7fda51d7f7d2ca329b784916 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-12-19Fix nits in ansible/site.ymlCédric Ollivier1-5/+5
Change-Id: I83cd8a7994a1aab9411a8a5b94aee51f23fc5c3c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-12-18Verify Ansible playbooks via ansible-lintCédric Ollivier2-1/+7
Change-Id: Id8b4553f5d36a52086433f00ce9f846a30212d66 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 471d030673b2008502c3f5d83d1a16743695bcf4)
2018-12-18Allow pulling Neutron reviews or tagsCédric Ollivier1-2/+4
It updates smoke/Dockerfile to allow pulling Neutron reviews/tags (rally_jobs). Change-Id: Ifc10eebb444bfe2c3e1fb47a9bd52d8a4f8a7007 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 2d0c8cb6eaf10b7c712335beb79fae726ea3a965)
2018-12-17Deploy Functest CI toolchainsCédric Ollivier1-0/+78
It eases verifying OpenStack by deploying the full testing toolchain via Ansible. As opposed to the Releng model, all tests can be executed in parallel. It leverages on Xtesting Ansible role which currently deploys Jenkins, Minio and S3www and loads all jobs in Jenkins. Last components (MongoDB, TestAPI and dashboard) will be deployed in the next update of the ansible role. To deploy the testing toolchain: $ ansible-galaxy install collivier.xtesting $ ansible-playbook ansible/site.yml Change-Id: I260806c1d19562891d2ed9c52ba37a82bf60792e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 800802114f822eb9be7bfe06c929b655148ff197)
2018-12-16Fix NEUTRON_RALLY_TAG in smokeCédric Ollivier2-2/+2
It also fixes rally task name in config. Change-Id: I4f6fbbef814a5b45aeb3b6152878421fc6e998bc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 58df8ab5544a5bfff43dc6c4a2546194299a7734)
2018-12-07Remove duplicated code in vnfsopnfv-7.1.0Cédric Ollivier7-243/+130
It mainly leverages on functest_utils instead of duplicating. Change-Id: I97dc9215a835d3e7f1527b565132f667f09f2b7e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 555956f1d19800114a6f422de78816859aaa7bdc)
2018-12-01Remove Snaps NovaUtilsInstanceVolumeTestsCédric Ollivier1-5/+1
It doesn't clean its resources and then breaks the gate after multiple runs. It's the only way as Snaps is inactive and pinned in Functest. Change-Id: I5bb8707edaf998b91b8d5642b48465d4247cf8e7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 2e278acd3797f71d04500b3e9892a1769044b682)
2018-11-25Fix an invalid class name (vGPU)Cédric Ollivier2-3/+3
Change-Id: Ifff9eff1984846937920124ad0a7790e20593b25 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d263576bd9961b4177080ff75844d0ed47dc886a)
2018-11-25Stop cleaning roleCédric Ollivier1-6/+3
Functest may create default role if member doesn't exist. It cannot be removed at the end of the testcase as it raises side effects when testing in parallel. Change-Id: Ief552f450a34b4aeda045b0c5d5f237ed77f3643 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 79771aaf65fd6eb93e318c472d72d5fad6561bf1)
2018-11-17Rename Rally blacklist.txt to blacklist.yamlCédric Ollivier3-1/+3
It eases editing it or verifyfing it via yamllint. Change-Id: I380830eff5f404745e284067b5a10f58dc60b80e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit f600874cef933a2077a51bb334365a861e6fbb48)
2018-11-15Switch to Clearwater Zamin (heat_ims)Cédric Ollivier2-4/+4
Zamin is declared as the first "stable" release. Cloudify descriptor is not ready for the update. Change-Id: Ibfd2e3a226e1a547dd8c4e32ff998bac007f10a5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3ac3d8d6f725b76ccb22a730cd802f36f75c8b90)
2018-11-14Protect vs build-args not consumedCédric Ollivier1-3/+8
BRANCH is useless in case of components which only inherits from tempest. The build could simply fail depending on the docker version [1]. [1] https://build.opnfv.org/ci/job/opnfv-functest-components-latest-build/1/console Change-Id: I7fe0c5bf8373e61a658153fda3d3a4bd233f6bc0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 284e30415fdec9c1a17c7f0b0b023fb0bbf045ce)
2018-11-13Add anchors in ci yaml filesCédric Ollivier3-72/+100
It eases foctorizing between releng (1 multijob only) and functest jjbs. Change-Id: I72deb86d155a1da7e0d8bf0f76992e7b6dd6cfad Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 891e997c96fc468494cef126e8b99cc0523c6acf)
2018-11-11Check if at least 2 hypervisors (Shaker)Cédric Ollivier1-0/+6
Shaker is now skipped if only one hypervisor. Change-Id: Ib3f803ab61e66e0daba0622ead0c1bf0905d0cce Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 07a5762fd3e929a50c49785f2e583dba20a0ba4a)
2018-11-10Check if at least 1 hypervisorsCédric Ollivier2-1/+7
Vmtp is skipped if only one hypervisor. As Vtmp returns 0 when all is skipped, it protects vs issues when generating charts. Change-Id: I5ea7c31c0688ae773425d2192a4f30a22360185f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 396b3d8a7a9036ae3a8a8443b489654d3a2dd3cb)
2018-11-07Merge "Disable agent testing in tempest-based testcases" into stable/gambiaCedric Ollivier4-3/+14
2018-11-07Remove snaps ansible test casesCédric Ollivier1-7/+0
They can't work vs all OPFV scenarios (MTU doesn't conform with Geneve) and are deprecated. Updating snaps commit id [1] breaks all gates closed to Gambia release. [1] https://gerrit.opnfv.org/gerrit/#/c/64515/ Change-Id: Ie4a7a694703642a74b731a4142a5c8c029f7e661 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 24a7b14c20ad96f10db0d8bfa6187c1b7c9737b9)
2018-11-07Revert "Update Snaps commit id"Cédric Ollivier2-2/+2
This reverts commit e06c0bd24fc99c5d411fd56d482cdbd8bb41bdf0. Change-Id: I110b0b82c5e2ec3fa869ee1e4deb74a869b9db06 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-11-06Disable agent testing in tempest-based testcasesCédric Ollivier4-3/+14
It blacklists agent testing and two tests asking for VXLAN as overlay if OVN (OVN supports GENEVE) [1] blacklist.txt is renamed blacklist.yaml and is verified by yamllint. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-gambia/33/console Change-Id: I73c1b8cbbd74973a7f15476feea6ee4532786660 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3b07c3e741e0e64603d01afc651176aa2fc52391)
2018-11-06Update Snaps commit idCédric Ollivier2-2/+2
It updates Snaps commit id to allow testing OVN [1] It should be noted Snaps doesn't create any stable branch. Then this patch can be cherry-picked asis in all branches. It takes the package renaming into account. [1] https://gerrit.opnfv.org/gerrit/#/c/64515/ Change-Id: I1dbfe9a68c8448d117b7b074cf2b4ac64b65e139 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 1c2663063db356cebd1d156abf89d47a15b4eb1e)
2018-11-06Merge changes If9b61064,I0490eade into stable/gambiaCedric Ollivier3-18/+1
* changes: Increase Vmtp timeouts Run vnfs in all scenarios
2018-11-06Increase Vmtp timeoutsCédric Ollivier1-0/+1
It now conforms with other testcases booting ubuntu images. Change-Id: If9b610646ee5dcb2eb002d74dff8e1a797a4f232 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 023a4c7d0cb85d3b624ee946097e721880169371)
2018-11-06Run vnfs in all scenariosCédric Ollivier2-18/+0
It allows fair comparisons between scenarios (e.g. ovs dpdk). os-nosdn-calipso-noha could be verified VNFs as well [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-gambia/32/console Change-Id: I0490eade81c531e38ce7156a61446a9fccaffb17 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 61b708cc0987bf48d07df9d46ed25e4b42c15efc)
2018-11-01Override tempest_conf.yaml in ci jobsCédric Ollivier1-1/+3
It also removes STORAGE_PROTOCOL (env var) which was removed. Change-Id: Ib0f388f20c52ebf2409d2aca0bcba5c641287b40 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit e715a8309122c3fa3b4983cfa53c82519dd6ead7)
2018-10-31Remove fds from Functest jjbsCédric Ollivier1-2/+0
Fds doesn't participate to Gambia. Change-Id: I8bf4da40caee572442a23d67036755a8746dcae5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-10-27Move tempest logics in tempest_conf.yamlopnfv-7.0.0Cédric Ollivier4-31/+16
It allows removing OPNFV logics out of Functest (releng) and then simplifies conf_utils. tempest.conf is filled by the current default values. functest-alpine.sh will be updated to allow modifying the default values without breaking the OPNFV installers. It deprecates the only tempest-related env var (STORAGE_PROTOCOL) Change-Id: I14bcb715826ef2d85af87e7af600261a3c08e72c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 3872290bb673513459588bbe83e65efc631615f7)
2018-10-26Temporarily disable Cinder volumes backup testsCédric Ollivier1-0/+3
From the time being, all OPNFV installers [1][2][3] don't support Cinder volumes backup. We will find a better way to handle the lack of OPNFV requiremements (these tests pass succesfully in Orange Openlab). At least, it will allow verifying tempest_full in OPNFV gates. [1] Apex: https://artifacts.opnfv.org/logs/functest/lf-pod1/2018-10-25_02-17-25/tempest_full/tempest-report.html [2] Compass: https://artifacts.opnfv.org/logs/functest/huawei-virtual9/2018-10-24_04-54-25/tempest_full/tempest-report.html [3] Fuel: https://artifacts.opnfv.org/logs/functest/lf-pod2/gambia/2018-10-25_05-57-54/tempest_full/tempest-report.html Change-Id: I319536070aa77a5dbab6a692a1d76049f75e758b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 7cf46992c7f3e854b038f6f17a279d65108aa764)
2018-10-26Temporarily disable VNC testsCédric Ollivier1-0/+3
At least Compass and Fuel configure Spice as console [1][2]. It disables vnc testing as it could fail for endusers as well. [1] https://artifacts.opnfv.org/logs/functest/huawei-virtual9/2018-10-24_04-54-25/tempest_full/tempest-report.html [2] https://artifacts.opnfv.org/logs/functest/lf-pod2/gambia/2018-10-25_05-57-54/tempest_full/tempest-report.html Change-Id: I2a1ecf345cb81170c1b1a3e49f8f3a58602fc3f0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit df9d5c5d3b80b613130de59a1810f7fce9cbbc0d)
2018-10-25Revert "Temporarily switch to collivier/abot_charm"Cédric Ollivier1-1/+1
This reverts commit 41177bc31389f923580278a0b914e511322961b2. Change-Id: Ic4e7f790ed084713eeb930d86f00af0989d46874 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-10-25Temporarily switch to collivier/abot_charmCédric Ollivier1-1/+1
It hosts a key fix which should be merged in the right repo. This patch can be safely reverted as soon as [1] is merged. [1] https://github.com/RebacaInc/abot_charm/pull/3 Change-Id: If98d163ecd2ce6b50c08d8dad886c0d4b2c39a34 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d2c129f8319503a8fabe5b87c71737845f06ab36)
2018-10-23Disable Glance API v1Cédric Ollivier1-0/+4
It has been deprecated since Newton [1]. Even if the related tests are skipped in latest tempest [2], API v1 has to be disabled in Gambia's tempest.conf [3]. [1] https://docs.openstack.org/glance/latest/user/glanceapi.html [2] https://artifacts.opnfv.org/logs/functest/lf-pod1/2018-10-22_02-34-24/tempest_full/tempest-report.html [3] https://artifacts.opnfv.org/logs/functest/lf-pod1/gambia/2018-10-23_10-34-07/tempest_full/tempest-report.html Change-Id: I3b6bb632412c0fecaa659da262760af64d79fa71 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit dddd8073c97ca09937504cb10c1a7be2a0986380)
2018-10-23Overprotect vmtp vs unversioned OS_AUTH_URLCédric Ollivier1-0/+4
It simply adds v3 to OS_AUTH_URL if required. Vtmp should be updated to manage unversioned url [1]. https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/371/console Co-Authored-By: Juha Kosonen <juha.kosonen@nokia.com> Change-Id: I4806e811c0714b061b77f940934830cfb1835d74 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 5ac878fe7cccbfe5cb829488d0aedc307dd42885)
2018-10-22Change dir when calling stestrCédric Ollivier1-2/+5
https://build.opnfv.org/ci/view/functest/job/functest-fuel-baremetal-daily-master/467/console Change-Id: Icaa773cf61397650e73a01b182a759dd64b11b95 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d1eed120e18ec456841a8df2f29e1711da0aa833)