From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 29 Jul 2008 19:47:15 -0000 Subject: [Cluster-devel] conga ./clustermon.spec.in.in ./conga.spec.in. ... Message-ID: <20080729194715.12808.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 Changes by: rmccabe at sourceware.org 2008-07-29 19:47:07 Modified files: . : clustermon.spec.in.in conga.spec.in.in luci/cluster : cluster_config-macros cluster_svc-macros fence-macros validate_config_qdisk.js luci/plone-custom: conga.js luci/site/luci/Extensions: HelperFunctions.py LuciValidation.py LuciZopeClusterPortal.py StorageReport.py cluster_adapters.py conga_constants.py luci/storage : form-macros ricci/modules/cluster/clumon: REDHAT-CLUSTER-MIB ricci/modules/rpm: PackageHandler.cpp ricci/modules/service: ServiceManager.cpp ricci/modules/storage: LVM.cpp ricci/modules/virt: Makefile Virt.cpp ricci/ricci : DBusController.cpp ricci/ricci/d-bus: ricci.oddjob.conf ricci/test_suite/cluster: vm_list.xml Log message: Forward port fixes from RHEL5 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/clustermon.spec.in.in.diff?cvsroot=cluster&r1=1.45&r2=1.46 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.99&r2=1.100 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/cluster_config-macros.diff?cvsroot=cluster&r1=1.4&r2=1.5 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/cluster_svc-macros.diff?cvsroot=cluster&r1=1.7&r2=1.8 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/fence-macros.diff?cvsroot=cluster&r1=1.3&r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/cluster/validate_config_qdisk.js.diff?cvsroot=cluster&r1=1.12&r2=1.13 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/plone-custom/conga.js.diff?cvsroot=cluster&r1=1.14&r2=1.15 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/HelperFunctions.py.diff?cvsroot=cluster&r1=1.15&r2=1.16 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciValidation.py.diff?cvsroot=cluster&r1=1.10&r2=1.11 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/LuciZopeClusterPortal.py.diff?cvsroot=cluster&r1=1.3&r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/StorageReport.py.diff?cvsroot=cluster&r1=1.30&r2=1.31 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/cluster_adapters.py.diff?cvsroot=cluster&r1=1.283&r2=1.284 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/site/luci/Extensions/conga_constants.py.diff?cvsroot=cluster&r1=1.50&r2=1.51 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/storage/form-macros.diff?cvsroot=cluster&r1=1.31&r2=1.32 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/REDHAT-CLUSTER-MIB.diff?cvsroot=cluster&r1=1.2&r2=1.3 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/rpm/PackageHandler.cpp.diff?cvsroot=cluster&r1=1.24&r2=1.25 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/service/ServiceManager.cpp.diff?cvsroot=cluster&r1=1.20&r2=1.21 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/storage/LVM.cpp.diff?cvsroot=cluster&r1=1.13&r2=1.14 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/virt/Makefile.diff?cvsroot=cluster&r1=1.1&r2=1.2 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/virt/Virt.cpp.diff?cvsroot=cluster&r1=1.1&r2=1.2 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/DBusController.cpp.diff?cvsroot=cluster&r1=1.18&r2=1.19 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/d-bus/ricci.oddjob.conf.diff?cvsroot=cluster&r1=1.1&r2=1.2 http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/test_suite/cluster/vm_list.xml.diff?cvsroot=cluster&r1=1.1&r2=1.2 --- conga/clustermon.spec.in.in 2008/06/06 16:41:52 1.45 +++ conga/clustermon.spec.in.in 2008/07/29 19:46:59 1.46 @@ -27,7 +27,7 @@ Source0: %{name}-%{version}.tar.gz Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: cman-devel libvirt-devel +BuildRequires: cman-devel BuildRequires: glibc-devel gcc-c++ libxml2-devel BuildRequires: openssl-devel dbus-devel pam-devel pkgconfig BuildRequires: net-snmp-devel tog-pegasus-devel @@ -45,6 +45,7 @@ --docdir=%{_docdir} \ --pegasus_providers_dir=%{PEGASUS_PROVIDERS_DIR} \ --include_zope_and_plone=no + make %{?_smp_mflags} clustermon %install @@ -56,7 +57,6 @@ - ### cluster module ### --- conga/conga.spec.in.in 2008/06/13 18:38:49 1.99 +++ conga/conga.spec.in.in 2008/07/29 19:47:00 1.100 @@ -31,9 +31,14 @@ %endif Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%define virt_support 0 + +%ifarch i386 x86_64 ia64 +%define virt_support 1 +%endif + BuildRequires: python-devel >= 2.4.1 BuildRequires: glibc-devel gcc-c++ libxml2-devel sed -BuildRequires: cman-devel BuildRequires: cyrus-sasl-devel >= 2.1 BuildRequires: openssl-devel dbus-devel pkgconfig file @@ -57,9 +62,16 @@ %endif %build +%if %{virt_support} %configure --arch=%{_arch} \ --docdir=%{_docdir} \ - --include_zope_and_plone=%{include_zope_and_plone} + --include_zope_and_plone=%{include_zope_and_plone} --VIRT_SUPPORT=1 +%else +%configure --arch=%{_arch} \ + --docdir=%{_docdir} \ + --include_zope_and_plone=%{include_zope_and_plone} --VIRT_SUPPORT=0 +%endif + make %{?_smp_mflags} conga %install @@ -199,10 +211,16 @@ Requires: initscripts Requires: oddjob dbus openssl pam cyrus-sasl >= 2.1 Requires: sed util-linux -Requires: modcluster >= 0.10.0 +Requires: modcluster >= 0.12.0 # modreboot +# modvirt + +%if %{virt_support} +BuildRequires: libvirt-devel +%endif + # modrpm # modstorage @@ -254,13 +272,14 @@ %config(noreplace) %{_sysconfdir}/dbus-1/system.d/ricci-modlog.systembus.conf %{_libexecdir}/ricci-modlog +# modvirt +%config(noreplace) %{_sysconfdir}/oddjobd.conf.d/ricci-modvirt.oddjob.conf +%config(noreplace) %{_sysconfdir}/dbus-1/system.d/ricci-modvirt.systembus.conf + %{_libexecdir}/ricci-modvirt + %pre -n ricci -if ! /bin/grep ^ricci\:x /etc/group >&/dev/null; then - /usr/sbin/groupadd -r -f ricci >&/dev/null -fi -if ! /bin/grep ^ricci\:x /etc/passwd >&/dev/null; then - /usr/sbin/useradd -r -M -s /sbin/nologin -d /var/lib/ricci -g ricci ricci >&/dev/null -fi +getent group ricci >/dev/null || groupadd -r ricci +getent passwd ricci >/dev/null || useradd -r -M -g ricci -d /var/lib/ricci -s /sbin/nologin -c "ricci daemon user" ricci exit 0 %post -n ricci --- conga/luci/cluster/cluster_config-macros 2008/02/08 21:47:55 1.4 +++ conga/luci/cluster/cluster_config-macros 2008/07/29 19:47:02 1.5 @@ -715,21 +715,39 @@ - - Device - - - - - - - Label - - - - + + + + + + + + + + + +
+ Label + + +
+ Device (deprecated) + + +
+ --- conga/luci/cluster/cluster_svc-macros 2008/03/06 21:27:16 1.7 +++ conga/luci/cluster/cluster_svc-macros 2008/07/29 19:47:02 1.8 @@ -46,7 +46,7 @@ class python: 'cluster service ' + (running and 'running' or 'stopped')" tal:content="svc/name" /> - (virtual service) + (virtual machine service) @@ -156,46 +156,8 @@

Create a Virtual Machine Service

- - Automatically start this service - - - - - - Run exclusive - - - - - - Failover Domain - - - - - - - Recovery policy - - - - - - Migration type @@ -228,7 +192,7 @@
+ tal:define="sinfo python:here.getVMInfo(modelb, request)"> @@ -237,14 +201,14 @@ tal:attributes="value request/pagetype | nothing" /> + tal:attributes="value sinfo/name | nothing" />
@@ -313,66 +277,21 @@ - - - - - - - - - - - - - - - - - + tal:condition="exists:sinfo/vm_migration_choice"> + + @@ -427,43 +346,7 @@ - - - - - - - - - - - - - - - - +
-

Properties for

+

Properties for

Automatically start this service - -
Run exclusive - -
Failover Domain - -
Recovery policy - -
Migration type
@@ -386,14 +305,14 @@
Virtual machine name + tal:attributes="value sinfo/name | nothing" />
Path to VM configuration files + tal:attributes="value sinfo/path | nothing" />
- Automatically start this service - - -
Run exclusive - -
Failover Domain - -
Recovery policy - -
@@ -522,7 +405,7 @@
+ + Automatically start this service + + + + + + + Run exclusive + + + + + + + Failover Domain + + + + + + + Recovery policy + + + + + + + + Maximum number of restart failures before relocating + + + + + + + Length of time in seconds after which to forget a restart + + + + +
+