summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-07-26Force a GET operations on cloudify APICédric Ollivier1-0/+2
Cloudify is considered as running by the client but sometimes it failed when listing secrets right after. It adds that check in cloudify.py. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/functest/core/singlevm.py", line 391, in run if not self.execute(): File "/usr/lib/python2.7/site-packages/functest/opnfv_tests/vnf/ims/cloudify_ims.py", line 119, in execute secrets_list = self.cfy_client.secrets.list() File "/usr/lib/python2.7/site-packages/cloudify_rest_client/secrets.py", line 113, in list response = self.api.get('/secrets', params=params) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 252, in get timeout=timeout) File "/usr/lib/python2.7/site-packages/cloudify_rest_client/client.py", line 233, in do_request 'SSL, but the client does'.format(e) ConnectionError: ('Connection aborted.', BadStatusLine("''",)) Change-Id: Ie1b25ff529cfbf9f7476821499da369a46126e81 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit c4c3a33b9e6ae87c15331bf95e5544f0f680e4f0)
2018-07-26Publish cloudify scenarioCédric Ollivier1-0/+77
It eases deploying any vnf via Cloudify. It also stops duplicating code between vims and vrouter. Co-Authored-By: Valentin Boucher <valentin.boucher@kontron.com> Change-Id: I5fe06d91804f4781f6b1301da12862bac793ffbb Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com> (cherry picked from commit 4c32f394e4ca9058ca69571754ff15156149251d)
2018-07-26Set swift_operator_role if requiredCédric Ollivier2-1/+26
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> (cherry picked from commit bafbd217c68c70ae66e052833c3e33298b35da0c)
2018-07-22Revert "Temporarily disable Snaps CreateRouterSuccessTests"Cédric Ollivier1-10/+7
This reverts commit 7786a54c5abe32380468a924f77895b573c576d3. Change-Id: I53e5f0073191079ab41a8159df2001ff9745da5a 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 95dcfcad2edd90ccde2b40281dab7464f6555237. Change-Id: I969fb6b4b4808b98af01a5820f029e345daa3f10 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-18Delete the right dir when building functest-vnfCédric Ollivier1-1/+1
It reduces a lot the size of the docker image. Change-Id: Ifd577169697b33dfd89594e8dd3afe4aa34ec7f9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 2dcec69c4e9ed34d7046afa694e738c040be02e9)
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> (cherry picked from commit 59ba5abb31018282bca796ee0c0652d61192c6bf)
2018-07-13Force new project.id when creating new usersCédric Ollivier1-0/+2
Else it raises side effects when both project.id and project.name are defined (see Apex [1]) [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/148/console Change-Id: I98665ed55a55fdd02e25d8ad17b78d84548b0ec8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit ff0ae3f577311611f8c7ad9ef21370c439e8565b)
2018-07-12Protect vs former interface formatCédric Ollivier2-4/+15
Compass still set publicURL [1] [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-fraser/lastFailedBuild/consoleFull Change-Id: I88c6ca336a7017f97f4c07719156e567d1afb9df Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 06b9ace7a0333d723972502ab3ce5784b6cba689)
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> (cherry picked from commit 8b912cec489a96178fcac5667c03e20850149c3a)
2018-07-11Reuse the right detected role nameCédric Ollivier1-4/+8
It completes "Try to get Member or member role" [1][2]. [1] https://gerrit.opnfv.org/gerrit/#/c/59661/ [2] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/144/console Change-Id: Ib38b513906b08d6f85834e03f5415e83b66b733b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 1222e8c0f3699c5d74c54df11e5cdf00fd468b59)
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> (cherry picked from commit bf39607ee1128f6a9b46c37c0a8ac1e582d39ea5)
2018-07-11Clean all possible resourcesCédric Ollivier7-29/+54
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> (cherry picked from commit 6166caffe31888ef237874fdcaf088ac4ff8d003)
2018-07-11Cover vping_sshCédric Ollivier3-2/+125
Change-Id: I37c52057a45d76e081a1a0145baee96041ca25a5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 98d1a3d8b9beae43f2dacdc79309c39c2435feed)
2018-07-11Fix delete_keypair argCédric Ollivier1-2/+3
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> (cherry picked from commit e2e68a3806dc89fdc35cc7925b2c6c4118d5569d)
2018-07-11Check the status of inherited stepsCédric Ollivier5-6/+15
Change-Id: If63c228f2844194279b560515f4ab24a4ee88be0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 4fb7e1330137fb77ed1b29bbc7c1491b6e12d9b6)
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> (cherry picked from commit f83c5fc1f0ecd3b93a39b3cf90ed9cd478cb37a6)
2018-07-11Update rally image name regexCédric Ollivier2-1/+13
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> (cherry picked from commit 8c5703e4e2382f7091aa7f8008d65ce68fa0bf56)
2018-07-11Print all debug messages in a second fileCédric Ollivier1-8/+8
All modules are allowed to print in functest.debug.log. Change-Id: I9c0be258dba985c9d3171bc2d324464e41e1c584 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit b1f50e31dccb8fa3badd61c57ec76b8b4abb4510)
2018-07-11Try to get Member or member roleCédric Ollivier1-1/+4
Keystone roles are case insensitive and Apex declares member which couldn't be detected. Then conflict occured when creating the mandatory role [1]. It now searches the default role in lower case too. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/141/console Change-Id: I687ecfe768ab4717fdb42a135c4bf9b76733ffd9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 4f89564b20e9c3462614706a616d469540631786)
2018-07-10Define one logger per key moduleCédric Ollivier1-3/+69
Snaps is printing lots of error messages which makes user confused. It will decrease the size of functest.log. Change-Id: I2c7d8ec968350563fbfbd62dcc2fc39b13b39a78 Signed-off-by: Cédric Ollivier <ollivier.cedric@gmail.com> (cherry picked from commit 3f4e49c480ac9a72c76c7c8435caad2fcf81abf0)
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> (cherry picked from commit 74c4e99c18d00d80ce7a2c2f0c36e656a842b966)
2018-07-03Get aarch64 image metadata for cinder and vping testcaseDelia Popescu1-1/+17
Image metadata for cinder and vping tests is no longer set for ARM Change-Id: I2ab8e6ce55c6e619b96e49ecec7afe727a902345 Signed-off-by: Delia Popescu <delia.popescu@enea.com> (cherry picked from commit c944ba0ae455c57e268f687128a9332ea3351e11)
2018-07-03Abort vping_userdata test if IP address is missingJuha Kosonen1-0/+4
Do not start checking the result of ping test if the first instance has no IP address. JIRA: FUNCTEST-976 Change-Id: I2da3154e63a6a97f86efe8274be84abc437aa133 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com> (cherry picked from commit 34ba453f1924f0d3ccd54d38db82fe008ab40442)
2018-07-03Create Member role if requiredCédric Ollivier1-1/+11
It seems there is no common role configuration between OPNFV installers. Then it creates/removes the expected role if required. Change-Id: I38a92e2522a401f46a59813b9e9443a11d6c7060 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit b3916af1754e02bb952b431a36c70b0c3aee9a0a)
2018-07-03Inherit rally from VmReady1Cédric Ollivier10-378/+133
It also fixes clean(). Change-Id: I42d1305d5cdb5a717cfa7fce26798ac7102310f7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 43d6672e637a5b5b68ac4c382140996b4b9b17da)
2018-07-03Update patches for all tests based on scenariosCédric Ollivier1-0/+43
Change-Id: Iff7fd8e6c14bdfb67ae146c5be1e073673a951d8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 780ca99c712cf6c94147bfc72095fba61768e74b)
2018-07-03Fix role name for tenantnetworkDelia Popescu1-1/+1
Role name _member_ is no longer available The test returnes OpenstackCloudException that role _member_ is not found Change-Id: I37c8dfe6c4da04009ccabbc49e12c2123d92832b Signed-off-by: Delia Popescu <delia.popescu@enea.com> (cherry picked from commit 7597d0af5d3e25e9f0eccc74eb4e904f3389332d)
2018-07-03Add dedug data when creating project/userCédric Ollivier1-0/+2
https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/127/console Change-Id: I233cef05560eba5f238b0eea3e2c56cb3c882931 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 6a3328b3e9d77810b725e96d21a225283396cfcf)
2018-07-03Force the use of public endpoints in shaker.pyCédric Ollivier1-7/+9
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> (cherry picked from commit 192cdecb5d7ed16641d1c5520450be38e9e0f166)
2018-07-03Improve scenarios to reduce duplicate codesCédric Ollivier5-363/+126
Change-Id: I71f79b9ac8314ac979d4b1009f662baa7c93a4fd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit d2bf2e00eaedb5113f4baee3a707aa026dd1c18d)
2018-07-03Fix hardcoded valueCédric Ollivier1-1/+2
Change-Id: I070e1404a4b0dba4733f38e2de32e1fa77254ddc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 9927a930bd77b7be7fa079472838f0c9f10e1c13)
2018-07-03Decrease the log level when connecting in singlevmCédric Ollivier1-2/+2
https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/172/console Change-Id: I0fd3bb833d306626c0eb6393fff3d0fca0579100 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 92bbc5c3e4f84ee141cdf5cc78d296e27f246124)
2018-07-03Fix user/project create operationsCédric Ollivier3-28/+39
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> (cherry picked from commit c717c43b1257e126296a4b1d697c8f6a72728855)
2018-07-03Update tempest to inherit from VmReady1Cédric Ollivier4-160/+95
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> (cherry picked from commit 9ef0bcbeb22ca70ff2ceb750c08fb24e46a9d0ea)
2018-07-03Publish vmready scenariosCédric Ollivier2-118/+186
It will simplify code in juju_epc, tempest, etc. Change-Id: I195ae1d7d75f1c2f2eba76ae3c5307153e9b9759 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit b2824f4dc2f32731667e2cf511635dc885d08be9)
2018-07-03Publish singlevm scenariosCédric Ollivier2-0/+284
They ease creating all ressources to execute command in a new VM reachable via ssh. This scenarios should be reused by other more advanced ones (shaker, vping, cinder, etc.). Change-Id: If23866827c64a7afbdd8ff596dbc33710ee4ee20 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 0f6c31a434873068e6c3bfecf31930536bf59d2f)
2018-07-03Publish tenantnetwork scenariosCédric Ollivier2-3/+202
They ease creating all tenant network ressources. These scenarios should be reused by other more complex ones. Change-Id: I4ce1872065bde92408d34f2ca8823ce98275d8d5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 979161874ba837f55a53aba391966c52433123e6)
2018-06-29Update release notes for 6.2.0Cédric Ollivier6-167/+167
Change-Id: I140b02cb0b7c991f0818b7d3e3447e8485e923ee Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-27Modify config_patch.yaml according to the new snaps configopnfv-6.2.0Cédric Ollivier1-0/+4
It allows verifying ovs scenarios via snaps. JIRA: FUNCTEST-984 Change-Id: I0fedadc0b9e265c424ae3221469b8d28b9a68afa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 06caf7c89f3a49185e9b9c1cfe40720b25ee2bc2)
2018-06-27Config flavor metadata via functest - docs updatePanagiotis Karalis2-0/+14
Related to the merged patch : "SNAPS via functest with flavor metadata configurable" Functest documents are updated accordingly. Change-Id: I874f041935f64b7240a5ec5de6e9c89b0f4a09fd Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com> (cherry picked from commit a62dc183e6a916095b31f22a294d8f81306bf23b)
2018-06-27SNAPS via functest with flavor metadata configurablePanagiotis Karalis3-13/+18
The required data for the SNAPS flavors are sent through the config_functest yaml file in order for the SNAPS scenarios to be configured accordingly. If the config_functest yaml file includes empty flavor_extra_specs or there is not included this parameter, the SNAPS scenarios will be executed using the hardcoded value. Change-Id: I4ef46d1fe93497d658414170a72c4520d8f37808 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com> (cherry picked from commit 5a94beb62293151ef6f4e94ed500579de1f3673e)
2018-06-27Revert "Stop rolling snaps (bypass bugfixes)"Cédric Ollivier1-1/+1
This reverts commit 5c6b1b4710f2a69f11a1ccb1c699f7c8c3616290. Change-Id: Ifcdf508f792741f947dee6c8eed1ff5dd57ab3cc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-18Add minimal docstings in clearwater_ims_base.pyCédric Ollivier1-1/+14
It will allow forcing 10/10 in any new patchset. Change-Id: I4cc52a9fb66fdd2c0dcbf9915be262acedac8672 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit f1353fff60344b01c588d9724b3b1de819cbe661)
2018-06-18Mock os.makedirs() in test_odl.pyCédric Ollivier2-3/+7
os.makedirs() is called before calling robot.run. Change-Id: Id651428343510683cd616d8101d22a73ccbf3dad Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 383ed86699816f633f007c515338d0fa022bf4fc)
2018-06-18Fix pylint warnings in clearwater_ims_baseCédric Ollivier1-7/+9
Change-Id: I663bd2826e43ce888990b012df27ca94e2d49a8d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 020ac360117ad3dffceef7286b2a4888664f5cf4)
2018-06-18Fix invalid method names in vnfsCédric Ollivier2-9/+8
Change-Id: Icff1a53ffd7b59d46543b79571b45872a9f243c3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-06-13Fix result parsing in cloudify_imsCédric Ollivier1-2/+2
The previous regex failed when errors are listed [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-fraser/194/console Change-Id: I57c8bfb8968555c3d43267a06f2bb9a2b95a3268 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit da3c805f8829f67d4d4154cd24f322ccf516b450)
2018-06-10Update cloudify-rest-client to 4.3.2Cédric Ollivier3-3/+5
Change-Id: I8ac0becb57897233c2a12781dc022d9fdfd32f85 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 776eccccedbd560e8be332504bfa3cdfcbdc66e3)
2018-06-09Select the right quaff repoCédric Ollivier1-2/+2
Change-Id: I0aa090bf1f8c6220918ebc1b041bab4a43d444b5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 759cd4bb92e171b16af5c6c1206352b92096d596)