Bug 2026873
| Summary: | Date parse error around SCA cert fetching when system locale is en_AU or en_CA | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Nikos Moumoulidis <nmoumoul> | ||||
| Component: | Candlepin | Assignee: | satellite6-bugs <satellite6-bugs> | ||||
| Status: | CLOSED ERRATA | QA Contact: | sganar | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.10.0 | CC: | hyu, mshimura, redakkan, sganar | ||||
| Target Milestone: | 6.11.0 | Keywords: | Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | candlepin-4.0.14-1, candlepin-4.1.9-1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 2026874 2026875 (view as bug list) | Environment: | |||||
| Last Closed: | 2022-07-05 14:30:33 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: | 2026874, 2026875 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Nikos Moumoulidis
2021-11-26 09:58:42 UTC
*** Bug 2026864 has been marked as a duplicate of this bug. *** There are workarounds: One workaround is to set the system locale to en_US.UTF-8 and then restart tomcat. -------------------------- localectl set-locale LANG=en_US.UTF-8 systemctl restart tomcat -------------------------- Alternatively, you can add jvm variable '-Djava.locale.providers=COMPAT,CLDR' in the JAVA_OPTS of /etc/tomcat/tomcat.conf. ------------------------------------ # Edit /etc/tomcat/tomcat.conf, change this line from: JAVA_OPTS="-Xms1024m -Xmx4096m" # To: JAVA_OPTS="-Xms1024m -Xmx4096m -Djava.locale.providers=COMPAT,CLDR" # Then restart tomcat systemctl restart tomcat ----------------------------------- Verified. Tested on Satellite 6.11.0 Snap 24.0 Steps followed: 1. Set system locale with "sudo localectl set-locale LANG=en_AU.UTF-8" 2. Restart the tomcat service. 3. Register a host to an organization with SCA mode enabled (the registration and SCA cert generation should still be successful). 4. Check `/var/log/candlepin.log` on the server, and `/var/lib/rhsm/cache/content_access.json` on the host. Observations: No error is observed in `/var/log/candlepin.log` and `/var/lib/rhsm/cache/content_access.json` exists on the client. 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 (Moderate: Satellite 6.11 Release), 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/RHSA-2022:5498 |