Bug 1343155 - ovirt-engine fails to start with python-daemon-2.1.0 installed
Summary: ovirt-engine fails to start with python-daemon-2.1.0 installed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Packaging.rpm
Version: ---
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ovirt-4.0.2
: 4.0.2
Assignee: Yevgeny Zaspitsky
QA Contact: Petr Kubica
URL:
Whiteboard:
Depends On: 1343041
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-06 16:01 UTC by Yevgeny Zaspitsky
Modified: 2017-05-11 09:23 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-08-12 14:21:44 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.0.z+
ylavi: Triaged+
ylavi: planning_ack+
dfediuck: devel_ack+
pnovotny: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 58635 0 master ABANDONED core: fix permissions problem on engine start 2016-06-08 20:53:59 UTC
oVirt gerrit 58692 0 master MERGED core: Conflict with python-daemon-2.1.0 2016-07-06 11:22:22 UTC
oVirt gerrit 60579 0 ovirt-engine-4.0 MERGED core: Conflict with python-daemon-2.1.0 2016-07-12 12:24:24 UTC

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)


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