Description of problem: Run command 'oo-admin-broker-cache -c' after remove one cartridge on node, It will be can't clean cartridge repository. Version-Release number of selected component (if applicable): devenv_3409 ----devenv_3409 How reproducible: always Steps to reproduce: 1. ssh login all nodes and remove php cartridge # yum remove openshift-origin-cartridge-php -y 2. ssh login broker to clean cache # oo-admin-broker-cache -c 3. Check if php cartridge still available # rhc cartridge list Actual resutls: still found php cartridge Expected results: No php cartridge found Additional info: After remove php cartridge, we must be remove '/var/lib/openshift/.cartridge_repository/redhat-php' manually, then on broker clean up cache, otherwise cartridge still available.
No fix needed. Before step-3, need to restart mcollective service for the new changes to be reflected. # service mcollective restart Verify and close the bug as invalid.
On devenv_3780 : After php cartridge removed and mcollective service restarted, php cartridge will unavailable, 'rhc cartridge list' also correct and can't found php cart. But the directory '/var/lib/openshift/.cartridge_repository/redhat-php' still existed, we must remove it manually or it was insignificant ? On OSE Puddle [1.2/2013-09-11.1] : After php cartridge removed and mcollective service restarted, php cartridge still available.
Ravi: Any update here?
Discussed with mrunal, 'yum remove' will not remove the cartridge from dir /var/lib/openshift/.cartridge_repository/ and this should not be the responsibility of yum. The new carts/cart versions are copied by mcollective and the current use case on prod is to show old as well as new carts. Removing the stale cart dir can not be part of 'oo-admin-broker-cache', it's main purpose is to clear the current cache for broker and console. To test removal of cart, as part of step-1: you need to do - yum remove openshift-origin-cartridge-php -y - rm -rf /var/lib/openshift/.cartridge_repository/redhat-php
Ok, If so, this bug can be closed.