aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf/ims/heat_ims.py
AgeCommit message (Collapse)AuthorFilesLines
2021-11-15Update linters and fix all new issuesCédric Ollivier1-3/+4
It mostly add encoding in open calls and leverage f-strings. Change-Id: Ifead18fc724a452c1067dcf91dc577032edc9c59 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2021-08-18Update to Alpine 3.14Cédric Ollivier1-5/+5
It also fixes lots of new pylint warnings. Change-Id: I3376aee5649596c53bc2941ad4d8e0674a2967fe Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2020-08-17Boot a VM to run jujuCédric Ollivier1-1/+1
It allows running juju_epc vs arm32 and arm64. It stops offering juju in functest-vnf and rather installs it in a VM. It also adds a couple of missing output decode() Change-Id: I2218742b2824c8328823051bde32422e56784e90 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-07-27Switch to Python 3.7 and Alpine 3.10Cédric Ollivier1-1/+1
It also allows building docs as doc8 is broken due to latest OpenStack's upper-constraints. pylint is updated to 2.3.1 (lastest py3.7 version) It disables perm as umask is currently false on lf-virtual1. Change-Id: If09d4796d48b7d0591e7926621d3bbf5ca1b6c24 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-05-21Avoid running local dnsmasq when testing IMSCédric Ollivier1-4/+8
It may be unsafe and it's useless for testing IMS if BONO_IP is set. Change-Id: I8b0f010956defbfa1fd22b5aa5cbea70bd2968a4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-04-24Refactor modules to avoid duplicated codeCédric Ollivier1-20/+5
It also increases number of lines to warm about duplicated codes. Change-Id: I3914da8a90cbfe8fd024e9944c3adc8a617330d3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-22Remove hardcoded tempos in heat_imsCédric Ollivier1-1/+0
It adds loops to wait for services. It sets dns forwarders to allow sending Heat signal at last instructions. Change-Id: I3ae29ddbaee5f8b2086078bd5245e140348f0dcf Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-18Avoid killing create_number.pyCédric Ollivier1-3/+5
create_numbers.py has been killed by other services as described in [1]. It's now called when ellis is up and running. It adds few sleeps to ensure the right boot orders (signals must be send before switching DNS). [1] http://www.projectclearwater.org/using-start-stop-daemon-with-the-python-interpreter/ Change-Id: I87ad3828c10d3ccbc707ed8f4ab99987c6968f09 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-16Print monit summary before running IMS testingCédric Ollivier1-1/+24
Change-Id: I94310aa609d2c56609e0a5f0e46932af4aee02eb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-09Add dependencies in heat_imsCédric Ollivier1-1/+1
It avoids useless loops for cloud init messages. It now conforms with clearwater-docker (disable ipv6 in cassandra). Change-Id: I6f469cf48224296b2eaa079d342642c5caca65f5 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-03-07Modify the upstream Clearwater Heat filesCédric Ollivier1-7/+4
It forces a single network for both management and signaling traffic. It meets the OPNFV deployment requirements and the Functest SUT ones. The security group will be improved in a second step to first quickly fix the testcase in gambia. Private IPs may be registered in DNS to avoid network address translations. Change-Id: Ic19cf336ac5c2d07c52c6dd37b06271790145cf9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-27Conform heat_ims subnets with other testcasesCédric Ollivier1-0/+11
It will be enhanced in a second step to calculate options from configs. Change-Id: I91738e1aaad9a7049df44f734c4190def62fff91 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-27Reduce Heat Ims resourcesCédric Ollivier1-3/+3
It eases testing with less resources. It conforms with the new values in the Cloudify part [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/67092/ Change-Id: I1f6158a42fd8ed390c07e7c773bb246f81adef3b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-02-24Ease copying/pasting the private keys from logsCédric Ollivier1-1/+1
Change-Id: I8f1ccdb709dbb3e7a22a404c036714dd848dd87d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2019-01-20Slightly improve heat_imsCédric Ollivier1-2/+2
It increases timeouts which could be reached if shared bandwidth (functest-virtual [1]). [1] http://artifacts.opnfv.org/functest/functest-opnfv-functest-vnf-latest-heat_ims-run-4/results/functest.log Change-Id: I29adcd9ea88bbccbaef9ba7f8e155d37a3217433 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-12-06Remove duplicated code in vnfsCédric Ollivier1-32/+11
It mainly leverages on functest_utils instead of duplicating. Change-Id: I97dc9215a835d3e7f1527b565132f667f09f2b7e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-08-28Protect vs TypeErrors when cleaning stacksCédric Ollivier1-0/+3
It protects vs exceptions raised by shade when cleaning stacks. Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/functest/opnfv_tests/vnf/ims/heat_ims.py", line 226, in clean self.cloud.delete_stack(self.stack.id, wait=True) File "/usr/lib/python2.7/site-packages/shade/openstackcloud.py", line 1416, in delete_stack marker=marker) File "/usr/lib/python2.7/site-packages/shade/_heat/event_utils.py", line 90, in poll_for_events stack_status = stack['stack_status'] TypeError: 'NoneType' object has no attribute '__getitem__' Change-Id: I1a0ed0cd669d5234ca1ff3b6bbc9d1b13f14b02f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-08-27Use only one image in heat_imsCédric Ollivier1-16/+9
It calls VmReady2.run instead of publishing alt image. Change-Id: If24741fbc5bf7fa3f61ef39a054b148ce53fc4fc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-07-23New Heat IMS testcaseValentin Boucher1-0/+256
In order to validate OpenStack Master deployment we create this new testcase using OpenStack Heat as an Orchestrator for Clearwater VNF JIRA: FUNCTEST-995 Change-Id: I8b7b74a3753c2d4d4614e9a2798283bd3f99d5d2 Signed-off-by: Valentin Boucher <valentin.boucher@kontron.com>