-
Notifications
You must be signed in to change notification settings - Fork 16
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
Reading the power_type parameter is broken #24
Comments
I'm getting this error too.
|
I think this was fixed by e95cdb6. |
I'm seeing something similar today with a fresh 2.3.5 install. @nbritton did you resolve this issue somehow? In my case it doesn't seem to matter if I use virsh or vmware, both fail with a python crash in the log. |
I've tried to use the value 'virsh' for the power_type parameter.
When executing the command
salt-call maas.process_machines -l debug
I get the following error:
[INFO ] machine hostname=cmp001 power_type=ipmi mac_addresses=52:54:01:00:00:01 power_parameters_power_address=qemu+ssh://[email protected]/system architecture=amd64/generic power_parameters_power_id=cmp001
[ERROR ] Failed for object cmp001 reason {"power_parameters": ["Unknown parameter(s): power_id."]}
In the file https://github.com/salt-formulas/salt-formula-maas/blob/master/_modules/maas.py in the line
'power_type': machine_data.get('power_type', 'ipmi'),
power_type will always get the value 'ipmi', as there's no 'power_type' key in the first level of the machine_data dictionary hierarchy.
The text was updated successfully, but these errors were encountered: