Bug 1101129

Summary: ovirt-guest-agent does not run with old config on dpkg and rpm based distributions
Product: Red Hat Enterprise Virtualization Manager Reporter: Vinzenz Feenstra [evilissimo] <vfeenstr>
Component: ovirt-guest-agentAssignee: Vinzenz Feenstra [evilissimo] <vfeenstr>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Belka <jbelka>
Severity: high Docs Contact:
Priority: high    
Version: 3.4.0CC: acathrow, bugs, dossow, gklein, iheim, michal.skrivanek, mkenneth, oourfali, pstehlik, Rhev-m-bugs, s.kieske, yeylon
Target Milestone: ---   
Target Release: 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: virt
Fixed In Version: rhevm-guest-agent-1.0.9-8.el7ev rhevm-guest-agent-1.0.9-3.el6ev rhevm-guest-agent-1.0.9-3.el5ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1100249 Environment:
Last Closed: Type: Bug
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: 1100249    
Bug Blocks: 1108871    

Description Vinzenz Feenstra [evilissimo] 2014-05-26 08:41:28 UTC
+++ This bug was initially created as a clone of Bug #1100249 +++

Description of problem:
install older ovirt-guest-agent e.g. from the ubuntu ppa
via apt-get into debian 7 wheezy (same problem should affect ubuntu as well)
alter something in the /etc/ovirt-guest-agent.conf

switch now to the new repo on opensuse.org provided by evilissimo
it installs succesfully, however the new ovirt-guest-agent.conf
does not overwrite the altered ovirt-guest-agent.conf.
instead, it gets written to disk as:
ovirt-guest-agent.conf.dpkg-dist

result: new ovirt-guest-agent can not be started with old config file
output of:
service ovirt-guest-agent status
[FAIL] ovirt-guest-agent is not running ... failed!
service ovirt-guest-agent start
no output at all
service ovirt-guest-agent status
[FAIL] ovirt-guest-agent is not running ... failed!

Version-Release number of selected component (if applicable):
1.0.9.1-1.1

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
ovirt-guest-agent can't be started with old config

Expected results:
ovirt-guest-agent can be started with old config

Additional info:
this may be related to the new option in the conf file:
report_num_cpu_rate = 60

workaround:
backup your tweaks to the agent conf
remove the old agent conf and the .dpkg-dist file
reinstall ovirt-guest-agent

apply your changes again to the new conf file

--- Additional comment from Sven Kieske on 2014-05-22 07:17:50 EDT ---

I can't select the proper version for the guest-agent in bugzilla, the versions
you can select are for engine only, this should also affect different
sub-components of ovirt with different versioning schemes like vdsm, too.

Comment 2 Jiri Belka 2014-05-28 09:59:26 UTC
ok, runs ok with old config.

# stat /etc/ovirt-guest-agent.conf
  File: `/etc/ovirt-guest-agent.conf'
  Size: 1437            Blocks: 8          IO Block: 4096   regular file
Device: fd00h/64768d    Inode: 18153       Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2014-05-28 10:23:02.284572065 +0200
Modify: 2014-05-28 10:22:58.059561858 +0200
Change: 2014-05-28 10:22:58.103561963 +0200

# grep rhevm-guest-agent-common /var/log/yum.log 
May 28 10:21:36 Installed: rhevm-guest-agent-common-1.0.8-10.el6ev.noarch
May 28 10:33:25 Updated: rhevm-guest-agent-common-1.0.9-3.el6ev.noarch

# ps aux | grep ovirt
175        3161  0.4  1.5 522292 15536 ?        Ssl  11:33   0:05 /usr/bin/python /usr/share/ovirt-guest-agent/ovirt-guest-agent.py -p /var/run/ovirt-guest-agent.pid -d
root       3268  0.0  0.0 103252   824 pts/1    R+   11:56   0:00 grep ovirt

# rpm -ql rhevm-guest-agent-common | grep '/usr.*conf$'
/usr/share/ovirt-guest-agent/default-logger.conf
/usr/share/ovirt-guest-agent/default.conf

Comment 3 Itamar Heim 2014-06-12 14:08:55 UTC
Closing as part of 3.4.0