You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError('Could not get VMs running on macStadium server: '+str(e) +'.')
uuid_count=0
foritemindata_list:
if'uuid'initem:
uuid_count+=1
ifuuid_count<2:
logger.info(f"macStadium server has less than 2 VMs running, deploying in this host.")
returnremote_host_parameters
else:
I've checked, and the host machine didn't have the sshpass utility installed. After installing it, the workflow file worked fine.
The current implementation does not check if the sshpass utility is installed or inform the user of the problem. An exception is raised, but with a log message that does not allow the user to fix the problem.
Requested feature:
The VagrantProvider.__remote_host method should process the subprocess.Popen output to log if sshpass is not installed or sshpass cannot connect, or a verification of the current environment needs to be done before launching the command.
Proposed checks
The code handles the exception when the sshpass utility is not installed.
The code handles the exception when the sshpass utility cannot connect.
Review/update the documentation to add the dependency of the sshpass utility.
The text was updated successfully, but these errors were encountered:
We believe that this problem should be attacked in DTT2, since the ideal is not to perform a dependency fix but to change all these ssh calls that are made and replace them with Python libraries so that in this way, the script It also works on systems like Windows and macOS
Description
The log of this comment shows that the allocator failed to run. The code that generates the exception is this:
wazuh-qa/deployability/modules/allocation/vagrant/provider.py
Lines 295 to 310 in 333a6b7
I've checked, and the host machine didn't have the
sshpass
utility installed. After installing it, the workflow file worked fine.The current implementation does not check if the
sshpass
utility is installed or inform the user of the problem. An exception is raised, but with a log message that does not allow the user to fix the problem.Requested feature:
The
VagrantProvider.__remote_host
method should process thesubprocess.Popen
output to log ifsshpass
is not installed orsshpass
cannot connect, or a verification of the current environment needs to be done before launching the command.Proposed checks
The text was updated successfully, but these errors were encountered: