Project

General

Profile

Actions

Bug #27657

closed

Forman/Katello issue with Puppet6 after upgrading Foreman/katello and Puppet server

Added by Jean-Marie Magnier almost 5 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

FOREMAN SERVER
OS Version : CentOS 7.6-1810
Foreman Version : 1.22.0
Katello : 3.12.1

PUPPET SERVER
OS Version : CentOs 7.6-1810
Puppet server : 6.5.0-1.el7
Puppet agent : 6.7.2-1.el7

Error Message
Tried to load unspecified class: Time

After upgrading to new version the puppet server, I Receive error when i try to run puppet on client. It seem to be similar to :
  • "https://tickets.puppetlabs.com/browse/PUP-9506"
Opened and described in :
  • "https://projects.theforeman.org/issues/26763#change-124655".
fixed by :
  • "https://github.com/Katello/katello/pull/8147"

in katello V3.12.1

But for me the pb is issued is always present.

Normally the pb is in katello_server:<path>/info_provider.rb.
The puppet:<path>/node.rb return a bad time format.

I hava added some file for helping you.

I have found a workaroud, but I m not satisfied about. workaroud code modification :
27 content_view_info = {
28 'label' => host.content_view.try(:label),
29 'latest-version' => host.content_view.try(:latest_version),
30 'version' => content_version.try(:version),

31           'published' => content_version.try(:created_at).try(:time).to_s *+ " "*,

32 'components' => content_view_components
33 }

Actions

Also available in: Atom PDF