Add some status calls for long running operations

This commit is contained in:
James Page
2015-10-10 15:53:35 -07:00
parent 60e15c5d86
commit 8fd71f8c24
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -18,6 +18,7 @@ from charmhelpers.core.hookenv import (
config,
Hooks, UnregisteredHookError,
log,
status_set,
)
from charmhelpers.core.host import (
service_restart,
@@ -71,6 +72,7 @@ def install():
if (lsb_release()['DISTRIB_CODENAME'] == 'precise' and origin == 'distro'):
origin = 'cloud:precise-grizzly'
configure_installation_source(origin)
status_set('maintenance', 'Installing ceilometer packages')
apt_update(fatal=True)
apt_install(filter_installed_packages(get_packages()),
fatal=True)
@@ -140,6 +142,7 @@ def configure_https():
def config_changed():
if not config('action-managed-upgrade'):
if openstack_upgrade_available('ceilometer-common'):
status_set('maintenance', 'Upgrading to new OpenStack release')
do_openstack_upgrade(CONFIGS)
update_nrpe_config()
CONFIGS.write_all()
+1
View File
@@ -35,6 +35,7 @@ TO_PATCH = [
'update_nrpe_config',
'peer_store',
'configure_https',
'status_set',
]