Bug 690266
| Summary: | libvirtd not started, causes image-factory exception (no building) | ||
|---|---|---|---|
| Product: | [Retired] CloudForms Cloud Engine | Reporter: | Dave Johnson <dajohnso> |
| Component: | imagefactory | Assignee: | Mo Morsi <mmorsi> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dave Johnson <dajohnso> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.3.1 | CC: | deltacloud-maint, ssachdev, whayutin |
| Target Milestone: | beta | Keywords: | 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 | ||
Looks like aeolus-configure needs to ensure that libvirtd is started before kicking off imagefactory. Patch pushed http://git.fedorahosted.org/git/?p=aeolus/configure.git;a=commitdiff;h=61802b1fe69779654b35cbecc34758a1cf01d6c0 aeolus-configure starts libvirtd service. release pending... release pending... closing out old bugs perm close |
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