Bug 1038777 - Plugin Cart wont Build on Scalable Application
Summary: Plugin Cart wont Build on Scalable Application
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Ben Parees
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-05 19:52 UTC by Chester Copperpot
Modified: 2015-05-15 00:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-09 21:12:09 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


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