Bug 979442

Summary: Attempts to install multiple versions of the same cartridge should be detected early and be disallowed
Product: OpenShift Online Reporter: Hiro Asari <hasari>
Component: PodAssignee: Abhishek Gupta <abhgupta>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 2.xCC: jkeck, xtian
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-09 21:36:27 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:
Bug Depends On:    
Bug Blocks: 980739    

Description Hiro Asari 2013-06-28 14:22:24 UTC
Description of problem:
If a single embeddable cartridge provides multiple versions of the same software (e.g., postgresql-8.4 and postgresql-9.2) it is conceivable to add a second cartridge to the same application.

In the case of postgresql, the second one will fail, because the first one has already created a database with the name $OPENSHIFT_APP_NAME. However, not all cartridges may fail similarly, and could lead to unexpected results.

Comment 1 Jhon Honce 2013-06-28 15:05:30 UTC
It was determined earlier that supporting two versions of any cartridge within one gear or application would not be supported.

Comment 2 Hiro Asari 2013-06-28 16:31:33 UTC
This is not about supporting it. I agree that it is not a good idea.

Rather, we would want to detect that such a maneuver is attempted, and inform the user with a meaningful message, rather than rely on each cartridge to fail somehow.

Comment 3 Hiro Asari 2013-07-03 13:56:54 UTC
This should be more gracefully disallowed. Currently it is possible to get around this loose restriction with CLI (see https://bugzilla.redhat.com/show_bug.cgi?id=980760 and https://bugzilla.redhat.com/show_bug.cgi?id=980739).

Reopening and sending this to the broker team for further consideration.

Comment 4 Hiro Asari 2013-07-05 15:35:42 UTC
Since v2 cartridge dropped the version suffix fromt the directory name, multiple versions will install to the same directory, causing strange problems.

Comment 5 Hiro Asari 2013-07-09 21:36:27 UTC
Closing this as duplicate.

*** This bug has been marked as a duplicate of bug 981528 ***

Comment 6 Hiro Asari 2013-07-09 21:52:43 UTC

*** This bug has been marked as a duplicate of bug 980760 ***