Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1497325 - unable to find api field in struct Container for the json field \"$setElementOrder/env\""
unable to find api field in struct Container for the json field \"$setElement...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Master (Show other bugs)
3.7.0
Unspecified Unspecified
low Severity low
: ---
: 3.7.0
Assigned To: Maciej Szulik
ge liu
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-29 14:56 EDT by Justin Pierce
Modified: 2017-11-28 17:13 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Strategic merge patch is causing oc apply error. For example : delete an element from an array (eg. env) and then reorder or modify another array (eg. volumeMounts) and try to apply such patch. Consequence: kubectl apply fails with "unable to find api field in struct Container for the json field "$setElementOrder/env" Fix: Update the algorithm so that it continues operation under described condition. Result: oc apply should work without any problems.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-11-28 17:13:46 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)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:3188 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Container Platform 3.7 security, bug, and enhancement update 2017-11-28 21:34:54 EST

  None (edit)
Description Justin Pierce 2017-09-29 14:56:54 EDT
Description of problem:
unable to find api field in struct Container for the json field \"$setElementOrder/env\"" occurred during a standard upgrade by openshift ansible. 

sdodson believes this was caused by: https://github.com/kubernetes/kubernetes/issues/50040

Version-Release number of selected component (if applicable):
oc v3.7.0-0.126.6
kubernetes v1.7.0+80709908fd
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://172.31.78.254:443
openshift v3.7.0-0.126.6
kubernetes v1.7.0+80709908fd


How reproducible:
Unknown. Did not occur again when trying the same playbook.

Actual results:
Full openshift-ansible output: http://pastebin.test.redhat.com/520706
Comment 1 Michal Fojtik 2017-10-02 04:08:34 EDT
We are picking that fix in https://github.com/openshift/origin/pull/16615 so this should be fixed on the next upgrade. Justin, is this holding off the current upgrade? Eventually we can backport this but I would prefer to wait.
Comment 2 Justin Pierce 2017-10-02 08:42:06 EDT
Michal - Since it has only happened once, I don't consider it a blocker.
Comment 3 Maciej Szulik 2017-10-06 03:56:13 EDT
Since rebase landed I'm moving this on qa.
Comment 4 ge liu 2017-10-12 02:07:04 EDT
Can't reproduce this issue, and close it since the improvement have been done.
Comment 7 errata-xmlrpc 2017-11-28 17:13:46 EST
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, 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-2017:3188

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