Bug 1019163

Summary: [deploy][origin_ui_82] A mongodb error message show up when try to set the value of keep deployments more than 2^63-1
Product: OpenShift Online Reporter: weiwei jiang <wjiang>
Component: PodAssignee: Lili Nader <lnader>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 2.xCC: ffranz, jhonce, lnader, mfisher, wsun
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: 2014-01-24 03:24:06 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:

Description weiwei jiang 2013-10-15 08:53:36 UTC
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:

Comment 1 weiwei jiang 2013-10-16 05:21:16 UTC
(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:

Comment 2 Lili Nader 2013-11-05 21:17:32 UTC
Respond with an error if the user tries to set keep_deployments to greater than 1000.


https://github.com/openshift/origin-server/pull/4100

Comment 4 weiwei jiang 2013-11-06 04:44:46 UTC
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.