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 Allocator module with Debian 12.6 OS #5529

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

davidcr01
Copy link
Contributor

Description


The aim of this PR is to update the Allocator module with the Debian 12.6 AMIs.
Related: wazuh/wazuh#24371

Testing performed

An AMI was created from the updated system, and a test with the new AMI was performed:

> python3 modules/allocation/main.py --action create --provider aws --size large --composite-name linux-debian-12-amd64 --inventory-output "/tmp/dtt1-poc/debian12-new/inventory.yaml" --track-output "/tmp/dtt1-poc/debian12-new/track.yaml" --label-termination-date "1d" --label-team "devops" --label-issue "https:/wazuh/wazuh/issues/24371"

[2024-07-01 16:47:38] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-07-01 16:47:40] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-07-01 16:47:40] [DEBUG] ALLOCATOR: Generating new key pair
[2024-07-01 16:47:40] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-0B8FC857-4566-4BF4-859A-164DDBA011D1
[2024-07-01 16:48:00] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-0B8FC857-4566-4BF4-859A-164DDBA011D1 directory to /tmp/wazuh-qa/i-0c990b411aa58d4d2
[2024-07-01 16:48:00] [INFO] ALLOCATOR: Instance i-0c990b411aa58d4d2 created.
[2024-07-01 16:48:02] [INFO] ALLOCATOR: Instance i-0c990b411aa58d4d2 started.
[2024-07-01 16:48:02] [INFO] ALLOCATOR: The inventory file generated at /tmp/dtt1-poc/debian12-new/inventory.yaml
[2024-07-01 16:48:02] [INFO] ALLOCATOR: The track file generated at /tmp/dtt1-poc/debian12-new/track.yaml
[2024-07-01 16:48:09] [WARNING] ALLOCATOR: Error on attempt 1 of 30: [Errno None] Unable to connect to port 2200 on 100.26.55.137
[2024-07-01 16:48:41] [INFO] ALLOCATOR: SSH connection successful.
[2024-07-01 16:48:41] [INFO] ALLOCATOR: Instance i-0c990b411aa58d4d2 created successfully.

> ssh -i /tmp/wazuh-qa/i-0c990b411aa58d4d2/wazuh-24371-debian-12-key-5561 [email protected] -p2200
The authenticity of host '[ec2-XXX-XX-XX-XXX.compute-1.amazonaws.com]:2200 ([100.26.55.137]:2200)' can't be established.
ED25519 key fingerprint is SHA256:PXJ9Rr7H17MDsolsaZOjbYJRDIcLNK0oSmuiWKWBsRI.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[ec2-XXX-XX-XX-XXX.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
Linux ip-172-31-25-152 6.1.0-13-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Jul  1 14:33:46 2024 from 79.117.226.210
admin@ip-172-31-25-152:~$ cat /etc/
Display all 139 possibilities? (y or n)
admin@ip-172-31-25-152:~$ cat /etc/debian_version 
12.6

Same test was performed with the Debian 12.6 ARM64 system.

@davidcr01 davidcr01 requested a review from teddytpc1 July 1, 2024 15:12
@davidcr01 davidcr01 self-assigned this Jul 1, 2024
@teddytpc1 teddytpc1 linked an issue Jul 1, 2024 that may be closed by this pull request
2 tasks
@rauldpm rauldpm merged commit 9a69fa2 into 4.9.0 Jul 2, 2024
@rauldpm rauldpm deleted the maintenance/ww24371-support-debian-12.6-allocator branch July 2, 2024 11:16
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.

Support new OSs - Debian 12.6 - Update allocator module
4 participants