Browse Source

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
changes/98/434998/1
David Ames 2 years ago
parent
commit
806d9a1cba
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      hooks/cinder_hooks.py
  2. 1
    0
      hooks/upgrade-charm

+ 1
- 0
hooks/cinder_hooks.py View File

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

+ 1
- 0
hooks/upgrade-charm View File

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

Loading…
Cancel
Save