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

"logs" command should not complain about an unexpected crash when a pod is missing #3743

Closed
torbenmoeller opened this issue Feb 24, 2019 · 6 comments
Labels
co/none-driver good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/ux priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@torbenmoeller
Copy link

I tried Ubuntu 18.10 as well as 18.04LTS. It's a fresh installation of Ubuntu and i installed docker, then kubectl and then minkube. All according to the Installation and Quickstart pages. A complete history of all commands I used: history.txt
The error message are
failed: running command: No container was found matching "k8s_coredns_coredns"
and
User "system:kube-scheduler" cannot list resource "poddisruptionbudgets" in API group "policy" at the cluster scope
minkube logs.txt

@afbjorklund
Copy link
Collaborator

Seems like you after reading the documentation decided to use sudo minikube start --vm-driver=none

Is your docker installation working as normal, i.e. can you pull images like k8s.gcr.io/coredns:1.2.6 ?

What did the main console look like ?

@torbenmoeller
Copy link
Author

Docker works perfectly. I tried Jenkins and the hello-world.

sudo docker run k8s.gcr.io/coredns:1.2.6

gives the follwing output

.:53
2019-02-24T17:14:06.104Z [INFO] CoreDNS-1.2.6
2019-02-24T17:14:06.104Z [INFO] linux/amd64, go1.11.2, 756749c
CoreDNS-1.2.6
linux/amd64, go1.11.2, 756749c

@tstromberg tstromberg changed the title Simple setup on Ubuntu 18.10 and 18.04LTS failed "logs" command should not complain about an unexpected crash when a pod is missing Mar 8, 2019
@tstromberg
Copy link
Contributor

My guess here is that CoreDNS was crashlooping because it had a port conflict with dnsmasq, common with Ubuntu and the none driver, since you can only run one DNS server at a time.

The error message when a pod missing is terrible though. It should instead say:

"Pod is missing: try kubectl for more information" (or it should just run kubectl automatically).

@tstromberg
Copy link
Contributor

Also, I believe the User "system:kube-scheduler" cannot list resource "poddisruptionbudgets" in API group "policy" at the cluster scope message is a race condition and a red herring here.

@tstromberg tstromberg added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. kind/ux help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. and removed co/none-driver labels Mar 8, 2019
@torbenmoeller
Copy link
Author

You're right, everything works correctly on Debian.

@tstromberg
Copy link
Contributor

Thank you! I've verified that this no longer occurs with the v1.0.0 release. Please re-open if you run into this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/none-driver good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/ux 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

No branches or pull requests

3 participants