* [Cluster-devel] [fence-virt PATCH] add map_check on 'status' action
@ 2011-09-13 8:48 Kazunori INOUE
2011-09-19 20:24 ` Lon Hohberger
0 siblings, 1 reply; 2+ messages in thread
From: Kazunori INOUE @ 2011-09-13 8:48 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi all,
I am using fence-virt.
I want to check permission also by 'status' fencing action.
[root at x3650f ~]# cat /etc/fence_virt.conf
----
(snip)
groups {
group {
uuid = "srv-a1";
uuid = "srv-a2";
uuid = "621d8c61-1070-7aab-6158-3889d68470ab";
uuid = "4f0ed127-c8a3-4085-a0d0-a93231924202";
}
group {
uuid = "srv-b1";
uuid = "srv-b2";
uuid = "d55103a7-eea7-ad9e-3ee9-8aa660afbe8d";
uuid = "7243da51-2bda-413e-f172-4ed8cfee4297";
}
----
* 'off' operation :
[root at srv-a1 ~]# fence_virt -D/dev/ttyS1 -ooff -Hsrv-b1
Permission denied
[root at srv-a1 ~]# echo $?
3
[root at srv-a1 ~]#
This is good. It is an expected result.
* 'status' operation :
[root at srv-a1 ~]# fence_virt -D/dev/ttyS1 -ostatus -Hsrv-b1
[root at srv-a1 ~]# echo $?
0
[root at srv-a1 ~]#
It is an unexpected result. I expect a return value 3.
If 'off' is permission denied, I think that the result of 'status'
should be the same.
I want to check permission beforehand by 'status' whether I become
permission denied in fencing action (off,on,[reboot]).
Regards,
Kazunori INOUE
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: add-map_check-on-status.patch
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20110913/20222ea0/attachment.ksh>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Cluster-devel] [fence-virt PATCH] add map_check on 'status' action
2011-09-13 8:48 [Cluster-devel] [fence-virt PATCH] add map_check on 'status' action Kazunori INOUE
@ 2011-09-19 20:24 ` Lon Hohberger
0 siblings, 0 replies; 2+ messages in thread
From: Lon Hohberger @ 2011-09-19 20:24 UTC (permalink / raw)
To: cluster-devel.redhat.com
On 09/13/2011 04:48 AM, Kazunori INOUE wrote:
> I want to check permission beforehand by 'status' whether I become
> permission denied in fencing action (off,on,[reboot]).
Merged.
http://fence-virt.git.sourceforge.net/git/gitweb.cgi?p=fence-virt/fence-virt;a=commit;h=b51aab4de90ffde2461367ccb0726a7dc0dd6e14
-- Lon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-19 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-13 8:48 [Cluster-devel] [fence-virt PATCH] add map_check on 'status' action Kazunori INOUE
2011-09-19 20:24 ` Lon Hohberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).