Description of problem: Can not install cartridge by oo-admin-cartridge with --mco option Version-Release number of selected component (if applicable): devnev_stage_471 How reproducible: Always Steps to Reproduce: 1. modified Cartridge Version in /usr/libexec/openshift/cartridges/zend/metadata/manifest.yml 2. oo-admin-cartridge -a install -s /usr/libexec/openshift/cartridges/zend --mco 3. oo-admin-cartridge -l Actual results: 2. no infomation return when install the cartridge. [root@ip-10-164-72-132 ~]# oo-admin-cartridge -a install -s /usr/libexec/openshift/cartridges/php --mco [root@ip-10-164-72-132 ~]# 3. use oo-admin-cartridge -l to check cartridge, found the cartridge was not installed. Expected results: the cartridge can be installed normally and show below message: [root@ip-10-60-39-168 ~]# oo-admin-cartridge -a install -s /usr/libexec/openshift/cartridges/zend --mco 1 / 1 ip-10-60-39-168 output: install succeeded for /usr/libexec/openshift/cartridges/zend Finished processing 1 / 1 hosts in 136.28 ms Additional info: can install the cartridge normally without --mco option
dev_3932 Now can use '--mco' to install cartriage successfully, but erase with '--mco' prompt 'Operation failed: sh: mco: command not found' [root@ip-10-141-140-217 ~]# oo-admin-cartridge -a install -s /usr/libexec/openshift/cartridges/zend --mco 1 / 1 ip-10-141-140-217 output: install succeeded for /usr/libexec/openshift/cartridges/zend Finished processing 1 / 1 hosts in 178.17 ms [root@ip-10-141-140-217 ~]# oo-admin-cartridge -a erase -n zend -v 5.6 -c 0.0.1 --mco Operation failed: sh: mco: command not found [root@ip-10-141-140-217 ~]
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/f341825bcaf038e45d7df9d47937869a78220ffd Fix bug 1007709: use oo-mco in oo-admin-cartridge
Test on devenv_4008, oo-admin-cartridge with --mco command works now. [root@ip-10-145-227-222 ~]# oo-admin-cartridge -a install -s /usr/libexec/openshift/cartridges/zend --mco 1 / 1 ip-10-145-227-222 output: install succeeded for /usr/libexec/openshift/cartridges/zend Finished processing 1 / 1 hosts in 194.08 ms [root@ip-10-145-227-222 ~]# oo-admin-cartridge -a erase -n zend -v 5.66 -c 0.0.7 --mco Operation failed: 1 / 1 ip-10-145-227-222 Invalid Request Data erase failed for Cannot erase cartridge installed in CARTRIDGE_BASE_PATH Finished processing 1 / 1 hosts in 56.08 ms Discovering hosts using the mc method for 2 second(s) .... 1