wazuh-qa
wazuh-qa copied to clipboard
DTT1 - Allocation - Add `--instance-name` to the documentation
Description
Related: https://github.com/wazuh/wazuh-qa/issues/5311
Working on https://github.com/wazuh/wazuh-qa/issues/5341, I noticed that in the documentation, the --instance-name parameter is not included in the examples, and this argument is compulsory in the execution of the module.
> python3 modules/allocation/main.py --action create --provider vagrant --size large --composite-name windows-server-2019-amd64 --inventory-output "/tmp/dtt1-poc/windows-server-2019-amd64/inventory.yaml" --track-output "/tmp/dtt1-poc/windows-server-2019-amd64/track.yaml"
[2024-05-09 17:02:36] [DEBUG] SPNEGO._GSS: Python gssapi not available, cannot use any GSSAPIProxy protocols: No module named 'gssapi'
[2024-05-09 17:02:36] [DEBUG] SPNEGO._GSS: Python gssapi IOV extension not available: No module named 'gssapi'
[2024-05-09 17:02:36] [INFO] ALLOCATOR: Creating instance at /tmp/wazuh-qa
Traceback (most recent call last):
File "/home/davidcr01/Wazuh/wazuh-qa/deployability/modules/allocation/main.py", line 39, in <module>
main()
File "/home/davidcr01/Wazuh/wazuh-qa/deployability/modules/allocation/main.py", line 35, in main
Allocator.run(InputPayload(**vars(parse_arguments())))
File "/home/davidcr01/Wazuh/wazuh-qa/deployability/modules/allocation/allocation.py", line 37, in run
return cls.__create(payload)
File "/home/davidcr01/Wazuh/wazuh-qa/deployability/modules/allocation/allocation.py", line 56, in __create
instance = provider.create_instance(
File "/home/davidcr01/Wazuh/wazuh-qa/deployability/modules/allocation/generic/provider.py", line 71, in create_instance
return cls._create_instance(base_dir, params, config, ssh_key)
File "/home/davidcr01/Wazuh/wazuh-qa/deployability/modules/allocation/vagrant/provider.py", line 61, in _create_instance
raise ValueError("Instance name or issue label is required.")
ValueError: Instance name or issue label is required.
It is necessary to improve this documentation: https://github.com/wazuh/wazuh-qa/tree/4495-dtt1-release/deployability/modules/allocation