Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 893669

Summary: Libvirt not installed / kernel modules not loaded
Product: Red Hat OpenStack Reporter: Dan Radez <dradez>
Component: openstack-packstackAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact: Nir Magnezi <nmagnezi>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aortega, apevec, derekh, fpercoco, mmagr, ykaul
Target Milestone: ---Keywords: Triaged
Target Release: 2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-2012.2.2-0.7.dev346.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-14 18:24:46 UTC Type: Bug
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: 905516    
Bug Blocks:    

Description Dan Radez 2013-01-09 16:27:52 UTC
Description of problem:
packstack doesn't ensure libvirt is installed.

Version-Release number of selected component (if applicable):


How reproducible:
Everytime

Steps to Reproduce:
1. clone packstack
2. gen an answer file
3. run packstack
  
Actual results:
packstack will complete installation if the virt bridge already exists.
nove compute will not start

Expected results:
nova compute should start properly

Additional info:
If you install and start libvirt it will create virbr0 for you
once libvirt is installed you also need to modprobe kvm and kvm_intel

Comment 2 Flavio Percoco 2013-01-22 17:06:43 UTC
I can't replicate it. 

Could you please share the answer file you used?

Comment 3 Dan Radez 2013-01-22 18:05:20 UTC
You have to do the install on bare metal to hit this bug.
Answer file just installed everything on the same host.

Comment 4 Dan Radez 2013-01-22 22:24:47 UTC
appears that libvirt gets installed but the kernel modules arn't loaded

Comment 5 Derek Higgins 2013-01-23 13:31:38 UTC
I've just been pointed at
/etc/sysconfig/modules/kvm.modules

I think it should be a matter of just running this file, to load the modules after the packstack run.

Comment 6 Flavio Percoco 2013-01-23 14:06:36 UTC
(In reply to comment #5)
> I've just been pointed at
> /etc/sysconfig/modules/kvm.modules
> 
> I think it should be a matter of just running this file, to load the modules
> after the packstack run.

Looks like. We should also make sure that this is done on boo as well.

Comment 7 Derek Higgins 2013-01-23 14:08:19 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > I've just been pointed at
> > /etc/sysconfig/modules/kvm.modules
> > 
> > I think it should be a matter of just running this file, to load the modules
> > after the packstack run.
> 
> Looks like. We should also make sure that this is done on boo as well.
no need, I think thats setup without us needing to interfere.

Comment 8 Alan Pevec 2013-01-25 13:34:46 UTC
(In reply to comment #5)
> /etc/sysconfig/modules/kvm.modules
> 
> I think it should be a matter of just running this file, to load the modules
> after the packstack run.

qemu-kvm RPM should run that in postinstall see bug 836498

Comment 9 Dan Radez 2013-01-25 13:50:02 UTC
so if qemu-kvm RPM should take care of this should this big be marked duplicate of bug 836498?

Comment 10 Flavio Percoco 2013-01-25 14:46:14 UTC
I still think this patch should go in, even though qemu-kvm RPM takes care of loading those modules. The patch will ensure kvm-* modules are loaded.

Comment 11 Derek Higgins 2013-01-25 15:01:31 UTC
If we add the patch it will at least make sure people using the snapshots will have a good experience, we can revert it once the fix is released.

Comment 12 Dan Radez 2013-01-25 15:03:35 UTC
Shouldn't hurt for puppet to double check that the modules are loaded. Maybe not even necessary to revert it?

Comment 13 Flavio Percoco 2013-01-25 15:51:44 UTC
It doesn't hurt at all. That script can be called multiple times, if the modules are already loaded it will exit with code 0.

I would just leave it there, double checking doesn't hurt in this case.

Comment 15 Nir Magnezi 2013-02-14 14:29:57 UTC
Verified NVR: openstack-packstack-2012.2.2-0.8.dev346.el6ost.noarch

1. Removed KVM modules from kernel:

# modprobe -r kvm_intel
# modprobe -r kvm

2. Installed OpenStack via packstack

# packstack --answer-file=ans.txt

3. Verified KVM kernel modules are loaded when packstack finished

# lsmod | grep kvm
kvm_intel              53484  0 
kvm                   316506  1 kvm_intel

Comment 17 errata-xmlrpc 2013-02-14 18:24:46 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0260.html