“rhc cartridges” not showing cartridge added with oo-admin-cartridge

对着背影说爱祢 提交于 2019-12-21 21:05:43

问题


I installed a cartridge with "oo-admin-cartridge -a install -s /path/to/cartridge". It shows up in "oo-admin-cartridge -a list", however it doesn't show up in "rhc cartridges". This is on release 4 of the Origin VM. On release 3, I don't have any problems installing additional cartridges.

I know similar questions have been asked before, like Deploying Custom Cartridges on Openshift Origin, but none of my attempts at clearing the cache seem to help. I've tried:

  • oo-admin-broker-cache --console --clear
  • cd /var/www/openshift/broker && scl enable ruby193 "bundle exec rake tmp:clear"
  • rm -rf /var/www/openshift/broker/tmp/cache/*
  • service openshift-broker restart
  • service ruby193-mcollective restart
  • rebooting

I also see that my cartridge was added to /var/lib/openshift/.cartridge_repository.

Why isn't rhc getting the most recent list of cartridges? What am I missing?


回答1:


I was missing the following command, which I can't find anywhere in the documentation:

oo-admin-ctl-cartridge --activate -c import-node --obsolete



来源:https://stackoverflow.com/questions/25569715/rhc-cartridges-not-showing-cartridge-added-with-oo-admin-cartridge

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!