+++ This bug was initially created as a clone of Bug #1132299 +++ Description of problem: Exit status is zero though oo-admin-cartridge failed to install the cartridge. Version-Release number of selected component (if applicable): devenv_5100 How reproducible: always Steps to Reproduce: 1.SSH into instance and run following commands: # oo-admin-cartridge --action install --source /tmp ; echo $? Actual results: # oo-admin-cartridge --action install --source /tmp ; echo $? install failed for /tmp: Cartridge manifest.yml missing: '/tmp/metadata/manifest.yml' installation failed 0 Expected results: The exit status should not be zero since the install failed. Additional info: --- Additional comment from Zamir SUN on 2014-08-27 23:13:20 EDT --- pull request https://github.com/openshift/origin-server/pull/5767 --- Additional comment from Jhon Honce on 2014-08-28 13:26:48 EDT --- oo-admin-cartridge is expected to return 0 if at least one cartridge was installed.
Verified and pass on puddle-2-2-2014-12-08 1) if installation failed, it return 1 [root@broker opt]# oo-admin-cartridge --action install --source /tmp ; echo $? install failed for /tmp: Cartridge manifest.yml missing: '/tmp/metadata/manifest.yml' Operation failed: some cartridge cannot be installed 1 2) if installation succeed, it return 0. [root@broker ~]# oo-admin-cartridge --action install --source /tmp/phpliap/ ; echo $? succeeded 0
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0019.html