Merge lp:~hopem/maas-deployer/lp1490978 into lp:~maas-deployers/maas-deployer/next

Proposed by Edward Hope-Morley
Status: Merged
Merged at revision: 28
Proposed branch: lp:~hopem/maas-deployer/lp1490978
Merge into: lp:~maas-deployers/maas-deployer/next
Diff against target: 20 lines (+9/-1)
1 file modified
maas_deployer/vmaas/engine.py (+9/-1)
To merge this branch: bzr merge lp:~hopem/maas-deployer/lp1490978
Reviewer Review Type Date Requested Status
Billy Olsen Approve
Review via email: mp+269756@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Billy Olsen (billy-olsen) wrote :

LGTM. I will note that libvirt still seems to be placing an error on the output, but we don't end up with a big ugly stack and the commissioning can continue, so I'm +1 on this.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'maas_deployer/vmaas/engine.py'
--- maas_deployer/vmaas/engine.py 2015-09-01 08:18:16 +0000
+++ maas_deployer/vmaas/engine.py 2015-09-01 13:49:36 +0000
@@ -457,7 +457,15 @@
457 virsh_info = maas_config.get('virsh')457 virsh_info = maas_config.get('virsh')
458 juju_node = self._get_juju_nodename(nodes)458 juju_node = self._get_juju_nodename(nodes)
459 if juju_node is not None and not virsh_info:459 if juju_node is not None and not virsh_info:
460 util.virsh(['start', juju_node])460 try:
461 _, stderr = util.virsh(['start', juju_node])
462 except CalledProcessError as exc:
463 # Ignore already started error
464 msg = 'Domain is already active'
465 if msg not in exc.output:
466 raise
467 else:
468 log.debug(msg)
461469
462 self._wait_for_nodes_to_commission(client)470 self._wait_for_nodes_to_commission(client)
463 self._claim_sticky_ip_address(client, maas_config)471 self._claim_sticky_ip_address(client, maas_config)

Subscribers

People subscribed via source and target branches