Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-44218

Err of command line in Backing up and restoring etcd in an on-premise environment

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 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:

      
      

              rhn-support-lahinson Laura Hinson
              rhn-support-geliu Ge Liu
              None
              None
              None
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: