Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1690242 - insights-client does not fetch new insights-core.egg as etag is same
Summary: insights-client does not fetch new insights-core.egg as etag is same
Keywords:
Status: NEW
Alias: None
Product: Red Hat Insights
Classification: Red Hat
Component: Client
Version: unspecified
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: jcrafts
QA Contact: Jeff Needle
Kevin Blake
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-19 06:29 UTC by Amar Huchchanavar
Modified: 2019-03-20 05:40 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Amar Huchchanavar 2019-03-19 06:29:26 UTC
After remove /var/lib/insights/last_stable.egg and last_stable.egg.asc, insights-client is using rpm.egg (old version) to make request, it does not download the newest egg file. Comparing the etag, it is same, so return 304. no need to update.

Debug log:

2019-03-18 04:39:31,194 DEBUG insights.client.connection Branch information: {"remote_branch": -1, "remote_leaf": -1}
2019-03-18 04:39:31,197 DEBUG insights.client Beginning core fetch.
2019-03-18 04:39:31,197 DEBUG insights.client.connection NO PROXY: None
2019-03-18 04:39:31,198 DEBUG insights.client Found etag "c237b78d37b74a95bf3ac43932c2b5ef:1552592118"
2019-03-18 04:39:31,198 DEBUG insights.client Making request to https://cert-api.access.redhat.com/r/insights/v1/static/core/insights-core.egg for new core
2019-03-18 04:39:31,198 DEBUG insights.client Requesting new file with etag "c237b78d37b74a95bf3ac43932c2b5ef:1552592118"
2019-03-18 04:39:31,771 DEBUG insights.client Status code: 304
2019-03-18 04:39:31,771 DEBUG insights.client date: Mon, 18 Mar 2019 08:39:31 GMT
2019-03-18 04:39:31,771 DEBUG insights.client last-modified: Thu, 14 Mar 2019 19:34:53 GMT

Expected result:

Download the latest egg file.

Comment 1 Amar Huchchanavar 2019-03-19 06:32:12 UTC
Upstream: https://github.com/RedHatInsights/insights-core/issues/1751


Note You need to log in before you can comment on or make changes to this bug.