From 0c391e6ed8cbcf8e2aacdbf12c1d5199a94c9d37 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Mon, 13 May 2024 08:12:15 +0200 Subject: [PATCH 1/5] Increase timeout in test --- test/integration/TestIM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/TestIM.py b/test/integration/TestIM.py index 9ad7b1ce..c1c05b7b 100755 --- a/test/integration/TestIM.py +++ b/test/integration/TestIM.py @@ -272,7 +272,7 @@ def test_19_addresource(self): str(len(vm_ids)) + "). It must be 4")) all_configured = self.wait_inf_state( - self.inf_id, VirtualMachine.CONFIGURED, 1500) + self.inf_id, VirtualMachine.CONFIGURED, 2100) self.assertTrue( all_configured, msg="ERROR waiting the infrastructure to be configured (timeout).") From c63052f22240101e2d88a60a5b2cc99c1120fa68 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Mon, 13 May 2024 15:42:50 +0200 Subject: [PATCH 2/5] Fix error in reconfigure --- contextualization/ansible_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contextualization/ansible_install.sh b/contextualization/ansible_install.sh index 0ad3fce6..fcdcbb3f 100755 --- a/contextualization/ansible_install.sh +++ b/contextualization/ansible_install.sh @@ -76,7 +76,7 @@ else fi # Create the config file -mkdir /etc/ansible +ls /etc/ansible || mkdir /etc/ansible cat > /etc/ansible/ansible.cfg < Date: Mon, 13 May 2024 15:43:05 +0200 Subject: [PATCH 3/5] Increase timeout --- test/integration/TestIM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/TestIM.py b/test/integration/TestIM.py index c1c05b7b..4ba9cd7f 100755 --- a/test/integration/TestIM.py +++ b/test/integration/TestIM.py @@ -337,7 +337,7 @@ def test_22_removeresource(self): msg="ERROR unexpected state. Expected 'running' and obtained " + vm_state) all_configured = self.wait_inf_state( - self.inf_id, VirtualMachine.CONFIGURED, 1200) + self.inf_id, VirtualMachine.CONFIGURED, 1800) self.assertTrue( all_configured, msg="ERROR waiting the infrastructure to be configured (timeout).") From 4b03fbc41eef5fb11123b02b7e0dab43570dca32 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 14 May 2024 09:28:48 +0200 Subject: [PATCH 4/5] Increase timeout --- test/integration/TestIM.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/integration/TestIM.py b/test/integration/TestIM.py index 4ba9cd7f..90f19bed 100755 --- a/test/integration/TestIM.py +++ b/test/integration/TestIM.py @@ -635,7 +635,7 @@ def test_80_create_ansible_host(self): self.__class__.inf_id = [inf_id] all_configured = self.wait_inf_state( - inf_id, VirtualMachine.CONFIGURED, 900) + inf_id, VirtualMachine.CONFIGURED, 1200) self.assertTrue( all_configured, msg="ERROR waiting the ansible master to be configured (timeout).") @@ -672,7 +672,7 @@ def test_80_create_ansible_host(self): self.__class__.inf_id.append(inf_id) all_configured = self.wait_inf_state( - inf_id, VirtualMachine.CONFIGURED, 900) + inf_id, VirtualMachine.CONFIGURED, 1200) self.assertTrue( all_configured, msg="ERROR waiting the infrastructure to be configured (timeout).") @@ -723,7 +723,7 @@ def test_96_create(self): success, msg="ERROR calling CreateInfrastructure: " + str(inf_id)) self.__class__.inf_id = [inf_id] - all_configured = self.wait_inf_state(inf_id, VirtualMachine.CONFIGURED, 900) + all_configured = self.wait_inf_state(inf_id, VirtualMachine.CONFIGURED, 1200) self.assertTrue( all_configured, msg="ERROR waiting the infrastructure to be configured (timeout).") @@ -759,7 +759,7 @@ def test_98_proxy(self): self.assertTrue(success, msg="ERROR calling CreateInfrastructure: " + str(inf_id)) self.__class__.inf_id = [inf_id] - all_configured = self.wait_inf_state(inf_id, VirtualMachine.CONFIGURED, 900) + all_configured = self.wait_inf_state(inf_id, VirtualMachine.CONFIGURED, 1200) self.assertTrue(all_configured, msg="ERROR waiting the infrastructure to be configured (timeout).") (success, vminfo) = self.server.GetVMInfo(inf_id, 0, self.auth_data) @@ -786,7 +786,7 @@ def test_98_proxy(self): (success, inf_id2) = self.server.CreateInfrastructure(radl, self.auth_data) self.__class__.inf_id.append(inf_id2) - all_configured = self.wait_inf_state(inf_id2, VirtualMachine.CONFIGURED, 900) + all_configured = self.wait_inf_state(inf_id2, VirtualMachine.CONFIGURED, 1200) self.assertTrue(all_configured, msg="ERROR waiting the infrastructure to be configured (timeout).") def test_99_destroy(self): From 91ae898c4dd55f53bd370ceda588196b47f01c6a Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 14 May 2024 13:26:15 +0200 Subject: [PATCH 5/5] Increase timeout --- test/integration/TestIM.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/TestIM.py b/test/integration/TestIM.py index 90f19bed..6d30c9db 100755 --- a/test/integration/TestIM.py +++ b/test/integration/TestIM.py @@ -698,7 +698,7 @@ def test_90_create(self): self.__class__.inf_id = [inf_id] all_configured = self.wait_inf_state( - inf_id, VirtualMachine.CONFIGURED, 1800) + inf_id, VirtualMachine.CONFIGURED, 2100) self.assertTrue( all_configured, msg="ERROR waiting the infrastructure to be configured (timeout).")