Precise validation configs in Neutron 07/70207/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 24 May 2020 10:04:16 +0000 (12:04 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 24 May 2020 10:05:27 +0000 (12:05 +0200)
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 <cedric.ollivier@orange.com>
docker/smoke-cntt/tempest_conf.yaml
functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf.yaml
functest/opnfv_tests/openstack/tempest/custom_tests/tempest_conf_ovn.yaml
functest/opnfv_tests/openstack/tempest/tempest.py

index 44b6288..9317a83 100644 (file)
@@ -56,6 +56,12 @@ network-feature-enabled:
     floating_ips: true
 placement:
     max_microversion: "1.10"
+validation:
+    image_ssh_user: cirros
+    ssh_timeout: 196
+    ip_version_for_ssh: 4
+    run_validation: true
+    connect_method: floating
 volume:
     max_microversion: 3.43
     storage_protocol: ceph
index 9217b36..efd7114 100644 (file)
@@ -56,6 +56,12 @@ network-feature-enabled:
     floating_ips: true
 placement:
     max_microversion: "1.30"
+validation:
+    image_ssh_user: cirros
+    ssh_timeout: 196
+    ip_version_for_ssh: 4
+    run_validation: true
+    connect_method: floating
 volume:
     max_microversion: 3.55
     storage_protocol: ceph
index e1cec94..068edc0 100644 (file)
@@ -56,6 +56,12 @@ network-feature-enabled:
     floating_ips: true
 placement:
     max_microversion: "1.30"
+validation:
+    image_ssh_user: cirros
+    ssh_timeout: 196
+    ip_version_for_ssh: 4
+    run_validation: true
+    connect_method: floating
 volume:
     max_microversion: 3.55
     storage_protocol: ceph
index 84aab74..3ca7ee4 100644 (file)
@@ -525,6 +525,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()
@@ -590,6 +600,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)