Bug 1023588

Summary: Cartridges installed from non-default location are not contained in memory index
Product: OpenShift Online Reporter: Jhon Honce <jhonce>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: xtian, yadu
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-24 03:27:06 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 Jhon Honce 2013-10-25 20:37:13 UTC
Description of problem:
The memory index of the Node's cartridge repository is only populated from /var/libexec/openshift/cartridges not /var/lib/openshift/.cartridge_repository

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


How reproducible:
Always

Steps to Reproduce:
1. Install a cartridge from a location other than /var/libexec/openshift/cartridge using oo-admin-cartridge --action install
2. oo-admin-broker-cache --clear
3. service ruby193-mcollective restart
4. rhc cartridge list

Actual results:
The new cartridge is not in the list

Expected results:
The new cartridge should be on the list

Additional info:

Comment 2 openshift-github-bot 2013-10-26 02:56:57 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/68ebe6e25a05f0edcb6d6369edd46424d986910c
Bug 1023588 - Build cartridge index from cache

* Restore support for cartridges added to node via oo-admin-cartridge

Comment 3 Yan Du 2013-10-28 06:11:36 UTC
test on devenv_3953, new installed cartridge can be listed.

steps:
1. install cartridge to a location other than /var/libexec/openshift/cartridge, eg, modified the zend cartrdige version and name, then install
2. oo-admin-broker-cache --clear
3. service ruby193-mcollective restart
4. rhc cartridge list to check the new installed cartridge

[root@ip-10-141-174-107 test]# rhc cartridge list 
jbossas-7           JBoss Application Server 7                  web
jbosseap-6 (*)      JBoss Enterprise Application Platform 6.1.0 web
jenkins-1           Jenkins Server                              web
mock-0.1            Mock Cartridge 0.1                          web
mock-0.2            Mock Cartridge 0.2                          web
mock-0.3            Mock Cartridge 0.3                          web
mock-0.4            Mock Cartridge 0.4                          web
zend-5.66666        mycartridge                                 web <====

move bug to verified.