Hide Forgot
Description of problem: when tried to set the value of keep deployments more than 2^63-1, a mongodb error message "Unable to complete the requested operation due to: MongoDB can only handle 8-byte ints.Reference ID: 5234e810926afa7a45369fbb886f0a09" show up The value is following NumberLong type of mongodb, and 2^63 will success Version-Release number of selected component (if applicable): devenv_3898 fork_ami_origin_ui_82_905 rhc build from fork_ami_origin_ui_82_905 How reproducible: always Steps to Reproduce: 1.Create a app 2.Set the value of keep deployments more than 2^63-1 3. Actual results: # rhc configure-app app3 --keep-deployments 9223372036854775808 Configuring application 'app3' ... Unable to complete the requested operation due to: MongoDB can only handle 8-byte ints. Reference ID: 5234e810926afa7a45369fbb886f0a09 Expected results: Additional info:
(In reply to weiwei jiang from comment #0) > Description of problem: > when tried to set the value of keep deployments more than 2^63-1, a mongodb > error message "Unable to complete the requested operation due to: MongoDB > can only handle 8-byte ints.Reference ID: 5234e810926afa7a45369fbb886f0a09" > show up > > The value is following NumberLong type of mongodb, and 2^63 will success The value is following NumberLong type of mongodb, and 2^63-1 will success > > Version-Release number of selected component (if applicable): > devenv_3898 > fork_ami_origin_ui_82_905 > rhc build from fork_ami_origin_ui_82_905 > > How reproducible: > always > > Steps to Reproduce: > 1.Create a app > 2.Set the value of keep deployments more than 2^63-1 > 3. > > Actual results: > # rhc configure-app app3 --keep-deployments 9223372036854775808 > Configuring application 'app3' ... > Unable to complete the requested operation due to: MongoDB can only handle > 8-byte ints. > Reference ID: 5234e810926afa7a45369fbb886f0a09 > > Expected results: > > > Additional info:
Respond with an error if the user tries to set keep_deployments to greater than 1000. https://github.com/openshift/origin-server/pull/4100
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/28fd21d9ca3063005666d0a4a1489ee8db7933e0 Bug 1019163
Tried on devenv_3993, and Keep deployments must be greater than 0 and no greater than 1000, so verified this issue, thx. [root@ip-10-191-185-151 ~]# rhc configure-app app --keep-deployments 1001 Configuring application 'app' ... Invalid number of deployments to keep: 1001. Keep deployments must be greater than 0 and no greater than 1000. [root@ip-10-191-185-151 ~]# rhc configure-app app --keep-deployments 1000 Configuring application 'app' ... done app @ http://app-y.dev.rhcloud.com/ (uuid: 5279c6c3473cdf8789000001) -------------------------------------------------------------------- Deployment: auto (on git push) Keep Deployments: 1000 Deployment Type: git Deployment Branch: master Your application 'app' is now configured as listed above. Use 'rhc show-app app --configuration' to check your configuration values any time.