[Pkg-ganeti-devel] [SCM] Ganeti packaging branch, master, updated. debian/1.2.7-1-10-ga4eec3f

Iustin Pop iusty at k1024.org
Mon Jul 13 19:32:15 UTC 2009


The following commit has been merged in the master branch:
commit a4eec3fbbdd201d32512b89f248f2f03265da70d
Author: Iustin Pop <iusty at k1024.org>
Date:   Mon Jul 13 21:27:46 2009 +0200

    Patch the init script to abort with 1.2 configs
    
    Unless the configuration has migrated, new ssconf files will not be
    found, so we can abort early instead of showing error messages.

diff --git a/debian/patches/fix-startup-with-old-config.patch b/debian/patches/fix-startup-with-old-config.patch
new file mode 100644
index 0000000..28830b4
--- /dev/null
+++ b/debian/patches/fix-startup-with-old-config.patch
@@ -0,0 +1,25 @@
+The upgrade from Ganeti 1.2 makes the init script abort with ugly
+messages, so we edit the init script to exit early in this case.
+
+Iustin Pop, <iusty at k1024.org>
+Mon, 13 Jul 2009 21:23:25 +0200
+--- a/doc/examples/ganeti.initd.in
++++ b/doc/examples/ganeti.initd.in
+@@ -53,6 +53,17 @@
+             exit 0
+         fi
+     done
++
++    for fname in \
++        "@LOCALSTATEDIR@/lib/ganeti/ssconf_node_list"
++    do
++        if ! [ -f "$fname" ]; then
++            log_end_msg 0
++            log_warning_msg "Configuration not upgraded to 2.0, will not run."
++            exit 0
++        fi
++    done
++
+ }
+ 
+ check_exitcode() {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2465d9c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-startup-with-old-config.patch

-- 
Ganeti packaging



More information about the Pkg-ganeti-devel mailing list