diff --git a/images/openstack/Dockerfile.ci b/images/openstack/Dockerfile.ci index 2ccae5f9513..e12442e1c66 100644 --- a/images/openstack/Dockerfile.ci +++ b/images/openstack/Dockerfile.ci @@ -27,9 +27,14 @@ COPY --from=builder /go/src/github.com/openshift/installer/upi/openstack /var/li COPY --from=builder /go/src/github.com/openshift/installer/docs/user/openstack /var/lib/openshift-install/docs COPY --from=builder /go/src/github.com/openshift/installer/hack/openstack/test-manifests.sh /go/src/github.com/openshift/installer/scripts/openstack/manifest-tests /var/lib/openshift-install/manifest-tests +# Check if /usr/share/zoneinfo has been previously deleted +RUN if [ ! -f /usr/share/zoneinfo/zone.tab ]; then \ + yum reinstall -y --setopt=tsflags= tzdata; \ + yum clean all; rm -rf /var/cache/yum/*; \ + fi + # Install Dependendencies for tests -RUN yum update -y --setopt=tsflags= tzdata && \ - yum update -y && \ +RUN yum update -y && \ yum install --setopt=tsflags=nodocs -y \ ansible-collection-ansible-netcommon \ ansible-collection-community-general \