Hide Forgot
Created attachment 816959 [details] Broker development.log Description of problem: Deploy an application without pushing any code change, the app is deployed with an id. Then set the keep_deployments of the app, an error will occur "Unable to complete the requested operation due to: undefined method `each' for nil:NilClass.\nReference ID: 6c2c177669d583fb7b9db4433e942cf0" Version-Release number of selected component (if applicable): On devenv_3958 How reproducible: Always Steps to Reproduce: 1. Create a diy application 2. Don't do anything, and deploy the app directly 3. Set the keep_deployments of the app via RESTAPI curl -s -k -H 'Content-Type: Application/json' --user jhou:x https://ec2-50-19-142-185.compute-1.amazonaws.com/broker/rest/domain/jhou/application/d1 -X PUT -d '{"keep_deployments": 5}' Actual results: After step 3: { "api_version": 1.6, "data": null, "messages": [ { "exit_code": 1, "field": null, "index": null, "severity": "error", "text": "Unable to complete the requested operation due to: undefined method `each' for nil:NilClass.\nReference ID: 6c2c177669d583fb7b9db4433e942cf0" } ], "status": "internal_server_error", "supported_api_versions": [ 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 ], "type": null, "version": "1.6" } Expected results: The application should be updated successfully. Additional info:
This should be fixed with --> https://github.com/openshift/origin-server/pull/4026 (Image: devenv_3961)
*** This bug has been marked as a duplicate of bug 1023304 ***