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

[enterprise-4.12] Issue in file backup_and_restore/control_plane_backup_and_restore/replacing-unhealthy-etcd-member.adoc

XMLWordPrintable

    • No
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required

      Description of problem:

      The command in chapter "Determine if the machine is not running:" is not working for UPI or agent based installation.
      
      

      Version-Release number of selected component (if applicable):

       

      How reproducible:

      100%

      Steps to Reproduce:

      1.Make one master not runing:

      oc get node 
      NAME                           STATUS     ROLES                  AGE   VERSION
      cl01-openshift-master-0   Ready      control-plane,master   20d   v1.25.10+3fe2906
      cl01-openshift-master-1   NotReady   control-plane,master   20d   v1.25.10+3fe2906
      cl01-openshift-master-2   Ready      control-plane,master   20d   v1.25.10+3fe2906 
      cl01-openshift-worker-0   Ready      worker                 15d   v1.25.10+3fe2906 2. 3.
      

      2. Run the command:

      oc get machines -A -ojsonpath='{range .items[*]}{@.status.nodeRef.name}{"\t"}{@.status.providerStatus.instanceState}{"\n"}' | grep -v running

      Actual results:

      The report is not correct as providerStatus is not available:

      oc get machines -A -ojsonpath='{range .items[*]}{@.status}{"\n"}' 
      {"addresses":[{"address":"10.37.200.106","type":"InternalIP"}],"conditions":[{"lastTransitionTime":"2023-06-28T13:06:30Z","message":"Drain operation currently blocked by: [{Name:EtcdQuorumOperator Owner:clusteroperator/etcd}]","reason":"HookPresent","severity":"Warning","status":"False","type":"Drainable"},{"lastTransitionTime":"2023-06-28T13:05:59Z","status":"True","type":"InstanceExists"},{"lastTransitionTime":"2023-06-28T13:02:38Z","status":"True","type":"Terminable"}],"lastUpdated":"2023-07-18T09:11:24Z","nodeRef":{"kind":"Node","name":"cl01-openshift-master-0","uid":"1f735f2d-f77e-46c4-b0b2-8543fb08f098"},"phase":"Running"}
      {"addresses":[{"address":"10.37.201.71","type":"InternalIP"}],"conditions":[{"lastTransitionTime":"2023-06-28T13:06:40Z","message":"Drain operation currently blocked by: [{Name:EtcdQuorumOperator Owner:clusteroperator/etcd}]","reason":"HookPresent","severity":"Warning","status":"False","type":"Drainable"},{"lastTransitionTime":"2023-06-28T13:06:00Z","status":"True","type":"InstanceExists"},{"lastTransitionTime":"2023-06-28T13:02:38Z","status":"True","type":"Terminable"}],"lastUpdated":"2023-07-19T09:16:49Z","nodeRef":{"kind":"Node","name":"cl01-openshift-master-1","uid":"5fb95752-72e7-4ff9-b6e2-45d819da8fe2"},"phase":"Running"}
      {"addresses":[{"address":"10.37.200.196","type":"InternalIP"}],"conditions":[{"lastTransitionTime":"2023-06-28T13:06:20Z","message":"Drain operation currently blocked by: [{Name:EtcdQuorumOperator Owner:clusteroperator/etcd}]","reason":"HookPresent","severity":"Warning","status":"False","type":"Drainable"},{"lastTransitionTime":"2023-06-28T13:06:00Z","status":"True","type":"InstanceExists"},{"lastTransitionTime":"2023-06-28T13:02:38Z","status":"True","type":"Terminable"}],"lastUpdated":"2023-07-18T09:11:24Z","nodeRef":{"kind":"Node","name":"cl01-openshift-master-2","uid":"04a10ab0-659a-4a58-aa02-f19b8e193a4c"},"phase":"Running"}
      {"addresses":[{"address":"10.37.201.120","type":"InternalIP"}],"conditions":[{"lastTransitionTime":"2023-06-28T13:02:38Z","status":"True","type":"Drainable"},{"lastTransitionTime":"2023-06-28T13:05:59Z","status":"True","type":"InstanceExists"},{"lastTransitionTime":"2023-06-28T13:02:38Z","status":"True","type":"Terminable"}],"lastUpdated":"2023-07-18T09:11:24Z","nodeRef":{"kind":"Node","name":"cl01-openshift-worker-0","uid":"bb641752-6a2b-4c8d-a323-fee25581be93"},"phase":"Running"}

      Expected results:

      The command identifies not running node.

      Additional info:

       

              rhn-support-lahinson Laura Hinson
              rhn-support-rhodain1 Roman Hodain
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: