Bug 1466664

Summary: oc patch dc reports dc changed even if no changes made
Product: OpenShift Container Platform Reporter: Marko Myllynen <myllynen>
Component: NodeAssignee: Derek Carr <decarr>
Status: CLOSED DUPLICATE QA Contact: DeShuai Ma <dma>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: aos-bugs, ffranz, jokerman, jswensso, mmccomas, myllynen, sdodson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-30 18:07:23 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 Marko Myllynen 2017-06-30 08:04:35 UTC
Description of problem:
When running something like

oc patch dc registry-console -p '{"spec":{"template":{"spec":{"nodeSelector":{"role":"infra"}}}}}'

several times in a row, oc always informs '"registry-console" patched' even though no changes were made.

Comment 1 Xingxing Xia 2017-06-30 10:49:05 UTC
Please check if patched field's name/level is correct, seems it should be "selector" rather than "nodeSelector"
See https://bugzilla.redhat.com/show_bug.cgi?id=1409225#c3

Comment 2 Fabiano Franz 2017-06-30 18:07:23 UTC

*** This bug has been marked as a duplicate of bug 1466671 ***