Bug 1115539

Summary: [RFE] 10gen-mms-agent can't be added to scalable application
Product: OpenShift Online Reporter: Nick Harvey <niharvey>
Component: ImageAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: chunchen, jokerman, mmccomas, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-10 00:48:13 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:
Embargoed:

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/