summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorviswesn <viswesn@gmail.com>2016-11-02 17:11:13 +0530
committerviswesn <viswesn@gmail.com>2016-11-02 17:11:13 +0530
commita5f3ad5700aa766fec99a184bae1d732d0754491 (patch)
tree04ec7fa55080c2705bc9bf54b9be47f11ca344f5
parent4acd7e1f69b711b5df1c6a79d4169cac1f2067b0 (diff)
downloadcharm-murano-a5f3ad5700aa766fec99a184bae1d732d0754491.zip
charm-murano-a5f3ad5700aa766fec99a184bae1d732d0754491.tar.gz
charm-murano-a5f3ad5700aa766fec99a184bae1d732d0754491.tar.bz2
Support of HACluster added
-rw-r--r--src/reactive/murano_handlers.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/reactive/murano_handlers.py b/src/reactive/murano_handlers.py
index e13aae4..55ccf5a 100644
--- a/src/reactive/murano_handlers.py
+++ b/src/reactive/murano_handlers.py
@@ -46,15 +46,28 @@ def render_config(*args):
murano.render_novarc_config(args)
reactive.set_state('config.rendered')
+
# db_sync checks if sync has been done so rerunning is a noop
@reactive.when('config.rendered')
def init_db():
with charm.provide_charm_instance() as charm_class:
charm_class.db_sync()
+
@reactive.when_not('io-murano.imported')
@reactive.when(*COMPLETE_INTERFACE_STATES)
@reactive.when('config.rendered')
def import_io_murano(*args):
murano.import_io_murano()
reactive.set_state('io-murano.imported')
+
+
+@reactive.when('ha.connected')
+def cluster_connected(hacluster):
+ murano.configure_ha_resources(hacluster)
+ murano.assess_status()
+
+
+@reactive.hook('upgrade-charm')
+def upgrade_charm():
+ murano.install()

This mirror site include all the OpenStack related repositories under: openstack, openstack-dev and openstack-infra.

NOTE: All repositories are updated every one hour.

Usage

For Git Clone
 git clone http://git.trystack.cn/openstack/nova.git 
For DevStack

Add GIT_BASE, NOVNC_REPO and SPICE_REPO variables to local.conf file.

[[local|localrc]]

# use TryStack git mirror
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git