Hide Forgot
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
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.
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.