Skip to main content

Hi,

 

W’re unable to use k10offline to list-image on version 6.5.0 in our airgapped environment.

Obviously, k10offline need internet to be able to run 🙃

 

Example with k10offline on version 6.5.0 :

docker run --rm -it <local_registry_url>/gcrio-remote/kasten-images/k10offline:6.5.0 list-images
ERROR: Failed to list k10 container images: {"message":"failed to get k10 version from env var or chart repo","function":"kasten.io/k10/kio/tools/k10offline.ListImages","linenumber":194,"file":"kasten.io/k10/kio/tools/k10offline/k10offline.go:194","cause":{"message":"Failed to get helm repo index: Get \"https://charts.kasten.io/index.yaml\": dial tcp: lookup charts.kasten.io on xx.xx.xx.xx:53: no such host"}}
-> failed to get k10 version from env var or chart repo
-> Failed to get helm repo index: Get "https://charts.kasten.io/index.yaml": dial tcp: lookup charts.kasten.io on xx.xx.xx.xx:53: no such host
-> Get "https://charts.kasten.io/index.yaml": dial tcp: lookup charts.kasten.io on xx.xx.xx.xx:53: no such host
-> dial tcp: lookup charts.kasten.io on xx.xx.xx.xx:53: no such host
-> lookup charts.kasten.io on xx.xx.xx.xx:53: no such host
 
Example with k10offline on version 6.0.7
 
docker run --rm -it <local_registry_url>/gcrio-remote/kasten-images/k10offline:6.0.7 list-images
ghcr.io/kanisterio/kanister-tools:0.95.0
gcr.io/kasten-images/restorectl:6.0.7
gcr.io/kasten-images/frontend:6.0.7
gcr.io/kasten-images/kanister:6.0.7
gcr.io/kasten-images/aggregatedapis:6.0.7
 
 
Thank you for your help :)

@Florian Lacrampe Did you download the k10 6.5.0 images and move them to your private repo?
I see you are trying to list the images using your local_registry_url
first, you need to download, tag, and move images to your private registry.


Thanks

Ahmed Hagag


Hi,

<local_registry_url>/gcrio-remote/kasten-images/k10offline:6.5.0 === gcr.io/kasten-images/k10offline:6.5.0

 

In a nutshell, this documentation https://docs.kasten.io/latest/install/offline.html#list-k10-container-images doesn’t work in offline environment.

 


Hi @Florian Lacrampe so to get your question well, You cannot access the gcr.io/kasten-io repository directly and you would like to use k10offline to list images for Kasten version 6.5.0?

in the doc you are sharing, in order to list the images you should have access to “gcr.io/kasten-images/k10offline”  either by setting up a caching or proxy image registry that points to the Kasten K10 image repositories or manually/automatically uploading the images to your private registry.

 

docker run --rm -it gcr.io/kasten-images/k10offline:6.5.0 list-images

Hi,

Sorry, we don't fully understand each other 🤣

We’re able to use gcr.io/kasten-images/k10offline:6.5.0 by using Artifactory, so our image is tag with another name. This one : <local_registry_url>/gcrio-remote/kasten-images/k10offline:6.5.0

But that’s the same images, just called differently. That's not the problem 😉

 

The problem is that it’s impossible to use “k10offline” in offline mode as it stands because “k10offline” try to reach internet in order to update helm local repository (i don’t know why).

This behavior was different in old version, for example v6.0.7.

 

That’s clearly a bug, but i don’t know how to submit an issue for development team.

 

Thank you for your help,

Have a nice day


Comment