Bug 1020964

Summary: Undefined method 'each' for nil:NilClass in update_configuration if application is invalid
Product: OpenShift Online Reporter: Andy Goldstein <agoldste>
Component: PodAssignee: Lili Nader <lnader>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: dmcphers, mfisher
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-18 22:06:27 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 Andy Goldstein 2013-10-18 15:33:10 UTC
If an application has errors (such as a Deployment with 0 activations) and you try to update the application's configuration (e.g. to set keep-deployments), the broker will fail with an error.

On https://github.com/openshift/origin-server/blob/master/controller/app/models/application.rb#L408, self.errors.messages doesn't contain a key called :config. In my example, it contains :deployments=>["is invalid"].

Comment 1 Dan McPherson 2013-10-18 22:06:27 UTC

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