Cinder needs to install memcached on upgrade-charm

The cinder charm recognizes it needs memecached with
enable_memcached() but never installs the package when upgrading
from previous versions of the charm.

The upgrade-charm hooks was missing entirely. Add the hook and a
call to install packages for upgrade-charm.

Change-Id: I2dac0f2c7b3437c66be2c2f41822010ef19250ba
Closes-bug: #1665392
This commit is contained in:
David Ames 2017-02-16 08:16:29 -08:00
parent 4e58cbeaf7
commit 806d9a1cba
2 changed files with 2 additions and 0 deletions

View File

@ -572,6 +572,7 @@ def configure_https():
@hooks.hook('upgrade-charm') @hooks.hook('upgrade-charm')
@harden() @harden()
def upgrade_charm(): def upgrade_charm():
apt_install(determine_packages(), fatal=True)
for rel_id in relation_ids('amqp'): for rel_id in relation_ids('amqp'):
amqp_joined(relation_id=rel_id) amqp_joined(relation_id=rel_id)
update_nrpe_config() update_nrpe_config()

1
hooks/upgrade-charm Symbolic link
View File

@ -0,0 +1 @@
cinder_hooks.py