Closed QU3B1M closed 3 months ago
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-ubuntu-22.04-amd64 --provider aws --size large
[2024-02-07 12:30:20] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 12:30:20] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 12:30:20] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-295E17C9-EB9B-43F8-A201-5F0EBAA68CB2
[2024-02-07 12:30:39] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-295E17C9-EB9B-43F8-A201-5F0EBAA68CB2 directory to /tmp/wazuh-qa/i-0c4cb703324928236
[2024-02-07 12:30:39] [INFO] ALLOCATOR: Instance i-0c4cb703324928236 created.
[2024-02-07 12:30:41] [INFO] ALLOCATOR: Instance i-0c4cb703324928236 started.
[2024-02-07 12:30:41] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 12:30:41] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 12:37:03] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 12:37:03] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 12:37:05] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 12:37:52] [INFO] ALLOCATOR: Instance i-0c4cb703324928236 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-ubuntu-22.04-arm64 --provider aws --size large
[2024-02-07 12:40:42] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 12:40:42] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 12:40:42] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-DF72B096-EC2C-4090-8A18-E8A03CA5B99A
[2024-02-07 12:41:01] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-DF72B096-EC2C-4090-8A18-E8A03CA5B99A directory to /tmp/wazuh-qa/i-02eba2699eb67fcfe
[2024-02-07 12:41:01] [INFO] ALLOCATOR: Instance i-02eba2699eb67fcfe created.
[2024-02-07 12:41:03] [INFO] ALLOCATOR: Instance i-02eba2699eb67fcfe started.
[2024-02-07 12:41:03] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 12:41:03] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 12:42:53] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 12:42:53] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 12:42:55] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 12:43:57] [INFO] ALLOCATOR: Instance i-02eba2699eb67fcfe deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-ubuntu-18.04-amd64 --provider aws --size large
[2024-02-07 12:44:40] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 12:44:40] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 12:44:40] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-1BEACEBD-1253-4532-B59A-C20F49DBE996
[2024-02-07 12:44:59] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-1BEACEBD-1253-4532-B59A-C20F49DBE996 directory to /tmp/wazuh-qa/i-0edb5dd1774cb5084
[2024-02-07 12:44:59] [INFO] ALLOCATOR: Instance i-0edb5dd1774cb5084 created.
[2024-02-07 12:45:01] [INFO] ALLOCATOR: Instance i-0edb5dd1774cb5084 started.
[2024-02-07 12:45:01] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 12:45:01] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 12:46:32] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 12:46:32] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 12:46:34] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 12:47:36] [INFO] ALLOCATOR: Instance i-0edb5dd1774cb5084 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-ubuntu-20.04-amd64 --provider aws --size large
[2024-02-07 12:48:59] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 12:48:59] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 12:48:59] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-E0F0F477-A5A9-4FEA-A15A-A69B280DF197
[2024-02-07 12:49:18] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-E0F0F477-A5A9-4FEA-A15A-A69B280DF197 directory to /tmp/wazuh-qa/i-00180ba3f30b2a122
[2024-02-07 12:49:18] [INFO] ALLOCATOR: Instance i-00180ba3f30b2a122 created.
[2024-02-07 12:49:20] [INFO] ALLOCATOR: Instance i-00180ba3f30b2a122 started.
[2024-02-07 12:49:20] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 12:49:20] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 12:50:18] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 12:50:19] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 12:50:20] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 12:51:22] [INFO] ALLOCATOR: Instance i-00180ba3f30b2a122 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-debian-10-amd64 --provider aws --size large
[2024-02-07 12:54:12] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 12:54:13] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 12:54:13] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-AEE6FAD9-7A88-4666-BF5D-65E45F32FF8E
[2024-02-07 12:54:32] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-AEE6FAD9-7A88-4666-BF5D-65E45F32FF8E directory to /tmp/wazuh-qa/i-02e4e1ced83651a9f
[2024-02-07 12:54:32] [INFO] ALLOCATOR: Instance i-02e4e1ced83651a9f created.
[2024-02-07 12:54:33] [INFO] ALLOCATOR: Instance i-02e4e1ced83651a9f started.
[2024-02-07 12:54:34] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 12:54:34] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 12:55:59] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 12:55:59] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 12:56:02] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 12:57:04] [INFO] ALLOCATOR: Instance i-02e4e1ced83651a9f deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-debian-11-amd64 --provider aws --size large
[2024-02-07 12:57:42] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 12:57:42] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 12:57:42] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-B05F49E1-DD3F-4306-B3E8-63386E79027E
[2024-02-07 12:58:02] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-B05F49E1-DD3F-4306-B3E8-63386E79027E directory to /tmp/wazuh-qa/i-06974391749e4b730
[2024-02-07 12:58:02] [INFO] ALLOCATOR: Instance i-06974391749e4b730 created.
[2024-02-07 12:58:03] [INFO] ALLOCATOR: Instance i-06974391749e4b730 started.
[2024-02-07 12:58:03] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 12:58:03] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 12:59:30] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 12:59:30] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 12:59:32] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:00:34] [INFO] ALLOCATOR: Instance i-06974391749e4b730 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-debian-12-amd64 --provider aws --size large
[2024-02-07 13:03:02] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:03:02] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:03:02] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-3985070B-8E52-4D9F-B090-DC9745F0329E
[2024-02-07 13:03:27] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-3985070B-8E52-4D9F-B090-DC9745F0329E directory to /tmp/wazuh-qa/i-0265468e62355f3c7
[2024-02-07 13:03:27] [INFO] ALLOCATOR: Instance i-0265468e62355f3c7 created.
[2024-02-07 13:03:28] [INFO] ALLOCATOR: Instance i-0265468e62355f3c7 started.
[2024-02-07 13:03:28] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:03:28] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:04:24] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:04:24] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:04:26] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:05:28] [INFO] ALLOCATOR: Instance i-0265468e62355f3c7 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-oracle-7-amd64 --provider aws --size large
[2024-02-07 13:06:16] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:06:17] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:06:17] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-51E9C952-01AE-42E2-8585-1EB5DADDF5D7
[2024-02-07 13:06:41] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-51E9C952-01AE-42E2-8585-1EB5DADDF5D7 directory to /tmp/wazuh-qa/i-0ce7a4c117d77c673
[2024-02-07 13:06:41] [INFO] ALLOCATOR: Instance i-0ce7a4c117d77c673 created.
[2024-02-07 13:06:42] [INFO] ALLOCATOR: Instance i-0ce7a4c117d77c673 started.
[2024-02-07 13:06:43] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:06:43] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:08:04] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:08:04] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:08:06] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:09:24] [INFO] ALLOCATOR: Instance i-0ce7a4c117d77c673 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-oracle-8-amd64 --provider aws --size large
[2024-02-07 13:10:06] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:10:06] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:10:06] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-196E550E-A9F3-4E7A-B095-3C238568A9E3
[2024-02-07 13:10:25] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-196E550E-A9F3-4E7A-B095-3C238568A9E3 directory to /tmp/wazuh-qa/i-052714ae8326b2afe
[2024-02-07 13:10:25] [INFO] ALLOCATOR: Instance i-052714ae8326b2afe created.
[2024-02-07 13:10:27] [INFO] ALLOCATOR: Instance i-052714ae8326b2afe started.
[2024-02-07 13:10:27] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:10:27] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:11:17] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:11:17] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:11:19] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:12:06] [INFO] ALLOCATOR: Instance i-052714ae8326b2afe deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-oracle-9-amd64 --provider aws --size large
[2024-02-07 13:12:24] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:12:24] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:12:24] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-908CB1A3-25F8-4487-86D9-82093E3C565A
[2024-02-07 13:12:44] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-908CB1A3-25F8-4487-86D9-82093E3C565A directory to /tmp/wazuh-qa/i-0b5f64daaf457c81e
[2024-02-07 13:12:44] [INFO] ALLOCATOR: Instance i-0b5f64daaf457c81e created.
[2024-02-07 13:12:45] [INFO] ALLOCATOR: Instance i-0b5f64daaf457c81e started.
[2024-02-07 13:12:45] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:12:45] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:13:58] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:13:58] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:14:00] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:14:32] [INFO] ALLOCATOR: Instance i-0b5f64daaf457c81e deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-opensuse-15-amd64 --provider aws --size large
[2024-02-07 13:15:22] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:15:22] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:15:22] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-0086354B-4F45-4609-AE1F-6C298B0CF481
Traceback (most recent call last):
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/launchers/allocation.py", line 30, in <module>
main()
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/launchers/allocation.py", line 26, in main
Allocator.run(InputPayload(**vars(parse_arguments())))
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
return cls.__create(payload)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
instance = provider.create_instance(
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 65, in create_instance
return cls._create_instance(base_dir, params, config)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 57, in _create_instance
instance_id = cls.__create_ec2_instance(config)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 107, in __create_ec2_instance
instance = client.create_instances(ImageId=config.ami,
File "/home/cbordon/.local/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action
response = action(self, *args, **kwargs)
File "/home/cbordon/.local/lib/python3.10/site-packages/boto3/resources/action.py", line 88, in __call__
response = getattr(parent.meta.client, operation_name)(*args, **params)
File "/home/cbordon/.local/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/cbordon/.local/lib/python3.10/site-packages/botocore/client.py", line 983, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=147aomaaws9zx4er41jp3mozy
issue related: https://github.com/wazuh/wazuh-qa/issues/4928
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-suse-15-amd64 --provider aws --size large
[2024-02-07 13:20:14] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:20:14] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:20:14] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-9290AB62-3F29-490E-8F5A-9B1EF333720B
[2024-02-07 13:20:38] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-9290AB62-3F29-490E-8F5A-9B1EF333720B directory to /tmp/wazuh-qa/i-0f08afce9bb16a1ec
[2024-02-07 13:20:38] [INFO] ALLOCATOR: Instance i-0f08afce9bb16a1ec created.
[2024-02-07 13:20:39] [INFO] ALLOCATOR: Instance i-0f08afce9bb16a1ec started.
[2024-02-07 13:20:40] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:20:40] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:22:01] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:22:01] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:22:03] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:23:20] [INFO] ALLOCATOR: Instance i-0f08afce9bb16a1ec deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-centos-7-amd64 --provider aws --size large
[2024-02-07 13:25:24] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:25:24] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:25:24] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-86E3EC31-5779-4CCA-9CA3-E1CC3C77ECA2
[2024-02-07 13:25:48] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-86E3EC31-5779-4CCA-9CA3-E1CC3C77ECA2 directory to /tmp/wazuh-qa/i-0e27c53eeab291d0f
[2024-02-07 13:25:48] [INFO] ALLOCATOR: Instance i-0e27c53eeab291d0f created.
[2024-02-07 13:25:55] [INFO] ALLOCATOR: Instance i-0e27c53eeab291d0f started.
[2024-02-07 13:25:55] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:25:55] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:26:12] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:26:12] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:26:13] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:27:00] [INFO] ALLOCATOR: Instance i-0e27c53eeab291d0f deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-centos-8-amd64 --provider aws --size large
[2024-02-07 13:27:40] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:27:40] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:27:40] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-C09144F5-7C94-4860-9F35-4D85E8085D8F
[2024-02-07 13:28:00] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-C09144F5-7C94-4860-9F35-4D85E8085D8F directory to /tmp/wazuh-qa/i-057ece6324744ac50
[2024-02-07 13:28:00] [INFO] ALLOCATOR: Instance i-057ece6324744ac50 created.
[2024-02-07 13:28:01] [INFO] ALLOCATOR: Instance i-057ece6324744ac50 started.
[2024-02-07 13:28:02] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:28:02] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:28:35] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:28:35] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:28:37] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:29:09] [INFO] ALLOCATOR: Instance i-057ece6324744ac50 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-centos-9-amd64 --provider aws --size large
[2024-02-07 13:30:08] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:30:08] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:30:08] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-BAAA896F-9C5E-4211-A75C-818546205478
[2024-02-07 13:30:28] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-BAAA896F-9C5E-4211-A75C-818546205478 directory to /tmp/wazuh-qa/i-0f2b5cfc58d1c268b
[2024-02-07 13:30:28] [INFO] ALLOCATOR: Instance i-0f2b5cfc58d1c268b created.
[2024-02-07 13:30:29] [INFO] ALLOCATOR: Instance i-0f2b5cfc58d1c268b started.
[2024-02-07 13:30:30] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:30:30] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:31:35] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:31:35] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:31:37] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:32:09] [INFO] ALLOCATOR: Instance i-0f2b5cfc58d1c268b deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-redhat-7-amd64 --provider aws --size micro
[2024-02-07 13:33:06] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:33:06] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:33:06] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-8F3C9594-4768-4789-92AB-D6487A467CE7
Traceback (most recent call last):
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/launchers/allocation.py", line 30, in <module>
main()
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/launchers/allocation.py", line 26, in main
Allocator.run(InputPayload(**vars(parse_arguments())))
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
return cls.__create(payload)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
instance = provider.create_instance(
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 65, in create_instance
return cls._create_instance(base_dir, params, config)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 57, in _create_instance
instance_id = cls.__create_ec2_instance(config)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 107, in __create_ec2_instance
instance = client.create_instances(ImageId=config.ami,
File "/home/cbordon/.local/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action
response = action(self, *args, **kwargs)
File "/home/cbordon/.local/lib/python3.10/site-packages/boto3/resources/action.py", line 88, in __call__
response = getattr(parent.meta.client, operation_name)(*args, **params)
File "/home/cbordon/.local/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/cbordon/.local/lib/python3.10/site-packages/botocore/client.py", line 983, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=3jdidj7kpc10apzarpkkyoe3t
issue related: https://github.com/wazuh/wazuh-qa/issues/4928
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-redhat-8-amd64 --provider aws --size micro
[2024-02-07 13:37:46] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:37:46] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:37:46] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-A1989532-43EE-4BFD-8E22-B715AF8682AA
[2024-02-07 13:38:36] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-A1989532-43EE-4BFD-8E22-B715AF8682AA directory to /tmp/wazuh-qa/i-0e9e4aa0778502ef7
[2024-02-07 13:38:36] [INFO] ALLOCATOR: Instance i-0e9e4aa0778502ef7 created.
[2024-02-07 13:38:37] [INFO] ALLOCATOR: Instance i-0e9e4aa0778502ef7 started.
[2024-02-07 13:38:37] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:38:37] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:39:33] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:39:33] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:39:35] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:40:06] [INFO] ALLOCATOR: Instance i-0e9e4aa0778502ef7 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-redhat-9-amd64 --provider aws --size micro
[2024-02-07 13:40:54] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:40:54] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:40:54] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-543A086D-29CA-43EF-ABEF-3C2EDF4CE184
[2024-02-07 13:41:44] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-543A086D-29CA-43EF-ABEF-3C2EDF4CE184 directory to /tmp/wazuh-qa/i-0b87d21f4cfd779f7
[2024-02-07 13:41:44] [INFO] ALLOCATOR: Instance i-0b87d21f4cfd779f7 created.
[2024-02-07 13:41:46] [INFO] ALLOCATOR: Instance i-0b87d21f4cfd779f7 started.
[2024-02-07 13:41:46] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:41:46] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:42:37] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:42:37] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:42:39] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:43:10] [INFO] ALLOCATOR: Instance i-0b87d21f4cfd779f7 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-amazon-2-amd64 --provider aws --size micro
[2024-02-07 13:43:54] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:43:55] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:43:55] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-DE88445B-4AAA-41D3-A295-FD0CFD9EFB9B
[2024-02-07 13:44:29] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-DE88445B-4AAA-41D3-A295-FD0CFD9EFB9B directory to /tmp/wazuh-qa/i-0765adf1faf8f7501
[2024-02-07 13:44:29] [INFO] ALLOCATOR: Instance i-0765adf1faf8f7501 created.
[2024-02-07 13:44:31] [INFO] ALLOCATOR: Instance i-0765adf1faf8f7501 started.
[2024-02-07 13:44:31] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:44:31] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:45:22] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:45:22] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:45:24] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:46:11] [INFO] ALLOCATOR: Instance i-0765adf1faf8f7501 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-amazon-2023-amd64 --provider aws --size micro
[2024-02-07 13:46:38] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:46:38] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:46:38] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-93E8C028-A8FF-49E9-9F09-5F644BFC93DC
[2024-02-07 13:47:12] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-93E8C028-A8FF-49E9-9F09-5F644BFC93DC directory to /tmp/wazuh-qa/i-07de075310e0a9bb4
[2024-02-07 13:47:12] [INFO] ALLOCATOR: Instance i-07de075310e0a9bb4 created.
[2024-02-07 13:47:14] [INFO] ALLOCATOR: Instance i-07de075310e0a9bb4 started.
[2024-02-07 13:47:14] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:47:14] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:47:51] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:47:51] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:47:53] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:48:24] [INFO] ALLOCATOR: Instance i-07de075310e0a9bb4 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-fedora-37-amd64 --provider aws --size micro
[2024-02-07 13:49:29] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:49:29] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:49:29] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-6CFDC773-34CE-47EC-818D-DD36F61F2D37
[2024-02-07 13:50:13] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-6CFDC773-34CE-47EC-818D-DD36F61F2D37 directory to /tmp/wazuh-qa/i-013fd9b9a4cda5564
[2024-02-07 13:50:13] [INFO] ALLOCATOR: Instance i-013fd9b9a4cda5564 created.
[2024-02-07 13:50:15] [INFO] ALLOCATOR: Instance i-013fd9b9a4cda5564 started.
[2024-02-07 13:50:15] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:50:15] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:51:04] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:51:04] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:51:05] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:51:37] [INFO] ALLOCATOR: Instance i-013fd9b9a4cda5564 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-fedora-38-amd64 --provider aws --size micro
[2024-02-07 13:52:02] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:52:02] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:52:02] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-8707D6F7-9BD5-4AFC-A468-AD4A0F4E0A91
[2024-02-07 13:52:37] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-8707D6F7-9BD5-4AFC-A468-AD4A0F4E0A91 directory to /tmp/wazuh-qa/i-073a85d6257103aed
[2024-02-07 13:52:37] [INFO] ALLOCATOR: Instance i-073a85d6257103aed created.
[2024-02-07 13:52:38] [INFO] ALLOCATOR: Instance i-073a85d6257103aed started.
[2024-02-07 13:52:39] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 13:52:39] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 13:53:19] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 13:53:19] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 13:53:21] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 13:54:39] [INFO] ALLOCATOR: Instance i-073a85d6257103aed deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name linux-rocky-9-amd64 --provider aws --size micro
[2024-02-07 13:55:06] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 13:55:06] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 13:55:06] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-04D2EA26-EDCC-4F86-B3C3-F149FDBFB7D0
Traceback (most recent call last):
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/launchers/allocation.py", line 30, in <module>
main()
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/launchers/allocation.py", line 26, in main
Allocator.run(InputPayload(**vars(parse_arguments())))
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 31, in run
return cls.__create(payload)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 50, in __create
instance = provider.create_instance(
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 65, in create_instance
return cls._create_instance(base_dir, params, config)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 57, in _create_instance
instance_id = cls.__create_ec2_instance(config)
File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/aws/provider.py", line 107, in __create_ec2_instance
instance = client.create_instances(ImageId=config.ami,
File "/home/cbordon/.local/lib/python3.10/site-packages/boto3/resources/factory.py", line 580, in do_action
response = action(self, *args, **kwargs)
File "/home/cbordon/.local/lib/python3.10/site-packages/boto3/resources/action.py", line 88, in __call__
response = getattr(parent.meta.client, operation_name)(*args, **params)
File "/home/cbordon/.local/lib/python3.10/site-packages/botocore/client.py", line 535, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/cbordon/.local/lib/python3.10/site-packages/botocore/client.py", line 983, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (OptInRequired) when calling the RunInstances operation: In order to use this AWS Marketplace product you need to accept terms and subscribe. To do so please visit https://aws.amazon.com/marketplace/pp?sku=3qk9e6x2ni81uiqnorll45r3f
issue related: https://github.com/wazuh/wazuh-qa/issues/4928
Issue related: https://github.com/wazuh/wazuh-qa/issues/4929
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name windows-desktop-10-amd64 --provider aws --size micro
[2024-02-07 15:28:54] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 15:28:54] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 15:28:54] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-DEBE02B3-82C4-47BD-9FF1-E6490EF8AB3D
[2024-02-07 15:29:29] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-DEBE02B3-82C4-47BD-9FF1-E6490EF8AB3D directory to /tmp/wazuh-qa/i-01b84783074809abe
[2024-02-07 15:29:29] [INFO] ALLOCATOR: Instance i-01b84783074809abe created.
[2024-02-07 15:29:30] [INFO] ALLOCATOR: Instance i-01b84783074809abe started.
[2024-02-07 15:29:31] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 15:29:31] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 15:30:39] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 15:30:39] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 15:30:41] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 15:31:43] [INFO] ALLOCATOR: Instance i-01b84783074809abe deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name windows-desktop-11-amd64 --provider aws --size medium
[2024-02-07 15:32:50] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 15:32:50] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 15:32:50] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-C775F788-EE62-45AA-AF31-BC2BD94CCBFE
[2024-02-07 15:33:09] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-C775F788-EE62-45AA-AF31-BC2BD94CCBFE directory to /tmp/wazuh-qa/i-007ef6f9599cf5663
[2024-02-07 15:33:09] [INFO] ALLOCATOR: Instance i-007ef6f9599cf5663 created.
[2024-02-07 15:33:10] [INFO] ALLOCATOR: Instance i-007ef6f9599cf5663 started.
[2024-02-07 15:33:11] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 15:33:11] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 15:34:25] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 15:34:25] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 15:34:27] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 15:39:50] [INFO] ALLOCATOR: Instance i-007ef6f9599cf5663 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name windows-server-2012r2-amd64 --provider aws --size small
[2024-02-07 15:47:35] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 15:47:35] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 15:47:35] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-A20F202E-2C71-40A9-BD8F-B577A0AF2147
[2024-02-07 15:47:55] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-A20F202E-2C71-40A9-BD8F-B577A0AF2147 directory to /tmp/wazuh-qa/i-0426240c4899ff4da
[2024-02-07 15:47:55] [INFO] ALLOCATOR: Instance i-0426240c4899ff4da created.
[2024-02-07 15:47:56] [INFO] ALLOCATOR: Instance i-0426240c4899ff4da started.
[2024-02-07 15:47:56] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 15:47:56] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 15:48:42] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 15:48:42] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 15:48:44] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 15:53:36] [INFO] ALLOCATOR: Instance i-0426240c4899ff4da deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name windows-server-2016-amd64 --provider aws --size small
[2024-02-07 15:55:42] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 15:55:42] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 15:55:42] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-443B24B4-6576-4BFB-AA5E-9B54A8528DDD
[2024-02-07 15:56:01] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-443B24B4-6576-4BFB-AA5E-9B54A8528DDD directory to /tmp/wazuh-qa/i-031f568adc08a50fd
[2024-02-07 15:56:01] [INFO] ALLOCATOR: Instance i-031f568adc08a50fd created.
[2024-02-07 15:56:03] [INFO] ALLOCATOR: Instance i-031f568adc08a50fd started.
[2024-02-07 15:56:03] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 15:56:03] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 15:56:41] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 15:56:41] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 15:56:43] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 15:58:00] [INFO] ALLOCATOR: Instance i-031f568adc08a50fd deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name windows-server-2019-amd64 --provider aws --size small
[2024-02-07 15:58:19] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 15:58:19] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 15:58:19] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-0F597A27-6DC7-434C-A113-BC8B347A416A
[2024-02-07 15:58:39] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-0F597A27-6DC7-434C-A113-BC8B347A416A directory to /tmp/wazuh-qa/i-059f3633d852e14a8
[2024-02-07 15:58:39] [INFO] ALLOCATOR: Instance i-059f3633d852e14a8 created.
[2024-02-07 15:58:40] [INFO] ALLOCATOR: Instance i-059f3633d852e14a8 started.
[2024-02-07 15:58:40] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 15:58:40] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 15:59:06] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 15:59:06] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 15:59:08] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 16:00:41] [INFO] ALLOCATOR: Instance i-059f3633d852e14a8 deleted.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --composite-name windows-server-2022-amd64 --provider aws --size small
[2024-02-07 16:01:23] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-02-07 16:01:23] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-02-07 16:01:23] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-35F1A922-B3F3-4523-B1B2-8157C2F6A915
[2024-02-07 16:01:42] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-35F1A922-B3F3-4523-B1B2-8157C2F6A915 directory to /tmp/wazuh-qa/i-0d09011f21805c5bf
[2024-02-07 16:01:42] [INFO] ALLOCATOR: Instance i-0d09011f21805c5bf created.
[2024-02-07 16:01:44] [INFO] ALLOCATOR: Instance i-0d09011f21805c5bf started.
[2024-02-07 16:01:44] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-02-07 16:01:44] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa/deployability$ python3 launchers/allocation.py --provider aws --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-02-07 16:02:21] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-02-07 16:02:21] [DEBUG] ALLOCATOR: No credentials found. Loading from instance directory.
[2024-02-07 16:02:22] [DEBUG] ALLOCATOR: Deleting credentials: None
[2024-02-07 16:03:40] [INFO] ALLOCATOR: Instance i-0d09011f21805c5bf deleted.
LGTM
LGTM
Description
This issue aims to add new sizes and operating systems for the AWS provider, including validating the correct functioning of these OSs along with those added previously.
Tasks