Bug 917513 - should give reasonable messages when failed to embed mms-agent
Summary: should give reasonable messages when failed to embed mms-agent
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jhon Honce
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-04 08:49 UTC by chunchen
Modified: 2016-09-30 02:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-15 14:22:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description chunchen 2013-03-04 08:49:49 UTC
Description of problem:
When failed to embed mms-agent because of without specifying mms credentials to app, there will show confusing information.


Version-Release number of selected component (if applicable):
INT(devenv_2886)
rhc 1.5.7

How reproducible:
always


Steps to Reproduce:
1. Create a non-scalable app
   rhc app create cas00 jbossas-7
2. Embed mongodb and rockmongo to the app
   rhc cartridge add mongodb-2.2 -a cas00
   rhc cartridge add rockmongo-1.1 -a cas00
3. Embed mms-agent to the app
   rhc cartridge add 10gen-mms-agent-0.1 -a cas00
  
Actual results:
The server did not respond correctly. This may be an issue with the server configuration or with your
connection to the server (such as a Web proxy or firewall). Please verify that you can access the
OpenShift server https://int.openshift.redhat.com/broker/rest/domains/cintd/applications/cas00/cartridges


Expected results:
Should give reasonable messages like "Missing settings.py file"

Additional info:

Comment 1 Jhon Honce 2013-03-04 18:38:34 UTC
Fix in https://github.com/openshift/origin-server/pull/1531

Comment 2 Jhon Honce 2013-03-05 00:51:28 UTC
Commits pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/f5c0b18767006c99d821865c608e7333b33dc897
Bug 916958, Bug 917513 - V1 Model not honoring Broker contract

* All cartridge stdout messages where not propagated to the Broker when cartridge returned non-zero exit status

https://github.com/openshift/origin-server/commit/d413061989515a92e1b00329ffbb09f216d12e87
Merge pull request #1531 from jwhonce/bug/916958

Bug 916958, Bug 917513 - V1 Model not honoring Broker contract

Comment 3 chunchen 2013-03-05 01:51:35 UTC
it's not fixed, reproduced on devenv_2892 with rhc-1.5.9

Comment 4 chunchen 2013-03-05 03:03:05 UTC
(In reply to comment #3)
> it's not fixed, reproduced on devenv_2892 with rhc-1.5.9

Fixed on devenv_2894, so change status to Verified

Results:

1. Create a non-scalable app
2. Embed mongodb and rockmongo to the app
3. Embed mms-agent to the app

[root@fedora17_ccy 0226]# rhc cartridge add 10gen-mms-agent-0.1 -a cas00
Adding 10gen-mms-agent-0.1 to application 'cas00' ... Invalid cartridge.
Missing settings.py file:  /var/lib/openshift/51355c5ba11aca9e1a00000b//app-root/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-0.1 cartridge.


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