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

Dockerfile: prioritize /etc/hosts over dns #9029

Merged
merged 7 commits into from
Aug 24, 2020

Conversation

tstromberg
Copy link
Contributor

@tstromberg tstromberg commented Aug 18, 2020

Some DNS servers issue fraudulent A/AAA responses for hosts which return NXDOMAIN:

https://www.verizon.com/support/residential/internet/home-network/settings/opt-out-of-dns-assist

This unfortunately breaks the ability for minikube nodes to discover the location of the apiserver. This change modifies the system to prioritize /etc/hosts first, and is propagated out to each pod.

Fixes #9051

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 18, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tstromberg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 18, 2020
@TravisBuddy
Copy link

Travis tests have failed

Hey @tstromberg,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

1st Build

View build log

make test
which go-bindata || GO111MODULE=off GOBIN="/home/travis/gopath/bin" go get github.com/jteeuwen/go-bindata/...
PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.14.6.linux.amd64/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.3/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin:/home/travis/gopath/bin" go-bindata -nomemcopy -o pkg/minikube/assets/assets.go -pkg assets deploy/addons/...
gofmt -s -w pkg/minikube/assets/assets.go
which go-bindata || GO111MODULE=off GOBIN="/home/travis/gopath/bin" go get github.com/jteeuwen/go-bindata/...
/home/travis/gopath/bin/go-bindata
PATH="/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.14.6.linux.amd64/bin:/home/travis/bin:/home/travis/bin:/home/travis/.local/bin:/usr/local/lib/jvm/openjdk11/bin:/opt/pyenv/shims:/home/travis/.phpenv/shims:/home/travis/perl5/perlbrew/bin:/home/travis/.nvm/versions/node/v8.12.0/bin:/home/travis/.rvm/gems/ruby-2.5.3/bin:/home/travis/.rvm/gems/ruby-2.5.3@global/bin:/home/travis/.rvm/rubies/ruby-2.5.3/bin:/home/travis/gopath/bin:/home/travis/.gimme/versions/go1.11.1.linux.amd64/bin:/usr/local/maven-3.6.3/bin:/usr/local/cmake-3.12.4/bin:/usr/local/clang-7.0.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/home/travis/.rvm/bin:/home/travis/.phpenv/bin:/opt/pyenv/bin:/home/travis/.yarn/bin:/home/travis/gopath/bin" go-bindata -nomemcopy -o pkg/minikube/translate/translations.go -pkg translate translations/...
gofmt -s -w pkg/minikube/translate/translations.go
MINIKUBE_LDFLAGS="-X k8s.io/minikube/pkg/version.version=v1.12.3 -X k8s.io/minikube/pkg/version.isoVersion=v1.12.2 -X k8s.io/minikube/pkg/version.isoPath=minikube/iso -X k8s.io/minikube/pkg/version.gitCommitID="b64b1102b2028dd90f58c289fecd9299c0f1121f" -X k8s.io/minikube/pkg/version.storageProvisionerVersion=v2" ./test.sh
= schema_check ==========================================================
go: downloading github.com/xeipuuv/gojsonschema v0.0.0-20180618132009-1d523034197f
go: downloading github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415
go: downloading github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f
ok
= go test ===============================================================
go: downloading github.com/machine-drivers/machine v0.7.1-0.20200810185219-7d42fed1b770
go: downloading github.com/pkg/errors v0.9.1
go: downloading github.com/blang/semver v3.5.0+incompatible
go: downloading github.com/spf13/cobra v1.0.0
go: downloading github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2
go: downloading k8s.io/kubernetes v1.17.3
go: downloading github.com/libvirt/libvirt-go v3.4.0+incompatible
go: downloading k8s.io/apimachinery v0.17.3
go: downloading github.com/spf13/viper v1.7.0
go: downloading k8s.io/api v0.17.3
go: downloading github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
go: downloading k8s.io/client-go v0.17.3
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/fsnotify/fsnotify v1.4.9
go: downloading github.com/hashicorp/hcl v1.0.0
go: downloading github.com/spf13/jwalterweatherman v1.1.0
go: downloading gopkg.in/ini.v1 v1.56.0
go: downloading github.com/pkg/profile v0.0.0-20161223203901-3a8809bd8a80
go: downloading github.com/shirou/gopsutil v2.18.12+incompatible
go: downloading golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
go: downloading github.com/cloudevents/sdk-go/v2 v2.1.0
go: downloading github.com/cpuguy83/go-md2man v1.0.10
go: downloading github.com/afbjorklund/go-containerregistry v0.0.0-20200602203322-347d93793dc9
go: downloading github.com/cpuguy83/go-md2man/v2 v2.0.0
go: downloading github.com/magiconair/properties v1.8.1
go: downloading github.com/russross/blackfriday v1.5.3-0.20200218234912-41c5fccfd6f6
go: downloading github.com/pelletier/go-toml v1.8.0
go: downloading github.com/docker/go-units v0.4.0
go: downloading github.com/olekukonko/tablewriter v0.0.4
go: downloading golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37
go: downloading k8s.io/kubectl v0.17.3
go: downloading github.com/russross/blackfriday/v2 v2.0.1
go: downloading go.opencensus.io v0.22.3
go: downloading github.com/opencontainers/go-digest v1.0.0-rc1
go: downloading golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a
go: downloading go.uber.org/zap v1.10.0
go: downloading github.com/spf13/cast v1.3.1
go: downloading golang.org/x/time v0.0.0-20200416051211-89c76fbcd5d1
go: downloading k8s.io/utils v0.0.0-20200229041039-0a110f9eb7ab
go: downloading github.com/juju/mutex v0.0.0-20180619145857-d21b13acf4bf
go: downloading github.com/google/uuid v1.1.1
go: downloading github.com/gogo/protobuf v1.3.1
go: downloading cloud.google.com/go v0.57.0
go: downloading github.com/mitchellh/go-ps v0.0.0-20190716172923-621e5597135b
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading github.com/google/gofuzz v1.0.0
go: downloading github.com/docker/cli v0.0.0-20200303162255-7d407207c304
go: downloading github.com/modern-go/reflect2 v1.0.1
go: downloading github.com/pkg/browser v0.0.0-20160118053552-9302be274faa
go: downloading golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2
go: downloading go.uber.org/multierr v1.1.0
go: downloading github.com/mattn/go-runewidth v0.0.7
go: downloading k8s.io/klog v1.0.0
go: downloading github.com/shurcooL/sanitized_anchor_name v1.0.0
go: downloading gopkg.in/yaml.v2 v2.3.0
go: downloading github.com/spf13/afero v1.2.2
go: downloading cloud.google.com/go/storage v1.8.0
go: downloading golang.org/x/sys v0.0.0-20200523222454-059865788121
go: downloading github.com/google/slowjam v0.0.0-20200530021616-df27e642fe7b
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/MakeNowJust/heredoc v0.0.0-20170808103936-bb23615498cd
go: downloading go.uber.org/atomic v1.4.0
go: downloading github.com/mitchellh/go-wordwrap v1.0.0
go: downloading github.com/otiai10/copy v1.0.2
go: downloading sigs.k8s.io/yaml v1.1.0
go: downloading github.com/intel-go/cpuid v0.0.0-20181003105527-1a4a6f06a1c6
go: downloading github.com/juju/clock v0.0.0-20190205081909-9c5c9712527c
go: downloading github.com/afbjorklund/go-getter v1.4.1-0.20190910175809-eb9f6c26742c
go: downloading github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7
go: downloading google.golang.org/grpc v1.29.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/juju/errors v0.0.0-20190806202954-0232dcc7464d
go: downloading github.com/sayboras/dockerclient v1.0.0
go: downloading github.com/googleapis/gax-go v2.0.2+incompatible
go: downloading github.com/googleapis/gnostic v0.3.0
go: downloading github.com/imdario/mergo v0.3.9
go: downloading sigs.k8s.io/sig-storage-lib-external-provisioner v4.0.0+incompatible
go: downloading github.com/machine-drivers/docker-machine-driver-vmware v0.1.1
go: downloading github.com/googleapis/gax-go/v2 v2.0.5
go: downloading github.com/ulikunitz/xz v0.5.7
go: downloading github.com/golang/protobuf v1.4.2
go: downloading github.com/aws/aws-sdk-go v1.31.6
go: downloading sigs.k8s.io/sig-storage-lib-external-provisioner/v5 v5.0.0
go: downloading github.com/hashicorp/go-cleanhttp v0.5.1
go: downloading github.com/subosito/gotenv v1.2.0
go: downloading github.com/mitchellh/go-testing-interface v1.0.0
go: downloading github.com/cheggaaa/pb v1.0.27
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading google.golang.org/protobuf v1.24.0
go: downloading github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
go: downloading github.com/cheggaaa/pb/v3 v3.0.1
go: downloading github.com/cenkalti/backoff v2.2.1+incompatible
go: downloading github.com/mitchellh/mapstructure v1.3.1
go: downloading google.golang.org/api v0.25.0
go: downloading golang.org/x/text v0.3.2
go: downloading github.com/miekg/dns v1.1.27
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading github.com/VividCortex/ewma v1.1.1
go: downloading google.golang.org/genproto v0.0.0-20200527145253-8367513e4ece
go: downloading github.com/hashicorp/go-version v1.2.0
go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
go: downloading github.com/prometheus/client_golang v1.4.1
go: downloading github.com/docker/go-connections v0.4.0
go: downloading github.com/prometheus/common v0.9.1
go: downloading github.com/json-iterator/go v1.1.9
go: downloading github.com/hashicorp/go-safetemp v1.0.0
go: downloading github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e
go: downloading github.com/docker/distribution v2.7.1+incompatible
go: downloading github.com/prometheus/procfs v0.0.8
go: downloading github.com/cespare/xxhash v1.1.0
go: downloading github.com/docker/docker-credential-helpers v0.6.3
go: downloading github.com/cespare/xxhash/v2 v2.1.1
go: downloading k8s.io/component-base v0.17.3
go: downloading github.com/google/go-cmp v0.4.1
go: downloading github.com/fatih/color v1.9.0
go: downloading github.com/hooklift/iso9660 v0.0.0-20170318115843-1cf07e5970d8
go: downloading github.com/cloudfoundry-attic/jibber_jabber v0.0.0-20151120183258-bcc4c8345a21
go: downloading github.com/opencontainers/image-spec v1.0.1
go: downloading github.com/mattn/go-colorable v0.1.6
go: downloading github.com/hashicorp/golang-lru v0.5.3
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading k8s.io/kubelet v0.17.3
go: downloading github.com/containerd/containerd v1.3.1-0.20191213020239-082f7e3aed57
go: downloading k8s.io/cluster-bootstrap v0.17.3
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
go: downloading github.com/beorn7/perks v1.0.1
go: downloading k8s.io/kube-proxy v0.17.3
go: downloading github.com/sirupsen/logrus v1.6.0
go: downloading github.com/golang-collections/collections v0.0.0-20130729185459-604e922904d3
go: downloading github.com/lightstep/tracecontext.go v0.0.0-20181129014701-1757c391b1ac
go: downloading github.com/jmespath/go-jmespath v0.3.0
go: downloading github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
go: downloading github.com/c4milo/gotoolkit v0.0.0-20170318115440-bcc06269efa9
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading github.com/evanphx/json-patch v4.5.0+incompatible
go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543
ok  	k8s.io/minikube/cmd/minikube/cmd	4.199s	coverage: 18.7% of statements
ok  	k8s.io/minikube/cmd/minikube/cmd/config	0.047s	coverage: 21.5% of statements
ok  	k8s.io/minikube/pkg/addons	0.110s	coverage: 52.5% of statements
ok  	k8s.io/minikube/pkg/drivers	0.011s	coverage: 19.6% of statements
ok  	k8s.io/minikube/pkg/drivers/hyperkit	0.011s	coverage: 77.3% of statements
ok  	k8s.io/minikube/pkg/drivers/kic/oci	0.012s	coverage: 3.3% of statements
ok  	k8s.io/minikube/pkg/drivers/kvm	0.045s	coverage: 2.3% of statements
ok  	k8s.io/minikube/pkg/minikube/bootstrapper	0.932s	coverage: 55.7% of statements
ok  	k8s.io/minikube/pkg/minikube/bootstrapper/bsutil	0.112s	coverage: 62.4% of statements
ok  	k8s.io/minikube/pkg/minikube/bootstrapper/bsutil/ktmpl	0.022s	coverage: 100.0% of statements
ok  	k8s.io/minikube/pkg/minikube/bootstrapper/images	0.008s	coverage: 84.2% of statements
ok  	k8s.io/minikube/pkg/minikube/cluster	0.050s	coverage: 15.3% of statements
ok  	k8s.io/minikube/pkg/minikube/command	0.024s	coverage: 4.3% of statements
ok  	k8s.io/minikube/pkg/minikube/config	0.144s	coverage: 70.0% of statements
ok  	k8s.io/minikube/pkg/minikube/cruntime	0.049s	coverage: 36.7% of statements
ok  	k8s.io/minikube/pkg/minikube/docker	0.029s	coverage: 20.8% of statements
ok  	k8s.io/minikube/pkg/minikube/driver	0.021s	coverage: 33.9% of statements
ok  	k8s.io/minikube/pkg/minikube/extract	0.006s	coverage: 58.8% of statements
ok  	k8s.io/minikube/pkg/minikube/image	0.021s	coverage: 3.0% of statements
ok  	k8s.io/minikube/pkg/minikube/kubeconfig	0.054s	coverage: 77.0% of statements
ok  	k8s.io/minikube/pkg/minikube/localpath	0.006s	coverage: 49.3% of statements
ok  	k8s.io/minikube/pkg/minikube/logs	0.042s	coverage: 1.3% of statements
127.0.0.1:41031
I0818 23:58:38.541888   13809 start.go:122] createHost starting for "minikube" (driver="mock")
E0818 23:58:38.542463   13809 register.go:123] unexpected first step: ""
W0818 23:58:38.545389   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:38.545490   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:38.545564   13809 start.go:166] duration metric: libmachine.API.Create for "" took 73.249µs
I0818 23:58:38.545577   13809 start.go:207] post-start starting for "mock-machine-0.60466029" (driver="mock")
I0818 23:58:38.545584   13809 start.go:210] post-start completed in 656ns
I0818 23:58:38.545937   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.60466029/config.json ...
I0818 23:58:38.546051   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.60466029/config.json: {Name:mk8aca02b6a32186ae8c2dd0452989c675b855cc Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:38.546194   13809 start.go:125] duration metric: createHost completed in 4.280501ms
I0818 23:58:38.546284   13809 start.go:122] createHost starting for "minikube" (driver="mock")
E0818 23:58:38.546303   13809 register.go:123] unexpected first step: ""
W0818 23:58:38.546438   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:38.546503   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:38.546560   13809 start.go:166] duration metric: libmachine.API.Create for "" took 57.007µs
I0818 23:58:38.546570   13809 start.go:207] post-start starting for "mock-machine-0.94050909" (driver="mock")
I0818 23:58:38.546576   13809 start.go:210] post-start completed in 349ns
I0818 23:58:38.546661   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.94050909/config.json ...
I0818 23:58:38.546740   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.94050909/config.json: {Name:mke7bcd96c976536a169a6cb7b6960546c7592ec Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:38.546857   13809 start.go:125] duration metric: createHost completed in 556.51µs
I0818 23:58:38.546892   13809 start.go:244] acquiring machines lock for mock-machine-0.94050909: {Name:mkc34dbb1366a74f6d4e98d13df42882ffd8a71a Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0818 23:58:38.546945   13809 start.go:248] acquired machines lock for "mock-machine-0.94050909" in 40.133µs
I0818 23:58:38.546959   13809 start.go:89] Skipping create...Using existing machine configuration
I0818 23:58:38.546973   13809 fix.go:53] fixHost starting: mock-machine-0.94050909
I0818 23:58:38.547019   13809 fix.go:105] recreateIfNeeded on mock-machine-0.94050909: state=Running err=<nil>
W0818 23:58:38.547031   13809 fix.go:131] unexpected machine state, will restart: <nil>
W0818 23:58:38.547133   13809 out.go:101] [unset outFile]: * Updating the running mock "mock-machine-0.94050909" bare metal machine ...
I0818 23:58:38.547151   13809 fix.go:55] fixHost completed within 180.198µs
I0818 23:58:38.547162   13809 start.go:76] releasing machines lock for "mock-machine-0.94050909", held for 199.121µs
I0818 23:58:38.547239   13809 start.go:122] createHost starting for "minikube" (driver="mock")
E0818 23:58:38.547253   13809 register.go:123] unexpected first step: ""
W0818 23:58:38.547351   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:38.547397   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:38.547462   13809 start.go:166] duration metric: libmachine.API.Create for "" took 65.352µs
I0818 23:58:38.547473   13809 start.go:207] post-start starting for "mock-machine-0.66456005" (driver="mock")
I0818 23:58:38.547480   13809 start.go:210] post-start completed in 186ns
I0818 23:58:38.547558   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.66456005/config.json ...
I0818 23:58:38.547607   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.66456005/config.json: {Name:mkfa16354a5a3bff2567890497bfd0b17be18015 Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:38.547702   13809 start.go:125] duration metric: createHost completed in 452.165µs
I0818 23:58:38.547719   13809 start.go:244] acquiring machines lock for mock-machine-0.66456005: {Name:mkc34dbb1366a74f6d4e98d13df42882ffd8a71a Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0818 23:58:38.547753   13809 start.go:248] acquired machines lock for "mock-machine-0.66456005" in 26.039µs
I0818 23:58:38.547766   13809 start.go:89] Skipping create...Using existing machine configuration
I0818 23:58:38.547777   13809 fix.go:53] fixHost starting: mock-machine-0.66456005
I0818 23:58:38.547828   13809 fix.go:105] recreateIfNeeded on mock-machine-0.66456005: state=Error err=machine does not exist
I0818 23:58:38.547844   13809 fix.go:110] machineExists: false. err=machine does not exist
W0818 23:58:38.547947   13809 out.go:101] [unset outFile]: * mock "mock-machine-0.66456005" bare metal machine is missing, will recreate.
I0818 23:58:38.547958   13809 delete.go:123] DEMOLISHING mock-machine-0.66456005 ...
Stopping "mock-machine-0.66456005"...
Error getting machine state: machine does not exist
Machine "mock-machine-0.66456005" was stopped.
I0818 23:58:38.548092   13809 stop.go:66] duration metric: stop complete within 128.573µs
W0818 23:58:38.548238   13809 out.go:101] [unset outFile]: * Deleting "mock-machine-0.66456005" in mock ...
W0818 23:58:38.548275   13809 delete.go:138] delete failed (probably ok) <nil>
I0818 23:58:38.548287   13809 fix.go:117] Sleeping 1 second for extra luck!
I0818 23:58:39.548426   13809 start.go:122] createHost starting for "mock-machine-0.66456005" (driver="mock")
E0818 23:58:39.548469   13809 register.go:123] unexpected first step: ""
W0818 23:58:39.548768   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.548875   13809 start.go:158] libmachine.API.Create for "mock-machine-0.66456005" (driver="mock")
I0818 23:58:39.548945   13809 start.go:166] duration metric: libmachine.API.Create for "mock-machine-0.66456005" took 69.296µs
I0818 23:58:39.548959   13809 start.go:207] post-start starting for "mock-machine-0.43771419" (driver="mock")
I0818 23:58:39.548965   13809 start.go:210] post-start completed in 222ns
I0818 23:58:39.549078   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.43771419/config.json ...
I0818 23:58:39.549186   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.43771419/config.json: {Name:mkfc4c294dfcb2eee37a156c3c747d59c4581e0f Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.549363   13809 start.go:125] duration metric: createHost completed in 897.864µs
W0818 23:58:39.549399   13809 fix.go:131] unexpected machine state, will restart: <nil>
I0818 23:58:39.549415   13809 fix.go:55] fixHost completed within 1.001639317s
I0818 23:58:39.549421   13809 start.go:76] releasing machines lock for "mock-machine-0.66456005", held for 1.001656465s
I0818 23:58:39.549449   13809 start.go:244] acquiring machines lock for mock-machine-0.43771419-mock-machine-0.43771419: {Name:mkc34dbb1366a74f6d4e98d13df42882ffd8a71a Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0818 23:58:39.549506   13809 start.go:248] acquired machines lock for "mock-machine-0.43771419-mock-machine-0.43771419" in 42.575µs
I0818 23:58:39.549519   13809 start.go:85] Provisioning new machine with config: &{Name:mock-machine-0.43771419 KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage: Memory:0 CPUs:0 DiskSize:0 VMDriver: Driver:mock HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[MOCK_MAKE_IT_PROVISION=true] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR: HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork: KVMQemuURI: KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot: UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:false HostOnlyNicType: NatNicType: KubernetesConfig:{KubernetesVersion: ClusterName: APIServerName: APIServerNames:[] APIServerIPs:[] DNSDomain: ContainerRuntime: CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR: ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:0 NodeName:} Nodes:[{Name:minikube IP:127.0.0.1 Port:0 KubernetesVersion: ControlPlane:false Worker:false} {Name:mock-machine-0.66456005 IP:127.0.0.1 Port:0 KubernetesVersion: ControlPlane:false Worker:false}] Addons:map[] VerifyComponents:map[] StartHostTimeout:6m0s} &{Name:mock-machine-0.43771419 IP:127.0.0.1 Port:0 KubernetesVersion: ControlPlane:false Worker:false}
I0818 23:58:39.549582   13809 start.go:122] createHost starting for "mock-machine-0.43771419" (driver="mock")
E0818 23:58:39.549596   13809 register.go:123] unexpected first step: ""
W0818 23:58:39.549726   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.549845   13809 start.go:158] libmachine.API.Create for "mock-machine-0.43771419" (driver="mock")
I0818 23:58:39.549910   13809 start.go:166] duration metric: libmachine.API.Create for "mock-machine-0.43771419" took 65.822µs
I0818 23:58:39.549921   13809 start.go:207] post-start starting for "mock-machine-0.42463750" (driver="mock")
I0818 23:58:39.549927   13809 start.go:210] post-start completed in 366ns
I0818 23:58:39.550036   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.42463750/config.json ...
I0818 23:58:39.550106   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.42463750/config.json: {Name:mk4c0766b2b83a888b6955b038ad2cbd50684e3e Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.550238   13809 start.go:125] duration metric: createHost completed in 643.538µs
I0818 23:58:39.550262   13809 start.go:76] releasing machines lock for "mock-machine-0.43771419-mock-machine-0.43771419", held for 739.412µs
I0818 23:58:39.550335   13809 start.go:122] createHost starting for "minikube" (driver="mock")
E0818 23:58:39.550348   13809 register.go:123] unexpected first step: ""
W0818 23:58:39.550469   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.550525   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:39.550583   13809 start.go:166] duration metric: libmachine.API.Create for "" took 68.341µs
I0818 23:58:39.550593   13809 start.go:207] post-start starting for "mock-machine-0.68682307" (driver="mock")
I0818 23:58:39.550599   13809 start.go:210] post-start completed in 178ns
I0818 23:58:39.550671   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.68682307/config.json ...
I0818 23:58:39.550729   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.68682307/config.json: {Name:mkae6d391ef7becdfd0a1ce8fa40f839465cc078 Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.550833   13809 start.go:125] duration metric: createHost completed in 485.856µs
I0818 23:58:39.550849   13809 start.go:244] acquiring machines lock for mock-machine-0.68682307: {Name:mkc34dbb1366a74f6d4e98d13df42882ffd8a71a Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0818 23:58:39.550887   13809 start.go:248] acquired machines lock for "mock-machine-0.68682307" in 27.754µs
I0818 23:58:39.550900   13809 start.go:89] Skipping create...Using existing machine configuration
I0818 23:58:39.550911   13809 fix.go:53] fixHost starting: mock-machine-0.68682307
I0818 23:58:39.550962   13809 fix.go:105] recreateIfNeeded on mock-machine-0.68682307: state=Stopped err=<nil>
W0818 23:58:39.550983   13809 fix.go:131] unexpected machine state, will restart: <nil>
W0818 23:58:39.551077   13809 out.go:101] [unset outFile]: * Restarting existing mock bare metal machine for "mock-machine-0.68682307" ...
I0818 23:58:39.551181   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.68682307/config.json ...
I0818 23:58:39.551373   13809 fix.go:55] fixHost completed within 462.205µs
I0818 23:58:39.551400   13809 start.go:76] releasing machines lock for "mock-machine-0.68682307", held for 487.628µs
I0818 23:58:39.551504   13809 start.go:244] acquiring machines lock for : {Name:mkc34dbb1366a74f6d4e98d13df42882ffd8a71a Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0818 23:58:39.551577   13809 start.go:248] acquired machines lock for "" in 58.09µs
I0818 23:58:39.551587   13809 start.go:85] Provisioning new machine with config: &{Name: KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage: Memory:0 CPUs:0 DiskSize:0 VMDriver: Driver:mock HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[MOCK_MAKE_IT_PROVISION=true] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR: HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork: KVMQemuURI: KVMGPU:false KVMHidden:false DockerOpt:[] DisableDriverMounts:false NFSShare:[] NFSSharesRoot: UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:false HostOnlyNicType: NatNicType: KubernetesConfig:{KubernetesVersion: ClusterName: APIServerName: APIServerNames:[] APIServerIPs:[] DNSDomain: ContainerRuntime: CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR: ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:0 NodeName:} Nodes:[{Name:minikube IP:127.0.0.1 Port:0 KubernetesVersion: ControlPlane:false Worker:false}] Addons:map[] VerifyComponents:map[] StartHostTimeout:6m0s} &{Name:minikube IP: Port:0 KubernetesVersion: ControlPlane:false Worker:false}
I0818 23:58:39.551652   13809 start.go:122] createHost starting for "minikube" (driver="mock")
E0818 23:58:39.551679   13809 register.go:123] unexpected first step: ""
W0818 23:58:39.551817   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.551880   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:39.551940   13809 start.go:166] duration metric: libmachine.API.Create for "" took 75.265µs
I0818 23:58:39.551967   13809 start.go:207] post-start starting for "mock-machine-0.06563702" (driver="mock")
I0818 23:58:39.551976   13809 start.go:210] post-start completed in 143ns
I0818 23:58:39.552088   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.06563702/config.json ...
I0818 23:58:39.552157   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.06563702/config.json: {Name:mk0dce7b830aef46fbc557ae04d513ded50b7b59 Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.552314   13809 start.go:125] duration metric: createHost completed in 635.613µs
I0818 23:58:39.552327   13809 start.go:76] releasing machines lock for "", held for 740.47µs
I0818 23:58:39.552543   13809 start.go:244] acquiring machines lock for -minikube: {Name:mkc34dbb1366a74f6d4e98d13df42882ffd8a71a Clock:{} Delay:500ms Timeout:15m0s Cancel:<nil>}
I0818 23:58:39.552603   13809 start.go:248] acquired machines lock for "-minikube" in 41.567µs
I0818 23:58:39.552616   13809 start.go:85] Provisioning new machine with config: &{Name: KeepContext:false EmbedCerts:false MinikubeISO: KicBaseImage: Memory:0 CPUs:0 DiskSize:0 VMDriver: Driver:mock HyperkitVpnKitSock: HyperkitVSockPorts:[] DockerEnv:[FOO=BAR] InsecureRegistry:[] RegistryMirror:[] HostOnlyCIDR: HypervVirtualSwitch: HypervUseExternalSwitch:false HypervExternalAdapter: KVMNetwork: KVMQemuURI: KVMGPU:false KVMHidden:false DockerOpt:[param=value] DisableDriverMounts:false NFSShare:[] NFSSharesRoot: UUID: NoVTXCheck:false DNSProxy:false HostDNSResolver:false HostOnlyNicType: NatNicType: KubernetesConfig:{KubernetesVersion: ClusterName: APIServerName: APIServerNames:[] APIServerIPs:[] DNSDomain: ContainerRuntime: CRISocket: NetworkPlugin: FeatureGates: ServiceCIDR: ImageRepository: LoadBalancerStartIP: LoadBalancerEndIP: ExtraOptions:[] ShouldLoadCachedImages:false EnableDefaultCNI:false CNI: NodeIP: NodePort:0 NodeName:} Nodes:[] Addons:map[] VerifyComponents:map[] StartHostTimeout:0s} &{Name:minikube IP: Port:0 KubernetesVersion: ControlPlane:false Worker:false}
I0818 23:58:39.552706   13809 start.go:122] createHost starting for "minikube" (driver="mock")
E0818 23:58:39.552728   13809 register.go:123] unexpected first step: ""
W0818 23:58:39.552831   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.552911   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:39.552963   13809 start.go:166] duration metric: libmachine.API.Create for "" took 52.617µs
I0818 23:58:39.552980   13809 start.go:207] post-start starting for "mock-machine-0.15651925" (driver="mock")
I0818 23:58:39.552986   13809 start.go:210] post-start completed in 316ns
I0818 23:58:39.553080   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.15651925/config.json ...
I0818 23:58:39.553138   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.15651925/config.json: {Name:mk4b8db4eaf886108d3c63f584b84c5d6919dc58 Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.553240   13809 start.go:125] duration metric: createHost completed in 520.752µs
I0818 23:58:39.553258   13809 start.go:76] releasing machines lock for "-minikube", held for 643.052µs
I0818 23:58:39.553304   13809 stop.go:38] StopHost: mock-machine-0.15651925
I0818 23:58:39.553379   13809 start.go:122] createHost starting for "minikube" (driver="mock")
W0818 23:58:39.553426   13809 register.go:112] "Running on Localhost" was not found within the registered steps for "Stopping": [Stopping Done]
W0818 23:58:39.553484   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.553526   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:39.553597   13809 start.go:166] duration metric: libmachine.API.Create for "" took 70.471µs
I0818 23:58:39.553608   13809 start.go:207] post-start starting for "mock-machine-0.09696952" (driver="mock")
I0818 23:58:39.553614   13809 start.go:210] post-start completed in 290ns
I0818 23:58:39.553690   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.09696952/config.json ...
I0818 23:58:39.553764   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.09696952/config.json: {Name:mk7a73d6fbba75caf1f7ec4369b0ff35e679c9b6 Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.553874   13809 start.go:125] duration metric: createHost completed in 483.254µs
I0818 23:58:39.553888   13809 stop.go:38] StopHost: mock-machine-0.09696952
W0818 23:58:39.554004   13809 out.go:101] [unset outFile]: * Stopping node "mock-machine-0.09696952"  ...
Stopping "mock-machine-0.09696952"...
Machine "mock-machine-0.09696952" was stopped.
I0818 23:58:39.554091   13809 stop.go:66] duration metric: stop complete within 74.032µs
I0818 23:58:39.554157   13809 start.go:122] createHost starting for "minikube" (driver="mock")
W0818 23:58:39.554202   13809 register.go:112] "Running on Localhost" was not found within the registered steps for "Stopping": [Stopping Done]
W0818 23:58:39.554263   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.554317   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:39.554370   13809 start.go:166] duration metric: libmachine.API.Create for "" took 64.304µs
I0818 23:58:39.554379   13809 start.go:207] post-start starting for "mock-machine-0.30091186" (driver="mock")
I0818 23:58:39.554385   13809 start.go:210] post-start completed in 127ns
I0818 23:58:39.554459   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.30091186/config.json ...
I0818 23:58:39.554522   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.30091186/config.json: {Name:mk70d318d80deadbbddd92ff2f828bb2a37448df Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.554629   13809 start.go:125] duration metric: createHost completed in 459.674µs
W0818 23:58:39.554714   13809 register.go:112] "Running on Localhost" was not found within the registered steps for "Stopping": [Stopping Done]
W0818 23:58:39.554787   13809 out.go:101] [unset outFile]: * Deleting "mock-machine-0.30091186" in mock ...
I0818 23:58:39.554854   13809 start.go:122] createHost starting for "minikube" (driver="mock")
W0818 23:58:39.554932   13809 register.go:112] "Running on Localhost" was not found within the registered steps for "Stopping": [Stopping Done]
W0818 23:58:39.554997   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.555037   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:39.555133   13809 start.go:166] duration metric: libmachine.API.Create for "" took 95.873µs
I0818 23:58:39.555144   13809 start.go:207] post-start starting for "mock-machine-0.51521263" (driver="mock")
I0818 23:58:39.555169   13809 start.go:210] post-start completed in 153ns
I0818 23:58:39.555272   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.51521263/config.json ...
I0818 23:58:39.555341   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.51521263/config.json: {Name:mk268abc2f39c8418de5b8839dc4b6027b77ce5c Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.555452   13809 start.go:125] duration metric: createHost completed in 584.965µs
I0818 23:58:39.555515   13809 start.go:122] createHost starting for "minikube" (driver="mock")
W0818 23:58:39.555583   13809 register.go:112] "Running on Localhost" was not found within the registered steps for "Stopping": [Stopping Done]
W0818 23:58:39.555653   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.555694   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:39.555760   13809 start.go:166] duration metric: libmachine.API.Create for "" took 66.397µs
I0818 23:58:39.555770   13809 start.go:207] post-start starting for "mock-machine-0.81363996" (driver="mock")
I0818 23:58:39.555777   13809 start.go:210] post-start completed in 127ns
I0818 23:58:39.555867   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.81363996/config.json ...
I0818 23:58:39.555939   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.81363996/config.json: {Name:mk7ec5652f1be94ddf533c9d2ce4b4a438dfc7fe Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.556061   13809 start.go:125] duration metric: createHost completed in 519.221µs
I0818 23:58:39.556106   13809 start.go:122] createHost starting for "minikube" (driver="mock")
W0818 23:58:39.556170   13809 register.go:112] "Running on Localhost" was not found within the registered steps for "Stopping": [Stopping Done]
W0818 23:58:39.556232   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.556283   13809 start.go:158] libmachine.API.Create for "" (driver="mock")
I0818 23:58:39.556352   13809 start.go:166] duration metric: libmachine.API.Create for "" took 68.005µs
I0818 23:58:39.556361   13809 start.go:207] post-start starting for "mock-machine-0.21426387" (driver="mock")
I0818 23:58:39.556366   13809 start.go:210] post-start completed in 120ns
I0818 23:58:39.556480   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.21426387/config.json ...
I0818 23:58:39.556529   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.21426387/config.json: {Name:mk9388d9cc789ed4646cbe49f77fbe73260a7dbf Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.556653   13809 start.go:125] duration metric: createHost completed in 536.244µs
I0818 23:58:39.556737   13809 start.go:122] createHost starting for "minikube" (driver="mock")
W0818 23:58:39.556781   13809 register.go:112] "Running on Localhost" was not found within the registered steps for "Stopping": [Stopping Done]
W0818 23:58:39.556905   13809 out.go:101] [unset outFile]: * Running on localhost (CPUs=2, Memory=7976MB, Disk=69422MB) ...
I0818 23:58:39.556952   13809 start.go:158] libmachine.API.Create for "mock-machine-0.21426387" (driver="mock")
I0818 23:58:39.557024   13809 start.go:166] duration metric: libmachine.API.Create for "mock-machine-0.21426387" took 72.461µs
I0818 23:58:39.557051   13809 start.go:207] post-start starting for "mock-machine-0.38065719" (driver="mock")
I0818 23:58:39.557060   13809 start.go:210] post-start completed in 118ns
I0818 23:58:39.557135   13809 profile.go:150] Saving config to /tmp/minipath546781978/.minikube/profiles/mock-machine-0.38065719/config.json ...
I0818 23:58:39.557208   13809 lock.go:35] WriteFile acquiring /tmp/minipath546781978/.minikube/profiles/mock-machine-0.38065719/config.json: {Name:mk2a1cb2022ad138720ec9e566dbaa37afab7e5d Clock:{} Delay:500ms Timeout:1m0s Cancel:<nil>}
I0818 23:58:39.557324   13809 start.go:125] duration metric: createHost completed in 576.304µs
I0818 23:58:39.557368   13809 stop.go:38] StopHost: mock-machine-0.38065719
W0818 23:58:39.557477   13809 out.go:101] [unset outFile]: * Stopping node "mock-machine-0.38065719"  ...
Stopping "mock-machine-0.38065719"...
Machine "mock-machine-0.38065719" was stopped.
I0818 23:58:39.557533   13809 stop.go:66] duration metric: stop complete within 45.903µs
I0818 23:58:39.758208   13809 host.go:65] Checking if "mock-machine-0.38065719" exists ...
Using SSH client type: native
&{{{<nil> 0 [] [] []} root [] 0xbe8020 <nil>  [] 0s} localhost 44127 <nil> <nil>}
--- FAIL: TestCreateSSHShell (0.21s)
    ssh_mock.go:193: Listening on 127.0.0.1:44127
    ssh_mock.go:83: Serving ...
    ssh_mock.go:87: [loop 1] Accepting for &{0xc0008f64e0 map[] false  0 {map[]} false 0xc00089cda0 0xc0008f8000}...
    api_mock.go:62: MockAPI.Load: &{ConfigVersion:0 Driver:0xc0008c0f20 DriverName: HostOptions:<nil> Name: RawDriver:[]} - <nil>
    driver_mock.go:49: MockDriver.GetState called from /home/travis/gopath/src/github.com/kubernetes/minikube/pkg/minikube/machine/cluster_test.go#457: returning "Running"
    ssh_mock.go:87: [loop 2] Accepting for &{0xc0008f64e0 map[] false  0 {map[]} false 0xc00089cda0 0xc0008f8000}...
    ssh_mock.go:175: pty request received: &{Type:pty-req WantReply:true Payload:[0 0 0 5 120 116 101 114 109 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 53 0 0 0 1 0] ch:0xc0008c2540 mux:<nil>}
    ssh_mock.go:149: exec request received: &{Type:exec WantReply:true Payload:[0 0 0 4 101 120 105 116] ch:0xc0008c2540 mux:<nil>}
    ssh_mock.go:161: returning output for exit ...
    ssh_mock.go:169: setting exit-status for exit ...
    ssh_mock.go:171: SendRequest failed: EOF
I0818 23:58:39.763341   13809 fix.go:209] guest clock: 1597795119.0000
I0818 23:58:39.763358   13809 fix.go:222] Guest: 2020-08-18 23:58:39 +0000 UTC Remote: 2020-08-18 23:58:39.763320878 +0000 UTC m=+1.297333510 (delta=-763.320878ms)
I0818 23:58:39.763751   13809 filesync.go:118] Scanning /tmp/minipath848901468/.minikube/addons for local assets ...
I0818 23:58:39.763855   13809 filesync.go:141] local asset: /tmp/minipath848901468/.minikube/addons/dir1/file1.txt -> file1.txt in /etc/kubernetes/addons
I0818 23:58:39.763878   13809 filesync.go:141] local asset: /tmp/minipath848901468/.minikube/addons/dir1/file2.txt -> file2.txt in /etc/kubernetes/addons
I0818 23:58:39.763914   13809 filesync.go:141] local asset: /tmp/minipath848901468/.minikube/addons/dir2/file1.txt -> file1.txt in /etc/kubernetes/addons
I0818 23:58:39.764654   13809 filesync.go:118] Scanning /tmp/minipath467881227/.minikube/files for local assets ...
I0818 23:58:39.764731   13809 filesync.go:141] local asset: /tmp/minipath467881227/.minikube/files/dir1/file1.txt -> file1.txt in /dir1
I0818 23:58:39.764754   13809 filesync.go:141] local asset: /tmp/minipath467881227/.minikube/files/dir1/file2.txt -> file2.txt in /dir1
I0818 23:58:39.764793   13809 filesync.go:141] local asset: /tmp/minipath467881227/.minikube/files/dir2/file1.txt -> file1.txt in /dir2
FAIL
coverage: 39.5% of statements
FAIL	k8s.io/minikube/pkg/minikube/machine	1.311s
ok  	k8s.io/minikube/pkg/minikube/mustload	0.056s	coverage: 10.5% of statements
ok  	k8s.io/minikube/pkg/minikube/notify	0.017s	coverage: 92.9% of statements
ok  	k8s.io/minikube/pkg/minikube/out	0.072s	coverage: 59.3% of statements
ok  	k8s.io/minikube/pkg/minikube/out/register	0.009s	coverage: 54.5% of statements
ok  	k8s.io/minikube/pkg/minikube/perf	4.158s	coverage: 33.8% of statements
ok  	k8s.io/minikube/pkg/minikube/problem	0.014s	coverage: 92.7% of statements
ok  	k8s.io/minikube/pkg/minikube/proxy	0.011s	coverage: 68.7% of statements
ok  	k8s.io/minikube/pkg/minikube/registry	0.010s	coverage: 75.5% of statements
ok  	k8s.io/minikube/pkg/minikube/service	0.075s	coverage: 84.2% of statements
ok  	k8s.io/minikube/pkg/minikube/shell	0.010s	coverage: 97.1% of statements
ok  	k8s.io/minikube/pkg/minikube/storageclass	0.063s	coverage: 100.0% of statements
ok  	k8s.io/minikube/pkg/minikube/sysinit	0.054s	coverage: 6.5% of statements
ok  	k8s.io/minikube/pkg/minikube/translate	0.004s	coverage: 10.5% of statements
ok  	k8s.io/minikube/pkg/minikube/tunnel	1.644s	coverage: 64.2% of statements
ok  	k8s.io/minikube/pkg/util	0.813s	coverage: 77.9% of statements
ok  	k8s.io/minikube/pkg/util/lock	0.007s	coverage: 18.2% of statements
ok  	k8s.io/minikube/pkg/util/retry	0.006s	coverage: 0.0% of statements
FAIL
Makefile:292: recipe for target 'test' failed
make: *** [test] Error 32
TravisBuddy Request Identifier: e7dd98c0-e1ae-11ea-81c3-ef1e647c3fbd

@tstromberg
Copy link
Contributor Author

I can confirm that this change is visible in child containers, including kubelet and kube-apiserver:

sudo env SHELL=/bin/sh nsenter --target $(pgrep kube-apiserver) --mount --uts --ipc --net --pid
# cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files
group:          files
shadow:         files
gshadow:        files

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

@codecov-commenter
Copy link

Codecov Report

Merging #9029 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9029   +/-   ##
=======================================
  Coverage   31.66%   31.66%           
=======================================
  Files         166      166           
  Lines       11326    11326           
=======================================
  Hits         3586     3586           
  Misses       7309     7309           
  Partials      431      431           

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 21, 2020
@tstromberg tstromberg merged commit 0b135b4 into kubernetes:master Aug 24, 2020
@medyagh medyagh mentioned this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

initial timeout of 40s passed: 'minikube' resolves to: 92.242.140.2 (unallocated.barefruit.co.uk)
5 participants