Skip to content

mas install in airgap environment does not use digest #1804

@mattlrx

Description

@mattlrx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug ReportSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions