Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 690022

Summary: libvirt say radvd not installed but radvd is already installed when start network supporting ipv6
Product: Red Hat Enterprise Linux 6 Reporter: xhu
Component: libvirtAssignee: Eric Blake <eblake>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: ajia, dyuan, eblake, jdenemar, llim, weizhan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-0.8.7-15.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:29:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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