Bug #4963
closedRHEL 3 and 4 don't report correctly due to "/bin/date: unrecognized option `--rfc-3339=second'"
Description
On RHEL 3 and 4 nodes we're seeing these reports:
/var/log/rudder/reports/all.log:Jun 5 04:19:26 abc-redhat4 rudder[19333]: R: @@sudoParameters@@result_success@@32377fd7-02fd-43d0-aab7-28460a91347b@@fe31a994-efa1-4883-acab-4106a277ca84@@58@@Install@@None@@/bin/date: unrecognized option `--rfc-3339=second' Try `/bin/date --help' for more information.##4ff62b4b-2b89-4fbe-ac9f-08f0008898bf@#sudo already installed
This option does not exist on all Linux systems.
Updated by Jonathan CLARKE over 10 years ago
Unfortunately, the format we expect contains the timezone offset with ":" in the middle. This option is also not avialable on older OSes.
To workaround this, I'm going to have to use this hack:
/bin/date -u "+%Y-%m-%d %T+00:00"
This prints out the date in UTC and forces the timezone offset to 00:00, to ensure the format.
Updated by Jonathan CLARKE over 10 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Jonathan CLARKE to Nicolas CHARLES
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/395
Updated by Nicolas CHARLES over 10 years ago
- Status changed from Pending technical review to Discussion
- Assignee changed from Nicolas CHARLES to Jonathan CLARKE
Jon,
i,ve asked questions on the PR
Updated by Jonathan CLARKE over 10 years ago
- Status changed from Discussion to Pending release
- % Done changed from 0 to 100
Applied in changeset policy-templates:commit:607e04e00c525450d71e63a688e1eff694eda458.
Updated by Nicolas CHARLES over 10 years ago
Applied in changeset policy-templates:commit:52d8550360b95187128c21707f370b429334e38e.
Updated by Jonathan CLARKE over 10 years ago
PR updated. We chose to:
- Fix this on 2.6-2.10 branches by making the change for RHEL3/RHEL4 only, and not modifying the date format for other OSes (minimal changes)
- Fix this in 2.11+ branch by making the change for all OSes, so that it is compatible with any OSes that we discover as time goes
While working on this, I discovered that the failsafe.cf file from initial-pormises doesn't have a failsafe.cf file, which means that any reports from it will look pretty broken. I've opened a separate bug for that: #4966
Updated by Vincent MEMBRÉ over 10 years ago
- Status changed from Pending release to Released
This bug has been fixed in Rudder versions that were released today.
- 2.6.14 (announcement , changelog)
- 2.9.6 (announcement , changelog)
- 2.10.2 (announcement , changelog)
- Download information: https://www.rudder-project.org/site/get-rudder/downloads/
Updated by François ARMAND over 4 years ago
- Related to Bug #16516: No flush key report on sshKeyDistribution when there is not yet an ssh key configured added
Updated by François ARMAND over 4 years ago
- Related to deleted (Bug #16516: No flush key report on sshKeyDistribution when there is not yet an ssh key configured)