Bug 1028389 - Can't erase the installed cartridge by oo-admin-cartridge
Summary: Can't erase the installed cartridge by oo-admin-cartridge
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Paul Morie
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-08 10:54 UTC by Yan Du
Modified: 2015-05-14 23:32 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-30 00:49:58 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Yan Du 2013-11-08 10:54:06 UTC
Description of problem:
Can't erase the installed cartridge by oo-admin-cartridge 



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



How reproducible:
Always



Steps to Reproduce:

1. Install a new cartridge 
  eg: oo-admin-cartridge -a install -s /usr/libexec/openshift/cartridges/zend

or install the new cartridge to a location other than /var/libexec/openshift/cartridge
  eg:  oo-admin-cartridge -a install -s /root/zend/

2. oo-admin-cartridge -l
(redhat, zend, 5.6, 0.0.6)
(redhat, zend, 5.66, 0.0.7)  <=====this is new installed cartridge

3. Make sure the new installed cartridge is not included in /usr/libexec/openshift/cartridges/zend, then try to erase it.

4. erase the new installed cartridge
oo-admin-cartridge --action erase --name zend --version 5.66 --cartridge_version 0.0.7




Actual results:
Can't erase the cartridge even the cartride is not inclueded in /usr/libexec/openshift/cartridges/zend

[root@ip-10-145-227-222 ~]# oo-admin-cartridge --action erase --name zend --version 5.66 --cartridge_version 0.0.7
Couldn't erase cartridge: (Cannot erase cartridge installed in CARTRIDGE_BASE_PATH)



Expected results:
The new installed cartridge can be erased



Additional info:

Comment 2 Yan Du 2013-11-14 02:57:04 UTC
Test on devenv_4030, issue have been fixed.


[root@ip-10-151-107-159 ~]# oo-admin-cartridge --action erase --name zend --version 5.66 --cartridge_version 0.0.7
succeeded

Move to verified.


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