Bug 1525224
| Summary: | ReplicationController template processed in 3.8 cannot be used in oc create - cannot unmarshall string for ReplicationControllerSpec.replicas | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Mike Fiedler <mifiedle> |
| Component: | Master | Assignee: | Juan Vallejo <jvallejo> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Wang Haoran <haowang> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.8.0 | CC: | aos-bugs, jliggitt, jokerman, jvallejo, mmccomas, smunilla |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | 3.9.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | v3.9.0-0.47.0 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-06-18 14:41:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mike Fiedler
2017-12-12 20:30:42 UTC
Can reproduce above in oc/OCP 3.8 while oc/OCP 3.7 work well Not only rc, it is also same for dc. When the int field's value is string, v3.8 shows above error, but v3.7 handles well, thus v3.8 is better to handle it well too PS: similarly, bug 1270675 now does not happen in v3.7 while happening in v3.8: $ oc run mydc --image aosqe/hello-openshift --overrides='{ "apiVersion": "v1", "spec": { "replicas": "2"} }' # in oc/OCP v3.7 deploymentconfig "mydc" created $ oc run mydc --image aosqe/hello-openshift --overrides='{ "apiVersion": "v1", "spec": { "replicas": "2"} }' # in oc/OCP v3.8 error: json: cannot unmarshal string into Go struct field DeploymentConfigSpec.replicas of type int32 > Can reproduce above in oc/OCP 3.8 while oc/OCP 3.7 work well
> Not only rc, it is also same for dc. When the int field's value is string, v3.8
> shows above error, but v3.7 handles well, thus v3.8 is better to handle it well
> too
This bug does not appear to happen when testing oc 3.8 against a 3.7 cluster either, which leads me to believe this may have to do with a change in the server as of 3.8. Will keep looking into this
This bug is related to https://bugzilla.redhat.com/show_bug.cgi?id=1525162 (they both have the same cause). Origin PR: https://github.com/openshift/origin/pull/17768 To be clear, the template is invalid. Prior versions accidentally excepted invalid data and coerced strings two numbers. We should sweep and fix any templates and examples and documentation under our control Voice dictation strikes again. https://github.com/openshift/origin/pull/17768 has merged - lowering severity instead of closing to track https://bugzilla.redhat.com/show_bug.cgi?id=1525224#c4 Verified with: oc v3.9.0-0.47.0 kubernetes v1.9.1+a0ce1bc657 features: Basic-Auth GSSAPI Kerberos SPNEGO Server https://172.16.120.78:8443 openshift v3.9.0-0.47.0 kubernetes v1.9.1+a0ce1bc657 |