Bug 679451

Summary: [rhev-agent] Remnants of agent remains after removal
Product: Red Hat Enterprise Virtualization Manager Reporter: Jakub Libosvar <jlibosva>
Component: ovirt-guest-agentAssignee: Gal Hammer <ghammer>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas Dosek <tdosek>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.3.0CC: bazulay, iheim, mkenneth
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: virt
Fixed In Version: rhevm-guest-agent-1.0.5-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-23 11:31:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jakub Libosvar 2011-02-22 15:40:42 UTC
Description of problem:
.pyc files and /usr/share/rhev-agent/ remain on machine after agent removal. These files are missing in file list in rpm package.
rpm -ql rhev-agent
/etc/init.d/rhev-agentd
/etc/rhev-agent.conf
/usr/share/doc/rhev-agent-2.3
/usr/share/doc/rhev-agent-2.3/LICENSE_GPL_v2
/usr/share/doc/rhev-agent-2.3/README
/usr/share/rhev-agent/VirtIoChannel.py
/usr/share/rhev-agent/qGuestAgentLinux2.py
/usr/share/rhev-agent/rhev-agentd.py
/usr/share/rhev-agent/utils.py
/usr/share/rhev-agent/vdsAgentLogic.py
/var/log/rhev-agent

Note: On rhel5 pyc and pyo files are specified here, but not /usr/share/rhev-agent/


Version-Release number of selected component (if applicable):
rhev-agent-2.3-7

How reproducible:
Always

Steps to Reproduce:
1. Install agent
2. Run agent (service rhev-agentd start)
3. Remove agent (rpm -e rhev-agent)
4. Check that all has been erased (ls /usr/share/rhev-agent/)
  
Actual results:
qGuestAgentLinux2.pyc  utils.pyc  vdsAgentLogic.pyc  VirtIoChannel.pyc

Expected results:
ls: cannot access /usr/share/rhev-agent/: No such file or directory

Additional info:
The pyc files remain just on rhel6
The /usr/share/rhev-agent/ directory remains on both versions

Comment 1 Jakub Libosvar 2011-02-22 15:41:50 UTC
(In reply to comment #0)
> Version-Release number of selected component (if applicable):
> rhev-agent-2.3-7

Sorry, version is rhev-agent-2.3-8

Comment 2 Barak 2011-02-23 09:51:11 UTC
Gal please add ...py* to all the python files in the spec

Comment 4 Gal Hammer 2011-02-23 11:14:34 UTC
(In reply to comment #2)
> Gal please add ...py* to all the python files in the spec

Like this?

%{_datadir}/%{name}/rhev-agentd.py*
%{_datadir}/%{name}/vdsAgentLogic.py*
%{_datadir}/%{name}/VirtIoChannel.py*
%{_datadir}/%{name}/qGuestAgentLinux2.py*
%{_datadir}/%{name}/utils.py*

Comment 5 Gal Hammer 2011-03-02 12:39:33 UTC
The package redhat-rpm-config was added to "BuildRequires" section in the spec file in order to included the compiled python script in the rpm file.

Comment 6 Jakub Libosvar 2011-03-02 13:09:28 UTC
rhev-agent-2.3.2-1 - verified

Comment 7 Itamar Heim 2011-12-16 14:54:46 UTC
3.0.0 errata has been released - closing related VERIFIED bugs

Comment 8 Jakub Libosvar 2012-02-09 15:11:13 UTC
Re-opening: in rhev-agent-2.3.16-3 there still remains directory /usr/share/rhev-agent/ after removal.

Comment 9 Tomas Dosek 2012-07-12 07:40:32 UTC
Verified - rhevm-guest-agent-1.0.5-1, si9.1 - no rhevm-guest-agent related files remain after uninstallation of guest agent.