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

`oc adm node-image create` command fails with the error messaging giving no feedback information even in the report.json.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.17
    • oc / node-image
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • Agent Sprint 273
    • 1
    • In Progress
    • Bug Fix
    • Hide
      Improve error feedback for oc adm node-image create command

      Fixed an issue where the `oc adm node-image create` command would fail silently, providing no meaningful error message or feedback — even in the report.json output. The root cause was a typo in the error-handling logic, which prevented proper error propagation. This has now been corrected, and meaningful error messages are returned as expected, improving debuggability for users.
      Show
      Improve error feedback for oc adm node-image create command Fixed an issue where the `oc adm node-image create` command would fail silently, providing no meaningful error message or feedback — even in the report.json output. The root cause was a typo in the error-handling logic, which prevented proper error propagation. This has now been corrected, and meaningful error messages are returned as expected, improving debuggability for users.
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-58233. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-58077. The following is the description of the original issue:

      This is a clone of issue OCPBUGS-55048. The following is the description of the original issue:

      Description of problem:

      `oc adm node-image create` command fails with the error messaging giving no feedback information even in the report.json as shown:
      ~~~
      
      [eschille-adm@ansible-cmd utility-configs]$ oc adm node-image create
      2025-03-30T22:57:36Z [node-image create] Launching command
      2025-03-30T22:57:43Z [node-image create] command execution failed. Reason:
      2025-03-30T22:57:43Z [node-image create] Saving report file
      
      [eschille-adm@ansible-cmd utility-configs]$ ls
      baremetal-machine-add.yaml  nodes-config.yaml  report.json
      
      [eschille-adm@ansible-cmd utility-configs]$ cat report.json
      {
       "id": "",
       "start_time": "0001-01-01T00:00:00Z",
       "end_time": "0001-01-01T00:00:00Z",
       "result": {
        "exit_code": 1
       }
      }
      ~~~

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

      oc version is as follows:
      Client Version: 4.18.5
      Kustomize Version: v5.4.2
      Server Version: 4.17.20
      Kubernetes Version: v1.30.10

      How reproducible:

          

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          

      Expected results:

          

      Additional info:

          

              ppinjark@redhat.com pawan pinjarkar
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              Manoj Hans Manoj Hans
              None
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: