Bug #22186

Date format of published content view in yaml output changed on Rails 5.x and causes Puppet runs to fail

Added by Ondřej Pražák 4 months ago. Updated 4 months ago.

Assigned To:Jonathon Turel
Target version:Team Brad - Iteration 27
Difficulty:easy Pull request:https://github.com/Katello/katello/pull/7174
Bugzilla link: Found in Katello release:
Story points-
Velocity based estimate-
ReleaseKatello 3.6.0Release relationshipAuto


Calling to_yaml on an instance of ActiveSupport::TimeWithZone gives different output on Rails 4.2 and 5.x (see the screenshots), which makes Puppet run fail. Katello adds a date of a published content view into the output of Host.info method. When Puppet tries to fetch the node definition and yaml contains a date in a new format, Puppet server fails to parse it.

Steps to reproduce:
1) set up a host with Puppet and published content view
2) try running puppet agent -t
3) observe the error

42_published_to_yaml.png (161 KB) Preview Ondřej Pražák, 01/09/2018 11:33 AM

51_published_yaml.png (172 KB) Preview Ondřej Pražák, 01/09/2018 11:33 AM

puppet_run_fail.png (42.4 KB) Preview Ondřej Pražák, 01/09/2018 11:40 AM

42_published_to_yaml 51_published_yaml Puppet_run_fail

Associated revisions

Revision ac81226e
Added by Jonathon Turel 4 months ago

Fixes #22186 - Correct date format in Host Info Provider


#1 Updated by Justin Sherrill 4 months ago

  • Difficulty set to easy
  • Release set to Katello 3.6.0
  • Priority changed from High to Immediate
  • Assigned To set to Jonathon Turel
  • Category set to Hosts

#2 Updated by Jonathon Turel 4 months ago

  • Target version set to Team Brad - Iteration 27

#3 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7174 added

#4 Updated by Jonathon Turel 4 months ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF