Closed fcaffieri closed 1 month ago
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider=aws --size=small --composite-name=macos-sonoma-14.3-amd64 --inventory-output=/tmp/dtt1-poc/agent-macos-sonoma-14.3-amd64/inventory.yaml --track-output=/tmp/dtt1-poc/agent-macos-sonoma-14.3-amd64/track.yaml --label-termination-date=1d --label-team=qa
[2024-04-16 16:12:28] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-04-16 16:12:28] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-04-16 16:12:28] [DEBUG] ALLOCATOR: Generating new key pair
[2024-04-16 16:12:28] [DEBUG] ALLOCATOR: Creating base directory: /tmp/wazuh-qa/AWS-08107AB8-D35E-46C4-969F-BC54FC83CD82
[2024-04-16 16:12:29] [INFO] ALLOCATOR: Creating dedicated host: sonoma-14.3-amd64-Host-amd64
[2024-04-16 16:12:30] [INFO] ALLOCATOR: Dedicated host created: h-0e7acba641ac61574
[2024-04-16 16:12:48] [DEBUG] ALLOCATOR: Renaming temp /tmp/wazuh-qa/AWS-08107AB8-D35E-46C4-969F-BC54FC83CD82 directory to /tmp/wazuh-qa/i-04abd63b93567a097
[2024-04-16 16:12:48] [INFO] ALLOCATOR: Instance i-04abd63b93567a097 created.
[2024-04-16 16:12:50] [INFO] ALLOCATOR: Instance i-04abd63b93567a097 started.
[2024-04-16 16:12:50] [INFO] ALLOCATOR: Inventory file generated at /tmp/dtt1-poc/agent-macos-sonoma-14.3-amd64/inventory.yaml
[2024-04-16 16:12:50] [INFO] ALLOCATOR: Track file generated at /tmp/dtt1-poc/agent-macos-sonoma-14.3-amd64/track.yaml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/dtt1-poc/agent-macos-sonoma-14.3-amd64/inventory.yaml
ansible_connection: ssh
ansible_host: ec2-107-23-191-112.compute-1.amazonaws.com
ansible_port: 2200
ansible_ssh_private_key_file: /tmp/wazuh-qa/i-04abd63b93567a097/sonoma-14.3-amd64-key-8333
ansible_user: ec2-user
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -i /tmp/wazuh-qa/i-04abd63b93567a097/sonoma-14.3-amd64-key-8333 -p 2200 ec2-user@ec2-107-23-191-112.compute-1.amazonaws.com
ssh: connect to host ec2-107-23-191-112.compute-1.amazonaws.com port 2200: Connection timed out
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -i /tmp/wazuh-qa/i-04abd63b93567a097/sonoma-14.3-amd64-key-8333 -p 2200 ec2-user@ec2-107-23-191-112.compute-1.amazonaws.com
The authenticity of host '[ec2-107-23-191-112.compute-1.amazonaws.com]:2200 ([107.23.191.112]:2200)' can't be established.
ED25519 key fingerprint is SHA256:Zte1dcelyJzt+Ep3l2yR/I5706V1rfmHocEFpj9W4Fg.
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-107-23-191-112.compute-1.amazonaws.com]:2200' (ED25519) to the list of known hosts.
┌───┬──┐ __| __|_ )
│ ╷╭╯╷ │ _| ( /
│ └╮ │ ___|\___|___|
│ ╰─┼╯ │ Amazon EC2
└───┴──┘ macOS Sonoma 14.3
Error reading managed configuration (2: No such file or directory). Proceeding with default configuration.
Error reading managed configuration (2: No such file or directory). Proceeding with default configuration.
Error reading managed configuration (2: No such file or directory). Proceeding with default configuration.
ec2-user@ip-172-31-22-127 ~ % exit
Connection to ec2-107-23-191-112.compute-1.amazonaws.com closed.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/dtt1-poc/agent-macos-sonoma-14.3-amd64/track.yaml
[2024-04-16 16:20:32] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/dtt1-poc/agent-macos-sonoma-14.3-amd64/track.yaml
[2024-04-16 16:20:33] [DEBUG] ALLOCATOR: Deleting credentials: sonoma-14.3-amd64-key-8333
[2024-04-16 16:29:01] [INFO] ALLOCATOR: Releasing dedicated host: h-0e7acba641ac61574
[2024-04-16 16:29:02] [INFO] ALLOCATOR: Unable to release Dedicated Host h-0e7acba641ac61574. mac1.metal hosts must be allocated to your AWS account for at least 24 hour(s). You can release this host any time after 2024-04-17T19:12:30.778Z.
[2024-04-16 16:29:02] [INFO] ALLOCATOR: Instance i-04abd63b93567a097 deleted.
LGTM
Description
The following error was encountered when trying macOS allocation.
Input YAML:
Error: