Bug 1278296 - [platformmanagement_public_514]"reference" should be supported under "tags" level in the ImageStream file
[platformmanagement_public_514]"reference" should be supported under "tags" l...
Status: CLOSED CURRENTRELEASE
Product: OpenShift Origin
Classification: Red Hat
Component: Image Registry (Show other bugs)
3.x
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Maciej Szulik
Wei Sun
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-05 03:20 EST by Wei Sun
Modified: 2015-11-23 16:16 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-23 16:16:32 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Wei Sun 2015-11-05 03:20:13 EST
Description of problem:
"reference" could not be supported under "tags" level in the ImageStream file.When I added "reference":"false" or "reference":"true" under "tags" level in ImageStream json file,I could not create the ImageStream successfully.


Version-Release number of selected component (if applicable):
# openshift version
openshift v3.1.0.0
kubernetes v1.2.0-alpha.1-1107-g4c8e6f4
etcd 2.1.2


How reproducible:
Always

Steps to Reproduce:
1.Create an ImageStream with "reference" is defined under tags level in the json file
2.
3.

Actual results:
1.cat test.json
{
    "kind": "ImageStream",
    "apiVersion": "v1",
    "metadata": {
      "name": "python",
      "creationTimestamp": null
    },
    "spec": {
           "tags":[
                      { "name": "3.3",
                         "annotations":
                              { "description": "wsun tests" },
                          "from":
                           {
                               "Kind": "DockerImage",
                                "Name": "wsun/python-33-centos"
                           },
                          "reference":"false"
                        }
             ]
       }
}

$ oc create -f test.json 
unable to load "test.json": json: cannot unmarshal string into Go value of type bool

Expected results:
"reference" should be supported under "tags" level

Additional info:
Comment 1 Maciej Szulik 2015-11-05 08:27:11 EST
It's an error in your json, remove the false from double quotes like so:

"reference": false

and this should work fine.
Comment 2 Wei Sun 2015-11-05 21:20:38 EST
It works if removing the false from double quotes.Thanks!

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