Description of problem:
default value of option --parallelism cannot be parsed to int
Version-Release number of selected component (if applicable):
4.16.0-0.nightly-2024-02-02-002725
How reproducible:
reproduce with cmd copy-to-node
Steps to Reproduce:
Cmd: "oc --namespace=e2e-test-mco-4zb88 --kubeconfig=/tmp/kubeconfig-3071675436 adm copy-to-node node/ip-10-0-17-85.ec2.internal --copy=/tmp/fetch-w637bgyv=/etc/mco-compressed-test-file", StdErr: "error: --parallelism must be either N or N%: strconv.ParseInt: parsing \"10%%\": invalid syntax",
Actual results:
default value of --parallelism cannot be parsed
Expected results:
no error
Additional info:
there is a hack code to append % to the default value ref: https://github.com/openshift/oc/blob/79dc671bdaeafa74b92f14ad9f6d84e344608034/pkg/cli/admin/pernodepod/command.go#L75-L79 https://github.com/openshift/oc/blob/79dc671bdaeafa74b92f14ad9f6d84e344608034/pkg/cli/admin/pernodepod/command.go#L94 err var percentParseErr should be usedÂ
- links to
-
RHEA-2024:0041 OpenShift Container Platform 4.16.z bug fix update