From mboxrd@z Thu Jan 1 00:00:00 1970
From: kupcevic@sourceware.org
Date: 12 Dec 2006 13:26:29 -0000
Subject: [Cluster-devel] conga ./conga.spec.in.in luci/cluster/form-mac ...
Message-ID: <20061212132629.29463.qmail@sourceware.org>
List-Id:
To: cluster-devel.redhat.com
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
CVSROOT: /cvs/cluster
Module name: conga
Branch: RHEL5
Changes by: kupcevic at sourceware.org 2006-12-12 13:26:24
Modified files:
. : conga.spec.in.in
luci/cluster : form-macros
luci/site/luci/Extensions: ricci_bridge.py
ricci/common : File.cpp
ricci/docs : storage_api.html
ricci/modules/storage: LV.cpp LVM.cpp LVM.h PV.cpp
StorageModule.cpp VG.cpp
Added files:
ricci/test_suite/storage: disable_clustered_lvm.xml
enable_clustered_lvm.xml
Log message:
Fixed bz217703 (clustered vg creation fails)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.45.2.10&r2=1.45.2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/form-macros.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.90.2.8&r2=1.90.2.9
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/ricci_bridge.py.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.30.2.12&r2=1.30.2.13
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/common/File.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.1.2.2&r2=1.1.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/docs/storage_api.html.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.5&r2=1.5.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/LV.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.6&r2=1.6.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/LVM.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.7.2.2&r2=1.7.2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/LVM.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/PV.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4&r2=1.4.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/StorageModule.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.5&r2=1.5.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/VG.cpp.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.8&r2=1.8.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/test_suite/storage/disable_clustered_lvm.xml.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/test_suite/storage/enable_clustered_lvm.xml.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=NONE&r2=1.1.2.1
--- conga/conga.spec.in.in 2006/12/12 05:21:34 1.45.2.10
+++ conga/conga.spec.in.in 2006/12/12 13:26:23 1.45.2.11
@@ -297,6 +297,7 @@
- Fixed bz218040 (luci reports "unknown" as cluster name if cluster creation fails)
- Fixed bz218941 (Conga/luci - cannot add node to cluster via luci web app)
- Fixed bz219156 (Errors in performing node-specific tasks due to ricci outage not reflected in luci display)
+- Fixed bz217703 (clustered vg creation fails)
* Thu Nov 16 2006 Stanko Kupcevic 0.8-25
- Fix build issues (D-BUS detection)
--- conga/luci/cluster/form-macros 2006/12/11 23:57:59 1.90.2.8
+++ conga/luci/cluster/form-macros 2006/12/12 13:26:23 1.90.2.9
@@ -45,8 +45,7 @@
-
+
--- conga/luci/site/luci/Extensions/ricci_bridge.py 2006/12/11 23:58:00 1.30.2.12
+++ conga/luci/site/luci/Extensions/ricci_bridge.py 2006/12/12 13:26:23 1.30.2.13
@@ -43,15 +43,16 @@
return (-1, err_msg)
def addClusterNodeBatch(os_str,
- cluster_name,
- install_base,
- install_services,
- install_shared_storage,
- install_LVS,
- upgrade_rpms):
-
+ cluster_name,
+ install_base,
+ install_services,
+ install_shared_storage,
+ install_LVS,
+ upgrade_rpms):
+
batch = ''
batch += ''
+
batch += ''
batch += ''
batch += ''
@@ -61,9 +62,7 @@
else:
batch += 'false'
batch += '"/>'
-
batch += ''
-
if install_base or install_services or install_shared_storage:
batch += ''
if install_services:
@@ -72,45 +71,42 @@
batch += ''
if install_LVS:
batch += ''
-
batch += ''
batch += ''
batch += ''
batch += ''
-
+
+ batch += ''
+ batch += ''
+ batch += ''
+ batch += ''
+ if install_base or install_services or install_shared_storage:
+ batch += ''
+ if install_services:
+ batch += ''
+ if install_shared_storage:
+ batch += ''
+ if install_LVS:
+ batch += ''
+ batch += ''
+ batch += ''
+ batch += ''
+ batch += ''
+
need_reboot = install_base or install_services or install_shared_storage or install_LVS
if need_reboot:
- batch += ''
- batch += ''
- batch += ''
- batch += ''
- if os_str == 'rhel4':
- batch += ''
- batch += ''
- batch += ''
- batch += ''
- batch += ''
- batch += ''
-
batch += ''
batch += ''
batch += ''
batch += ''
batch += ''
else:
- # need 2 placeholders instead of disable services / reboot
batch += ''
batch += ''
batch += ''
batch += ''
batch += ''
-
- batch += ''
- batch += ''
- batch += ''
- batch += ''
- batch += ''
-
+
batch += ''
batch += ''
batch += ''
@@ -127,27 +123,20 @@
batch += ''
batch += ''
batch += ''
-
- if need_reboot:
- batch += ''
+
+ if install_shared_storage:
+ batch += ''
batch += ''
- batch += ''
- batch += ''
- if os_str == 'rhel4':
- batch += ''
- batch += ''
- batch += ''
- batch += ''
+ batch += ''
batch += ''
batch += ''
else:
- # placeholder instead of enable services
batch += ''
batch += ''
batch += ''
batch += ''
batch += ''
-
+
batch += ''
batch += ''
batch += ''
@@ -157,18 +146,19 @@
return minidom.parseString(batch).firstChild
-def createClusterBatch( os_str,
- cluster_name,
- cluster_alias,
- nodeList,
- install_base,
- install_services,
- install_shared_storage,
- install_LVS,
- upgrade_rpms):
-
+def createClusterBatch(os_str,
+ cluster_name,
+ cluster_alias,
+ nodeList,
+ install_base,
+ install_services,
+ install_shared_storage,
+ install_LVS,
+ upgrade_rpms):
+
batch = ''
batch += ''
+
batch += ''
batch += ''
batch += ''
@@ -179,7 +169,6 @@
batch += 'false'
batch += '"/>'
batch += ''
-
if install_base or install_services or install_shared_storage:
batch += ''
if install_services:
@@ -192,40 +181,38 @@
batch += ''
batch += ''
batch += ''
-
+
+ batch += ''
+ batch += ''
+ batch += ''
+ batch += ''
+ if install_base or install_services or install_shared_storage:
+ batch += ''
+ if install_services:
+ batch += ''
+ if install_shared_storage:
+ batch += ''
+ if install_LVS:
+ batch += ''
+ batch += ''
+ batch += ''
+ batch += ''
+ batch += ''
+
need_reboot = install_base or install_services or install_shared_storage or install_LVS
if need_reboot:
- batch += ''
- batch += ''
- batch += ''
- batch += ''
- if os_str == 'rhel4':
- batch += ''
- batch += ''
- batch += ''
- batch += ''
- batch += ''
- batch += ''
-
batch += ''
batch += ''
batch += ''
batch += ''
batch += ''
else:
- # need 2 placeholders instead of disable services / reboot
batch += ''
batch += ''
batch += ''
batch += ''
batch += ''
-
- batch += ''
- batch += ''
- batch += ''
- batch += ''
- batch += ''
-
+
batch += ''
batch += ''
batch += ''
@@ -233,9 +220,7 @@
batch += ''
batch += ''
batch += ''
-
batch += ''
-
x = 1
for i in nodeList:
if os_str == "rhel4":
@@ -243,14 +228,11 @@
else:
batch += ''
x = x + 1
-
batch += ''
-
if len(nodeList) == 2:
batch += ''
else:
batch += ''
-
batch += ''
batch += ''
batch += ''
@@ -258,27 +240,20 @@
batch += ''
batch += ''
batch += ''
-
- if need_reboot:
- batch += ''
+
+ if install_shared_storage:
+ batch += ''
batch += ''
- batch += ''
- batch += ''
- if os_str == 'rhel4':
- batch += ''
- batch += ''
- batch += ''
- batch += ''
+ batch += ''
batch += ''
batch += ''
else:
- # placeholder instead of enable services
batch += ''
batch += ''
batch += ''
batch += ''
batch += ''
-
+
batch += ''
batch += ''
batch += ''
--- conga/ricci/common/File.cpp 2006/10/24 21:57:36 1.1.2.2
+++ conga/ricci/common/File.cpp 2006/12/12 13:26:23 1.1.2.3
@@ -51,7 +51,7 @@
bool rw)
{
if (access(filepath.c_str(), R_OK))
- throw String("missing file ") + filepath;
+ throw String("unable to read file ") + filepath;
ios_base::openmode mode = ios_base::in;
if (rw)
mode |= ios_base::out;
--- conga/ricci/docs/storage_api.html 2006/10/16 20:26:48 1.5
+++ conga/ricci/docs/storage_api.html 2006/12/12 13:26:24 1.5.2.1
@@ -374,6 +374,30 @@
especially unmount error if content fails to unmount
+ enable_clustered_lvm
+
+ Enable LVM's cluster locking.
+ It is an error to call this function if lvm2-cluster
+ is not installed.
+
+ No input variables.
+
+ No output variables.
+ On failure:
- No special errors defined, only generic ones
+ might get returned.
+
+ disable_clustered_lvm
+
+ Disable LVM's cluster locking.
+ It is an error to call this function if lvm2-cluster
+ is not installed.
+
+ No input variables.
+
+ No output variables.
+ On failure:
- No special errors defined, only generic ones
+ might get returned.
+