Bug 966668
| Summary: | CartridgeCache#find_all_cartridges can return duplicate matches for non-Red Hat carts | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Miciah Dashiel Butler Masters <mmasters> |
| Component: | Pod | Assignee: | Rajat Chopra <rchopra> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.x | CC: | agoldste, qgong, rchopra, xtian |
| 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: | 2013-06-11 04:09:45 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: | |
| Embargoed: | |||
|
Description
Miciah Dashiel Butler Masters
2013-05-23 16:01:59 UTC
Suggested fix: https://github.com/openshift/origin-server/pull/2616 fixed with rev#0188dd7a4cdbe6d837d174074789ebf11fa2c37c in origin-server.repo! Verified it on devenv_3277: 1. Modify jbossews cartridge vendor to nonredhat to simulate this situation: Update /var/lib/openshift/.cartridge_repository/redhat-jbossews/0.0.1/metadata/manifest.yml 2. [root@ metadata]# oo-admin-broker-cache --clear --console Clearing broker cache. Clearing console cache. 3. Try to find the original cartridge: [root@ metadata]# curl -s http://127.0.0.1:8080/broker/rest/cartridges/jbossews-1.0 |python -mjson.tool |grep '"name": "jbossews-1.0",' |wc -l 0 [root@ip-10-152-178-106 metadata]# curl -s http://127.0.0.1:8080/broker/rest/cartridges/jbossews-2.0 |python -mjson.tool |grep '"name": "jbossews-2.0",' |wc -l 0 4. Try to list the cartridge with vendor name: [root@ip-10-152-178-106 ~]# curl -s http://127.0.0.1:8080/broker/rest/cartridges |python -mjson.tool |grep '"name": "nonredhat-jbossews-2.0"' |wc -l 1 [root@ip-10-152-178-106 ~]# curl -s http://127.0.0.1:8080/broker/rest/cartridges |python -mjson.tool |grep '"name": "nonredhat-jbossews-1.0"' |wc -l 1 5. [root@ip-10-152-178-106 ~]# rhc cartridge list -k |grep jbossews nonredhat-jbossews-1.0 Tomcat 6 (JBoss EWS 1.0) web nonredhat-jbossews-2.0 Tomcat 7 (JBoss EWS 2.0) web |