4
sys.path.append('hooks/')
6
from charmhelpers.contrib.openstack.utils import (
7
do_action_openstack_upgrade,
10
from neutron_api_hooks import (
15
from neutron_api_utils import (
20
def openstack_upgrade():
21
"""Upgrade packages to config-set Openstack version.
23
If the charm was installed from source we cannot upgrade it.
24
For backwards compatibility a config flag must be set for this
25
code to run, otherwise a full service level upgrade will fire
28
if (do_action_openstack_upgrade('neutron-common',
33
if __name__ == '__main__':