Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404525 - app-emulation/libvirt-0.9.10 - syntax error in init.d script
Summary: app-emulation/libvirt-0.9.10 - syntax error in init.d script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-02-19 14:48 UTC by Sipingal Liu
Modified: 2012-02-20 15:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.