dist-upgrade and then install in do_openstack_upgrade

This commit is contained in:
James Page
2014-03-14 10:51:24 +00:00
parent 5a81874c2c
commit 7adfd112aa
2 changed files with 14 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ from charmhelpers.core.hookenv import (
from charmhelpers.fetch import (
apt_upgrade,
apt_update,
apt_install
)
from charmhelpers.core.host import (
@@ -375,6 +376,7 @@ def do_openstack_upgrade(configs):
]
apt_update()
apt_upgrade(options=dpkg_opts, fatal=True, dist=True)
apt_install(determine_packages(), fatal=True)
# set CONFIGS to load templates from new release and regenerate config
configs.set_release(openstack_release=new_os_rel)