Sandro Bonazzola has uploaded a new change for review. Change subject: packaging: setup: remind user to install agent inside VM ......................................................................
packaging: setup: remind user to install agent inside VM Change-Id: Idf5d860407e74b99127db1814c3e2e9ee9376091 Bug-Url: https://bugzilla.redhat.com/1034646 Signed-off-by: Sandro Bonazzola <sbona...@redhat.com> --- M src/plugins/ovirt-hosted-engine-setup/engine/health.py 1 file changed, 28 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup refs/changes/01/21701/1 diff --git a/src/plugins/ovirt-hosted-engine-setup/engine/health.py b/src/plugins/ovirt-hosted-engine-setup/engine/health.py index 8efce73..6696159 100644 --- a/src/plugins/ovirt-hosted-engine-setup/engine/health.py +++ b/src/plugins/ovirt-hosted-engine-setup/engine/health.py @@ -24,6 +24,7 @@ import gettext +import platform from otopi import util @@ -45,6 +46,9 @@ def __init__(self, context): super(Plugin, self).__init__(context=context) + self._distribution = platform.linux_distribution( + full_distribution_name=0 + )[0] @plugin.event( stage=plugin.Stages.STAGE_CLOSEUP, @@ -60,11 +64,33 @@ ] live_checker = check_liveliness.LivelinessChecker() if not self.environment[ohostedcons.CoreEnv.IS_ADDITIONAL_HOST]: + self.dialog.note( + _('Please install the engine in the VM.') + ) + if self._distribution in ( + 'redhat', + ): + self.dialog.note( + _( + 'You may also be interested in ' + 'subscribing to "agent" RHN/Satellite channel ' + 'and installing rhevm-guest-agent-common package ' + 'in the VM.' + ) + ) + else: + self.dialog.note( + _( + 'You may also be interested in ' + 'installing ovirt-guest-agent-common package ' + 'in the VM.' + ) + ) + self.dialog.queryString( name='OVEHOSTED_ENGINE_UP', note=_( - 'Please install the engine in the VM, ' - 'hit enter when finished.' + 'Hit enter when finished.' ), prompt=True, default='y' # Allow enter without any value -- To view, visit http://gerrit.ovirt.org/21701 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Idf5d860407e74b99127db1814c3e2e9ee9376091 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-setup Gerrit-Branch: master Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches