Bug 1953775
Summary: | The --apply-release-image-signature parameter is required for Restricted Network upgrades | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Philip Chan <chanphil> |
Component: | Documentation | Assignee: | Chinmayi Chandrasekhar <cchandra> |
Status: | CLOSED NOTABUG | QA Contact: | Johnny Liu <jialiu> |
Severity: | high | Docs Contact: | Latha S <lmurthy> |
Priority: | high | ||
Version: | 4.7 | CC: | aos-bugs, Holger.Wolf, jialiu, jokerman, krmoser, lmurthy, sniemann, wolfgang.voesch, yanyang |
Target Milestone: | --- | ||
Target Release: | 4.7.z | ||
Hardware: | s390x | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-01-05 10:34:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1934148 |
Description
Philip Chan
2021-04-26 22:45:13 UTC
Changing severity from urgent to high as this is not a blocker bug. We have the options to workaround the issue. @Phil The documentation you are referring to has been removed a few days ago and there's a a brand new description: https://docs.openshift.com/container-platform/4.7/installing/installing-mirroring-installation-images.html#installing-mirroring-installation-images Does that solve the problem? @Silke I followed the latest 4.7 documentation for mirroring. As it stands now, the disconnected installation will work using the given steps. However, if I were to perform an upgrade, for example upgrading from OCP 4.7.12 to 4.7.13, the problem still persists: [root@bastion ~]# oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.7.12 True True 29m Unable to apply bastion:5000/ocp4/openshift4@sha256:4cf44e68413acad063203e1ee8982fd01d8b9c1f8643a5b31cd7ff341b3199cd: the image may not be safe to use I had mirrored the version images to my internal registry without "--apply-release-image-signature" parameter. In my opinion, there are two ways we can update the documentation to resolve this: 1) We write a separate paragraph that explains how you can upgrade. 2) We add a small bullet or note that states for an upgrade, please add --apply-release-image-signature to the mirror command: oc adm release mirror -a ${LOCAL_SECRET_JSON} --from=quay.io/${PRODUCT_REPO}/${RELEASE_NAME}:${OCP_RELEASE}-${ARCHITECTURE} --to=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY} --to-release-image=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY}:${OCP_RELEASE}-${ARCHITECTURE} --apply-release-image-signature Open to other options too. Thanks, Phil Can someone paste the doc PR here? In the present official doc, https://docs.openshift.com/container-platform/4.7/updating/updating-restricted-network-cluster.html, we already mentioned how to apply image signature config map. """ If the local container registry and the cluster are connected to the mirror host, directly push the release images to the local registry and apply the config map to the cluster by using following command: $ oc adm release mirror -a ${LOCAL_SECRET_JSON} --from=quay.io/${PRODUCT_REPO}/${RELEASE_NAME}:${OCP_RELEASE}-${ARCHITECTURE} \ --to=${LOCAL_REGISTRY}/${LOCAL_REPOSITORY} --apply-release-image-signature """ """ Creating the config map for image signature verification by using the oc CLI """ """ Creating an image signature config map manually """ So personally I think the official doc looks good to me, no need change, anything missing? After reviewed https://github.com/openshift/openshift-docs/pull/40174, seem like no need any update, the reason mentioned in comment 5, for customers who are mirroring images and upgrading the cluster, the detailed steps about image signature is already described in https://docs.openshift.com/container-platform/4.7/updating/updating-restricted-network-cluster.html. https://docs.openshift.com/container-platform/4.6/installing/install_config/installing-restricted-networks-preparations.html is for a fresh install, but not upgrade. (In reply to Chinmayi Chandrasekhar from comment #7) > PR: https://github.com/openshift/openshift-docs/pull/40174 Wrong PR. The bug does not require any changes - can be closed. (In reply to Chinmayi Chandrasekhar from comment #6) > PR: > https://github.com/openshift/openshift-docs/compare/main...chinmayi- > chandrasekar:BZ1953775_add_required_parameter_for_network_upgrade?expand=1 Wrong PR. The bug does not require any changes - can be closed. |