aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf
AgeCommit message (Collapse)AuthorFilesLines
2018-04-17Set scp debug flag in juju_epcCédric Ollivier1-3/+3
Change-Id: Ic57d05416ac7c8bc459363ea479237101c22f27e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-14Print the stack traceback when cleaning juju_epcCédric Ollivier1-2/+1
Change-Id: If32557a4384cafd67b7c294f8c0592ee2769b1a5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-12Print the stack traceback when cleaningCédric Ollivier2-4/+3
Change-Id: I8279844f0e42378b4fe550696608054cd7418a12 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-11Precise vyos_vrouter logsCédric Ollivier2-4/+6
Aborting was written even if it worked after rebooting the vm [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-daisy-baremetal-daily-master/41/console Change-Id: Idb29624b8793df5d77d401b375aa3b3176778ddf Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-11Take all cmd status into account in juju_epcCédric Ollivier1-67/+88
It also puts output in functest.log instead of /dev/stdout. Change-Id: I3a4b5f81edd20a529821c5a684b3ab269b7c6796 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-04-11Remove obsolete apex processing in juju_epcCédric Ollivier1-18/+5
It has been useless since [1] was merged [1] https://jira.opnfv.org/browse/APEX-570 Change-Id: Id89b75d8cad9e180a02189450e13fa1e61b1239c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-20Stop redirecting dnsmasq messagesCédric Ollivier1-1/+1
Else dnsmasq is defunct: "dnsmasq: junk found in command line". It partially reverts "Mute log in vnfs" [1] from the time being to allow gating. [1] https://gerrit.opnfv.org/gerrit/#/c/54043/ Change-Id: I660904b9e542f776f554562df2808db751cb9d2e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-20Merge "Put TestResults.json in the right dir"Linda Wang1-7/+3
2018-03-19Put TestResults.json in the right dirCédric Ollivier1-7/+3
https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/26/console Change-Id: Icfdc0030d517b1885a94c2815aeb35257fdfd590 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-19Remove unused code in vyos_vrouterCédric Ollivier1-6/+1
Change-Id: I0fcfa886bfb5133d5e4b3face1e649e4cf8b9fc0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-19Conform with vyos descritor updatesCédric Ollivier1-0/+4
The new inputs [1] must be set else the testcase simply fails [2]. JIRA: FUNCTEST-936 [1] https://github.com/oolorg/opnfv-vnf-vyos-blueprint/commit/794f8a0594ed4c461c7d1d08d6b0ef9fb12004e2 [2] https://build.opnfv.org/ci/view/functest/job/functest-daisy-baremetal-daily-master/12/console Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I1113581feac7d4dc901ba197caed4fddd5994929
2018-03-17Mute log in vnfsCédric Ollivier2-19/+23
It also configures the nameserver when creating the subnet in juju_epc. Change-Id: I163ba99cd56f44ca3c3464398e182152b3ab74dd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-17Decrease log levels when trying to connectCédric Ollivier3-7/+7
Only the last attempt should be printed in console. Change-Id: Ic1ed5887195c98c64ade4558ac20ebd814e38bab Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-16Set project_name arg when creating usersCédric Ollivier2-1/+7
It also print snaps_creds to ease debugging [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-joid-baremetal-daily-master/22/console Change-Id: I5b0d0dcffe3e45d8fa7d1d7d8ce19172fc42aaa1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-13Bypass APEX-570 when publishing image metadataCédric Ollivier1-1/+8
This temporarily fix aims at testing juju_epc vs a non default region name [1]. It must be removed as soon as APEX is fixed [2]. It completes the previous patch which only modified credentials [3]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/lastFailedBuild/console [2] https://jira.opnfv.org/browse/APEX-570 [3] https://gerrit.opnfv.org/gerrit/#/c/53465/ Change-Id: I3e1e64ad7147ee5cdf899eb2500f8b825b818619 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-12Remove orchestra testcasesCédric Ollivier3-1244/+0
They are incompatible with Pike and they have to be removed without any deep update. The testcases will be re-renabled if updated before 03/16/18. Change-Id: Ibf656db6ba4177eae44feb41cd5d314b7408d4de Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-12Merge changes from topic 'refactor_tempest'Cedric Ollivier2-3/+3
* changes: Rewrite refstack testcase Fix many pylint warnings
2018-03-11Fix many pylint warningsCédric Ollivier2-3/+3
Only pylint warnings in vnf modules has to be fixed now. Change-Id: Ie71230072a51bb72ec0b1d4fef2652494d29948e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-11Bypass APEX-570 to allow gating juju_epcCédric Ollivier1-1/+9
This temporarily fix aims at testing juju_epc vs a non default region name [1]. It must be removed as soon as APEX is fixed [2]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/lastFailedBuild/console [2] https://jira.opnfv.org/browse/APEX-570 Change-Id: I0724b694efb43709d43da6a30e11d1daafee47d8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-08Remove duplicate ubuntu trusty/14.04 os imageValentin Boucher3-4/+4
VNF testcase use some Operating System image 2 of those are the same but not with the same name Change-Id: Ide5ae683f606f7f58535c0a59cec45e4a30d225c Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
2018-03-07Add a new env var for nameserverLinda Wang5-5/+15
We should still consider that the nameserver must be handled by all installers instead [1]: - by configuring one or more DNS resolvers in dhcp_agent.ini - by asking a local resolv It eases setting the nameserver in testcases and then allows gating them. 8.8.8.8 is still defined by default. [1] https://docs.openstack.org/neutron/pike/admin/config-dns-res.html Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Id58dd5ebee612a0fce2ebc40f089769e60899416 Signed-off-by: Linda Wang <wangwulin@huawei.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-04Set user domain name when creating usersCédric Ollivier2-0/+2
It updates juju_epc.py and cloudify_vrouter.py. Change-Id: I8cf97e31d78a4d48ad815faadc8e4130581e1c21 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-03-02Leverage on XtestingCédric Ollivier2-15/+11
It removes all the files which have moved to Xtesting. Vnf inheritances and env management will be improved in other changes. It keeps the same tree thanks to a symlink to allow publishing artifacts. Change-Id: I551bbd3f344cdab0158a50b7b09e541576695631 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-28Merge "Add guid in neutron resource names in juju_epc"Cedric Ollivier1-5/+8
2018-02-28Merge "Support different user/project domain values"valentin boucher1-1/+3
2018-02-26Add guid in neutron resource names in juju_epcCédric Ollivier1-5/+8
JIRA: FUNCTEST-937 Change-Id: Ia0912dfe2cdbecf4c169aecb6ba1b71774e0a02f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-26Switch to snaps in orchestra testcasesCédric Ollivier2-279/+90
It also stops using the floating ip in userdata to avoid a race condition (all-in-one). The DNS server is now configured by Neutron instead of the testcases. Change-Id: I6efed71339d98403f7fd137ff50f1941b5b5a03c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-24Update Functest to meet last snaps updatesCédric Ollivier2-6/+11
It removes obsolete mockey patches in Rally unit tests and adds keystone client as params when needed in orchestra_*ims.py [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/52473/ Change-Id: Id02954d16f5f54cc0c390fadb498e14c6bab6ff9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-22Switch from CONST to CONFCédric Ollivier9-36/+35
It also removes constants.CONST and env.Environment which are now useless. Depends-On: I764a0a2a24447c941d1e726f3116593b29dd1c1e Depends-On: I6cfa832466dcefd737314633d807512e46267a69 Change-Id: Ife41c59d9f2e6ec4e49df38af962039f99554bc5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-22Support different user/project domain valuesValentin Boucher1-1/+3
For the moment, VNF works well only if OS_PROJECT_DOMAIN_NAME=Default OS_USER_DOMAIN_NAME=Default It's now possible to use domain != Default JIRA: FUNCTEST-935 Change-Id: I779a93538662ff32906d91d7cf3b2c5c3e872765 Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>
2018-02-22Merge "Unify security group operations"Cedric Ollivier1-7/+7
2018-02-21Merge "Leverage of snaps creds to get the right region name"Cedric Ollivier1-7/+2
2018-02-21Merge "Print stdout and stderr when calling commands over SSH"Cedric Ollivier2-23/+30
2018-02-21Print stdout and stderr when calling commands over SSHCédric Ollivier2-23/+30
It will help debugging possible issues vs APEX [1]. [1] https://build.opnfv.org/ci/view/functest/job/functest-apex-baremetal-daily-master/792/console Change-Id: I610f5b0a7774440c51fa086fad4f61c9be0571dc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-21Unify security group operationsCédric Ollivier1-7/+7
It updates juju_epc to conform with cloudify_ims and cloudify_vrouter regarding security group operations. Change-Id: I2bc4a16ec17f2836564df82d3ceddd3bc73ece7a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-21Leverage of snaps creds to get the right region nameCédric Ollivier1-7/+2
Else it gets the defaut value as it's unset in env. Change-Id: Ic2a9cdaed7891fe2723f960782c81c0cbb04e8f0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-21Create a second user in cloudify_vrouterCédric Ollivier1-5/+18
It mainly bypasses a bug when a similar network name has already been created. We can't apply the same operations for cloudify_vims because the key must be created by the _member_ user. Snaps haven't allowed that since [1] has been merged [1] https://gerrit.opnfv.org/gerrit/#/c/52157/ Change-Id: I90131487d0e08a4d95c684efb16a8009c3709a8e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-19Remove last CONST.__getattribute__()Cédric Ollivier8-31/+27
Change-Id: I82f6aa1e723c88eebd4c7410da4b9741a482e9bc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-19Manage region in cloudify_ims.pyCédric Ollivier1-2/+3
It must be completed by a new change in opnfv-cloudify-clearwater [1]. [1] https://github.com/Orange-OpenSource/opnfv-cloudify-clearwater/pull/18 Change-Id: Ic3a323e33b9742835159f5386e9247c6ac965f51 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-19Fix credentials in cloudify_vrouterCédric Ollivier1-76/+40
It completes [1] which partially fixes cloudify_vrouter [2]. It now handles region name too and formats long arg lists too. [1] https://gerrit.opnfv.org/gerrit/#/c/52175/ [2] https://gerrit.opnfv.org/gerrit/#/c/50747/ Change-Id: I592d12d7df6837531560acfc4afc0636f485c671 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-16Remove one debug printCédric Ollivier1-1/+0
Change-Id: I531d1e519fc0352525993c69142eea14b99a3f63 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-16Add suffixes in vnf keypair namesCédric Ollivier2-25/+29
Change-Id: Ia9c8ef535b16326a520367d2c7c98b7e8db4822c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-15Merge "Removed os_utils and fully switched to snaps"Cedric Ollivier1-12/+39
2018-02-15Add suffixes to OpenStack resource namesCédric Ollivier2-43/+48
All vnf testcases have to add suffixes in OpenStack resources names simply because the password is now generated before any run [1]. Snaps mainly creates the resource only if unfound in all tenants [2]. Then one remaining resource could easily raise permissions denied. It avoid conflicts between vrouter and cloudify_ims which are using the same names. [1] https://gerrit.opnfv.org/gerrit/#/c/50747/ [2] https://jira.opnfv.org/browse/SNAPS-257 Depends-On: If56cc44fe35ca06bc9033af620ddd3c0586877fe Change-Id: I1800886e575189b64fdc580a5ee6b59c81fcde5c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-15Fix typos in cloudify_imsCédric Ollivier1-6/+5
Change-Id: I5d29b3e58cae7e9a334ec6f264cdb5e280860d97 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-15Removed os_utils and fully switched to snapssoumaya1-12/+39
JIRA: FUNCTEST-925 Change-Id: Ibcbf42c34b764fda09d4d49513b261aae296a68b Signed-off-by: soumaya <soumaya.nayek@rebaca.com>
2018-02-09Conform with OpenStackUser.get_os_creds() in juju_epcCédric Ollivier1-8/+4
UserSettings are not linked to any project then abot has to be passed as arg when calling get_os_creds. Else it returns the project registered in credentials instead of the one created by this testcase. Change-Id: Ia0658cc9af155df06de3d14e21e5288dad6367f9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-07Remove dns server from juju_epc configCédric Ollivier1-4/+1
The dns server shoud be set by the Cloud provider via Neutron configs. Snaps is currently enforcing 8.8.8.8 as default too. Change-Id: I3e9a25d8bbfbab4cd1d44e394235b329df86e82e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-05Fix docstringsCédric Ollivier1-1/+2
Else sphinx can't parse snaps_suite_builder.py and IxRestUtils.py. Change-Id: Iab231a043120154bce708263474b9f9926c1f715 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-03Fix JujuEpc prepare() and deploy_orchestrator()Cédric Ollivier1-173/+177
It bypasses a known unfixed Juju bug [1] by creating a second '_member_' user [1]. An 'admin' user is still required to create flavors and by snaps when listing virtual machines. It highlights a possible bug in user_creator.get_os_creds(). It partially rewrites the testcase by cleaning instance attributes and by taking several os.system() returns into account. It sets the new password automatically generated [2] and starts switching from openstack utils to snaps in vEPC. This patchset must be completed by unit tests and by another patch fully switching to snaps in the last methods. It should be noted that the testcase sets 8.8.8.8 as dns server which could raise side effects. [1] https://bugs.launchpad.net/juju/+bug/1710848 [2] https://gerrit.opnfv.org/gerrit/#/c/50747/ Change-Id: Id18b4b185aa1825196e91f6692338169f51faea8 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>