cli icon indicating copy to clipboard operation
cli copied to clipboard

mas install in airgap environment does not use digest

Open mattlrx opened this issue 3 months ago • 0 comments

MAS CLI version

15.5.0

CLI function used

install

What happened?

when installing mas in an airgap environment using the cli, the first install is fine, the tekton tasks are created correctly on the server and the cli image uses the digest. subsequent install will try to pull the cli image using the image tag, and will fail because pulling images with tags is blocked: Failed to pull image "quay.io/ibmmas/cli:15.5.0": registry quay.io/ibmmas is blocked in /etc/containers/registries.conf or /root/.config/containers/registries.conf.d

in cli.py in the createTektonFileWithDigest function, the code detects that there is already teckton definition with digest, however it does not use it.

the code following code: self.tektonDefsPath = self.tektonDefsWithDigestPath

is not called after def createTektonFileWithDigest(self) -> None: if path.exists(self.tektonDefsWithDigestPath): logger.debug(f"We have already generated {self.tektonDefsWithDigestPath}")

Relevant log output

Failed to pull image "quay.io/ibmmas/cli:15.5.0": registry quay.io/ibmmas is blocked in /etc/containers/registries.conf or /root/.config/containers/registries.conf.d

mattlrx avatar Sep 30 '25 09:09 mattlrx