Hide Forgot
Description of problem: execute command `oc adm release extract registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-30-020342 --credentials-requests --to ./extract_content` All CRs in current release is shown in STDOUT, at the sametime, the directory `./extract_content` is created, and there is nothing in it. the help text of `--to` option: `--to='.': Directory to write release contents to, defaults to the current directory.` if `--to` option is not designed to work with `--credentials-requests` option, a clear message should be shown to user, otherwise the user is confused by the empty folder. if `--to` option is designed to work with `--credentials-requests` option, as mentioned above, there is nothing in the folder. Version-Release number of selected component (if applicable): oc client Version: 4.6.0-0.nightly-2020-06-30-020342 How reproducible: always Steps to Reproduce: 1. execute command `oc adm release extract registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-30-020342 --credentials-requests --to ./extract_content` 2. 3. Actual results: All CRs in current release is shown in STDOUT the directory `./extract_content` is created and with nothing in it. Expected results: 1. a clear error/warning message like `--to option is not supported with --credentials-requests option` * or * 2. make `--to` option work with `--credentials-requests`, the save the content to directory.
I’m adding UpcomingSprint, because I was occupied by fixing bugs with higher priority/severity, developing new features with higher priority, or developing new features to improve stability at a macro level. I will revisit this bug next sprint.
Moving to 4.7, the PR is in the queue.
Can't reproduce the issue now: [root@dhcp-140-138 home]# oc version Client Version: 4.7.0-0.nightly-2020-11-03-040426 [root@dhcp-140-138 home]# ll extract_content ls: cannot access 'extract_content': No such file or directory [root@dhcp-140-138 home]# oc adm release extract registry.svc.ci.openshift.org/ocp/release:4.7.0-0.nightly-2020-11-03-040426 --credentials-requests --to ./extract_content [root@dhcp-140-138 home]# ll extract_content/ total 3708 -rw-rw-r--. 1 root root 1820 Nov 3 15:52 0000_03_authorization-openshift_01_rolebindingrestriction.crd.yaml -rw-rw-r--. 1 root root 1820 Nov 3 15:52 0000_03_config-operator_01_operatorhub.crd.yaml -rw-rw-r--. 1 root root 1820 Nov 3 15:52 0000_03_config-operator_01_proxy.crd.yaml
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5633