Bug 2029395
Summary: | insights-client --register --verbose throwing error UnicodeEncodeError: 'ascii' codec can't encode character '\ufffd' in position 94: ordinal not in range(128) | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Shivam Gupta <shivagup> | |
Component: | insights-client | Assignee: | Link Dupont <link> | |
Status: | CLOSED ERRATA | QA Contact: | Pavol Kotvan <pakotvan> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 8.5 | CC: | achadha, cmarinea, fjansen, gardar.arnarsson, gchamoul, hakon.gislason, jentrena, jsenkyri, karnsing, link, ngupta, pakotvan, pmendezh, psuba, sshashi | |
Target Milestone: | rc | Keywords: | Reopened, Triaged | |
Target Release: | 8.8 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | insights-client-3.1.7-10.el8 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 2130596 2141087 (view as bug list) | Environment: | ||
Last Closed: | 2023-05-16 08:30: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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 2130596, 2141087 |
Description
Shivam Gupta
2021-12-06 11:56:22 UTC
The upstream fix to the CDN has been deployed, and HTTP responses now set the correct content-type header. $ sudo curl -I --cacert /etc/insights-client/cert-api.access.redhat.com.pem --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pem https://cert-api.access.redhat.com/r/insights/v1/static/release/insights-core.egg HTTP/1.1 200 OK Accept-Ranges: bytes ETag: "337703f5efb120315953fecf1cba5ce5:1655130703.369429" Last-Modified: Mon, 13 Jun 2022 14:31:34 GMT Server: AkamaiNetStorage Content-Length: 1276395 Date: Fri, 17 Jun 2022 10:28:52 GMT Connection: keep-alive Content-Type: application/zip Steps to Reproduce: 1) rm /var/lib/insights/last_stable.egg* 2) rm /etc/insights-client/insights-core.etag 3) insights-client --verbose Additional info: Because the egg used during the first run of insights-client is /etc/insights-client/rpm.egg, and because the etag file does not exist, and because /etc/insights-client/rpm.egg does not contain the fixes to the logging that were made after insights-client-3.1.7 was released, when insights-client downloads the latest egg, it erroneously logs it. This is why it is only occurring during first boot, kickstart %post scriptlets, etc. This will require an updated RPM in order to fix. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (insights-client bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2803 |