From 0d9f8f379fa491ac148eb549400a74a74c8687d1 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 24 May 2020 12:04:16 +0200 Subject: Precise validation configs in Neutron MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ServerActionsTestJSON.test_reboot_server_hard [1] sometimes fails in gates. We may increase timeouts if it stills fails. [1] http://artifacts.opnfv.org/functest/LIQH38CPR30X/functest-opnfv-functest-smoke-hunter-tempest_full-run-649/tempest_full/tempest-report.html Change-Id: Ia27c0faead1df5c2b33a3e1a272e5a1010a5a83e Signed-off-by: Cédric Ollivier (cherry picked from commit 7ccc1b0793e32cad3912e63bbca971d5c3ecd724) --- .../openstack/tempest/custom_tests/tempest_conf.yaml | 6 ++++++ .../openstack/tempest/custom_tests/tempest_conf_ovn.yaml | 6 ++++++ functest/opnfv_tests/openstack/tempest/tempest.py | 11 +++++++++++ 3 files changed, 23 insertions(+) (limited to 'functest/opnfv_tests/openstack') diff --git a/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml b/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml index 274150a21..bdc367d6b 100644 --- a/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml +++ b/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml @@ -55,6 +55,12 @@ network-feature-enabled: floating_ips: true placement: max_microversion: latest +validation: + image_ssh_user: cirros + ssh_timeout: 196 + ip_version_for_ssh: 4 + run_validation: true + connect_method: floating volume: max_microversion: latest storage_protocol: ceph diff --git a/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf_ovn.yaml b/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf_ovn.yaml index b6b650267..5675deb37 100644 --- a/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf_ovn.yaml +++ b/functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf_ovn.yaml @@ -55,6 +55,12 @@ network-feature-enabled: floating_ips: true placement: max_microversion: latest +validation: + image_ssh_user: cirros + ssh_timeout: 196 + ip_version_for_ssh: 4 + run_validation: true + connect_method: floating volume: max_microversion: latest storage_protocol: ceph diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index a996171e4..8fe1aae61 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -517,6 +517,16 @@ class TempestCommon(singlevm.VmReady2): with open(self.conf_file, 'w') as config_file: rconfig.write(config_file) + def update_validation_section(self): + """Update validation section in tempest.conf""" + rconfig = configparser.RawConfigParser() + rconfig.read(self.conf_file) + if not rconfig.has_section('validation'): + rconfig.add_section('validation') + rconfig.set('validation', 'network_for_ssh', self.network.name) + with open(self.conf_file, 'w') as config_file: + rconfig.write(config_file) + def update_scenario_section(self): """Update scenario section in tempest.conf""" rconfig = configparser.RawConfigParser() @@ -582,6 +592,7 @@ class TempestCommon(singlevm.VmReady2): domain_id=self.project.domain.id) self.update_network_section() self.update_compute_section() + self.update_validation_section() self.update_scenario_section() self.backup_tempest_config(self.conf_file, self.res_dir) -- cgit 1.2.3-korg