[netcf-devel] ncftool 'Failed to initialize netcf' missing a dep?

Dale Bewley dlbewley at lib.ucdavis.edu
Thu Dec 3 02:32:35 UTC 2009


----- "David Lutterkort" <lutter at redhat.com> wrote:
> On Tue, 2009-12-01 at 13:49 -0800, Dale Bewley wrote:
> > Out of the box F12 64bit fairly slim install with 497 packages,
> > NetworkManager is not running. It's been chkconfig'd off in the
> > kickstart %post.
> > 
> > There is an eth0 and an eth1 interface. Eth1 is inactive and eth0
> is
> > configured by anaconda to use dhcp. Netcf 0.1.4 fails run:
> 
> This seems like another manifestation of the bug you found with not
> having the bridge module loaded - the fix for that is only in
> netcf-0.1.5, not in 0.1.4. Can you retry with 0.1.5 ? (It's in
> updates-testing)

Almost, but it's different because the bridge module actually is present.
I neglected to mention that.

I just tested again on a fresh F12 install:

[root at localhost ~]# lsmod |grep bridge
bridge                 54112  0
stp                     2724  1 bridge
llc                     6400  2 bridge,stp

[root at localhost ~]# ncftool
Failed to initialize netcf
error: unspecified error
error: errors in loading some config files

[root at localhost ~]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:22:19:65:F4:E2
          inet addr:10.1.200.134  Bcast:10.1.200.255  Mask:255.255.255.0
          inet6 addr: fe80::222:19ff:fe65:f4e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:259 errors:0 dropped:0 overruns:0 frame:0
          TX packets:153 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:29218 (28.5 KiB)  TX bytes:20886 (20.3 KiB)
          Interrupt:37 Memory:ec000000-ec012800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

virbr0    Link encap:Ethernet  HWaddr F2:B5:3A:82:90:D9
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

# upgrading to netcf 0.1.5 did not help

[root at localhost ~]# yum --enablerepo=updates-testing update netcf
...
Updated:
  netcf.x86_64 0:0.1.5-1.fc12
Dependency Updated:
  netcf-libs.x86_64 0:0.1.5-1.fc12
...
[root at localhost ~]# ncftool
Failed to initialize netcf
error: unspecified error
error: errors in loading some config files
[root at localhost ~]# virsh iface-list
error: Failed to list active interfaces
error: this function is not supported by the hypervisor: virConnectNumOfInterfaces

# creating my own bridge does make it work

[root at localhost ~]# cd /etc/sysconfig/network-scripts
[root at localhost network-scripts]# ls ifcfg*
ifcfg-eth0  ifcfg-eth1  ifcfg-lo
[root at localhost network-scripts]# cat <<EOF > ifcfg-eth0
> DEVICE=eth0
> HWADDR=
> ONBOOT=yes
> BRIDGE=br0
> EOF
[root at localhost network-scripts]# cat <<EOF > ifcfg-br0
> DEVICE=br0
> ONBOOT=yes
> TYPE=Bridge
> BOOTPROTO=dhcp
> EOF
[root at localhost network-scripts]# service network restart
Shutting down interface br0:  [  OK  ]
Shutting down interface eth0:  bridge br0 does not exist!
[  OK  ]
Shutting down loopback interface:  [  OK  ]
Disabling IPv4 packet forwarding:  net.ipv4.ip_forward = 0
[  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  [  OK  ]
Bringing up interface br0:
Determining IP information for br0... done.
[  OK  ]

[root at localhost network-scripts]# ncftool
ncftool> list
br0
lo
ncftool> quit

[root at localhost network-scripts]# virsh iface-list --all
Name                 State      MAC Address
--------------------------------------------
br0                  active     00:22:19:65:f4:e2
lo                   active     00:00:00:00:00:00
eth1                 inactive   00:22:19:65:f4:e4

[root at localhost network-scripts]# ifconfig
br0       Link encap:Ethernet  HWaddr 00:22:19:65:F4:E2  
          inet addr:10.1.200.134  Bcast:10.1.200.255  Mask:255.255.255.0
          inet6 addr: fe80::222:19ff:fe65:f4e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1157 errors:0 dropped:0 overruns:0 frame:0
          TX packets:536 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:93393 (91.2 KiB)  TX bytes:118448 (115.6 KiB)

eth0      Link encap:Ethernet  HWaddr 00:22:19:65:F4:E2  
          inet6 addr: fe80::222:19ff:fe65:f4e2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1147 errors:0 dropped:0 overruns:0 frame:0
          TX packets:525 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:113163 (110.5 KiB)  TX bytes:118536 (115.7 KiB)
          Interrupt:37 Memory:ec000000-ec012800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

virbr0    Link encap:Ethernet  HWaddr F2:B5:3A:82:90:D9  
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

--
Dale Bewley - Unix Administrator - Shields Library - UC Davis
GPG: 0xB098A0F3 0D5A 9AEB 43F4 F84C 7EFD  1753 064D 2583 B098 A0F3


More information about the netcf-devel mailing list