~james-page/charms/trusty/nova-cloud-controller/fixupneutronconf

« back to all changes in this revision

Viewing changes to hooks/nova_cc_hooks.py

  • Committer: james.page at ubuntu
  • Date: 2014-09-12 10:43:19 UTC
  • mfrom: (73.2.11 worker-configuration)
  • Revision ID: james.page@ubuntu.com-20140912104319-7yo9zhirthqk1uxf
[james-page,r=tribaal] Add sane defaults and options for configuring the number of API works and the default CPU overcommit ratio for compute.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
)
33
33
 
34
34
from charmhelpers.fetch import (
35
 
    apt_install, apt_update
 
35
    apt_install, apt_update,
 
36
    filter_installed_packages
36
37
)
37
38
 
38
39
from charmhelpers.contrib.openstack.utils import (
657
658
 
658
659
@hooks.hook('upgrade-charm')
659
660
def upgrade_charm():
 
661
    apt_install(filter_installed_packages(determine_packages()),
 
662
                fatal=True)
660
663
    for r_id in relation_ids('amqp'):
661
664
        amqp_joined(relation_id=r_id)
662
665
    for r_id in relation_ids('identity-service'):