Bug 480805 - libvirt default network not enabled at install time (chkconfig regression)
Summary: libvirt default network not enabled at install time (chkconfig regression)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: chkconfig
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F11Alpha, F11AlphaBlocker
TreeView+ depends on / blocked
 
Reported: 2009-01-20 17:13 UTC by Mark McLoughlin
Modified: 2014-03-17 03:17 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-01-20 18:45:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark McLoughlin 2009-01-20 17:13:22 UTC
libvirt.spec has:

  # We want to install the default network for initial RPM installs
  # or on the first upgrade from a non-network aware libvirt only.
  # We check this by looking to see if the daemon is already installed
  /sbin/chkconfig --list libvirtd 1>/dev/null 2>&1
  if [ $? != 0 ]
  then
    UUID=`/usr/bin/uuidgen`
    sed -e "s,</name>,</name>\n  <uuid>$UUID</uuid>," \
         < /usr/share/libvirt/networks/default.xml \
         > /etc/libvirt/qemu/networks/default.xml
    ln -s ../default.xml /etc/libvirt/qemu/networks/autostart/default.xml
  fi
  /sbin/chkconfig --add libvirtd


This worked on F-10 and before because chkconfig would return non-zero if this is the first time libvirt is installed because 'chkconfig --add libvirtd' has not been run yet

i.e. before --add, F-10 chkconfig gives:

  $> chkconfig --list libvirtd
  service libvirtd supports chkconfig, but is not referenced in any runlevel (run 'chkconfig --add libvirtd')
  $> echo $?
  1

however, on F-11 chkconfig gives:

  $> chkconfig --list libvirtd
  libvirtd       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
  $> echo $?
  0

Upshot is - if you install current rawhide, there is no libvirt default network and no external network connectivity for guests by default.

Comment 1 Mark McLoughlin 2009-01-20 17:15:15 UTC
Moving to chkconfig.

notting: chkconfig behaviour change in F11 causing serious regression for libvirt


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