RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1052948 - Could not start Service[libvirt]: Execution of '/etc/init.d/libvirtd start' returned 1
Summary: Could not start Service[libvirt]: Execution of '/etc/init.d/libvirtd start' r...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-packstack
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Ivan Chavero
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-14 13:39 UTC by Felipe Alfaro Solana
Modified: 2016-04-18 06:47 UTC (History)
4 users (show)

Fixed In Version: openstack-packstack-2013.2.1-0.36.dev1013.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-30 23:07:27 UTC
Embargoed:


Attachments (Terms of Use)

Description Felipe Alfaro Solana 2014-01-14 13:39:47 UTC
Description of problem:
When running on RHEL 6.4 (Santiago), packstack --allinone might fail because puppet scripts invoke "/etc/init.d/libvirtd start" instead of "service libvirtd start". Apparently, libvirtd is very sensitive to environment variables.

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

How reproducible:
Always

Steps to Reproduce:
1. packstack --allinone
2. fails with the following error: SequenceError: Error during puppet run : Error: Could not start Service[libvirt]: Execution of '/etc/init.d/libvirtd start' returned 1

Problem is that libvirtd fails to start with a non-empty environment:

# libvirtd
libvirtd: initialization failed

No messages are logged anywhere.

However,

# env -i TERM=$TERM PATH=$PATH libvirtd

works as expected.

Actually, the "service" shell script wrapper invokes the service by running it with an empty environment (just like shown above).

Actual results:
packstack --allinone fails

Expected results:
packstack --allinone should complete. Starting libvirtd by hand by using "service libvirtd start", then re-running packstack with the generated answer file works as a workaround.

Additional info:

Comment 1 Ivan Chavero 2014-04-14 22:50:01 UTC
This problem does not appear in the curren packstack version.
openstack-packstack-2013.2.1-0.36.dev1013.el6
openstack-packstack-2013.2.1-0.36.dev1013.fc20


Note You need to log in before you can comment on or make changes to this bug.