Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-3423

show node uptime with oc command in RHOCP 4

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • Node
    • False
    • None
    • False
    • Not Selected

      1. Proposed title of this feature request
      show uptime of node using oc command in CLI RHOCP 4

      2. What is the nature and description of the request?
      When user runs this command, oc get node <node name> -o jsonpath='{.status.nodeInfo}' | jq . 
      user is not able to get node uptime information in output of the above command.
        
      For example: currently user is getting below ouput. However uptime is not visible here.
      $ oc get node <node name> -o jsonpath='{.status.nodeInfo}' | jq .
       

      { "architecture": "amd64", "bootID": "xxx", "containerRuntimeVersion": "cri-o://1.22.4-3.rhaos4.9.gitb6d3a87.el8", "kernelVersion": "4.18.0-305.49.1.el8_4.x86_64", "kubeProxyVersion": "v1.22.8+f34b40c", "kubeletVersion": "v1.22.8+f34b40c", "machineID": "xxx", "operatingSystem": "linux", "osImage": "Red Hat Enterprise Linux CoreOS 49.84.202205311501-0 (Ootpa)", "systemUUID": "xxx" }

      User is expecting uptime information of the node via oc command without debugging or taking ssh to the node.
       
      3. Why does the customer need this? (List the business requirements here)
      Customer mentioned below requirement:
      We need open browser enter in prometheus or openshift console/monitoring and generate the query:
      (time() - node_boot_time_seconds)/(606024)
      With this RFE, we can calculate the uptime of nodes inside k8s ecosystem. This RFE take more weight because we are increase in cluster in virtual machines and cloud providers. 

      4. List any affected packages or components.
      oc ,kubelet

       

       

       

       

            gausingh@redhat.com Gaurav Singh
            rhn-support-aksjadha Akshata Jadhav
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: