Skip to content

Running systemctl over the new ssh driver fails #4092

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

Closed
afbjorklund opened this issue Apr 13, 2019 · 0 comments · Fixed by #4095
Closed

Running systemctl over the new ssh driver fails #4092

afbjorklund opened this issue Apr 13, 2019 · 0 comments · Fixed by #4095
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@afbjorklund
Copy link
Collaborator

Systemd returns an error code (!) for all kinds of status-like commands,
and the new SSH driver doesn't like when the command it executes fails.

This means that we cannot run things like "is-active" anymore:

$ minikube docker-env

💣  Error getting service status: ssh command error:
command : sudo systemctl is-active docker
err     : Process exited with status 3
output  : inactive


😿  Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉  https://github.com/kubernetes/minikube/issues/new

Or at least not when it returns inactive, still OK with active.

       is-active PATTERN...
           Check whether any of the specified units are active (i.e. running). Returns an exit code 0 if at least one is active, or non-zero otherwise. Unless
           --quiet is specified, this will also print the current unit state to standard output.

@afbjorklund afbjorklund added the kind/bug Categorizes issue or PR as related to a bug. label Apr 14, 2019
@tstromberg tstromberg added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants