From bf2fd71ea23b628a8b513e0ab9065d5876f34076 Mon Sep 17 00:00:00 2001
From: Alexander Schreiber <als@google.com>
Date: Tue, 7 Oct 2008 13:16:32 +0000
Subject: [PATCH] Change default instance reboot type to hard.

Merged r1777 from branches/ganeti/ganeti-1.2

Reviewed-by: imsnah
---
 man/gnt-instance.sgml | 2 +-
 scripts/gnt-instance  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man/gnt-instance.sgml b/man/gnt-instance.sgml
index 1dd11525e..5141ba162 100644
--- a/man/gnt-instance.sgml
+++ b/man/gnt-instance.sgml
@@ -1001,7 +1001,7 @@
           recreates the hypervisor config for the instance and
           starts the instance. A full reboot does the equivalent
           of <command>gnt-instance shutdown &amp;&amp; gnt-instance
-          startup</command>. The default is soft reboot.
+          startup</command>. The default is hard reboot.
         </para>
 
         <para>
diff --git a/scripts/gnt-instance b/scripts/gnt-instance
index 3452d0862..76e244236 100755
--- a/scripts/gnt-instance
+++ b/scripts/gnt-instance
@@ -1119,7 +1119,7 @@ commands = {
                            default=None, type="string", metavar="<PARAMS>"),
                make_option("-t", "--type", dest="reboot_type",
                            help="Type of reboot: soft/hard/full",
-                           default=constants.INSTANCE_REBOOT_SOFT,
+                           default=constants.INSTANCE_REBOOT_HARD,
                            type="string", metavar="<REBOOT>"),
                make_option("--ignore-secondaries", dest="ignore_secondaries",
                            default=False, action="store_true",
-- 
GitLab