4
sys.path.append('hooks/')
6
from charmhelpers.contrib.openstack.utils import (
7
do_action_openstack_upgrade,
10
from heat_relations import (
15
from heat_utils import (
20
def openstack_upgrade():
21
"""Perform action-managed OpenStack upgrade.
23
Upgrades packages to the configured openstack-origin version and sets
24
the corresponding action status as a result.
26
If the charm was installed from source we cannot upgrade it.
27
For backwards compatibility a config flag (action-managed-upgrade) must
28
be set for this code to run, otherwise a full service level upgrade will
29
fire on config-changed."""
31
if (do_action_openstack_upgrade('heat-common',
36
if __name__ == '__main__':