Project

General

Profile

Actions

Bug #33109

closed

Date used by katello-certs-check should be formatted correctly by program

Added by Birkir Hjartarson almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
foreman-installer script
Target version:
-
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Original post in support forum: https://community.theforeman.org/t/date-used-by-katello-certs-check-should-be-formatted-correctly-by-program/24527

Problem:
when foreman-installer runs, it runs katello-certs-check as part of the run, which in turn runs some date check. The certs-check completes successfully and everything is fine, but theres always an error that gets printed on my system due to being set to Icelandic locale:
date: invalid date ‘júl 20 14:36:21 2021’

Expected outcome:
Date command used by katello-certs-check should be locale-agnostic, like using standard iso format and not relying on servers locale settings

Foreman and Proxy versions:
“Error” has popped up for a few versions now, latest while upgrading to 2.5 / 4.1

Foreman and Proxy plugin versions:

Distribution and version:
CentOS 7

Other relevant data:

Output from locale command:
LANG=en_US.UTF-8
LC_CTYPE=“is_IS.UTF-8”
LC_NUMERIC=“is_IS.UTF-8”
LC_TIME=“is_IS.UTF-8”
LC_COLLATE=“is_IS.UTF-8”
LC_MONETARY=“is_IS.UTF-8”
LC_MESSAGES=“is_IS.UTF-8”
LC_PAPER=“is_IS.UTF-8”
LC_NAME=“is_IS.UTF-8”
LC_ADDRESS=“is_IS.UTF-8”
LC_TELEPHONE=“is_IS.UTF-8”
LC_MEASUREMENT=“is_IS.UTF-8”
LC_IDENTIFICATION=“is_IS.UTF-8”
LC_ALL=is_IS.UTF-8


Related issues 1 (0 open1 closed)

Related to Installer - Bug #28004: katello-certs-check should set locales for $(date) commandsDuplicateActions
Actions #1

Updated by Ewoud Kohl van Wijngaarden almost 3 years ago

  • Category set to foreman-installer script
  • Triaged changed from No to Yes
  • Found in Releases 2.5.1 added
Actions #2

Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-installer/pull/729 added
Actions #3

Updated by The Foreman Bot over 2 years ago

  • Fixed in Releases 3.1.0 added
Actions #4

Updated by Anonymous over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions #5

Updated by Ewoud Kohl van Wijngaarden about 2 years ago

  • Related to Bug #28004: katello-certs-check should set locales for $(date) commands added
Actions

Also available in: Atom PDF