Bug 1376498

Summary: ovirt-guest-agent won't start on debian 8 due to missing executable flag
Product: [oVirt] ovirt-guest-agent Reporter: Sven Kieske <s.kieske>
Component: PackagingAssignee: Vinzenz Feenstra [evilissimo] <vfeenstr>
Status: CLOSED NEXTRELEASE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 1.0.10CC: bugs, michal.skrivanek
Target Milestone: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-16 07:11:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sven Kieske 2016-09-15 15:18:58 UTC
Description of problem:
the guest agent doesn't start, because ovirt-guest-agent.py is not exectuable

Version-Release number of selected component (if applicable):
ovirt-guest-agent/stable,now 1.0.10.2.dfsg-2 all [installed]

installed from official debian repo

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
guest agent won't start

Expected results:
guest agent starts just fine

Additional info:
the systemd unit file calls /etc/init.d/ovirt-guest-agent start
on start which performs the following check:

bash -x /etc/init.d/ovirt-guest-agent start
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
+ DESC='oVirt management agent'
+ NAME=ovirt-guest-agent
+ DAEMON=/usr/share/ovirt-guest-agent/ovirt-guest-agent.py
+ DAEMON_ARGS=
+ PIDFILE=/var/run/ovirt-guest-agent.pid
+ SCRIPTNAME=/etc/init.d/ovirt-guest-agent
+ '[' -x /usr/share/ovirt-guest-agent/ovirt-guest-agent.py ']'
+ exit 0

just add the executable bit and you are fine :-)

tested on debian 8.5 x64

PS: I hope this is not fixed in later versions, because this fix should really make it into debian stable, shouldn't it?

HTH

Sven

Comment 1 Vinzenz Feenstra [evilissimo] 2016-09-16 07:11:40 UTC
Please track https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782005 for this particular issue - The debian maintainer is aware of the issue and has already posted a fix which is supposed to be included in the next minor update of debian stable