Bug 1400219

Summary: RPM remove action does not clear all files from provider directory
Product: [oVirt] ovirt-provider-ovn Reporter: Mor <mkalfon>
Component: providerAssignee: Marcin Mirecki <mmirecki>
Status: CLOSED CURRENTRELEASE QA Contact: Mor <mkalfon>
Severity: low Docs Contact:
Priority: high    
Version: unspecifiedCC: danken, ylavi
Target Milestone: ovirt-4.1.0-betaFlags: rule-engine: ovirt-4.1+
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: 2017-02-15 14:58:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mor 2016-11-30 17:18:27 UTC
Description of problem:
yum remove ovirt-provider-ovn does not remove Python compiled files from the provider directory.

Version-Release number of selected component (if applicable):
oVirt Engine Version: 4.1.0-0.0.master.20161127231313.git9bb30a5.el7.centos
oVirt Provider OVN: ovirt-provider-ovn-0.1-1

How reproducible:
100%

Steps to Reproduce:
1. Install ovirt-provider-ovn package. (yum -y install <provider_package>.rpm)
2. Start & stop ovirt-provider-ovn service.
3. Remove ovirt-provider-ovn package (yum -y remove <provider_package>)

Actual results:
There are ".pyc" files in the provider directory.

Expected results:
All .pyc files should be removed.

Comment 1 Mor 2016-12-19 11:54:42 UTC
I tried to verify it with today's build from git://gerrit.ovirt.org/ovirt-provider-ovn. 
Post removal, directories: /usr/share/ovirt-provider-ovn/, /etc/ovirt-provider-ovn exists in the machine.

Comment 2 Mor 2016-12-28 07:53:09 UTC
I verified the fix with build from today. RPM name: ovirt-provider-ovn-1.0-1.20161228093622.git3b3d6e1.fc24.noarch