Activity log for bug #1171988

Date Who What changed Old value New value Message
2013-04-23 19:25:35 Andres Rodriguez bug added bug
2013-04-23 19:25:43 Andres Rodriguez maas (Ubuntu): importance Undecided High
2013-04-23 19:27:39 Andres Rodriguez attachment added debdiff https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1171988/+attachment/3651798/+files/debdiff
2013-04-23 19:27:57 Andres Rodriguez maas (Ubuntu): status New Confirmed
2013-04-25 16:01:59 Clint Byrum nominated for series Ubuntu Raring
2013-04-25 16:01:59 Clint Byrum bug task added maas (Ubuntu Raring)
2013-04-25 16:42:52 Andres Rodriguez description [Impact] MAAS fails to start/stop virtual nodes when using virsh. This is because MAAS lacks permissions to run virsh. [Solution] The solution is to run virsh with sudo, as well as allowing the 'maas' user to run 'virsh' in the sudoers file. [Test Case] To reproduce do the following: 1. install MAAS and configure local KVM nodes with it. 2. Confiugure the power pameters in MAAS. 3. Deploy a node. Without the fix the node will be never turned on/off and /var/log/maas/maas.log will show: [2013-04-23 11:20:21,482: ERROR/MainProcess] Task provisioningserver.tasks.power_off[926784f3-d90d-4277-bbfc-0471b2c82e80] raised exception: UnpickleableExceptionWrapper('provisioningserver.power.poweraction', 'PowerActionFail', (), 'PowerActionFail()') Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/celery/execute/trace.py", line 181, in trace_task R = retval = fun(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/provisioningserver/tasks.py", line 146, in power_off issue_power_action(power_type, 'off', **kwargs) File "/usr/lib/python2.7/dist-packages/provisioningserver/tasks.py", line 126, in issue_power_action pa.execute(**kwargs) File "/usr/lib/python2.7/dist-packages/provisioningserver/power/poweraction.py", line 138, in execute self.run_shell(rendered) File "/usr/lib/python2.7/dist-packages/provisioningserver/power/poweraction.py", line 126, in run_shell raise PowerActionFail(self, e) PowerActionFail: PowerActionFail() With the fix, nodes will be turned on/off successfully. [Impact] MAAS fails to start/stop virtual nodes when using virsh. This is because MAAS lacks permissions to run virsh. [Solution] The solution is to run virsh with sudo, as well as allowing the 'maas' user to run 'virsh' in the sudoers file. [Test Case] To reproduce do the following: 1. install MAAS and configure local KVM nodes with it. 2. Confiugure the power pameters in MAAS. 3. Deploy a node. Without the fix the node will be never turned on/off and /var/log/maas/maas.log will show: [Regression Potential] Minimal. This has been tested in our labs. And this actually fixes something that is currently broken and won't work out of the box. The MAAS team and Server team are dedicated to perform any corrective actions in the events of a regression. [2013-04-23 11:20:21,482: ERROR/MainProcess] Task provisioningserver.tasks.power_off[926784f3-d90d-4277-bbfc-0471b2c82e80] raised exception: UnpickleableExceptionWrapper('provisioningserver.power.poweraction', 'PowerActionFail', (), 'PowerActionFail()') Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/celery/execute/trace.py", line 181, in trace_task     R = retval = fun(*args, **kwargs)   File "/usr/lib/python2.7/dist-packages/provisioningserver/tasks.py", line 146, in power_off     issue_power_action(power_type, 'off', **kwargs)   File "/usr/lib/python2.7/dist-packages/provisioningserver/tasks.py", line 126, in issue_power_action     pa.execute(**kwargs)   File "/usr/lib/python2.7/dist-packages/provisioningserver/power/poweraction.py", line 138, in execute     self.run_shell(rendered)   File "/usr/lib/python2.7/dist-packages/provisioningserver/power/poweraction.py", line 126, in run_shell     raise PowerActionFail(self, e) PowerActionFail: PowerActionFail() With the fix, nodes will be turned on/off successfully.
2013-05-21 21:08:13 Launchpad Janitor branch linked lp:ubuntu/saucy-proposed/maas
2013-05-21 21:41:17 Launchpad Janitor maas (Ubuntu): status Confirmed Fix Released
2013-05-22 00:09:02 Andres Rodriguez bug added subscriber Ubuntu Stable Release Updates Team
2013-05-28 17:43:09 Launchpad Janitor maas (Ubuntu Raring): status New Confirmed
2013-06-05 02:24:16 Chris Halse Rogers maas (Ubuntu Raring): status Confirmed Fix Committed
2013-06-05 02:24:20 Chris Halse Rogers bug added subscriber SRU Verification
2013-06-05 02:24:23 Chris Halse Rogers tags verification-needed
2013-06-05 02:37:41 Launchpad Janitor branch linked lp:ubuntu/raring-proposed/maas
2013-07-09 14:06:23 Andres Rodriguez tags verification-needed verification-done
2013-07-11 19:04:33 Launchpad Janitor maas (Ubuntu Raring): status Fix Committed Fix Released
2013-07-11 19:04:52 Brian Murray removed subscriber Ubuntu Stable Release Updates Team