|
|
42c953 |
From 05a6bf8619560b559bfb0ea3688635935a96ca94 Mon Sep 17 00:00:00 2001
|
|
|
42c953 |
From: Marek 'marx' Grac <mgrac@redhat.com>
|
|
|
42c953 |
Date: Thu, 19 Mar 2015 21:28:22 +0100
|
|
|
42c953 |
Subject: [PATCH 5/5] fence_ipmilan: Un-set default cipher
|
|
|
42c953 |
|
|
|
42c953 |
Previously, the default cipher was left to ipmitool, in one of latest releases we have changed it
|
|
|
42c953 |
to cipher=0. This commit removes this default and uses --cipher for ipmitool only when explicitly
|
|
|
42c953 |
set by user.
|
|
|
42c953 |
|
|
|
42c953 |
Resolves: rhbz#1203877
|
|
|
42c953 |
---
|
|
|
42c953 |
fence/agents/ipmilan/fence_ipmilan.py | 4 ++--
|
|
|
42c953 |
tests/data/metadata/fence_idrac.xml | 2 +-
|
|
|
42c953 |
tests/data/metadata/fence_ilo3.xml | 2 +-
|
|
|
42c953 |
tests/data/metadata/fence_ilo4.xml | 2 +-
|
|
|
42c953 |
tests/data/metadata/fence_imm.xml | 2 +-
|
|
|
42c953 |
tests/data/metadata/fence_ipmilan.xml | 2 +-
|
|
|
42c953 |
6 files changed, 7 insertions(+), 7 deletions(-)
|
|
|
42c953 |
|
|
|
42c953 |
diff --git a/fence/agents/ipmilan/fence_ipmilan.py b/fence/agents/ipmilan/fence_ipmilan.py
|
|
|
42c953 |
index eaff7b7..8490837 100644
|
|
|
42c953 |
--- a/fence/agents/ipmilan/fence_ipmilan.py
|
|
|
42c953 |
+++ b/fence/agents/ipmilan/fence_ipmilan.py
|
|
|
42c953 |
@@ -53,7 +53,8 @@ def create_command(options, action):
|
|
|
42c953 |
cmd += " -P ''"
|
|
|
42c953 |
|
|
|
42c953 |
# --cipher / -C
|
|
|
42c953 |
- cmd += " -C " + options["--cipher"]
|
|
|
42c953 |
+ if "--cipher" in options:
|
|
|
42c953 |
+ cmd += " -C " + options["--cipher"]
|
|
|
42c953 |
|
|
|
42c953 |
# --port / -n
|
|
|
42c953 |
if options.has_key("--ipport"):
|
|
|
42c953 |
@@ -96,7 +97,6 @@ def define_new_opts():
|
|
|
42c953 |
"help" : "-C, --cipher=[cipher] Ciphersuite to use (same as ipmitool -C parameter)",
|
|
|
42c953 |
"required" : "0",
|
|
|
42c953 |
"shortdesc" : "Ciphersuite to use (same as ipmitool -C parameter)",
|
|
|
42c953 |
- "default" : "0",
|
|
|
42c953 |
"order": 1
|
|
|
42c953 |
}
|
|
|
42c953 |
all_opt["privlvl"] = {
|
|
|
42c953 |
diff --git a/tests/data/metadata/fence_idrac.xml b/tests/data/metadata/fence_idrac.xml
|
|
|
42c953 |
index 26a2758..dcb3235 100644
|
|
|
42c953 |
--- a/tests/data/metadata/fence_idrac.xml
|
|
|
42c953 |
+++ b/tests/data/metadata/fence_idrac.xml
|
|
|
42c953 |
@@ -61,7 +61,7 @@
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="cipher" unique="0" required="0">
|
|
|
42c953 |
<getopt mixed="-C, --cipher=[cipher]" />
|
|
|
42c953 |
- <content type="string" default="0" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
<shortdesc lang="en">Ciphersuite to use (same as ipmitool -C parameter)</shortdesc>
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="privlvl" unique="0" required="0">
|
|
|
42c953 |
diff --git a/tests/data/metadata/fence_ilo3.xml b/tests/data/metadata/fence_ilo3.xml
|
|
|
42c953 |
index c1e01ae..e6a48bc 100644
|
|
|
42c953 |
--- a/tests/data/metadata/fence_ilo3.xml
|
|
|
42c953 |
+++ b/tests/data/metadata/fence_ilo3.xml
|
|
|
42c953 |
@@ -61,7 +61,7 @@
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="cipher" unique="0" required="0">
|
|
|
42c953 |
<getopt mixed="-C, --cipher=[cipher]" />
|
|
|
42c953 |
- <content type="string" default="0" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
<shortdesc lang="en">Ciphersuite to use (same as ipmitool -C parameter)</shortdesc>
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="privlvl" unique="0" required="0">
|
|
|
42c953 |
diff --git a/tests/data/metadata/fence_ilo4.xml b/tests/data/metadata/fence_ilo4.xml
|
|
|
42c953 |
index bbba9a0..e7b0d60 100644
|
|
|
42c953 |
--- a/tests/data/metadata/fence_ilo4.xml
|
|
|
42c953 |
+++ b/tests/data/metadata/fence_ilo4.xml
|
|
|
42c953 |
@@ -61,7 +61,7 @@
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="cipher" unique="0" required="0">
|
|
|
42c953 |
<getopt mixed="-C, --cipher=[cipher]" />
|
|
|
42c953 |
- <content type="string" default="0" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
<shortdesc lang="en">Ciphersuite to use (same as ipmitool -C parameter)</shortdesc>
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="privlvl" unique="0" required="0">
|
|
|
42c953 |
diff --git a/tests/data/metadata/fence_imm.xml b/tests/data/metadata/fence_imm.xml
|
|
|
42c953 |
index addfcd4..8fbdddd 100644
|
|
|
42c953 |
--- a/tests/data/metadata/fence_imm.xml
|
|
|
42c953 |
+++ b/tests/data/metadata/fence_imm.xml
|
|
|
42c953 |
@@ -61,7 +61,7 @@
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="cipher" unique="0" required="0">
|
|
|
42c953 |
<getopt mixed="-C, --cipher=[cipher]" />
|
|
|
42c953 |
- <content type="string" default="0" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
<shortdesc lang="en">Ciphersuite to use (same as ipmitool -C parameter)</shortdesc>
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="privlvl" unique="0" required="0">
|
|
|
42c953 |
diff --git a/tests/data/metadata/fence_ipmilan.xml b/tests/data/metadata/fence_ipmilan.xml
|
|
|
42c953 |
index d15e352..199490c 100644
|
|
|
42c953 |
--- a/tests/data/metadata/fence_ipmilan.xml
|
|
|
42c953 |
+++ b/tests/data/metadata/fence_ipmilan.xml
|
|
|
42c953 |
@@ -61,7 +61,7 @@
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="cipher" unique="0" required="0">
|
|
|
42c953 |
<getopt mixed="-C, --cipher=[cipher]" />
|
|
|
42c953 |
- <content type="string" default="0" />
|
|
|
42c953 |
+ <content type="string" />
|
|
|
42c953 |
<shortdesc lang="en">Ciphersuite to use (same as ipmitool -C parameter)</shortdesc>
|
|
|
42c953 |
</parameter>
|
|
|
42c953 |
<parameter name="privlvl" unique="0" required="0">
|
|
|
42c953 |
--
|
|
|
42c953 |
1.9.3
|
|
|
42c953 |
|