Bug 858295

Summary: imagefactory needs to be sure libvirtd is running
Product: [Retired] CloudForms Cloud Engine Reporter: Giulio Fidente <gfidente>
Component: imagefactoryAssignee: Ian McLeod <imcleod>
Status: CLOSED EOL QA Contact: Rehana <aeolus-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.1.0CC: athomas, dajohnso, morazi
Target Milestone: 2.0.0Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:03:26 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:

Description Giulio Fidente 2012-09-18 15:26:15 UTC
Description of problem:
the imagefactory service starts but builds fail if libvirtd is stopped

Version-Release number of selected component (if applicable):
imagefactory-1.0.2-1.el6cf

Steps to Reproduce:
1. yum install aeolus-all
2. aeolus-configure -p mock
3. service libvirtd stop
4. service imagefactory restart
5. build some .tpl
  
Actual results:
errors in imagefactory.log
Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory

Expected results:
libvirtd is started when imagefactory starts

Additional info:
related to https://bugzilla.redhat.com/show_bug.cgi?id=839323

Comment 1 Mike Orazi 2012-09-18 18:31:03 UTC
I'd recommend that at most imagefactory gives a descriptive error when it fails because libvirtd isn't running.

Comment 2 Dave Johnson 2013-01-24 18:14:19 UTC
Yeah, this just bit us again...  really like to see this sooner than later... bumping priority.

If you start imagefactory, it should check and start libvirt (if stopped)