Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=ed6ed4c4…
Commit: ed6ed4c4f8e5142457a2fabb4385d7d75209196d
Parent: dc7509aa2e1b67bbce9bebe58c027e85944f8b96
Author: Ondrej Mular <omular(a)redhat.com>
AuthorDate: Fri Feb 21 07:03:23 2014 -0500
Committer: Marek 'marx' Grac <mgrac(a)redhat.com>
CommitterDate: Wed Feb 26 15:39:31 2014 +0100
fencing: accept only options used in fence-agent
In transformation from short options to long options, was used list of all options. That caused collision of options if there was 2 options with same short name, but only one was used in fence-agent.
---
fence/agents/lib/fencing.py.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fence/agents/lib/fencing.py.py b/fence/agents/lib/fencing.py.py
index b8aa98f..2006f0d 100644
--- a/fence/agents/lib/fencing.py.py
+++ b/fence/agents/lib/fencing.py.py
@@ -572,7 +572,7 @@ def process_input(avail_opt):
opt["--" + all_opt[x]["longopt"]] = dict(old_opt)[o]
else:
for x in all_opt.keys():
- if all_opt[x].has_key("getopt") and all_opt[x].has_key("longopt") and \
+ if x in avail_opt and all_opt[x].has_key("getopt") and all_opt[x].has_key("longopt") and \
("-" + all_opt[x]["getopt"] == o or "-" + all_opt[x]["getopt"].rstrip(":") == o):
opt["--" + all_opt[x]["longopt"]] = dict(old_opt)[o]
opt[o] = dict(old_opt)[o]
Gitweb: http://git.fedorahosted.org/git/?p=fence-agents.git;a=commitdiff;h=c360d3ee…
Commit: c360d3eecf6f9976d3371090034d08d03000f0e1
Parent: 6bb1f3363e3856c1d95e21b25d380ca651eeeb1b
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Wed Feb 26 09:34:35 2014 +0100
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Wed Feb 26 09:34:35 2014 +0100
vmware_soap: drop warning from python suds when error occours
prepatch:
fence_vmware_soap -z -l test -p wrongpasswd -a blabla -n vm1 -o reboot -v
No handlers could be found for logger "suds.client"
Failed: The user does not have the correct privileges to do the requested action.
postpatch:
fence_vmware_soap -z -l test -p wrongpassed -a blabla -n vm1 -o reboot -v
Failed: The user does not have the correct privileges to do the requested action.
Based on https://fedorahosted.org/suds/wiki/Documentation
logging must be configured and filter for CRITICAL since the harmless
error is at INFO level.
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
fence/agents/vmware_soap/fence_vmware_soap.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/fence/agents/vmware_soap/fence_vmware_soap.py b/fence/agents/vmware_soap/fence_vmware_soap.py
index 400e81f..c73a1d6 100644
--- a/fence/agents/vmware_soap/fence_vmware_soap.py
+++ b/fence/agents/vmware_soap/fence_vmware_soap.py
@@ -2,6 +2,7 @@
import sys, exceptions, time
import shutil, tempfile, suds
+import logging
sys.path.append("@FENCEAGENTSLIBDIR@")
from suds.client import Client
@@ -199,6 +200,9 @@ Alternatively you can always use UUID to access virtual machine."
docs["vendorurl"] = "http://www.vmware.com"
show_docs(options, docs)
+ logging.basicConfig(level=logging.INFO)
+ logging.getLogger('suds.client').setLevel(logging.CRITICAL)
+
##
## Operate the fencing device
####
Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=638f3cd5b5…
Commit: 638f3cd5b541dc5952651d696e26cd8a8abd27c1
Parent: b675ddeb26172a96277e21f6d2663f4d1ddb9a0a
Author: Andrew Price <anprice(a)redhat.com>
AuthorDate: Sun Feb 16 20:07:05 2014 +0000
Committer: Andrew Price <anprice(a)redhat.com>
CommitterDate: Sun Feb 16 20:07:05 2014 +0000
mkfs.gfs2: Remove a dead structure
struct mkfs_rgs has not been used since the new rgrp functions were
added to libgfs2. Remove it.
Signed-off-by: Andrew Price <anprice(a)redhat.com>
---
gfs2/mkfs/main_mkfs.c | 19 -------------------
1 files changed, 0 insertions(+), 19 deletions(-)
diff --git a/gfs2/mkfs/main_mkfs.c b/gfs2/mkfs/main_mkfs.c
index 32da585..e58de68 100644
--- a/gfs2/mkfs/main_mkfs.c
+++ b/gfs2/mkfs/main_mkfs.c
@@ -151,25 +151,6 @@ struct mkfs_dev {
unsigned int got_topol:1;
};
-/**
- * A representation of the state of resource group calculation. Allows mkfs to create
- * resource groups at any point instead of creating them all in one batch.
- */
-struct mkfs_rgs {
- struct osi_root *root;
- uint64_t nextaddr;
- unsigned bsize;
- unsigned long align;
- unsigned long align_off;
- unsigned long curr_offset;
- uint64_t maxrgsz;
- uint64_t minrgsz;
- uint64_t devlen;
- uint64_t rgsize;
- uint64_t count;
- uint64_t blks_total;
-};
-
static void opts_init(struct mkfs_opts *opts)
{
memset(opts, 0, sizeof(*opts));