[ovirt-users] Re: interface up when not used

2018-07-25 Thread Fabrice Bacchella


> Le 25 juil. 2018 à 13:42, Edward Haas  a écrit :
> 
> 
> 
> On Tue, Jul 24, 2018 at 1:08 PM, Fabrice Bacchella 
> mailto:fabrice.bacche...@orange.fr>> wrote:
> 
> 
>> Le 24 juil. 2018 à 11:50, Dominik Holler > > a écrit :
>> 
>> On Tue, 24 Jul 2018 11:04:58 +0200
>> Fabrice Bacchella > > wrote:
>> 
>>> To monitoring the network interfaces, I have a script that check if
>>> ifAdminStatus and ifOperStatus values matches in snmp.
>>> 
>>> But with oVirt it fails on a server with 4 physical interfaces, but
>>> only two connected, and return an error:
>>> 
>> 
>> You want that eth0 and eth1 are UP, and eth2 and eth3 are DOWN?
> 
> Yes.
> 
>> 
>>> snmptable XXX IF-MIB::ifTable | less
>>> SNMP table: IF-MIB::ifTable
>>> 
>>> ifIndex ifDescr ifAdminStatus ifOperStatus
>>>   1  loup   up
>>>   2eth0up   up
>>>   3eth1up   up
>>>   4eth2up down
>>>   5eth3up down
>>>  24 ;vdsmdummy;  down down
>>>  25   vnet0up   up
>>> 
>>> 
>>> And indeed on the server:
>>> 
>>> ip link show eth2
>>> 4: eth2:  mtu 1500 qdisc mq state
>>> DOWN mode DEFAULT group default qlen 1000 link/ether
>>> 40:a8:f0:30:81:1a brd ff:ff:ff:ff:ff:ff
>>> 
>> 
>> looks like eth2 is DOWN, as expected.
> 
> It's in state DOWN, but marked UP anyway.
> 
> A really DOWN interface is shown as (on another server, not an ovirt host):
> 
> 4: eth2:  mtu 1500 qdisc noop state DOWN mode DEFAULT 
> group default qlen 1000
> link/ether a0:d3:c1:fa:8c:8a brd ff:ff:ff:ff:ff:ff
> 
> 
>> 
>> eth2 seems to be in state DOWN, which seems to be reflected in
>> ifOperStatus.
> 
> Yes it match. The state is reflected in the ifOperStatus. The ifAdminStatus 
> match the UP in the <...>
> 
>> 
>> Is the issue that ifAdminStatus is up for eth2 and eth3, but you want
>> it to be down?
> 
> That's it. I never ask it to be in such state.
> 
> 
> If eth2 and eth3 are not defined under oVirt control, I see no reason for the 
> system to touch it.
> Perhaps, you machine has these interfaces under NetworkManager control (you 
> can do "nmcli device" to check it),
> in that case, NM will keep the admin state up and monitor it.
> If you want it down, mark the interfaces as unmanaged (by NM) and perform an 
> ifdown on them.
> 
> Let us know if it helped.
>  

I added:

diff --git a/NetworkManager/NetworkManager.conf 
b/NetworkManager/NetworkManager.conf
index 1979ea6..420aba5 100644
--- a/NetworkManager/NetworkManager.conf
+++ b/NetworkManager/NetworkManager.conf
@@ -48,3 +48,5 @@
 #
 #level=TRACE
 #domains=ALL
+[keyfile]
+unmanaged-devices=eth2;eth3


And indeed it solves my problem with no unwanted side effects.___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/47HN5WUYQ2NKNM4NHO224AKA64GPRBE5/


[ovirt-users] Re: interface up when not used

2018-07-25 Thread Fabrice Bacchella


> Le 25 juil. 2018 à 13:42, Edward Haas  a écrit :
> 
> 
> 
> On Tue, Jul 24, 2018 at 1:08 PM, Fabrice Bacchella 
>  wrote:
> 
> 
>> Le 24 juil. 2018 à 11:50, Dominik Holler  a écrit :
>> 
>> On Tue, 24 Jul 2018 11:04:58 +0200
>> Fabrice Bacchella  wrote:
>> 
>>> To monitoring the network interfaces, I have a script that check if
>>> ifAdminStatus and ifOperStatus values matches in snmp.
>>> 
>>> But with oVirt it fails on a server with 4 physical interfaces, but
>>> only two connected, and return an error:
>>> 
>> 
>> You want that eth0 and eth1 are UP, and eth2 and eth3 are DOWN?
> 
> Yes.
> 
>> 
>>> snmptable XXX IF-MIB::ifTable | less
>>> SNMP table: IF-MIB::ifTable
>>> 
>>> ifIndex ifDescr ifAdminStatus ifOperStatus
>>>   1  loup   up
>>>   2eth0up   up
>>>   3eth1up   up
>>>   4eth2up down
>>>   5eth3up down
>>>  24 ;vdsmdummy;  down down
>>>  25   vnet0up   up
>>> 
>>> 
>>> And indeed on the server:
>>> 
>>> ip link show eth2
>>> 4: eth2:  mtu 1500 qdisc mq state
>>> DOWN mode DEFAULT group default qlen 1000 link/ether
>>> 40:a8:f0:30:81:1a brd ff:ff:ff:ff:ff:ff
>>> 
>> 
>> looks like eth2 is DOWN, as expected.
> 
> It's in state DOWN, but marked UP anyway.
> 
> A really DOWN interface is shown as (on another server, not an ovirt host):
> 
> 4: eth2:  mtu 1500 qdisc noop state DOWN mode DEFAULT 
> group default qlen 1000
> link/ether a0:d3:c1:fa:8c:8a brd ff:ff:ff:ff:ff:ff
> 
> 
>> 
>> eth2 seems to be in state DOWN, which seems to be reflected in
>> ifOperStatus.
> 
> Yes it match. The state is reflected in the ifOperStatus. The ifAdminStatus 
> match the UP in the <...>
> 
>> 
>> Is the issue that ifAdminStatus is up for eth2 and eth3, but you want
>> it to be down?
> 
> That's it. I never ask it to be in such state.
> 
> 
> If eth2 and eth3 are not defined under oVirt control, I see no reason for the 
> system to touch it.
> Perhaps, you machine has these interfaces under NetworkManager control (you 
> can do "nmcli device" to check it),
> in that case, NM will keep the admin state up and monitor it.
> If you want it down, mark the interfaces as unmanaged (by NM) and perform an 
> ifdown on them.
> 
> Let us know if it helped.
>  

nmcli indeed shows:
DEVICE   TYPE  STATE CONNECTION 
eth2 ethernet  disconnected  -- 
eth3 ethernet  disconnected  -- 
vnet0tun   disconnected  -- 
bond0bond  unmanaged -- 
eth0 ethernet  unmanaged -- 
eth1 ethernet  unmanaged -- 

I wonder why it wants to manage vnet0 too.

That's exactly for think kind of things that I usually uninstall any 
NetworkManager components on my servers. But oVirt wants it, it should them 
managed them:

yum erase NetworkManager
...
Removing for dependencies:
 cockpit-networkmanagernoarch   
  169-1.el7.centos   @extras
149 k
 cockpit-ovirt-dashboard   noarch   
  0.11.28-1.el7  @ovirt-4.2 
 15 M
 ovirt-hostx86_64   
  4.2.3-1.el7@ovirt-4.2 
 11 k
 ovirt-hosted-engine-setup noarch   
  2.2.22.1-1.el7 @ovirt-4.2 
2.2 M



___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/EOHEDY6ANEMZRJWY7WOURBJDGGFJ7TAV/


[ovirt-users] Re: interface up when not used

2018-07-25 Thread Edward Haas
On Tue, Jul 24, 2018 at 1:08 PM, Fabrice Bacchella <
fabrice.bacche...@orange.fr> wrote:

>
>
> Le 24 juil. 2018 à 11:50, Dominik Holler  a écrit :
>
> On Tue, 24 Jul 2018 11:04:58 +0200
> Fabrice Bacchella  wrote:
>
> To monitoring the network interfaces, I have a script that check if
> ifAdminStatus and ifOperStatus values matches in snmp.
>
> But with oVirt it fails on a server with 4 physical interfaces, but
> only two connected, and return an error:
>
>
> You want that eth0 and eth1 are UP, and eth2 and eth3 are DOWN?
>
>
> Yes.
>
>
> snmptable XXX IF-MIB::ifTable | less
> SNMP table: IF-MIB::ifTable
>
> ifIndex ifDescr ifAdminStatus ifOperStatus
>   1  loup   up
>   2eth0up   up
>   3eth1up   up
>   4eth2up down
>   5eth3up down
>  24 ;vdsmdummy;  down down
>  25   vnet0up   up
>
>
> And indeed on the server:
>
> ip link show eth2
> 4: eth2:  mtu 1500 qdisc mq state
> DOWN mode DEFAULT group default qlen 1000 link/ether
> 40:a8:f0:30:81:1a brd ff:ff:ff:ff:ff:ff
>
>
> looks like eth2 is DOWN, as expected.
>
>
> It's in state DOWN, but marked UP anyway.
>
> A really DOWN interface is shown as (on another server, not an ovirt host):
>
> 4: eth2:  mtu 1500 qdisc noop state DOWN mode DEFAULT
> group default qlen 1000
> link/ether a0:d3:c1:fa:8c:8a brd ff:ff:ff:ff:ff:ff
>
>
>
> eth2 seems to be in state DOWN, which seems to be reflected in
> ifOperStatus.
>
>
> Yes it match. The state is reflected in the ifOperStatus. The
> ifAdminStatus match the UP in the <...>
>
>
> Is the issue that ifAdminStatus is up for eth2 and eth3, but you want
> it to be down?
>
>
> That's it. I never ask it to be in such state.
>
>
If eth2 and eth3 are not defined under oVirt control, I see no reason for
the system to touch it.
Perhaps, you machine has these interfaces under NetworkManager control (you
can do "nmcli device" to check it),
in that case, NM will keep the admin state up and monitor it.
If you want it down, mark the interfaces as unmanaged (by NM) and perform
an ifdown on them.

Let us know if it helped.


>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
> guidelines/
> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/
> message/345OZ3DDR36GUJUU4LBIERUOFQ5PTJPX/
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/UZFXSS4EP3TSV2CAAFTV26UAX6SHGXRT/


[ovirt-users] Re: interface up when not used

2018-07-24 Thread Fabrice Bacchella


> Le 24 juil. 2018 à 11:50, Dominik Holler  a écrit :
> 
> On Tue, 24 Jul 2018 11:04:58 +0200
> Fabrice Bacchella  > wrote:
> 
>> To monitoring the network interfaces, I have a script that check if
>> ifAdminStatus and ifOperStatus values matches in snmp.
>> 
>> But with oVirt it fails on a server with 4 physical interfaces, but
>> only two connected, and return an error:
>> 
> 
> You want that eth0 and eth1 are UP, and eth2 and eth3 are DOWN?

Yes.

> 
>> snmptable XXX IF-MIB::ifTable | less
>> SNMP table: IF-MIB::ifTable
>> 
>> ifIndex ifDescr ifAdminStatus ifOperStatus
>>   1  loup   up
>>   2eth0up   up
>>   3eth1up   up
>>   4eth2up down
>>   5eth3up down
>>  24 ;vdsmdummy;  down down
>>  25   vnet0up   up
>> 
>> 
>> And indeed on the server:
>> 
>> ip link show eth2
>> 4: eth2:  mtu 1500 qdisc mq state
>> DOWN mode DEFAULT group default qlen 1000 link/ether
>> 40:a8:f0:30:81:1a brd ff:ff:ff:ff:ff:ff
>> 
> 
> looks like eth2 is DOWN, as expected.

It's in state DOWN, but marked UP anyway.

A really DOWN interface is shown as (on another server, not an ovirt host):

4: eth2:  mtu 1500 qdisc noop state DOWN mode DEFAULT 
group default qlen 1000
link/ether a0:d3:c1:fa:8c:8a brd ff:ff:ff:ff:ff:ff


> 
> eth2 seems to be in state DOWN, which seems to be reflected in
> ifOperStatus.

Yes it match. The state is reflected in the ifOperStatus. The ifAdminStatus 
match the UP in the <...>

> 
> Is the issue that ifAdminStatus is up for eth2 and eth3, but you want
> it to be down?

That's it. I never ask it to be in such state.

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/345OZ3DDR36GUJUU4LBIERUOFQ5PTJPX/


[ovirt-users] Re: interface up when not used

2018-07-24 Thread Dominik Holler
On Tue, 24 Jul 2018 11:04:58 +0200
Fabrice Bacchella  wrote:

> To monitoring the network interfaces, I have a script that check if
> ifAdminStatus and ifOperStatus values matches in snmp.
> 
> But with oVirt it fails on a server with 4 physical interfaces, but
> only two connected, and return an error:
> 

You want that eth0 and eth1 are UP, and eth2 and eth3 are DOWN?

> snmptable XXX IF-MIB::ifTable | less
> SNMP table: IF-MIB::ifTable
> 
>  ifIndex ifDescr ifAdminStatus ifOperStatus
>1  loup   up
>2eth0up   up
>3eth1up   up
>4eth2up down
>5eth3up down
>   24 ;vdsmdummy;  down down
>   25   vnet0up   up
> 
> 
> And indeed on the server:
> 
> ip link show eth2
> 4: eth2:  mtu 1500 qdisc mq state
> DOWN mode DEFAULT group default qlen 1000 link/ether
> 40:a8:f0:30:81:1a brd ff:ff:ff:ff:ff:ff
> 

looks like eth2 is DOWN, as expected.

> 
> It's up, but I don't configured it on oVirt, removed ifcg-eth2. Is
> there a way to disable it ?


eth2 seems to be in state DOWN, which seems to be reflected in
ifOperStatus.

Is the issue that ifAdminStatus is up for eth2 and eth3, but you want
it to be down?
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/6UT2T3IFNWUFMOWHKK6LZRQOZHJ5HOXI/