-
Bug
-
Resolution: Done
-
Normal
-
4.15
-
Quality / Stability / Reliability
-
False
-
-
1
-
None
-
None
-
None
-
None
-
None
-
OSDOCS Sprint 266
-
1
-
None
-
Release Note Not Required
-
n/a
-
None
-
None
-
None
-
None
Description of problem:
command line is wrong in doc: https://docs.openshift.com/container-platform/4.15/hosted_control_planes/hcp_high_availability/hcp-backup-restore-on-premise.html
in last step: "Restore reconciliation of the hosted cluster by entering the following command:"
the command line is wrong and will fail as below:
$ oc patch -n ${CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} -p '{"spec":{"pausedUntil":""}}' --type=merge
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>'
it because "CLUSTER_NAMESPACE" should be "HOSTED_CLUSTER_NAMESPACE":
$ oc patch -n ${HOSTED_CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} -p '{"spec":{"pausedUntil":""}}' --type=merge
hostedcluster.hypershift.openshift.io/2efb8a647784e59209af patched
How reproducible:always
Steps to Reproduce:
1.
2.
3.
Actual results:
oc patch -n ${CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} -p '{"spec":{"pausedUntil":""}}' --type=merge
Expected results:
oc patch -n ${HOSTED_CLUSTER_NAMESPACE} hostedclusters/${CLUSTER_NAME} -p '{"spec":{"pausedUntil":""}}' --type=merge
Additional info: