Revision 49658b21

/dev/null
1
From 49ee1838bffb5960e5e9bd59c0187d47203c2b44 Mon Sep 17 00:00:00 2001
2
From: Klaus Aehlig <aehlig@google.com>
3
Date: Mon, 3 Feb 2014 17:50:11 +0100
4
Subject: [PATCH] Fix specification of TIDiskParams
5

  
6
Commit 580b1fdd incorrectly assumes that disk parameters are
7
just the standard ones, whereas the man page explicitly states
8
that additional parameters can be passed as well, if they make
9
sense for the chosen storage type. Fix this.
10

  
11
Signed-off-by: Klaus Aehlig <aehlig@google.com>
12
Reviewed-by: Petr Pudlak <pudlak@google.com>
13
---
14
 lib/ht.py | 2 +-
15
 1 file changed, 1 insertion(+), 1 deletion(-)
16

  
17
diff --git a/lib/ht.py b/lib/ht.py
18
index d6171ac..ee82148 100644
19
--- a/lib/ht.py
20
+++ b/lib/ht.py
21
@@ -570,7 +570,7 @@ TINicParams = \
22
                                       TMaybe(TString)))
23
 
24
 TIDiskParams = \
25
-    Comment("Disk parameters")(TDictOf(TElemOf(constants.IDISK_PARAMS),
26
+    Comment("Disk parameters")(TDictOf(TNonEmptyString,
27
                                        TOr(TNonEmptyString, TInt)))
28
 
29
 THypervisor = TElemOf(constants.HYPER_TYPES)
30
-- 
31
1.9.0
32

  
/dev/null
1
From: Apollon Oikonomopoulos <apoikos@gmail.com>
2
Date: Fri, 12 Jul 2013 22:11:26 +0300
3
Subject: Disable local checks during build
4

  
5
check-local runs a series of tests clearly intended for the local developer's
6
machines that give false positives e.g. because of the presense of debian/.
7

  
8
Forwarded: no
9
Last-Update: 2013-07-12
10
---
11
 Makefile.in |    2 +-
12
 1 file changed, 1 insertion(+), 1 deletion(-)
13

  
14
diff --git a/Makefile.in b/Makefile.in
15
index 2936193..a1890e5 100644
16
--- a/Makefile.in
17
+++ b/Makefile.in
18
@@ -2571,7 +2571,7 @@ distcleancheck: distclean
19
 	       exit 1; } >&2
20
 check-am: all-am
21
 	$(MAKE) $(AM_MAKEFLAGS) $(check_SCRIPTS)
22
-	$(MAKE) $(AM_MAKEFLAGS) check-TESTS check-local
23
+	$(MAKE) $(AM_MAKEFLAGS) check-TESTS
24
 check: check-am
25
 all-am: Makefile $(SCRIPTS) $(MANS) $(DATA)
26
 installdirs:
/dev/null
1
Description: Remove obsolete ssconf files
2
  Debian packaging relies on obsolete ssconf files to detect whether the
3
  upgrade has completed or not; this is not needed for upstream,
4
  although it is a good cleanup
5
Author: Iustin Pop <iustin@debian.org>
6
Last-Update: 2010-10-24
7
--- a/tools/cfgupgrade12
8
+++ b/tools/cfgupgrade12
9
@@ -404,6 +404,10 @@
10
         logging.debug("Writing RAPI certificate to %s", options.RAPI_CERT_FILE)
11
         utils.GenerateSelfSignedSslCert(options.RAPI_CERT_FILE)
12
 
13
+      ss_hyp = SsconfName('hypervisor')
14
+      if os.path.exists(ss_hyp):
15
+        utils.RemoveFile(ss_hyp)
16
+
17
   except:
18
     logging.critical("Writing configuration failed. It is probably in an"
19
                      " inconsistent state and needs manual intervention.")
/dev/null
1
Description: The upgrade from Ganeti 1.2 makes the init script abort with
2
 ugly messages, so we edit the init script to exit early in this case.
3
Forwarded: no
4
Author: Iustin Pop <iusty@k1024.org>
5
Last-Update: 2009-12-04
6
--- a/doc/examples/ganeti.initd.in
7
+++ b/doc/examples/ganeti.initd.in
8
@@ -59,6 +59,16 @@
9
 }
10
 
11
 start_all() {
12
+    for fname in \
13
+        "@LOCALSTATEDIR@/lib/ganeti/ssconf_hypervisor"
14
+    do
15
+        if [ -f "$fname" ]; then
16
+            log_end_msg 0
17
+            log_warning_msg "Configuration not upgraded to 2.0, will not run."
18
+            exit 1
19
+        fi
20
+    done
21
+
22
     if ! $DAEMON_UTIL check-config; then
23
         log_warning_msg "Incomplete configuration, will not run."
24
         exit 0
/dev/null
1
Author: Apollon Oikonomopoulos <apoikos@gmail.com>
2
Description: Pass linker flags to GHC
3
 Enable hardening (relro) and as-needed
4

  
5
Forwarded: no
6
Last-Update: 2013-11-01
7
--- a/Makefile.in
8
+++ b/Makefile.in
9
@@ -801,6 +801,7 @@
10
 	-O -Wall -Werror -isrc \
11
 	-fwarn-monomorphism-restriction \
12
 	-fwarn-tabs \
13
+        -optl -Wl,-z,relro -optl -Wl,--as-needed \
14
 	$(GHC_BYVERSION_FLAGS)
15
 
16
 
/dev/null
1
fix-startup-with-old-config.patch
2
cfgupgrade12-remove-old-ssconf.patch
3
0003-Disable-local-checks-during-build.patch
4
pass-ghc-linker-flags.patch
5
0001-Fix-specification-of-TIDiskParams.patch

Also available in: Unified diff