Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Windows server AMis #5831

Conversation

c-bordon
Copy link
Member

related #5830

Description

AWS updated the Windows server AMIs and disabled the previous ones, our file is updated

Tests

Windows server 2016

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider aws --size large --label-issue https://github.com/wazuh/wazuh-qa/issues/5830 --label-termination-date 1d --label-team devops --composite-name windows-server-2016-amd64
[2024-10-29 12:00:40] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-10-29 12:00:40] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-10-29 12:00:40] [DEBUG] ALLOCATOR: Creating temp directory: /tmp/wazuh-qa/AWS-8E425F08-5C31-4CBA-BBE3-2D2300585B05
[2024-10-29 12:00:59] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-8E425F08-5C31-4CBA-BBE3-2D2300585B05 directory to /tmp/wazuh-qa/qa-5830-server-2016-4993
[2024-10-29 12:00:59] [INFO] ALLOCATOR [QA-5830-SERVER-2016]: Instance i-0e2c56c4fdc42969d created.
[2024-10-29 12:01:01] [INFO] ALLOCATOR [QA-5830-SERVER-2016]: Instance i-0e2c56c4fdc42969d started.
[2024-10-29 12:01:01] [INFO] ALLOCATOR [QA-5830-SERVER-2016]: The inventory file generated at /tmp/wazuh-qa/qa-5830-server-2016-4993/inventory.yaml
[2024-10-29 12:01:01] [INFO] ALLOCATOR [QA-5830-SERVER-2016]: The track file generated at /tmp/wazuh-qa/qa-5830-server-2016-4993/track.yaml
[2024-10-29 12:01:31] [WARNING] ALLOCATOR [QA-5830-SERVER-2016]: Error on attempt 1 of 30: HTTPSConnectionPool(host='ec2-35-174-11-245.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7749f84005b0>, 'Connection to ec2-35-174-11-245.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-10-29 12:02:31] [WARNING] ALLOCATOR [QA-5830-SERVER-2016]: Error on attempt 2 of 30: HTTPSConnectionPool(host='ec2-35-174-11-245.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7749f84026e0>, 'Connection to ec2-35-174-11-245.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-10-29 12:03:13] [INFO] ALLOCATOR [QA-5830-SERVER-2016]: WinRM connection successful.
[2024-10-29 12:03:13] [INFO] ALLOCATOR [QA-5830-SERVER-2016]: Instance i-0e2c56c4fdc42969d created successfully.

Windows server 2019

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider aws --size large --label-issue https://github.com/wazuh/wazuh-qa/issues/5830 --label-termination-date 1d --label-team devops --composite-name windows-server-2019-amd64
[2024-10-29 12:03:46] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-10-29 12:03:47] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-10-29 12:03:47] [DEBUG] ALLOCATOR: Creating temp directory: /tmp/wazuh-qa/AWS-DA6B3701-C269-4974-8767-D5A29BB6310C
[2024-10-29 12:04:05] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-DA6B3701-C269-4974-8767-D5A29BB6310C directory to /tmp/wazuh-qa/qa-5830-server-2019-7870
[2024-10-29 12:04:05] [INFO] ALLOCATOR [QA-5830-SERVER-2019]: Instance i-04f3ee971af0cb573 created.
[2024-10-29 12:04:07] [INFO] ALLOCATOR [QA-5830-SERVER-2019]: Instance i-04f3ee971af0cb573 started.
[2024-10-29 12:04:07] [INFO] ALLOCATOR [QA-5830-SERVER-2019]: The inventory file generated at /tmp/wazuh-qa/qa-5830-server-2019-7870/inventory.yaml
[2024-10-29 12:04:07] [INFO] ALLOCATOR [QA-5830-SERVER-2019]: The track file generated at /tmp/wazuh-qa/qa-5830-server-2019-7870/track.yaml
[2024-10-29 12:04:37] [WARNING] ALLOCATOR [QA-5830-SERVER-2019]: Error on attempt 1 of 30: HTTPSConnectionPool(host='ec2-34-229-214-54.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x769d3fc38490>, 'Connection to ec2-34-229-214-54.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-10-29 12:05:37] [WARNING] ALLOCATOR [QA-5830-SERVER-2019]: Error on attempt 2 of 30: HTTPSConnectionPool(host='ec2-34-229-214-54.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x769d3fc3ad40>, 'Connection to ec2-34-229-214-54.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-10-29 12:06:13] [WARNING] ALLOCATOR [QA-5830-SERVER-2019]: Error on attempt 3 of 30: the specified credentials were rejected by the server
[2024-10-29 12:06:50] [INFO] ALLOCATOR [QA-5830-SERVER-2019]: WinRM connection successful.
[2024-10-29 12:06:50] [INFO] ALLOCATOR [QA-5830-SERVER-2019]: Instance i-04f3ee971af0cb573 created successfully.

Windows server 2022

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider aws --size large --label-issue https://github.com/wazuh/wazuh-qa/issues/5830 --label-termination-date 1d --label-team devops --composite-name windows-server-2022-amd64
[2024-10-29 12:07:00] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-10-29 12:07:01] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-10-29 12:07:01] [DEBUG] ALLOCATOR: Creating temp directory: /tmp/wazuh-qa/AWS-1F5EB70D-CA44-43B8-BA37-DBCFE35A0097
[2024-10-29 12:07:20] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-1F5EB70D-CA44-43B8-BA37-DBCFE35A0097 directory to /tmp/wazuh-qa/qa-5830-server-2022-3335
[2024-10-29 12:07:20] [INFO] ALLOCATOR [QA-5830-SERVER-2022]: Instance i-0ba0096804bbe47d3 created.
[2024-10-29 12:07:21] [INFO] ALLOCATOR [QA-5830-SERVER-2022]: Instance i-0ba0096804bbe47d3 started.
[2024-10-29 12:07:21] [INFO] ALLOCATOR [QA-5830-SERVER-2022]: The inventory file generated at /tmp/wazuh-qa/qa-5830-server-2022-3335/inventory.yaml
[2024-10-29 12:07:21] [INFO] ALLOCATOR [QA-5830-SERVER-2022]: The track file generated at /tmp/wazuh-qa/qa-5830-server-2022-3335/track.yaml
[2024-10-29 12:07:52] [WARNING] ALLOCATOR [QA-5830-SERVER-2022]: Error on attempt 1 of 30: HTTPSConnectionPool(host='ec2-3-93-50-146.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x75ec88a08490>, 'Connection to ec2-3-93-50-146.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-10-29 12:08:52] [WARNING] ALLOCATOR [QA-5830-SERVER-2022]: Error on attempt 2 of 30: HTTPSConnectionPool(host='ec2-3-93-50-146.compute-1.amazonaws.com', port=5986): Max retries exceeded with url: /wsman (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x75ec88a0a350>, 'Connection to ec2-3-93-50-146.compute-1.amazonaws.com timed out. (connect timeout=30)'))
[2024-10-29 12:09:29] [INFO] ALLOCATOR [QA-5830-SERVER-2022]: WinRM connection successful.
[2024-10-29 12:09:29] [INFO] ALLOCATOR [QA-5830-SERVER-2022]: Instance i-0ba0096804bbe47d3 created successfully.

@c-bordon c-bordon requested a review from a team October 29, 2024 15:12
@c-bordon c-bordon self-assigned this Oct 29, 2024
CarlosALgit
CarlosALgit previously approved these changes Oct 29, 2024
Enaraque
Enaraque previously approved these changes Oct 29, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
@c-bordon c-bordon dismissed stale reviews from Enaraque and CarlosALgit via 6cc217f October 29, 2024 15:30
@c-bordon c-bordon requested a review from juliamagan October 29, 2024 15:31
@juliamagan juliamagan merged commit c0e6a01 into 4.9.2 Oct 29, 2024
@juliamagan juliamagan deleted the bug/5830-indexerror-list-index-out-of-range-error-during-windows-server-2019-and-2022-deployment branch October 29, 2024 15:31
@rauldpm rauldpm mentioned this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IndexError: list index out of range error during Windows Server 2019 and 2022 deployment
4 participants