Bug 1038777

Summary: Plugin Cart wont Build on Scalable Application
Product: OpenShift Online Reporter: Chester Copperpot <britztopher>
Component: ImageAssignee: Ben Parees <bparees>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: bparees, 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: 2014-01-09 21:12:09 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:

Description Chester Copperpot 2013-12-05 19:52:11 UTC
Description of problem:
When I create an application (non scalable), say php, and add on my plugin cart it works flawlessly. The setup script is ran and the environment vars are created within the primary cartridges home directory. So the problem is when I follow the same steps, except I create a scalable application instead. RHC command line states that my testcart plugin cart was installed and added to primary cart, however, testcart directory is not created and none of the respective env vars are created.

Version-Release number of selected component (if applicable):
Openshift Online V2 Cartridge

How reproducible:
This is reproducible every time I try to add on my cart to a scalable application


Steps to Reproduce:
1.  create a scalable application using php-5.3 cartridge as web_framework naming it 'php'
2.  add the plugin cartridge i have created at: https://github.com/britztopher/testcart
   -- rhc add-cartridge https://raw.github.com/britztopher/testcart/master/metadata/manifest.yml -a php
3.  ssh into gear and did 'ls' got this for listing:
    -- app-deployments  app-root  gear-registry  git  haproxy   php

Actual results:
A cartridge home directory with no 'testcart' directory or any created environment variables

Expected results:
I expect the setup scripts to be run and a directory for the 'testcart' along with the automatically created environment vars as well as my ERB file environment vars.

Additional info:
Have a couple forum posts found here:
https://www.openshift.com/forums/openshift/plugin-cart-not-building-root-directory

and, 

https://www.openshift.com/forums/openshift/plugin-cart-wont-build-on-scalable-application

Comment 1 Ben Parees 2014-01-07 16:29:17 UTC
It appears your testcart is being created in its own gear, which is why you don't see it in your primary gear.  "rhc app show php --gears" will reveal this.  I am investigating why the "plugin" category is not being respected for your cartridge.

Comment 2 Ben Parees 2014-01-07 17:52:37 UTC
I found two issues in your manifest.yml that were preventing it from working properly:

1) https://github.com/britztopher/testcart/blob/master/metadata/manifest.yml#L5-L6  is not valid syntax.  I think you may have meant to be specifying "Compatible-Versions:" but since you have no other versions, that is not necessary anyway.

2) https://github.com/britztopher/testcart/blob/master/metadata/manifest.yml#L20-L21 this is also invalid syntax and should just be "- testcart-1.0.0"

Once I made those changes in my fork it worked properly.