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

kicbase does not respect --image-repository or --image-mirror-country flags #7915

Closed
wenhui-prudencemed opened this issue Apr 26, 2020 · 8 comments
Labels
co/docker-driver Issues related to kubernetes in container 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/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

@wenhui-prudencemed
Copy link

wenhui-prudencemed commented Apr 26, 2020

Steps to reproduce the issue:

minikube start --image-mirror-country=cn --alsologtostderr

Full output of failed command:

I0426 21:05:42.188776 5845 cache.go:66] save to tar file registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.18.0 -> /home/prudencemed/.minikube/cache/images/registry.cn-hangzhou.al
iyuncs.com/google_containers/kube-apiserver_v1.18.0 succeeded
I0426 21:05:42.188790 5845 cache.go:73] Successfully saved all images to host disk.
E0426 21:08:16.404783 5845 cache.go:117] Error downloading kic artifacts: getting remote image: Get https://gcr.io/v2/: dial tcp 64.233.189.82:443: i/o timeout
I0426 21:08:16.405202 5845 start.go:221] acquiring machines lock for minikube: {Name:mk658abb5985c745ceef5c35481ecb92e05e0b87 Clock:{} Delay:500ms Timeout:15m0s Cancel:}
I0426 21:08:16.405286 5845 start.go:225] acquired machines lock for "minikube" in 61.735µs
I0426 21:08:16.405304 5845 start.go:85] Skipping create...Using existing machine configuration
I0426 21:08:16.405312 5845 fix.go:53] fixHost starting:
I0426 21:08:16.405572 5845 oci.go:268] executing with [docker inspect -f {{.State.Status}} minikube] timeout: 19s
I0426 21:08:16.437775 5845 fix.go:105] recreateIfNeeded on minikube: state=Error err="docker inspect -f {{.State.Status}} minikube" failed: exit status 1: Template parsing error: template: :1:8: exec
uting "" at <.State.Status>: map has no entry for key "State"
I0426 21:08:16.437806 5845 fix.go:110] machineExists: false. err=machine does not exist
🤷 docker "minikube" container is missing, will recreate.
I0426 21:08:16.452437 5845 delete.go:117] DEMOLISHING minikube ...

Environment: minikube v1.10.0-beta.1 on Ubuntu 18.04

seems it still try to access gcr.io after I set --image-mirror-country=cn

maybe the image mirror doesn't download kicbase:v0.0.9 to local?

@afbjorklund
Copy link
Collaborator

This is still a work-in-progress, see #7447 #7844. On master you can now select another location.

--base-image='gcr.io/k8s-minikube/kicbase:v0.0.9@sha256:82a826cc03c3e59ead5969b8020ca138de98f366c1907293df91fc57205dbb53': The base image to use for docker/podman drivers. Intended for local development.

More of a workaround, though. It should probably use the same registry mirror as the other images ?

@afbjorklund afbjorklund added co/docker-driver Issues related to kubernetes in container triage/duplicate Indicates an issue is a duplicate of other open issue. labels Apr 26, 2020
@tstromberg
Copy link
Contributor

Agreed - this is a bug. It seems that even if the other issues are fixed, the kicbase code specifically does not yet support --image-mirror.

On the upside, now that master has support a --base-image flag, it should be easy for someone to update the default value to respect `--image-repository.

@tstromberg tstromberg added priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. triage/discuss Items for discussion labels Apr 26, 2020
@tstromberg tstromberg changed the title still try to access gcr.io for kicbase with --image-mirror-country=cn kicbase does not respect --image-repository or --image-mirror-country=cn Apr 26, 2020
@afbjorklund
Copy link
Collaborator

We are also thinking to not use pull, but to download a regular tarball instead: #7766

In that case, it would work just like the ISO and avoid these issues with the registries ?

@tstromberg tstromberg added the kind/bug Categorizes issue or PR as related to a bug. label Apr 30, 2020
@tstromberg
Copy link
Contributor

Not using pull seems besides the point. If this is implemented as a Docker image, it should respect the same flag that other docker pulls do.

@tstromberg tstromberg changed the title kicbase does not respect --image-repository or --image-mirror-country=cn kicbase does not respect --image-repository or --image-mirror-country flags Apr 30, 2020
@afbjorklund
Copy link
Collaborator

Not using pull seems besides the point

Sure, just that it will obsolete this feature ?

@tstromberg tstromberg added 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. and removed triage/discuss Items for discussion triage/duplicate Indicates an issue is a duplicate of other open issue. labels Jun 10, 2020
@tstromberg
Copy link
Contributor

This is still an issue.

@medyagh
Copy link
Member

medyagh commented Jun 17, 2020

this is same as #7447 I am gonna close this one in favor of #7447 that one has more commenters

@medyagh medyagh closed this as completed Jun 17, 2020
@febzhang
Copy link

This is still an issue.

$ minikube version
minikube version: v1.23.2
commit: 0a0ad764652082477c00d51d2475284b5d39ceed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/docker-driver Issues related to kubernetes in container 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/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

No branches or pull requests

5 participants