Document URL: Line [1] contains HCO_CHANNEL var which is u/s. It should be CNV_CNANNEL, d/s. Additional information: [1] https://github.com/openshift/openshift-docs/blame/master/cnv/cnv_release_notes/cnv-release-notes.adoc#L208
Thanks Irina PR: https://github.com/openshift/openshift-docs/pull/20823 Once reviewed I can cherrypick this to CNV 2.2 release notes while it's still active, and to 2.3 as well since it looks like it's still a bug there as well.
There is also missing export and single quotas around the CNV_CNANNEL. Then, the line should be: export TARGET_NAMESPACE=openshift-cnv CNV_CHANNEL=2.3 && oc patch -n "${TARGET_NAMESPACE}" $(oc get subscription -n ${TARGET_NAMESPACE} --no-headers -o name) --type='json' -p='[{"op": "replace", "path": "/spec/channel", "value":"'${CNV_CHANNEL}'"}, {"op": "replace", "path": "/spec/installPlanApproval", "value":"Automatic"}]' Otherwise, it won't work: $ TARGET_NAMESPACE=openshift-cnv CNV_CHANNEL=2.3 oc patch -n "${TARGET_NAMESPACE}" $(oc get subscription -n ${TARGET_NAMESPACE} --no-headers -o name) --type='json' -p='[{"op": "replace", "path": "/spec/channel", "value":"${CNV_CHANNEL}"}, {"op": "replace", "path": "/spec/installPlanApproval", "value":"Automatic"}]' error: You must provide one or more resources by argument or filename. Example resource specifications include: '-f rsrc.yaml' '--filename=rsrc.json' '<resource> <name>' '<resource>' $ export TARGET_NAMESPACE=openshift-cnv CNV_CHANNEL=2.3 && oc patch -n "${TARGET_NAMESPACE}" $(oc get subscription -n ${TARGET_NAMESPACE} --no-headers -o name) --type='json' -p='[{"op": "replace", "path": "/spec/channel", "value":"${CNV_CHANNEL}"}, {"op": "replace", "path": "/spec/installPlanApproval", "value":"Automatic"}]' subscription.operators.coreos.com/kubevirt-hyperconverged patched [cloud-user@ocp-psi-executor ~]$ oc get subs -n openshift-cnv NAME PACKAGE SOURCE CHANNEL kubevirt-hyperconverged kubevirt-hyperconverged redhat-operators ${CNV_CHANNEL}
Thanks for the extra info, Irina. I've updated the PR as suggested: https://github.com/openshift/openshift-docs/pull/20823/files
TBH with the latest rebranding Im not sure using CNV is good @Dan what do you think?
Rebranding is for next release only. And this is just a release note. I would not worry much about it. We still don't have a properly-documented way to deploy OpenShift virtualization from the command line; even when we do, we can using upstream or cnv in the command line.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2020:2011