conga/luci cluster/form-chooser cluster/form-m ...
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL4
Changes by: rmccabe at sourceware.org 2007-03-12 04:24:34
Modified files:
luci/cluster : form-chooser form-macros
luci/site/luci/Extensions: cluster_adapters.py
conga_constants.py ricci_bridge.py
Log message:
Frontend support for virtual service live migration
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-chooser.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.16&r2=1.16.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.176.2.15&r2=1.176.2.16
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.227.2.13&r2=1.227.2.14
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.36.2.1&r2=1.36.2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_bridge.py.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.56.2.4&r2=1.56.2.5
luci/cluster/form-chooser +3 -0
@@ -92,6 +92,9 @@ <span tal:omit-tag="" tal:condition="python: ptype == '28'"> <div metal:use-macro="here/form-macros/macros/servicerestart"/> </span> + <span tal:omit-tag="" tal:condition="python: ptype == '59'"> + <div metal:use-macro="here/form-macros/macros/servicemigrate"/> + </span> <span tal:omit-tag="" tal:condition="python: ptype == '30'"> <div metal:use-macro="here/resource-form-macros/macros/resources-form"/> </span>
luci/cluster/form-macros +76 -16
157 lines not on this page · raw message
luci/site/luci/Extensions/cluster_adapters.py +109 -25
191 lines not on this page · raw message
luci/site/luci/Extensions/conga_constants.py +2 -1
@@ -44,8 +44,9 @@ FENCEDEV="54" CLUSTER_DAEMON="55" SERVICE_DELETE = '56' -FENCEDEV_DELETE = "57" +FENCEDEV_DELETE = '57' FENCEDEV_NODE_CONFIG = '58' +SERVICE_MIGRATE = '59' CONF_EDITOR = '80'
luci/site/luci/Extensions/ricci_bridge.py +6 -0
@@ -454,6 +454,12 @@ ricci_xml = rc.batch_run(batch_str) return batchAttemptResult(ricci_xml) +def migrateService(rc, servicename, preferrednode): + batch_str = '<module name="cluster"><request API_version="1.0"><function_call name="migrate_service"><var mutable="false" name="servicename" type="string" value=\"' + servicename + '\"/><var mutable="false" name="nodename" type="string" value=\"' + preferrednode + '\" /></function_call></request></module>' + + ricci_xml = rc.batch_run(batch_str) + return batchAttemptResult(ricci_xml) + def updateServices(rc, enable_list, disable_list): batch = ''