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

DTT1 - Iteration 3 - Allocation module - Expose the port of the macOS Intel VMs in the same way as it is done on the ARM host #5367

Closed
2 tasks done
c-bordon opened this issue May 13, 2024 · 22 comments · Fixed by #5389
Assignees
Labels

Comments

@c-bordon
Copy link
Member

c-bordon commented May 13, 2024

Description

The objective of this issue is to expose the port for Intel machines on the macStadium host in the same way we do with ARM. The reason is to ensure that access to the VM is through the private IP only. We have tested this in this issue #5354 and we had different behaviors depending on the virtualizer, in the case of VirtualBox the configuration worked correctly, but in the case of Parallels, despite having the 'host_ip' configuration correctly configured, the VM could be accessed through both the public IP and the private IP.

@c-bordon c-bordon self-assigned this May 13, 2024
@c-bordon
Copy link
Member Author

macOS Intel test

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name macos-sonoma-14-amd64
[2024-05-14 16:31:50] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-14 16:32:03] [INFO] ALLOCATOR: Using the macStadium Intel server to deploy.
[2024-05-14 16:32:03] [DEBUG] ALLOCATOR: Checking if instance directory exists on remote host
[2024-05-14 16:32:06] [DEBUG] ALLOCATOR: Creating instance directory on remote host
[2024-05-14 16:32:09] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-14 16:32:09] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-14 16:32:12] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-14 16:32:24] [INFO] ALLOCATOR: Instance cbordon-test-9914 created.
[2024-05-14 16:33:11] [INFO] ALLOCATOR: Instance cbordon-test-9914 started.
[2024-05-14 16:33:29] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/cbordon-test-9914/inventory.yml
[2024-05-14 16:33:31] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-14 16:33:31] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/cbordon-test-9914/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-9914/inventory.yml
ansible_connection: ssh
ansible_host: <private-ip>
ansible_password: vagrant
ansible_port: 43232
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -o StrictHostKeyChecking=no -p 43232 vagrant@<private-ip>
Warning: Permanently added '[<private-ip>]:43232' (ED25519) to the list of known hosts.
(vagrant@<private-ip>) Password:
Last login: Mon Apr 29 10:55:19 2024 from <private-ip>
vagrant@macos-14 ~ % exit                
Connection to <private-ip> closed.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -o StrictHostKeyChecking=no -p 43232 vagrant@<public-ip>
ssh: connect to host <public-ip> port 43232: Connection refused
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/cbordon-test-9914/track.yml 
[2024-05-14 16:34:27] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/cbordon-test-9914/track.yml
[2024-05-14 16:34:29] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-9914
[2024-05-14 16:34:43] [DEBUG] ALLOCATOR: Deleting remote directory /Users/jenkins/testing/cbordon-test-9914
[2024-05-14 16:34:46] [DEBUG] ALLOCATOR: Killing remote process on port 43232
[2024-05-14 16:34:52] [INFO] ALLOCATOR: Instance cbordon-test-9914 deleted.

@c-bordon
Copy link
Member Author

Update report

I encountered a problem when trying to provision Intel machines with VirtualBox virtualizer, this causes me to have to modify the configuration, and differentiate the configuration according to the virtualizer.

I will work on this to achieve the desired configuration

@c-bordon
Copy link
Member Author

macOS Intel VirtualBox test

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name macos-highsierra-10.13-amd64
[2024-05-15 07:45:47] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-15 07:46:01] [INFO] ALLOCATOR: Using the macStadium Intel server to deploy.
[2024-05-15 07:46:01] [DEBUG] ALLOCATOR: Checking if instance directory exists on remote host
[2024-05-15 07:46:03] [DEBUG] ALLOCATOR: Creating instance directory on remote host
[2024-05-15 07:46:06] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-15 07:46:06] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-15 07:46:13] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-15 07:46:24] [INFO] ALLOCATOR: Instance cbordon-test-4358 created.
[2024-05-15 07:48:09] [INFO] ALLOCATOR: Instance cbordon-test-4358 started.
[2024-05-15 07:48:18] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/cbordon-test-4358/inventory.yml
[2024-05-15 07:48:20] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-15 07:48:20] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/cbordon-test-4358/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-4358/inventory.yml
ansible_connection: ssh
ansible_host: <private-ip>
ansible_password: vagrant
ansible_port: 43221
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-4358/track.yml
arch: amd64
host_identifier: macstadium
host_instance_dir: /Users/jenkins/testing/cbordon-test-4358
identifier: cbordon-test-4358
instance_dir: /tmp/wazuh-qa/cbordon-test-4358
key_path: /tmp/wazuh-qa/cbordon-test-4358/instance_key
platform: macos
provider: vagrant
ssh_port: 43221
virtualizer: virtualbox
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -o StrictHostKeyChecking=no -p 43221 vagrant@<private-ip>
Warning: Permanently added '[<private-ip>]:43221' (ED25519) to the list of known hosts.
(vagrant@<private-ip>) Password:
Last login: Mon Oct 28 09:13:54 2019 from <private-ip>
vagrants-iMac:~ vagrant$ exit
logout
Connection to <private-ip> closed.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -o StrictHostKeyChecking=no -p 43221 vagrant@<public-ip>
ssh: connect to host <public-ip> port 43221: Connection refused
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/cbordon-test-4358/track.yml
[2024-05-15 07:51:38] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/cbordon-test-4358/track.yml
[2024-05-15 07:51:39] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-4358
[2024-05-15 07:51:51] [DEBUG] ALLOCATOR: Deleting remote directory /Users/jenkins/testing/cbordon-test-4358
[2024-05-15 07:51:54] [INFO] ALLOCATOR: Instance cbordon-test-4358 deleted.

@c-bordon
Copy link
Member Author

macOS ARM

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name macos-ventura-13-arm64
[2024-05-15 08:24:29] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-15 08:24:35] [INFO] ALLOCATOR: macStadium ARM server has less than 2 VMs running, deploying in this host.
[2024-05-15 08:24:35] [DEBUG] ALLOCATOR: Checking if instance directory exists on remote host
[2024-05-15 08:24:38] [DEBUG] ALLOCATOR: Creating instance directory on remote host
[2024-05-15 08:24:41] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-15 08:24:41] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-15 08:24:44] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-15 08:24:56] [INFO] ALLOCATOR: Instance cbordon-test-6618 created.
[2024-05-15 08:25:48] [INFO] ALLOCATOR: Instance cbordon-test-6618 started.
[2024-05-15 08:26:02] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/cbordon-test-6618/inventory.yml
[2024-05-15 08:26:04] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-15 08:26:04] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/cbordon-test-6618/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-6618/inventory.yml
ansible_connection: ssh
ansible_host: <private-ip>
ansible_password: vagrant
ansible_port: 43226
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -o StrictHostKeyChecking=no -p 43226 vagrant@<private-ip>
Warning: Permanently added '[<private-ip>]:43226' (ED25519) to the list of known hosts.
(vagrant@<private-ip>) Password:
Last login: Thu Jul 27 10:32:18 2023
vagrant@macos-13 ~ % exit
Connection to <private-ip> closed.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -o StrictHostKeyChecking=no -p 43226 vagrant@<public-ip>
ssh: connect to host <public-ip> port 43226: Connection refused
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/cbordon-test-6618/track.yml 
[2024-05-15 08:32:09] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/cbordon-test-6618/track.yml
[2024-05-15 08:32:10] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-6618
[2024-05-15 08:32:23] [DEBUG] ALLOCATOR: Deleting remote directory /Users/jenkins/testing/cbordon-test-6618
[2024-05-15 08:32:26] [DEBUG] ALLOCATOR: Killing remote process on port 43226
[2024-05-15 08:32:31] [INFO] ALLOCATOR: Instance cbordon-test-6618 deleted.

@c-bordon
Copy link
Member Author

PPC test

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-debian-9-ppc64
[2024-05-15 08:44:52] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-15 08:44:57] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-15 08:44:57] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-15 08:45:05] [INFO] ALLOCATOR: Instance cbordon-test-9178 created.
[2024-05-15 08:45:14] [INFO] ALLOCATOR: Instance cbordon-test-9178 started.
[2024-05-15 08:45:14] [INFO] ALLOCATOR: Inventory file generated at /tmp/wazuh-qa/cbordon-test-9178/inventory.yml
[2024-05-15 08:45:15] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-15 08:45:15] [INFO] ALLOCATOR: Track file generated at /tmp/wazuh-qa/cbordon-test-9178/track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-9178/inventory.yml
ansible_connection: ssh
ansible_host: <public-ip>
ansible_port: 2222
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-qa/cbordon-test-9178/instance_key
ansible_user: root
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-9178/track.yml
arch: ppc64
host_identifier: debian
host_instance_dir: None
identifier: cbordon-test-9178
instance_dir: /tmp/wazuh-qa/cbordon-test-9178
key_path: /tmp/wazuh-qa/cbordon-test-9178/instance_key
platform: linux
provider: vagrant
ssh_port: 2222
virtualizer: docker
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ssh -o StrictHostKeyChecking=no -p 2222 -i /tmp/wazuh-qa/cbordon-test-9178/instance_key root@<public-ip>
Linux 6ce657c68cae 4.9.0-13-powerpc64le #1 SMP Debian 4.9.228-1 (2020-07-05) ppc64le

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.
root@6ce657c68cae:~# exit
logout
Connection to <public-ip> closed.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/cbordon-test-9178/track.yml 
[2024-05-15 08:48:27] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/cbordon-test-9178/track.yml
[2024-05-15 08:48:28] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-9178
[2024-05-15 08:48:33] [INFO] ALLOCATOR: Instance cbordon-test-9178 deleted.

@c-bordon

This comment was marked as outdated.

@c-bordon

This comment was marked as outdated.

@c-bordon

This comment was marked as outdated.

@c-bordon

This comment was marked as outdated.

@c-bordon

This comment was marked as outdated.

@c-bordon

This comment was marked as outdated.

@c-bordon

This comment was marked as outdated.

@c-bordon

This comment was marked as outdated.

@c-bordon
Copy link
Member Author

Testing custom track file path:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --track-output /tmp/wazuh-qa/track.yml
[2024-05-16 10:10:25] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:10:26] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:10:26] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:10:29] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:10:29] [INFO] ALLOCATOR: Instance cbordon-test-316 created.
[2024-05-16 10:11:09] [INFO] ALLOCATOR: Instance cbordon-test-316 started.
[2024-05-16 10:11:12] [INFO] ALLOCATOR: The inventory file generated at /tmp/wazuh-qa/cbordon-test-316/inventory.yaml
[2024-05-16 10:11:12] [INFO] ALLOCATOR: The track file generated at /tmp/wazuh-qa/track.yml
[2024-05-16 10:11:12] [INFO] ALLOCATOR: SSH connection successful.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-316/inventory.yaml
ansible_connection: ssh
ansible_host: 192.168.57.42
ansible_port: 22
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-qa/cbordon-test-316/instance_key
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/track.yml
arch: amd64
host_identifier: None
host_instance_dir: None
identifier: cbordon-test-316
instance_dir: /tmp/wazuh-qa/cbordon-test-316
key_path: /tmp/wazuh-qa/cbordon-test-316/instance_key
platform: linux
provider: vagrant
ssh_port: 22
virtualizer: virtualbox
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /tmp/wazuh-qa/cbordon-test-316/
total 32
drwxrwxr-x 3 cbordon cbordon 4096 may 16 10:11 .
drwxrwxr-x 3 cbordon cbordon 4096 may 16 10:11 ..
-rw-rw-r-- 1 cbordon cbordon   11 may 16 10:10 init
-rw------- 1 cbordon cbordon 2455 may 16 10:10 instance_key
-rw-r--r-- 1 cbordon cbordon  577 may 16 10:10 instance_key.pub
-rw-rw-r-- 1 cbordon cbordon  218 may 16 10:11 inventory.yaml
drwxrwxr-x 5 cbordon cbordon 4096 may 16 10:10 .vagrant
-rw-rw-r-- 1 cbordon cbordon 1014 may 16 10:10 Vagrantfile
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/track.yml
[2024-05-16 10:15:31] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/track.yml
[2024-05-16 10:15:31] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-316
[2024-05-16 10:15:36] [INFO] ALLOCATOR: Instance cbordon-test-316 deleted.

@c-bordon
Copy link
Member Author

Testing custom inventory file path:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --inventory-output /tmp/wazuh-qa/inventory.yml
[2024-05-16 10:19:00] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:19:01] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:19:01] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:19:04] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:19:04] [INFO] ALLOCATOR: Instance cbordon-test-7368 created.
[2024-05-16 10:19:43] [INFO] ALLOCATOR: Instance cbordon-test-7368 started.
[2024-05-16 10:19:46] [INFO] ALLOCATOR: The inventory file generated at /tmp/wazuh-qa/inventory.yml
[2024-05-16 10:19:46] [INFO] ALLOCATOR: The track file generated at /tmp/wazuh-qa/cbordon-test-7368/track.yaml
[2024-05-16 10:19:46] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-16 10:19:46] [INFO] ALLOCATOR: Instance cbordon-test-7368 created successfully.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/inventory.yml
ansible_connection: ssh
ansible_host: 192.168.57.244
ansible_port: 22
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-qa/cbordon-test-7368/instance_key
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-7368/track.yaml
arch: amd64
host_identifier: None
host_instance_dir: None
identifier: cbordon-test-7368
instance_dir: /tmp/wazuh-qa/cbordon-test-7368
key_path: /tmp/wazuh-qa/cbordon-test-7368/instance_key
platform: linux
provider: vagrant
ssh_port: 22
virtualizer: virtualbox
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /tmp/wazuh-qa/cbordon-test-7368/
total 32
drwxrwxr-x 3 cbordon cbordon 4096 may 16 10:19 .
drwxrwxr-x 3 cbordon cbordon 4096 may 16 10:19 ..
-rw-rw-r-- 1 cbordon cbordon   11 may 16 10:19 init
-rw------- 1 cbordon cbordon 2455 may 16 10:19 instance_key
-rw-r--r-- 1 cbordon cbordon  577 may 16 10:19 instance_key.pub
-rw-rw-r-- 1 cbordon cbordon  260 may 16 10:19 track.yaml
drwxrwxr-x 5 cbordon cbordon 4096 may 16 10:19 .vagrant
-rw-rw-r-- 1 cbordon cbordon 1019 may 16 10:19 Vagrantfile
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/cbordon-test-7368/track.yaml 
[2024-05-16 10:21:06] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/cbordon-test-7368/track.yaml
[2024-05-16 10:21:06] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-7368
[2024-05-16 10:21:11] [INFO] ALLOCATOR: Instance cbordon-test-7368 deleted.

@c-bordon
Copy link
Member Author

Testing custom paths for both files:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --inventory-output /home/cbordon/Documents/allocator-test/inventory.yml --track-output /home/cbordon/Documents/allocator-test/track.yml
[2024-05-16 10:22:45] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:22:45] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:22:45] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:22:49] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:22:49] [INFO] ALLOCATOR: Instance cbordon-test-7477 created.
[2024-05-16 10:23:29] [INFO] ALLOCATOR: Instance cbordon-test-7477 started.
[2024-05-16 10:23:31] [INFO] ALLOCATOR: The inventory file generated at /home/cbordon/Documents/allocator-test/inventory.yml
[2024-05-16 10:23:31] [INFO] ALLOCATOR: The track file generated at /home/cbordon/Documents/allocator-test/track.yml
[2024-05-16 10:23:31] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-16 10:23:31] [INFO] ALLOCATOR: Instance cbordon-test-7477 created successfully.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /home/cbordon/Documents/allocator-test/inventory.yml
ansible_connection: ssh
ansible_host: 192.168.57.109
ansible_port: 22
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-qa/cbordon-test-7477/instance_key
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /home/cbordon/Documents/allocator-test/track.yml
arch: amd64
host_identifier: None
host_instance_dir: None
identifier: cbordon-test-7477
instance_dir: /tmp/wazuh-qa/cbordon-test-7477
key_path: /tmp/wazuh-qa/cbordon-test-7477/instance_key
platform: linux
provider: vagrant
ssh_port: 22
virtualizer: virtualbox
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /tmp/wazuh-qa/cbordon-test-7477/
total 28
drwxrwxr-x 3 cbordon cbordon 4096 may 16 10:23 .
drwxrwxr-x 3 cbordon cbordon 4096 may 16 10:22 ..
-rw-rw-r-- 1 cbordon cbordon   11 may 16 10:22 init
-rw------- 1 cbordon cbordon 2455 may 16 10:22 instance_key
-rw-r--r-- 1 cbordon cbordon  577 may 16 10:22 instance_key.pub
drwxrwxr-x 5 cbordon cbordon 4096 may 16 10:22 .vagrant
-rw-rw-r-- 1 cbordon cbordon 1019 may 16 10:22 Vagrantfile
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /home/cbordon/Documents/allocator-test/track.yml
[2024-05-16 10:24:26] [INFO] ALLOCATOR: Deleting instance from trackfile /home/cbordon/Documents/allocator-test/track.yml
[2024-05-16 10:24:26] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-7477
[2024-05-16 10:24:31] [INFO] ALLOCATOR: Instance cbordon-test-7477 deleted.

@c-bordon
Copy link
Member Author

Testing with default paths:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64
[2024-05-16 10:25:10] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:25:11] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:25:11] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:25:15] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:25:15] [INFO] ALLOCATOR: Instance cbordon-test-211 created.
[2024-05-16 10:25:54] [INFO] ALLOCATOR: Instance cbordon-test-211 started.
[2024-05-16 10:25:57] [INFO] ALLOCATOR: The inventory file generated at /tmp/wazuh-qa/cbordon-test-211/inventory.yaml
[2024-05-16 10:25:57] [INFO] ALLOCATOR: The track file generated at /tmp/wazuh-qa/cbordon-test-211/track.yaml
[2024-05-16 10:25:57] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-16 10:25:57] [INFO] ALLOCATOR: Instance cbordon-test-211 created successfully.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-211/inventory.yaml
ansible_connection: ssh
ansible_host: 192.168.57.216
ansible_port: 22
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-qa/cbordon-test-211/instance_key
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-211/track.yaml
arch: amd64
host_identifier: None
host_instance_dir: None
identifier: cbordon-test-211
instance_dir: /tmp/wazuh-qa/cbordon-test-211
key_path: /tmp/wazuh-qa/cbordon-test-211/instance_key
platform: linux
provider: vagrant
ssh_port: 22
virtualizer: virtualbox
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/cbordon-test-211/track.yaml
[2024-05-16 10:26:27] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/cbordon-test-211/track.yaml
[2024-05-16 10:26:27] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-211
[2024-05-16 10:26:32] [INFO] ALLOCATOR: Instance cbordon-test-211 deleted.

@c-bordon
Copy link
Member Author

Testing with only path without file name:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --track-output /home/cbordon/Documents/allocator-test/ --inventory-output /home/cbordon/Documents/allocator-test/
[2024-05-16 10:38:45] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:38:46] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:38:46] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:38:50] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:38:50] [INFO] ALLOCATOR: Instance cbordon-test-6293 created.
[2024-05-16 10:39:30] [INFO] ALLOCATOR: Instance cbordon-test-6293 started.
[2024-05-16 10:39:33] [INFO] ALLOCATOR: The inventory file generated at /home/cbordon/Documents/allocator-test/inventory.yaml
[2024-05-16 10:39:33] [INFO] ALLOCATOR: The track file generated at /home/cbordon/Documents/allocator-test/track.yaml
[2024-05-16 10:39:33] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-16 10:39:33] [INFO] ALLOCATOR: Instance cbordon-test-6293 created successfully.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /home/cbordon/Documents/allocator-test/
total 24
drwxrwxr-x 2 cbordon cbordon 4096 may 16 10:39 .
drwxr-xr-x 6 cbordon cbordon 4096 may 15 11:08 ..
-rw-rw-r-- 1 cbordon cbordon  219 may 16 10:39 inventory.yaml
-rw-rw-r-- 1 cbordon cbordon  220 may 16 10:23 inventory.yml
-rw-rw-r-- 1 cbordon cbordon  260 may 16 10:39 track.yaml
-rw-rw-r-- 1 cbordon cbordon  260 may 16 10:23 track.yml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /home/cbordon/Documents/allocator-test/inventory.yaml
ansible_connection: ssh
ansible_host: 192.168.57.83
ansible_port: 22
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-qa/cbordon-test-6293/instance_key
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /home/cbordon/Documents/allocator-test/track.yaml
arch: amd64
host_identifier: None
host_instance_dir: None
identifier: cbordon-test-6293
instance_dir: /tmp/wazuh-qa/cbordon-test-6293
key_path: /tmp/wazuh-qa/cbordon-test-6293/instance_key
platform: linux
provider: vagrant
ssh_port: 22
virtualizer: virtualbox
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /tmp/wazuh-qa/cbordon-test-6293/
total 28
drwxrwxr-x 3 cbordon cbordon 4096 may 16 10:39 .
drwxrwxr-x 5 cbordon cbordon 4096 may 16 10:38 ..
-rw-rw-r-- 1 cbordon cbordon   11 may 16 10:38 init
-rw------- 1 cbordon cbordon 2455 may 16 10:38 instance_key
-rw-r--r-- 1 cbordon cbordon  577 may 16 10:38 instance_key.pub
drwxrwxr-x 5 cbordon cbordon 4096 may 16 10:38 .vagrant
-rw-rw-r-- 1 cbordon cbordon 1017 may 16 10:38 Vagrantfile
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /home/cbordon/Documents/allocator-test/track.yaml
[2024-05-16 10:40:36] [INFO] ALLOCATOR: Deleting instance from trackfile /home/cbordon/Documents/allocator-test/track.yaml
[2024-05-16 10:40:36] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-6293
[2024-05-16 10:40:42] [INFO] ALLOCATOR: Instance cbordon-test-6293 deleted.

@c-bordon
Copy link
Member Author

Trying with a custom file name, but without a clear identifier:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --track-output /home/cbordon/Documents/allocator-test/manager.yml --inventory-output /home/cbordon/Documents/allocator-test/manager.yml
[2024-05-16 10:41:33] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:41:34] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:41:34] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:41:37] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:41:37] [INFO] ALLOCATOR: Instance cbordon-test-6553 created.
[2024-05-16 10:42:18] [INFO] ALLOCATOR: Instance cbordon-test-6553 started.
[2024-05-16 10:42:21] [INFO] ALLOCATOR: The inventory file generated at /home/cbordon/Documents/allocator-test/manager-inventory.yml
[2024-05-16 10:42:21] [INFO] ALLOCATOR: The track file generated at /home/cbordon/Documents/allocator-test/manager-track.yml
[2024-05-16 10:42:21] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-16 10:42:21] [INFO] ALLOCATOR: Instance cbordon-test-6553 created successfully.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /home/cbordon/Documents/allocator-test/manager-inventory.yml
ansible_connection: ssh
ansible_host: 192.168.57.129
ansible_port: 22
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-qa/cbordon-test-6553/instance_key
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /home/cbordon/Documents/allocator-test/manager-track.yml
arch: amd64
host_identifier: None
host_instance_dir: None
identifier: cbordon-test-6553
instance_dir: /tmp/wazuh-qa/cbordon-test-6553
key_path: /tmp/wazuh-qa/cbordon-test-6553/instance_key
platform: linux
provider: vagrant
ssh_port: 22
virtualizer: virtualbox
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /home/cbordon/Documents/allocator-test/manager-track.yml 
[2024-05-16 10:42:38] [INFO] ALLOCATOR: Deleting instance from trackfile /home/cbordon/Documents/allocator-test/manager-track.yml
[2024-05-16 10:42:38] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-6553
[2024-05-16 10:42:43] [INFO] ALLOCATOR: Instance cbordon-test-6553 deleted.

@c-bordon
Copy link
Member Author

Forcing the error in the definition of file names:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --track-output /home/cbordon/Documents/allocator-test/manager-inventory.yml --inventory-output /home/cbordon/Documents/allocator-test/manager-track.yml 
[2024-05-16 10:43:13] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:43:13] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:43:13] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:43:17] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:43:17] [INFO] ALLOCATOR: Instance cbordon-test-9364 created.
[2024-05-16 10:43:57] [INFO] ALLOCATOR: Instance cbordon-test-9364 started.
[2024-05-16 10:43:59] [ERROR] ALLOCATOR: Confusing definition in the name of the inventory file, we recommend that it contain the word inventory to facilitate identification of the file type
[2024-05-16 10:43:59] [ERROR] ALLOCATOR: Rolling back instance creation.
[2024-05-16 10:43:59] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-9364
[2024-05-16 10:44:05] [INFO] ALLOCATOR: Instance cbordon-test-9364 deleted.
Traceback (most recent call last):
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
    main()
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 40, in run
    return cls.__create(payload)
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 68, in __create
    cls.__check_auxiliar_files_path(cls, instance_params.inventory_output, instance, 'inventory')
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 293, in __check_auxiliar_files_path
    raise ValueError(f"Confusing definition in the name of the inventory file, we recommend that it contain the word inventory to facilitate identification of the file type")
ValueError: Confusing definition in the name of the inventory file, we recommend that it contain the word inventory to facilitate identification of the file type
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /tmp/wazuh-qa/cbordon-test-9364
ls: cannot access '/tmp/wazuh-qa/cbordon-test-9364': No such file or directory
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --track-output /home/cbordon/Documents/allocator-test/manager-inventory.yml
[2024-05-16 10:45:59] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:46:00] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:46:00] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:46:05] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:46:05] [INFO] ALLOCATOR: Instance cbordon-test-9085 created.
[2024-05-16 10:46:45] [INFO] ALLOCATOR: Instance cbordon-test-9085 started.
[2024-05-16 10:46:48] [INFO] ALLOCATOR: The inventory file generated at /tmp/wazuh-qa/cbordon-test-9085/inventory.yaml
[2024-05-16 10:46:48] [ERROR] ALLOCATOR: Confusing definition in the name of the track file, we recommend that it contain the word track to facilitate identification of the file type
[2024-05-16 10:46:48] [ERROR] ALLOCATOR: Rolling back instance creation.
[2024-05-16 10:46:48] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-9085
[2024-05-16 10:46:52] [INFO] ALLOCATOR: Instance cbordon-test-9085 deleted.
Traceback (most recent call last):
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
    main()
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 40, in run
    return cls.__create(payload)
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 69, in __create
    track_file = cls.__check_auxiliar_files_path(cls, instance_params.track_output, instance, 'track')
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 298, in __check_auxiliar_files_path
    raise ValueError(f"Confusing definition in the name of the track file, we recommend that it contain the word track to facilitate identification of the file type")
ValueError: Confusing definition in the name of the track file, we recommend that it contain the word track to facilitate identification of the file type
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /tmp/wazuh-qa/cbordon-test-9085
ls: cannot access '/tmp/wazuh-qa/cbordon-test-9085': No such file or directory

@c-bordon
Copy link
Member Author

Entering an incorrect extension for the file:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --track-output /home/cbordon/Documents/allocator-test/track.txt
[2024-05-16 10:50:48] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:50:48] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:50:48] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:50:52] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:50:52] [INFO] ALLOCATOR: Instance cbordon-test-1437 created.
[2024-05-16 10:51:30] [INFO] ALLOCATOR: Instance cbordon-test-1437 started.
[2024-05-16 10:51:33] [INFO] ALLOCATOR: The inventory file generated at /tmp/wazuh-qa/cbordon-test-1437/inventory.yaml
[2024-05-16 10:51:33] [ERROR] ALLOCATOR: Rolling back instance creation.
[2024-05-16 10:51:33] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-1437
[2024-05-16 10:51:38] [INFO] ALLOCATOR: Instance cbordon-test-1437 deleted.
Traceback (most recent call last):
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
    main()
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
    Allocator.run(InputPayload(**vars(parse_arguments())))
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 40, in run
    return cls.__create(payload)
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 69, in __create
    track_file = cls.__check_auxiliar_files_path(cls, instance_params.track_output, instance, 'track')
  File "/home/cbordon/Documents/wazuh/repositorios/wazuh-qa/deployability/modules/allocation/allocation.py", line 307, in __check_auxiliar_files_path
    raise ValueError(f"Invalid path for auxiliary file, must be a yaml file: {path}")
ValueError: Invalid path for auxiliary file, must be a yaml file: /home/cbordon/Documents/allocator-test/track.txt

@c-bordon
Copy link
Member Author

Testing path with track word:

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --provider vagrant --size small --instance-name cbordon-test --composite-name linux-ubuntu-22.04-amd64 --inventory-output /home/cbordon/Documents/allocator-tracking/inventory.yaml
[2024-05-16 10:53:45] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
[2024-05-16 10:53:45] [DEBUG] ALLOCATOR: No config provided. Generating from payload
[2024-05-16 10:53:45] [DEBUG] ALLOCATOR: Generating new key pair
[2024-05-16 10:53:49] [DEBUG] ALLOCATOR: Vagrantfile created. Creating instance.
[2024-05-16 10:53:49] [INFO] ALLOCATOR: Instance cbordon-test-4262 created.
[2024-05-16 10:54:29] [INFO] ALLOCATOR: Instance cbordon-test-4262 started.
[2024-05-16 10:54:32] [INFO] ALLOCATOR: The inventory file generated at /home/cbordon/Documents/allocator-tracking/inventory.yaml
[2024-05-16 10:54:32] [INFO] ALLOCATOR: The track file generated at /tmp/wazuh-qa/cbordon-test-4262/track.yaml
[2024-05-16 10:54:32] [INFO] ALLOCATOR: SSH connection successful.
[2024-05-16 10:54:32] [INFO] ALLOCATOR: Instance cbordon-test-4262 created successfully.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /home/cbordon/Documents/allocator-tracking/inventory.yaml
ansible_connection: ssh
ansible_host: 192.168.57.36
ansible_port: 22
ansible_ssh_common_args: -o StrictHostKeyChecking=no
ansible_ssh_private_key_file: /tmp/wazuh-qa/cbordon-test-4262/instance_key
ansible_user: vagrant
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ cat /tmp/wazuh-qa/cbordon-test-4262/track.yaml
arch: amd64
host_identifier: None
host_instance_dir: None
identifier: cbordon-test-4262
instance_dir: /tmp/wazuh-qa/cbordon-test-4262
key_path: /tmp/wazuh-qa/cbordon-test-4262/instance_key
platform: linux
provider: vagrant
ssh_port: 22
virtualizer: virtualbox
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /home/cbordon/Documents/allocator-tracking/
total 12
drwxrwxr-x 2 cbordon cbordon 4096 may 16 10:54 .
drwxr-xr-x 7 cbordon cbordon 4096 may 16 10:52 ..
-rw-rw-r-- 1 cbordon cbordon  219 may 16 10:54 inventory.yaml
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ ls -la /tmp/wazuh-qa/cbordon-test-4262/
total 32
drwxrwxr-x 3 cbordon cbordon 4096 may 16 10:54 .
drwxrwxr-x 5 cbordon cbordon 4096 may 16 10:53 ..
-rw-rw-r-- 1 cbordon cbordon   11 may 16 10:53 init
-rw------- 1 cbordon cbordon 2455 may 16 10:53 instance_key
-rw-r--r-- 1 cbordon cbordon  577 may 16 10:53 instance_key.pub
-rw-rw-r-- 1 cbordon cbordon  260 may 16 10:54 track.yaml
drwxrwxr-x 5 cbordon cbordon 4096 may 16 10:53 .vagrant
-rw-rw-r-- 1 cbordon cbordon 1017 may 16 10:53 Vagrantfile
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-qa$ python3 deployability/modules/allocation/main.py --action delete --track-output /tmp/wazuh-qa/cbordon-test-4262/track.yaml
[2024-05-16 10:55:04] [INFO] ALLOCATOR: Deleting instance from trackfile /tmp/wazuh-qa/cbordon-test-4262/track.yaml
[2024-05-16 10:55:04] [DEBUG] ALLOCATOR: Destroying instance cbordon-test-4262
[2024-05-16 10:55:09] [INFO] ALLOCATOR: Instance cbordon-test-4262 deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
2 participants