Adding openstack upgrade action
This commit is contained in:
parent
459cc090dc
commit
0d1e20853a
@ -1,2 +1,4 @@
|
|||||||
git-reinstall:
|
git-reinstall:
|
||||||
description: Reinstall glance from the openstack-origin-git repositories.
|
description: Reinstall glance from the openstack-origin-git repositories.
|
||||||
|
openstack-upgrade:
|
||||||
|
description: Perform openstack upgrades.
|
||||||
|
1
actions/openstack-upgrade
Symbolic link
1
actions/openstack-upgrade
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
openstack_upgrade.py
|
25
actions/openstack_upgrade.py
Executable file
25
actions/openstack_upgrade.py
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
import sys
|
||||||
|
|
||||||
|
sys.path.append('hooks/')
|
||||||
|
|
||||||
|
from charmhelpers.contrib.openstack.utils import (
|
||||||
|
openstack_upgrade_available,
|
||||||
|
juju_log
|
||||||
|
)
|
||||||
|
|
||||||
|
from glance_utils import (
|
||||||
|
do_openstack_upgrade,
|
||||||
|
register_configs
|
||||||
|
)
|
||||||
|
|
||||||
|
CONFIGS = register_configs()
|
||||||
|
|
||||||
|
def openstack_upgrade():
|
||||||
|
if openstack_upgrade_available('glance-common'):
|
||||||
|
juju_log('Upgrading OpenStack release')
|
||||||
|
do_openstack_upgrade(CONFIGS)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
openstack_upgrade()
|
Loading…
x
Reference in New Issue
Block a user