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 - Allocation - Add --instance-name to the documentation #5358

Closed
davidcr01 opened this issue May 9, 2024 · 0 comments · Fixed by #5362
Closed

DTT1 - Allocation - Add --instance-name to the documentation #5358

davidcr01 opened this issue May 9, 2024 · 0 comments · Fixed by #5362
Assignees

Comments

@davidcr01
Copy link

Description

Related: #5311
Working on #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

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

Successfully merging a pull request may close this issue.

2 participants