Virsh power driver does not seem to work at all
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Blake Rouse |
Bug Description
When virsh address is, the folllowing error is shown (This means that there's no password because qemu:///system is localhost that does not require password)
qemu:///system
issue_virsh_command
' returned non-zero exit status 1:
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
File "/usr/lib/
raise VirshError('Failed to login to virsh console.')
provisioningser
[2014-08-16 08:27:44,216: ERROR/MainProcess] Task provisioningser
Traceback (most recent call last):
File "/usr/lib/
R = retval = fun(*args, **kwargs)
File "/usr/lib/
return self.run(*args, **kwargs)
File "/usr/lib/
func(*args, **kwargs)
File "/usr/lib/
func(*args, **kwargs)
File "/usr/lib/
pa.
File "/usr/lib/
return self.run_
File "/usr/lib/
raise PowerActionFail
PowerActionFail: virsh failed: Command '# -*- mode: shell-script -*-
#
# Control virtual system's "power" through virsh.
#
issue_virsh_
python - << END
from provisioningser
power_control_
u'qemu:
u'test2',
u'off',
u'',
)
END
}
issue_virsh_command
' returned non-zero exit status 1:
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
File "/usr/lib/
raise VirshError('Failed to login to virsh console.')
provisioningser
=======
IT is also affected in other escenarios:
PowerActionFail: virsh failed: Command '# -*- mode: shell-script -*-
#
# Control virtual system's "power" through virsh.
#
issue_virsh_
python - << END
from provisioningser
power_control_
u'qemu+
u'test2',
u'on',
u'test',
)
END
}
issue_virsh_command
' returned non-zero exit status 1:
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
File "/usr/lib/
raise VirshError('Failed to login to virsh console.')
provisioningser
=======
issue_virsh_
python - << END
from provisioningser
power_control_
u'192.
u'test2',
u'on',
u'test',
)
END
}
issue_virsh_command
' returned non-zero exit status 1:
Traceback (most recent call last):
File "<stdin>", line 6, in <module>
File "/usr/lib/
raise VirshError('Failed to login to virsh console.')
provisioningser
Related branches
- Andres Rodriguez (community): Approve
- Newell Jensen (community): Approve
-
Diff: 19 lines (+1/-2)1 file modifiedsrc/provisioningserver/drivers/hardware/virsh.py (+1/-2)
tags: | added: hwe |
Changed in maas: | |
assignee: | nobody → Blake Rouse (blake-rouse) |
description: | updated |
Changed in maas: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in maas: | |
status: | Confirmed → Triaged |
summary: |
- Virsh power driver does not handle cases where virsh address is - qemu:///system + Virsh power driver does not seem to work at all |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Let's get this fixed in the next release!