Bug 480805

Summary: libvirt default network not enabled at install time (chkconfig regression)
Product: [Fedora] Fedora Reporter: Mark McLoughlin <markmc>
Component: chkconfigAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: berrange, clalance, crobinso, notting, rvokal, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-20 18:45:09 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:
Bug Depends On:    
Bug Blocks: 476773    

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