Bug 690022 - libvirt say radvd not installed but radvd is already installed when start network supporting ipv6
Summary: libvirt say radvd not installed but radvd is already installed when start net...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Eric Blake
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-23 03:34 UTC by xhu
Modified: 2011-05-19 13:29 UTC (History)
6 users (show)

Fixed In Version: libvirt-0.8.7-15.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:29:28 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0596 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2011-05-18 17:56:36 UTC

Description xhu 2011-03-23 03:34:48 UTC
Description of problem:
libvirt say radvd not installed but radvd is installed already

Version-Release number of selected component (if applicable):
libvirt-0.8.7-14.el6.x86_64
qemu-kvm-0.12.1.2-2.152.el6.x86_64
kernel-2.6.32-120.el6.x86_64
radvd-1.6-1.el6.x86_64

How reproducible:
Everytimes

Steps to Reproduce:
1. install radvd
# yum install radvd
...
Installed:
  radvd.x86_64 0:1.6-1.el6

# rpm -qa radvd
radvd-1.6-1.el6.x86_64

2. define a network supporting ipv6
# virsh net-define ipv6net.xml
Network ipv6net defined from ipv6net.xml

# cat ipv6net.xml
<network>
  <name>ipv6net</name>
  <forward mode='nat'/>
  <bridge name='virbr1' stp='on' delay='0' />
  <ip address='192.168.100.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.100.2' end='192.168.100.254' />
    </dhcp>
  </ip>
  <ip family='ipv6' address='2002:db8:ac10:fe01::1' prefix='64'>
  </ip>
</network>

3. start the network
# virsh net-start ipv6net
error: Failed to start network ipv6net
error: Cannot find radvd - Possibly the package isn't installed: No such file or directory
  
Actual results:
After step 3, libvirt prompt error.

Expected results:
After step 3, the network should be started successfully.

Additional info:

Comment 2 Eric Blake 2011-03-23 14:35:05 UTC
radvd is only built into libvirt if it is found during configure time; however, I don't see any BuildRequires on radvd in the specfile.  Perhaps that's the issue; I'm pursuing that idea right now...

Comment 3 Eric Blake 2011-03-23 14:59:32 UTC
Upstream patch proposal:
https://www.redhat.com/archives/libvir-list/2011-March/msg01081.html

Comment 6 weizhang 2011-03-30 04:49:21 UTC
verify PASS on 
libvirt-0.8.7-15.el6.x86_64
qemu-kvm-0.12.1.2-2.153.el6.x86_64
kernel-2.6.32-125.el6.x86_64

# cat ipv6net.xml
<network>
  <name>ipv6net</name>
  <forward mode='nat'/>
  <bridge name='virbr1' stp='on' delay='0' />
  <ip address='192.168.100.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.100.2' end='192.168.100.254' />
    </dhcp>
  </ip>
  <ip family='ipv6' address='2002:db8:ac10:fe01::1' prefix='64'>
  </ip>
</network>

#virsh net-define ipv6net.xml
Network ipv6net defined from ipv6net.xml

# virsh net-start ipv6net
Network ipv6net started

# virsh net-list --all
Name                 State      Autostart
-----------------------------------------
default              active     yes       
ipv6net              active     no  

# ifconfig
...
virbr1    Link encap:Ethernet  HWaddr 52:54:00:DE:40:65  
          inet addr:192.168.100.1  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::5054:ff:fede:4065/64 Scope:Link
          inet6 addr: 2002:db8:ac10:fe01::1/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:5181 (5.0 KiB)

define a guest with 
...
    <interface type='network'>
      <mac address='52:54:00:74:5c:3e'/>
      <source network='ipv6net'/>
      <model type='rtl8139'/>
    </interface>
...

on host do
# ifconfig eth0 inet6 add 2001:db8:ac10:fe01::2/64

start the guest and login to guest do
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 52:54:00:74:5C:3E  
          inet addr:192.168.100.104  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: 2002:db8:ac10:fe01:5054:ff:fe74:5c3e/64 Scope:Global
          inet6 addr: fe80::5054:ff:fe74:5c3e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:125 errors:0 dropped:0 overruns:0 frame:0
          TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11219 (10.9 KiB)  TX bytes:13469 (13.1 KiB)
          Interrupt:11 Base address:0x6000 

# ping6 2001:db8:ac10:fe01::2
PING 2001:db8:ac10:fe01::2(2001:db8:ac10:fe01::2) 56 data bytes
64 bytes from 2001:db8:ac10:fe01::2: icmp_seq=1 ttl=64 time=1.13 ms
64 bytes from 2001:db8:ac10:fe01::2: icmp_seq=2 ttl=64 time=0.193 ms
...

Comment 9 errata-xmlrpc 2011-05-19 13:29:28 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0596.html


Note You need to log in before you can comment on or make changes to this bug.