-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.18.z, 4.19.0
Description of problem:
When running the oc adm node-image create command, in case of error the tool returns a panic
Version-Release number of selected component (if applicable):
4.19, 4.18
How reproducible:
Execute oc adm node-image create command with some wrong param, for example by not having the nodes-config.yaml or by not specifying a kubeconfig
Steps to Reproduce:
1. 2. 3.
Actual results:
A stack trace is printed in the console output
Expected results:
The exact reason of the error should be reported
Additional info:
It looks like a typo added in commit 0601c2e, this line https://github.com/openshift/oc/blob/1719de833ae8e8a272ff55ca2a80489e6c791d92/pkg/cli/admin/nodeimage/create.go#L180 should return the error instead of nil
- is duplicated by
-
OCPBUGS-55048 `oc adm node-image create` command fails with the error messaging giving no feedback information even in the report.json.
-
- Verified
-