Bug 1115539 - [RFE] 10gen-mms-agent can't be added to scalable application
Summary: [RFE] 10gen-mms-agent can't be added to scalable application
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: ---
Assignee: Jakub Hadvig
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-02 14:47 UTC by Nick Harvey
Modified: 2015-05-15 00:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-10 00:48:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nick Harvey 2014-07-02 14:47:32 UTC
Description of problem: Currently if you try to add the 10gen-mms-agent to a scalable application, it says "10gen-mms-agent-0.1 cannot be embedded in scalable app". Since DB cartridges can't scale at the moment, the mms agent should be able to be added to the DB gear as it will always be at 1 gear. 


Version-Release number of selected component (if applicable): release [1.34.1-1]


How reproducible: always


Steps to Reproduce:
1. Create scalable app and add the MongoDB cart
2. Then try to add the 10gen-mms-agent cart to the app
3.

Actual results: error "10gen-mms-agent-0.1 cannot be embedded in scalable app"


Expected results: Cartridge should be added to app


Additional info:

Comment 1 openshift-github-bot 2014-07-07 12:16:04 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/52752d0d40a6bd3252a3489c9fe134493cddaae5
Bug 1115539: Make 10gen cartridge able to embed with scaled application

Comment 2 chunchen 2014-07-08 03:28:32 UTC
It' fixed, verified on devenv_4944, please refer to the following results:

1. Create  a scalable app with mongodb
rhc app create ceaps jbosseap-6 mongodb-2.4 -s

2. Go to the https://mms.mongodb.com, registers and downloads tarball/zipball which includes the new settings.py and other files
1) go to the Settings -> Monitoring Agent -> Other Linux
2) curl the link that is there

3. Copy the tarball/zipball to dir $APP_DIR/.openshift/mms/, then git push

4. Set environment variable called OPENSHIFT_MMS_API_KEY with the API Key which is in the Settings -> API Settings
rhc set-env OPENSHIFT_MMS_API_KEY=d26e3efe843e57ad2d534bf057b40a9b -a ceaps

5. Add 10gen-mms-agent-0.1 cartridge to this app
rhc cartridge add -c 10gen-mms-agent-0.1 -a ceaps

Results:
Adding 10gen-mms-agent-0.1 to application 'ceaps' ... done

10gen-mms-agent-0.1 (10gen Mongo Monitoring Service Agent)
----------------------------------------------------------
  Gears:          Located with haproxy-1.4, jbosseap-6
  Monitoring URL: https://mms.mongodb.com/

10gen-mms-agent added. 
Please configure your mongodb host at https://mms.mongodb.com/ to start monitoring performance data.

Monitoring URL: https://mms.mongodb.com/


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