Bug 690266

Summary: libvirtd not started, causes image-factory exception (no building)
Product: [Retired] CloudForms Cloud Engine Reporter: Dave Johnson <dajohnso>
Component: imagefactoryAssignee: Mo Morsi <mmorsi>
Status: CLOSED CURRENTRELEASE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 0.3.1CC: deltacloud-maint, ssachdev, whayutin
Target Milestone: betaKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-31 20:53:05 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: 684278    

Description Dave Johnson 2011-03-23 18:25:53 UTC
Description of problem:
On a fresh install from the three repos and a aeolus-configure (ran twice so aeolus-connector starts) I find that when I build a template, an exception is printed to /var/log/image-factory.log stating that the libvirtd service is not started.  aeolus-configure should do this?

2011-03-23 14:06:51,077 INFO root pid(3567) Message: Launched as daemon...
2011-03-23 14:06:51,225 INFO imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(3567) Message: image_factory has qmf/qpid address: redhat.com:imagefactory:aed492ac-4e3e-406d-a2b5-e9a1266e27a2:image_factory
2011-03-23 14:13:52,170 DEBUG imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(3567) Message: Method called: name = image
 args = {'target': 'ec2', 'template': 'http://localhost:9090/templates/45d42dc6-5579-11e0-af5d-000f1ff91f55'}
 handle = <cqmf2.AgentEvent; proxy of <Swig Object of type 'qmf::AgentEvent *' at 0x1792d80> >
 addr = redhat.com:imagefactory:aed492ac-4e3e-406d-a2b5-e9a1266e27a2:image_factory
 subtypes = {}
 userId = anonymous
2011-03-23 14:13:52,193 ERROR imagefactory.qmfagent.ImageFactoryAgent.ImageFactoryAgent pid(3567) Message: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/imagefactory/qmfagent/ImageFactoryAgent.py", line 92, in method
    result = getattr(target_obj, methodName)(**args)
  File "/usr/lib/python2.7/site-packages/imagefactory/qmfagent/ImageFactory.py", line 86, in image
    build_adaptor = BuildAdaptor.BuildAdaptor(template_object,target)
  File "/usr/lib/python2.7/site-packages/imagefactory/qmfagent/BuildAdaptor.py", line 164, in __init__
    self.builder = builder_class(template, target)
  File "/usr/lib/python2.7/site-packages/imagefactory/builders/FedoraBuilder.py", line 70, in __init__
    self.guest = oz.Fedora.get_class(oz.TDL.TDL(xmlstring=template.xml), self.config, None)
  File "/usr/lib/python2.7/site-packages/oz/Fedora.py", line 87, in get_class
    return FedoraGuest(tdl, config, auto, "virtio", True, "virtio", True)
  File "/usr/lib/python2.7/site-packages/oz/Fedora.py", line 47, in __init__
    None, diskbus, config)
  File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 30, in __init__
    config)
  File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 688, in __init__
    mousetype, diskbus, config)
  File "/usr/lib/python2.7/site-packages/oz/Guest.py", line 140, in __init__
    self.libvirt_conn = libvirt.open(self.libvirt_uri)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 169, in open
    if ret is None:raise libvirtError('virConnectOpen() failed')
libvirtError: unable to connect to '/var/run/libvirt/libvirt-sock', libvirtd may need to be started: No such file or directory

Comment 1 Mike Orazi 2011-03-24 18:17:42 UTC
Looks like aeolus-configure needs to ensure that libvirtd is started before kicking off imagefactory.

Comment 3 Shveta 2011-04-07 10:24:35 UTC
aeolus-configure starts libvirtd service.

Comment 4 wes hayutin 2011-08-01 19:56:44 UTC
release pending...

Comment 5 wes hayutin 2011-08-01 19:58:10 UTC
release pending...

Comment 7 wes hayutin 2011-12-08 13:55:23 UTC
closing out old bugs

Comment 8 wes hayutin 2011-12-08 14:08:50 UTC
perm close