Bug 1123893 - [origin_node_401]Unexpected error "Cartridge manifest not found" appears if add one different cartridge after deleting the existing one via oo-cartridge
Summary: [origin_node_401]Unexpected error "Cartridge manifest not found" appears if a...
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: ---
Assignee: Brenton Leanhardt
QA Contact: libra bugs
Depends On: 1121864
TreeView+ depends on / blocked
Reported: 2014-07-28 14:54 UTC by Brenton Leanhardt
Modified: 2014-09-18 15:19 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1121864
Last Closed: 2014-09-12 19:59:00 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Bugzilla 1123891 None None None Never

Internal Links: 1123891

Description Brenton Leanhardt 2014-07-28 14:54:54 UTC
+++ This bug was initially created as a clone of Bug #1121864 +++

If there is a cartridge existing in container, for example php, and try to add another different cartridge via oo-cartridge after deleting the existing one, there will be an error appears although the cartridge can be added successfully: 
Cartridge add failed
CLIENT_ERROR: Unexpected error: Cartridge manifest not found: /var/lib/openshift/123456/php/metadata/manifest.yml missing

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

How reproducible:

steps to Reproduce:
1. Create a container:
#oo-devel-node app-create --with-container-uuid '123456' --with-app-uuid '123456' --with-namespace 'dom1' --with-app-name 'app1'
2. Add a cartridge to it
#oo-cartridge  --with-container-uuid 123456 --action add --with-cartridge-name php-5.3
3. Delete the cartridge
#oo-cartridge --with-container-uuid 123456 --action delete --with-cartridge-name php-5.3
4. Add a different one 
#oo-cartridge  --with-container-uuid 123456 --action add --with-cartridge-name mysql-5.5

Actual results:
An error appears, however the cartridge can be added successfully:
Cartridge add failed
Cartridge manifest not found: /var/lib/openshift/123456/php/metadata/manifest.yml missing

Expected results:
It should be added without any errors.

Additional info:
There is no this error if try to add a same cartridge type in step 4.

--- Additional comment from Jhon Honce on 2014-07-24 14:43:23 EDT ---

Fixed in https://github.com/openshift/origin-server/pull/5656

--- Additional comment from openshift-github-bot on 2014-07-24 16:30:27 EDT ---

Commit pushed to master at https://github.com/openshift/origin-server


--- Additional comment from Wenjing Zheng on 2014-07-24 21:52:39 EDT ---

Verified on devenv_5008, the cartridge can be added after another different cartridge being deleted.

Comment 1 Brenton Leanhardt 2014-07-28 14:57:37 UTC
Whoever backports this should make sure they label Bug #1123891 ON_QA as well.

Comment 2 Brenton Leanhardt 2014-09-12 19:59:00 UTC
We'll pick this up in the next rebase.

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