Example #1
0
def doctor() -> None:
    """
    Diagnose common issues which stop this CLI from working correctly.
    """
    check_functions_no_cluster = [
        _check_docker_root_free_space,
        _check_docker_supports_mounts,
        _check_mount_var,
        _check_memory,
        _check_mount_tmp,
        _check_networking,
        _check_selinux,
        check_ssh,
        _check_storage_driver,
        _check_tmp_free_space,
        check_1_9_sed,
        _check_systemd,
    ]

    # Ideally no checks would create ``Cluster``s.
    # Checks which do risk showing issues unrelated to what they mean to.
    # We therefore run these last.
    check_functions_cluster_needed = [
        _check_can_build,
        # This comes last because it depends on ``_check_can_build``.
        _check_can_mount_in_docker,
    ]

    check_functions = (check_functions_no_cluster +
                       check_functions_cluster_needed)

    run_doctor_commands(check_functions=check_functions)
    _link_to_troubleshooting()
Example #2
0
def doctor(verbose: int) -> None:
    """
    Diagnose common issues which stop this CLI from working correctly.
    """
    set_logging(verbosity_level=verbose)
    check_functions = [check_ssh]
    run_doctor_commands(check_functions=check_functions)
Example #3
0
def doctor(verbose: int) -> None:
    """
    Diagnose common issues which stop this CLI from working correctly.
    """
    set_logging(verbosity_level=verbose)
    check_functions = [
        check_docker,
        check_1_9_sed,
        check_ssh,
        check_vagrant,
        check_vagrant_plugins,
    ]

    run_doctor_commands(check_functions=check_functions)
Example #4
0
def doctor() -> None:
    """
    Diagnose common issues which stop this CLI from working correctly.
    """
    check_functions = [
        check_docker,
        check_1_9_sed,
        check_ssh,
        check_vagrant,
        check_vagrant_plugins_installed,
        check_vagrant_plugin_versions,
        check_virtualbox,
    ]

    run_doctor_commands(check_functions=check_functions)
Example #5
0
def doctor() -> None:
    """
    Diagnose common issues which stop this CLI from working correctly.
    """
    check_functions = [check_ssh]
    run_doctor_commands(check_functions=check_functions)