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

Added Ubuntu 24.04 AMD64 and ARM64 to the Allocator #5428

Merged

Conversation

davidcr01
Copy link

@davidcr01 davidcr01 commented May 23, 2024

close #5425

Description

The aim of this PR is to add the Ubuntu 24.04 AMD64 and ARM64 instances to the Allocator module.

  • The chosen AMIs were selected from the community AMIs
  • Some changes have been performed to the userData script in order to perform the SSH port change.

Testing

>  python3 modules/allocation/main.py --action create --provider aws --size micro --composite-name linux-ubuntu-24.04-amd64 --inventory-output "/tmp/dtt1-poc/test-ubuntu-24-amd/inventory.yaml" --track-output "/tmp/dtt1-poc/test-ubuntu-24-amd/track.yaml" --label-issue "https://github.com/wazuh/wazuh-qa/issues/5425" --label-termination-date "1d" --label-team "devops"
[2024-05-23 18:03:10] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-05-23 18:03:10] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-05-23 18:03:10] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-23 18:03:11] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-23 18:03:11] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-23 18:03:11] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-BDFD2ACC-FD47-4DD4-AC20-7466F7C983CA
[2024-05-23 18:03:45] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-BDFD2ACC-FD47-4DD4-AC20-7466F7C983CA directory to /tmp/wazuh-qa/i-059de0883a57d5918
[2024-05-23 18:03:45] [INFO] ALLOCATOR: Instance i-059de0883a57d5918 created.
[2024-05-23 18:03:47] [INFO] ALLOCATOR: Instance i-059de0883a57d5918 started.
[2024-05-23 18:03:48] [INFO] ALLOCATOR: The inventory file generated at /tmp/dtt1-poc/test-ubuntu-24-amd/inventory.yaml
[2024-05-23 18:03:48] [INFO] ALLOCATOR: The track file generated at /tmp/dtt1-poc/test-ubuntu-24-amd/track.yaml
[2024-05-23 18:03:50] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 18.212.59.196
[2024-05-23 18:04:21] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-23 18:04:21] [INFO] ALLOCATOR: Instance i-059de0883a57d5918 created successfully.
>  python3 modules/allocation/main.py --action create --provider aws --size micro --composite-name linux-ubuntu-24.04-arm64 --inventory-output "/tmp/dtt1-poc/test-ubuntu-24-arm/inventory.yaml" --track-output "/tmp/dtt1-poc/test-ubuntu-24-arm/track.yaml" --label-issue "https://github.com/wazuh/wazuh-qa/issues/5425" --label-termination-date "1d" --label-team "devops"
[2024-05-23 18:36:02] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-23 18:36:03] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-23 18:36:03] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-23 18:36:03] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-284704CA-BD31-4EF6-BD94-BE6ED2533D7E
[2024-05-23 18:36:23] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-284704CA-BD31-4EF6-BD94-BE6ED2533D7E directory to /tmp/wazuh-qa/i-03dfaf203b30bdc12
[2024-05-23 18:36:23] [INFO] ALLOCATOR: Instance i-03dfaf203b30bdc12 created.
[2024-05-23 18:36:24] [INFO] ALLOCATOR: Instance i-03dfaf203b30bdc12 started.
[2024-05-23 18:36:24] [INFO] ALLOCATOR: The inventory file generated at /tmp/dtt1-poc/test-ubuntu-24-arm/inventory.yaml
[2024-05-23 18:36:24] [INFO] ALLOCATOR: The track file generated at /tmp/dtt1-poc/test-ubuntu-24-arm/track.yaml
[2024-05-23 18:36:25] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 54.152.255.55
[2024-05-23 18:36:56] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-23 18:36:56] [INFO] ALLOCATOR: Instance i-03dfaf203b30bdc12 created successfully.

@davidcr01 davidcr01 requested a review from c-bordon May 23, 2024 16:45
@davidcr01 davidcr01 self-assigned this May 23, 2024
@davidcr01 davidcr01 marked this pull request as draft May 23, 2024 16:45
@c-bordon c-bordon marked this pull request as ready for review May 23, 2024 18:24
@c-bordon c-bordon merged commit afd6c1f into 4495-dtt1-release May 23, 2024
@c-bordon c-bordon deleted the maintenance/5425-add-ubuntu-2410-in-allocator branch May 23, 2024 18:24
@c-bordon c-bordon linked an issue May 23, 2024 that may be closed by this pull request
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.

Update Ubuntu 24.04 availability in the allocator module
3 participants