Discussion:
[drbd-mc] Parametr "nic" ignoreg?
Eugene B Dmitriev
2010-11-02 07:10:14 UTC
Permalink
Hello!
Recently i began to use drbd-mc for configuring heartbeat(crm) cluster.
When i create IPaddr2 resource parameter "Network interface" = "eth0" is
ignored.

look at this command, when parameter "Network interface" is eth0 (NOT
NULL!!) and press "Apply":

[root at v1:~#] /usr/sbin/cibadmin --obj_type resources -R -X '<primitive
id="res_IPaddr2_v1_2" class="ocf" provider="heartbeat" type="IPaddr2"
<instance_attributes id="res_IPaddr2_v1_2-instance_attributes"><nvpair
id="nvpair-res_IPaddr2_v1_2-ip" name="ip" value="10.80.2.1"/><nvpair
id="nvpair-res_IPaddr2_v1_2-cidr_netmask" name="cidr_netmask"
value="24"/></instance_attributes><operations
id="res_IPaddr2_v1_2-operations"><op interval="0"
id="op-res_IPaddr2_v1_2-start" name="start" timeout="20"/><op
interval="0" id="op-res_IPaddr2_v1_2-stop" name="stop" timeout="20"/><op
id="op-res_IPaddr2_v1_2-monitor" name="monitor" interval="10"
timeout="20" start-delay="0"/></operations><meta_attributes
id="res_IPaddr2_v1_2-meta_attributes"><nvpair
id="res_IPaddr2_v1_2-meta_attributes-target-role" name="target-role"
value="stopped"/></meta_attributes></primitive>'

and this command, when parameter "Network interface" is not "eth0" (=eth1):

[root at v1:~#] /usr/sbin/cibadmin --obj_type resources -R -X '<primitive
id="res_IPaddr2_v1_2" class="ocf" provider="heartbeat" type="IPaddr2"
<instance_attributes id="res_IPaddr2_v1_2-instance_attributes"><nvpair
id="nvpair-res_IPaddr2_v1_2-ip" name="ip" value="10.80.2.1"/><nvpair
id="nvpair-res_IPaddr2_v1_2-nic" name="nic" value="eth1"/><nvpair
id="nvpair-res_IPaddr2_v1_2-cidr_netmask" name="cidr_netmask"
value="24"/></instance_attributes><operations
id="res_IPaddr2_v1_2-operations"><op interval="0"
id="op-res_IPaddr2_v1_2-start" name="start" timeout="20"/><op
interval="0" id="op-res_IPaddr2_v1_2-stop" name="stop" timeout="20"/><op
id="op-res_IPaddr2_v1_2-monitor" name="monitor" interval="10"
timeout="20" start-delay="0"/></operations><meta_attributes
id="res_IPaddr2_v1_2-meta_attributes"><nvpair
id="res_IPaddr2_v1_2-meta_attributes-target-role" name="target-role"
value="stopped"/></meta_attributes></primitive>'

it's bug or feature?

--
Kind regards, Eugene B Dmitriev
Skype: dmitrieve
ICQ: 256999110

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-mc/attachments/20101102/04faa3f4/attachment.htm>
Rasto Levrinc
2010-11-02 08:56:59 UTC
Permalink
Post by Eugene B Dmitriev
Hello!
Recently i began to use drbd-mc for configuring heartbeat(crm) cluster.
When i create IPaddr2 resource parameter "Network interface" = "eth0" is
ignored.
look at this command, when parameter "Network interface" is eth0 (NOT
<snip>
Post by Eugene B Dmitriev
it's bug or feature?
It's a feature that turned out to be a bug. It is because how the default
values are handled, that is different in every resource agent or even
within the resource agent. In this case it is a bug and I will fix this as
soon as possible.

Thanks for reporting it,

Rasto
--
: Dipl-Ing Rastislav Levrinc
: DRBD MC http://oss.linbit.com/drbd-mc/
: DRBD MC http://www.drbd.org/mc/management-console/
: DRBD/HA support and consulting http://www.linbit.com/
DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.
Loading...