https://review.rdoproject.org/zuul/builds?job_name=periodic-tripleo-ci-build-containers-ubi-9-quay-push-master&skip=0
started failing from 2022-12-14 00:20:12.
https://logserver.rdoproject.org/openstack-periodic-integration-main/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-build-containers-ubi-9-quay-push-master/3899865/logs/build.log
```
Command: sudo -E buildah push --tls-verify=False quay.rdoproject.org/tripleomastercentos9/openstack-tripleo-ansible-ee:33364cd38e49e95a1eccba4ac2cdb166 docker://quay.rdoproject.org/tripleomastercentos9/openstack-tripleo-ansible-ee:33364cd38e49e95a1eccba4ac2cdb166
2022-12-14 19:36:52 | Exit code: 125
2022-12-14 19:36:52 | Stdout: ''
2022-12-14 19:36:52 | Stderr: 'Getting image source signatures\nCopying blob sha256:0e431ea2052de8e32a3e1aea4d844f6de74c21fbd7e8f86293eb206d16f3d1a7\nCopying blob sha256:ce30e79639ed7bcea95407e6642e31b7d634ace0ddbe515e6d9e618dea424d55\nCopying blob sha256:910cf1adb0bba60e3951be8478c697bf5ae2783aa35f87228cf21bf028a63a83\nCopying blob sha256:31fcaf884188949a00b8647c0ae879ae4e6582b08995b660808f83af7d24aa11\nCopying blob sha256:29224f33151994fc0f5be854f5788a3f79ea6a1b362241653f4043cc87a1542b\nCopying blob sha256:d83d3545d486e78412f93573fcb90b403d772b5233c1c95c0322106f75e33d6a\nCopying blob sha256:5214be01f3874bd729471110c309dd1d6bfd2218cabd88115e5d79c14f9f5972\nCopying blob sha256:1e90abc37649edc3b38c775ad02999ceb573b6df9298a7d5c3c77240578c3ddc\nCopying blob sha256:d956ae89574ebac50556ffbc93e95dd61a1856e883ec12367d9068e5108c3fc6\nCopying blob sha256:c493e50fc760b1a6addf57ee749b7e076680839f1aae26416e9209a88ea92332\nCopying blob sha256:f345fcf87f5283759dd15d3c503501c120b6f9225cbbb8d8be719dd8e0ccaebd\nCopying blob sha256:253793bd0072a587c601ea86d7883a47dd41f51fe6517a62ca26368c1dc571a2\nCopying blob sha256:4ae6f44d85ebc8868abb2970909c0a869f3c2240c98bfedfb639b4c1f732dbcf\nError: pushing image "quay.rdoproject.org/tripleomastercentos9/openstack-tripleo-ansible-ee:33364cd38e49e95a1eccba4ac2cdb166" to "docker://quay.rdoproject.org/tripleomastercentos9/openstack-tripleo-ansible-ee:33364cd38e49e95a1eccba4ac2cdb166": writing blob: initiating layer upload to /v2/tripleomastercentos9/openstack-tripleo-ansible-ee/blobs/uploads/ in quay.rdoproject.org: unauthorized: access to the requested resource is not authorized\n'
```
While comparing with the passing one:
https://logserver.rdoproject.org/openstack-periodic-integration-main/opendev.org/openstack/tripleo-ci/master/periodic-tripleo-ci-build-containers-ubi-9-quay-push-master/5c43dd3/logs/build.log
```
sudo buildah push --tls-verify=False quay.rdoproject.org/tripleomastercentos9/openstack-tripleo-ansible-ee:684a6a1d7e5378dd94520991e3b20e2a docker://quay.rdoproject.org/tripleomastercentos9/openstack-tripleo-ansible-ee:684a6a1d7e5378dd94520991e3b20e2a[00m
```
By taking a depper look,
In passing job, the command was "sudo buildah" but in failing one "sudo -E buildah" is used.
867080: Preserve environment variables with buildah | https://review.opendev.org/c/openstack/tripleo-common/+/867080 added the same. it broke the container build.
In order to fix this issue, we need to use authfile to buildah login
```
❯ buildah login --help
Login to a container registry on a specified server.
Usage:
buildah login [flags]
Examples:
buildah login quay.io
Flags: -password- stdin Take the password from stdin /opendev. org/openstack/ tripleo- ansible/ src/branch/ master/ tripleo_ ansible/ roles/tripleo_ podman/ tasks/buildah_ login.yml# L35
--authfile string path of the authentication file. Use REGISTRY_AUTH_FILE environment variable to override
--cert-dir string use certificates at the specified path to access the registry
--get-login return the current login user for the registry (default true)
-h, --help help for login
-p, --password string Password for registry
-
--tls-verify require HTTPS and verify certificates when accessing the registry. TLS verification cannot be used when talking to an insecure registry. (default true)
-u, --username string Username for registry
-v, --verbose Write more detailed information to stdout
```
authfile support is not present in tripleo-ansible tripleo-podman role https:/
https:/ /github. com/rdo- infra/review. rdoproject. org-config/ blob/5caeb76df5 feeee5151636353 34c4cc6dd7f8620 /playbooks/ tripleo- rdo-base/ container- login.yaml# L88 is used in container build job.
So I think we need to revert the above patch and then add authfile support in tripleo-podman and re-revert the patch.