Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1591370

Summary: Insights-client creates archive with wrong structure during --keep-archive
Product: Red Hat Hybrid Cloud Console (console.redhat.com) Reporter: Eduard <esakaiev>
Component: ClientAssignee: jcrafts
Status: CLOSED NOTABUG QA Contact: Jeff Needle <jneedle>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jcrafts, klape
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-19 18:21:42 UTC 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:
Attachments:
Description Flags
screenshot of archive structure none

Description Eduard 2018-06-14 14:42:50 UTC
Created attachment 1451439 [details]
screenshot of archive structure

Description of problem:

Insights-client creates the wrong archive structure during insights-client --keep-archive. 

insights-client --version
Client: 3.0.4-1
Core: 3.0.4-2

Also reproduces for v: 3.0.3-9


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


How reproducible: 100%


Steps to Reproduce:
1. provision fresh rhel 7.5
2. subscribe with subscription-manager
3. install insights-client: yum -y insights-client
4. insights-client --register
5. remove insights-client: yum -y remove insights-client
6. yum -y install insights-client
7. insights-client --register --keep-archive
8. check archive structure

Actual results:
see in the attachments

Expected results:

drwx------.  3 root root   19 Jun 14 10:38 boot
-rw-r--r--.  1 root root   40 Jun 14 10:38 branch_info
drwx------. 18 root root 4096 Jun 14 10:38 etc
drwx------.  2 root root 8192 Jun 14 10:38 insights_commands
drwx------.  4 root root  106 Jun 14 10:38 proc
drwx------.  3 root root   24 Jun 14 10:38 run
drwx------.  4 root root   35 Jun 14 10:38 sys
drwx------.  3 root root   17 Jun 14 10:38 usr
drwx------.  3 root root   17 Jun 14 10:38 var


Additional info:
Way how to fix it:
after removing of insights-client: yum -y remove insights-client need to remove 
rm -rf /etc/insights-client.

Comment 1 jcrafts 2018-06-19 18:21:42 UTC
This is a result of the egg not being auto-updated after a reinstall because of lingering etags. See https://bugzilla.redhat.com/show_bug.cgi?id=1591371