~james-page/charms/precise/cinder/whitelist-blocks

« back to all changes in this revision

Viewing changes to hooks/cinder_utils.py

  • Committer: James Page
  • Date: 2014-03-06 12:33:03 UTC
  • Revision ID: james.page@canonical.com-20140306123303-afalkmxbixn1jfhe
Switch to upgrade on openstack upgrade

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
)
12
12
 
13
13
from charmhelpers.fetch import (
14
 
    apt_install,
 
14
    apt_upgrade,
15
15
    apt_update,
16
16
)
17
17
 
352
352
        '--option', 'Dpkg::Options::=--force-confdef',
353
353
    ]
354
354
    apt_update()
355
 
    apt_install(packages=determine_packages(), options=dpkg_opts, fatal=True)
 
355
    apt_upgrade(options=dpkg_opts, fatal=True)
356
356
 
357
357
    # set CONFIGS to load templates from new release and regenerate config
358
358
    configs.set_release(openstack_release=new_os_rel)