Hide Forgot
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
(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
Gal please add ...py* to all the python files in the spec
(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*
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.
rhev-agent-2.3.2-1 - verified
3.0.0 errata has been released - closing related VERIFIED bugs
Re-opening: in rhev-agent-2.3.16-3 there still remains directory /usr/share/rhev-agent/ after removal.
Verified - rhevm-guest-agent-1.0.5-1, si9.1 - no rhevm-guest-agent related files remain after uninstallation of guest agent.