Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print informative message after "lago ovirt start" #519

Merged
merged 1 commit into from
Apr 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions ovirtlago/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import logging
import os
import sys
import textwrap
import warnings

import lago
Expand All @@ -29,6 +30,7 @@
from lago.plugins.cli import CLIPlugin, cli_plugin, cli_plugin_add_argument
from lago.utils import in_prefix, with_logging
from ovirtlago.prefix import OvirtPrefix, OvirtWorkdir
import ovirtlago.constants as constants

LOGGER = logging.getLogger('ovirt-cli')
in_ovirt_prefix = in_prefix(
Expand Down Expand Up @@ -256,6 +258,23 @@ def do_ovirt_start(prefix, with_vms, vms_timeout, **kwargs):
with LogTask('Starting Engine VMs'):
prefix.virt_env.engine_vm().start_all_vms(timeout=vms_timeout)

LOGGER.info(
textwrap.dedent(
"""
The environment is ready to be used.
You can access the web UI with the following link and credentials:
https://{ip}
Username: {username}
Password: {password}
""".format(
ip=prefix.virt_env.engine_vm().ip(),
username=constants.ENGINE_USER.split('@')[0],
password=prefix.virt_env.engine_vm()
.metadata['ovirt-engine-password']
)
)
)


@cli_plugin(
help=(
Expand Down