Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 404525

Summary: app-emulation/libvirt-0.9.10 - syntax error in init.d script
Product: Gentoo Linux Reporter: Sipingal Liu <sipingal>
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED FIXED    
Severity: normal CC: sipingal, virtualization
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sipingal Liu 2012-02-19 14:48:43 UTC
When stop the libvirtd sevice, it can't destroy the networks. The line 105:
    libvirtd_virsh net-destroy ${net_name} > /dev/null
should be:
    libvirtd_virsh qemu net-destroy ${net_name} > /dev/null

Reproducible: Always

Steps to Reproduce:
1. has a NATed network
2. stop the libvirtd service
Comment 1 Sipingal Liu 2012-02-19 14:58:57 UTC
Steps to Reproduce in details:
1. # cat default.xml
<network>
  <name>default</name>
  <uuid>0fc88826-722e-4fda-82ee-b8a3c76d2fca</uuid>
  <forward mode='nat'/>
  <bridge name='virbr0' stp='on' delay='0' />
  <mac address='52:54:00:28:D2:66'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254' />
    </dhcp>
  </ip>
</network>

2. # virsh net-define default.xml

3. # /etc/init.d/libvirtd stop
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2012-02-20 15:34:31 UTC
Thanks. Fixed in tree.