Bug 1034110 - It will return succeeded when deleting non-installed cartridge via oo-cartridge command
Summary: It will return succeeded when deleting non-installed cartridge via oo-cartrid...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 09:36 UTC by Meng Bo
Modified: 2015-05-14 23:33 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Meng Bo 2013-11-25 09:36:00 UTC
Description of problem:
Use oo-cartridge to delete cartridge for gears, it will return succeeded even if the specified cartridge was not installed to the gear.

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

How reproducible:
always

Steps to Reproduce:
1. Create app
2. Try to delete a non-installed cartridge via oo-cartridge
oo-cartridge --action delete --with-container-uuid 5292ed54e30cd02eec00000b --with-cartridge-name mysql-5.1
3.

Actual results:
It will return "Cartridge delete succeeded".

Expected results:
Should show message about the cartridge was not installed for the gear.

Additional info:

Comment 1 Meng Bo 2013-12-20 05:29:12 UTC
Checked on latest devenv(devenv_4160), the issue still can be reproduced.

Comment 2 Michal Fojtik 2014-01-20 18:48:28 UTC
Dan: https://github.com/openshift/origin-server/pull/4297

Comment 3 Dan McPherson 2014-01-20 20:58:55 UTC
https://github.com/openshift/origin-server/pull/4530

Comment 5 Dan McPherson 2014-01-21 06:02:17 UTC
https://github.com/openshift/origin-server/pull/4538

Comment 7 Meng Bo 2014-01-21 10:53:57 UTC
[root@ip-10-73-212-24 ~]# oo-cartridge --action delete --with-container-uuid 52de50e9c9add372ff000001 --with-cartridge-name mysql-5.1
Cartridge 'mysql-5.1' is not installed in gear with uuid: 52de50e9c9add372ff000001

Issue fixed on devenv_4251.


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