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:
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
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/