wazuh / wazuh-qa

Wazuh - Quality Assurance
GNU General Public License v2.0
60 stars 30 forks source link

Added Windows sign AMI #5285

Closed c-bordon closed 1 week ago

c-bordon commented 1 week ago

Close https://github.com/wazuh/wazuh-qa/issues/5284

Added Windows AMI for signing packages.

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider aws --size micro --label-termination-date "1d" --label-team devops --composite-name windows-sign-10-amd64
[2024-04-23 10:04:24] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-04-23 10:04:24] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-04-23 10:04:24] [DEBUG] ALLOCATOR: Creating temp directory: /tmp/wazuh-qa/AWS-4C07DADD-F0D1-4F60-81DE-4406DD6257ED
[2024-04-23 10:05:13] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-4C07DADD-F0D1-4F60-81DE-4406DD6257ED directory to /tmp/wazuh-qa/i-063a231916a6cf649
[2024-04-23 10:05:13] [INFO] ALLOCATOR: Instance i-063a231916a6cf649 created.
[2024-04-23 10:05:14] [INFO] ALLOCATOR: Instance i-063a231916a6cf649 started.
[2024-04-23 10:05:15] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/i-063a231916a6cf649/inventory.yml
[2024-04-23 10:05:45] [WARNING] ALLOCATOR: Error on attempt 1 of 30: HTTPSConnectionPool(host='ec2-54-81-206-182.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7de9c7583610>, 'Connection to ec2-54-81-206-182.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-04-23 10:06:45] [WARNING] ALLOCATOR: Error on attempt 2 of 30: HTTPSConnectionPool(host='ec2-54-81-206-182.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7de9c7517340>, 'Connection to ec2-54-81-206-182.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-04-23 10:07:45] [WARNING] ALLOCATOR: Error on attempt 3 of 30: HTTPSConnectionPool(host='ec2-54-81-206-182.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7de9c7640160>, 'Connection to ec2-54-81-206-182.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-04-23 10:08:24] [WARNING] ALLOCATOR: Error on attempt 4 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:08:54] [WARNING] ALLOCATOR: Error on attempt 5 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:09:25] [WARNING] ALLOCATOR: Error on attempt 6 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:09:55] [WARNING] ALLOCATOR: Error on attempt 7 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:10:25] [WARNING] ALLOCATOR: Error on attempt 8 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:10:56] [WARNING] ALLOCATOR: Error on attempt 9 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:11:26] [WARNING] ALLOCATOR: Error on attempt 10 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:11:56] [WARNING] ALLOCATOR: Error on attempt 11 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:12:27] [WARNING] ALLOCATOR: Error on attempt 12 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:12:57] [WARNING] ALLOCATOR: Error on attempt 13 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:13:28] [WARNING] ALLOCATOR: Error on attempt 14 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:13:58] [WARNING] ALLOCATOR: Error on attempt 15 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:14:28] [WARNING] ALLOCATOR: Error on attempt 16 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:14:59] [WARNING] ALLOCATOR: Error on attempt 17 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:15:29] [WARNING] ALLOCATOR: Error on attempt 18 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:15:59] [WARNING] ALLOCATOR: Error on attempt 19 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:17:00] [WARNING] ALLOCATOR: Error on attempt 20 of 30: HTTPSConnectionPool(host='ec2-54-81-206-182.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7de9c75148b0>, 'Connection to ec2-54-81-206-182.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-04-23 10:17:30] [WARNING] ALLOCATOR: Error on attempt 21 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:18:00] [WARNING] ALLOCATOR: Error on attempt 22 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:18:31] [WARNING] ALLOCATOR: Error on attempt 23 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:19:01] [WARNING] ALLOCATOR: Error on attempt 24 of 30: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[2024-04-23 10:19:53] [WARNING] ALLOCATOR: Error on attempt 25 of 30: 
[2024-04-23 10:20:44] [WARNING] ALLOCATOR: Error on attempt 26 of 30: 
[2024-04-23 10:21:36] [WARNING] ALLOCATOR: Error on attempt 27 of 30: 
[2024-04-23 10:22:08] [INFO] ALLOCATOR: WinRM connection successful.
[2024-04-23 10:22:08] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/i-063a231916a6cf649/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/i-063a231916a6cf649/track.yml
[2024-04-23 10:22:38] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/i-063a231916a6cf649/track.yml
[2024-04-23 10:23:26] [INFO] ALLOCATOR: Instance i-063a231916a6cf649 deleted.