Bug 1019163 - [deploy][origin_ui_82] A mongodb error message show up when try to set the value of keep deployments more than 2^63-1
Summary: [deploy][origin_ui_82] A mongodb error message show up when try to set the va...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-15 08:53 UTC by weiwei jiang
Modified: 2016-10-30 22:53 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:24:06 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.