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

Bug 1343155

Summary: ovirt-engine fails to start with python-daemon-2.1.0 installed
Product: [oVirt] ovirt-engine Reporter: Yevgeny Zaspitsky <yzaspits>
Component: Packaging.rpmAssignee: Yevgeny Zaspitsky <yzaspits>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kubica <pkubica>
Severity: high Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, danken, dfediuck, rgolan, sbonazzo, ylavi, yzaspits
Target Milestone: ovirt-4.0.2Keywords: ZStream
Target Release: 4.0.2Flags: rule-engine: ovirt-4.0.z+
ylavi: Triaged+
ylavi: planning_ack+
dfediuck: devel_ack+
pnovotny: testing_ack+
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-12 14:21:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1343041    
Bug Blocks:    

Description Yevgeny Zaspitsky 2016-06-06 16:01:31 UTC
Description of problem:
ovirt-engine fails to start with the following error:
PermissionError: [Errno 1] Operation not permitted

The problem caused by the new python-daemon version (2.1.0) that adds 'initgroups' parameter with default value True. That causes subsequent attempt of changing the process GID (if the parameter is omitted), which fails on insufficient privileges.

Version-Release number of selected component (if applicable):
ovirt-engine (any)
python-daemon-2.1.0


How reproducible:
100%

Steps to Reproduce:
1. Try to start ovirt-engine with python-daemon-2.1.0 installed
2.
3.

Actual results:
Fails with "PermissionError: [Errno 1] Operation not permitted"

Expected results:
Runs smoothly.

Additional info:
Currently the bug appears on fc24 as it ships python-daemon-2.1.0.
python-daemon-2.1.1 resolves the problem, but currently is available through pip or in fc25/rawhide only.
The bug [1] has been opened on fc24 asking to provide the new version.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1343041

Comment 1 Yaniv Kaul 2016-06-06 19:51:48 UTC
If it's a bug on python-daemon, I assume we should:
1. Block this BZ on that bug.
2. Change the title to 'consume fix for bug 1343041' ...

Comment 2 Yevgeny Zaspitsky 2016-06-06 22:29:46 UTC
Yaniv,

1. This bug is dependent on Fedora one already.
2. Once Fedora provides the new rpm, consuming that isn't a big problem, but what do we do until then? Should we change our code to be able to use any python-daemon version (see http://gerrit.ovirt.org/58635)?

Comment 3 Sandro Bonazzola 2016-07-12 10:09:54 UTC
Moving back to post since this bug is targeted to 4.0.1 but referenced patch is not included in 4.0.1 branch.
Please check this bug status and eventually re-target to 4.0.2.

Comment 4 Yevgeny Zaspitsky 2016-07-12 11:15:38 UTC
The patch was cherry-picked to ovirt-engine-4.0 branch. Please review/merge.

Comment 5 Petr Kubica 2016-07-27 10:35:48 UTC
Verified
ovirt-engine-lib-4.1.0-0.0.master.20160724001827.gite5294ab.fc24.noarch conflicts with python-daemon = 2.1.0 provided by python-daemon-2.1.0-2.fc24.noarch

engine was sucessfully installed with python-daemon-2.1.1-1.fc24.noarch (from @System repository)