Yedidyah Bar David has uploaded a new change for review. Change subject: packaging: setup: configure libvirt before running vdsmd ......................................................................
packaging: setup: configure libvirt before running vdsmd Change-Id: Ie1fa427b7dacd8ed3fb6c2f059d426f9368c1d3d Signed-off-by: Yedidyah Bar David <[email protected]> --- M src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py 1 file changed, 32 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup refs/changes/66/20766/1 diff --git a/src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py b/src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py index 93a3c66..c46723c 100644 --- a/src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py +++ b/src/plugins/ovirt-hosted-engine-setup/system/vdsmenv.py @@ -115,6 +115,38 @@ ohostedcons.VDSMEnv.VDSMD_SERVICE ] ): + rc, stdout, stderr = self.execute( + ( + 'vdsm-tool', + 'libvirt-is-configured', + ), + raiseOnError=False, + ) + if rc != 0: + rc, stdout, stderr = self.execute( + ( + 'vdsm-tool', + 'libvirt-configure', + ) + ) + rc, stdout, stderr = self.execute( + ( + 'vdsm-tool', + 'libvirt-configure-services-restart', + ) + ) + rc, stdout, stderr = self.execute( + ( + 'vdsm-tool', + 'libvirt-is-configured', + ) + ) + if rc != 0: + raise RuntimeError( + _( + 'Failed to configure libvirt for vdsm' + ) + ) self.services.state( name=self.environment[ ohostedcons.VDSMEnv.VDSMD_SERVICE -- To view, visit http://gerrit.ovirt.org/20766 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie1fa427b7dacd8ed3fb6c2f059d426f9368c1d3d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-setup Gerrit-Branch: master Gerrit-Owner: Yedidyah Bar David <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
