[sles-beta] Problem with facter, when using LXC containers : veth2: error fetching interface information: Device not found

urs.frey at post.ch urs.frey at post.ch
Thu Mar 14 08:54:41 MDT 2013


Dear all
During tests with SLES11-SP3 Beta2 x86_64 I decided by the way to have a closer look at LXC container feature delivered with SLES11.
Lightweight virtualization seems to be a very good way when hosting some small applications on a platform.

As we do system configuration using puppet & facter with it , I noticed the following error message when invoking facter delivered with SLES11-SP3:
vethuU2: error fetching interface information: Device not found
veth2: error fetching interface information: Device not found
vethuU2: error fetching interface information: Device not found
vethuU2: error fetching interface information: Device not found
veth2: error fetching interface information: Device not found
veth2: error fetching interface information: Device not found
architecture => x86_64

So obviously there is something missing in facter, as I do not see similar messages when running XEN or virtualizing with KVM
On XEN facter recognizes vif devices : interfaces => bond0,br0,br1,eth0,eth1,tap4.0,tap5.0,tap9.0,tap14.0,vif1.0,vif2.0,vif3.0,vif4.0,vif5.0,vif6.0,vif6.1,vif7.0,vif8.0,vif9.0,vif11.0,vif12.0,vlan1143

On KVM facter recognizes vnet devices: interfaces => br0,eth0,eth1,vnet0,vnet1,vnet2,vnet3

I assume that there is something missing in facter to handle LCX virtualization the correct way

What is your opinion?
Thanks for feedback

h04szd:~ # uname -a
Linux h04szd 3.0.65-0.9-default #1 SMP Mon Feb 25 07:21:23 UTC 2013 (055263a) x86_64 x86_64 x86_64 GNU/Linux
h04szd:~ # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 3
h04szd:~ # /etc/init.d/lxc list
Listing LXC containers...
c04szo RUNNING
c04szp RUNNING
h04szd:~ # netstat -i
Kernel Interface table
Iface   MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
bond0       1500   0    84723      0  13682      0    25951      0      0      0 BMmRU
br0         1500   0    54913      0      0      0     7196      0      0      0 BMRU
eth0        1500   0    71041      0      0      0    25951      0      0      0 BMsRU
eth1        1500   0    13682      0  13682      0        0      0      0      0 BMsRU
eth2        1500   0        0      0      0      0        0      0      0      0 BMU
eth4        1500   0        0      0      0      0        0      0      0      0 BMRU
lo         16436   0    16308      0      0      0    16308      0      0      0 LRU
veth2IbtvO  1500   0     6745      0      0      0    53987      0      0      0 BMRU
vethuU2VTT  1500   0     6835      0      0      0    53470      0      0      0 BMRU
h04szd:~ # facter
vethuU2: error fetching interface information: Device not found
veth2: error fetching interface information: Device not found
vethuU2: error fetching interface information: Device not found
vethuU2: error fetching interface information: Device not found
veth2: error fetching interface information: Device not found
veth2: error fetching interface information: Device not found
architecture => x86_64
domain => pnet.ch
facterversion => 1.5.2
fqdn => h04szd.pnet.ch
hardwaremodel => x86_64
hostname => h04szd
interfaces => bond0,br0,eth0,eth1,eth2,eth3,eth4,eth5,veth2,vethuU2
ipaddress => 138.191.39.23
ipaddress_br0 => 138.191.39.23
ipaddress_eth2 => 172.25.96.51
ipaddress_eth4 => 10.226.128.16
kernel => Linux
kernelrelease => 3.0.65-0.9-default
kernelversion => 3.0.65
macaddress_bond0 => 00:21:5A:C9:2A:0E
macaddress_br0 => 00:21:5A:C9:2A:0E
macaddress_eth0 => 00:21:5A:C9:2A:0E
macaddress_eth1 => 00:21:5A:C9:2A:0E
macaddress_eth2 => 00:26:55:D4:55:58
macaddress_eth3 => 00:26:55:D4:55:59
macaddress_eth4 => 00:1B:78:58:A6:E2
macaddress_eth5 => 00:1B:78:58:A6:E3
manufacturer => HP

best regards

Urs Frey
Die Schweizerische Post
Services
Informationstechnologie
Webergutstrasse 12
3030 Bern (Zollikofen)
Telefon : ++41 (0)58 338 58 70
FAX     : ++41 (0)58 667 30 07
E-Mail:   urs.frey at post.ch<mailto:urs.frey at post.ch>




More information about the sles-beta mailing list