Bug 987872

Summary: fail to add 10gen-mms-agent-0.1 to app
Product: OpenShift Online Reporter: Yan Du <yadu>
Component: ContainersAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 2.xCC: dmcphers
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: 2013-08-07 22:56:26 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 Yan Du 2013-07-24 10:57:20 UTC
Description of problem:
create a python app and embed 10gen-mms-agent-0.1 after deploying settings.py to the app, fail to add 10gen-mms-agent-0.1 and show Adding 10gen-mms-agent-0.1 to application 'py1' ... Cartridge '10gen-mms-agent-0.1' can not be added with out cartridge '10gen-mms-agent'.


[root@Daphne test]# rhc cartridge add -a py1 -c 10gen-mms-agent-0.1
Adding 10gen-mms-agent-0.1 to application 'py1' ... Cartridge '10gen-mms-agent-0.1' can not be added with out cartridge '10gen-mms-agent'.


Version-Release number of selected component (if applicable):
devenv_3545


How reproducible:
Always


Steps to Reproduce:
1. rhc app create py1 python-2.6 mongodb-2.2
2. deploy settings.py in repo and git push
3. rhc cartridge add -a py1 -c 10gen-mms-agent-0.1


Actual results:
Adding 10gen-mms-agent-0.1 to application 'py1' ... Cartridge '10gen-mms-agent-0.1' can not be added with out cartridge '10gen-mms-agent'.


Expected results:
10gen-mms-agent-0.1 should be added successfully

Comment 1 Jhon Honce 2013-07-24 14:55:37 UTC
*** Bug 987264 has been marked as a duplicate of this bug. ***

Comment 2 Dan McPherson 2013-07-24 16:35:22 UTC
https://github.com/openshift/origin-server/pull/3153

Comment 4 Yan Du 2013-07-26 02:05:18 UTC
verified on devenv_3562

10gen-mms-agent-0.1 can be added to app after deploying settings.py

[root@Daphne py1]# rhc cartridge add -a py1 -c 10gen-mms-agent-0.1
Adding 10gen-mms-agent-0.1 to application 'py1' ... done

10gen-mms-agent-0.1 (10gen Mongo Monitoring Service Agent)
----------------------------------------------------------
  Gears:          Located with python-2.6, mongodb-2.2
  Monitoring URL: https://mms.10gen.com/

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


show correctly message if without deploying settings.py

[root@Daphne py1]# rhc cartridge add -c 10gen-mms-agent-0.1
Adding 10gen-mms-agent-0.1 to application 'py1' ... 
Missing settings.py file:
/var/lib/openshift/8f26f1b0f59611e29eb922000aa4361c/app-root/runtime/repo/.openshift/mms/settings.py
This file is part of the agent zip file: 10gen-mms-agent-<group-name>.zip
The zip file is available to download from https://mms.10gen.com/ after you register with their
service.
It contains your 10gen MMS credentials and is required for running the agent.
You will need to add this file and then do a git commit and push before you can embed the
10gen-mms-agent cartridge.

move to verified.