Bug 1905404 - The example of "Remove the entrypoint on the mysql:latest image" for `oc image append` does not work
Summary: The example of "Remove the entrypoint on the mysql:latest image" for `oc imag...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: oc
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Maciej Szulik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-08 09:41 UTC by zhou ying
Modified: 2021-02-24 15:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:41:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift oc pull 664 0 None closed Bug 1905404: fix append example 2021-01-08 15:43:03 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:41:29 UTC

Description zhou ying 2020-12-08 09:41:50 UTC
Description of problem:
The example of "Remove the entrypoint on the mysql:latest image" in `oc image append` does not work

Version-Release number of selected component (if applicable):
Client Version: 4.7.0-202012041716.p0-db6b7f1

How reproducible:
always

Steps to Reproduce:
1) Follow the help info to run `oc image append` like: 
`oc image append   -a /home/yinzhou-0316/config.json --from  library/mysql:latest --filter-by-os=linux/amd64  --to  privateregistryurl:5000/openshifttest/mysqltest2:latest --image {"Entrypoint":null}`


Actual results:
1) Hit error:
error: unable to patch image from --image: invalid character 'E' looking for beginning of object key string

Expected results:
1) Give correct example from the help info.


Additional info:

Comment 2 zhou ying 2020-12-17 06:11:53 UTC
Checked with latest oc , the issue has fixed:

[root@preserver-workloadrhel-1 ~]# oc version 
Client Version: 4.7.0-202012170204.p0-38273af

[root@preserver-workloadrhel-1 ~]# oc image append -h
Add layers to container images

....
Usage:
  oc image append [flags]

Examples:
  # Remove the entrypoint on the mysql:latest image
  oc image append --from mysql:latest --to myregistry.com/myimage:latest --image '{"Entrypoint":null}'
and the command works well. 

`oc image append   --from  library/mysql:latest --filter-by-os=linux/amd64  --to  localhost:5000/openshifttest/mysqltest2:latest --image '{"Entrypoint":null}' `

Comment 5 errata-xmlrpc 2021-02-24 15:41:14 UTC
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


Note You need to log in before you can comment on or make changes to this bug.