Bug #27657
closedForman/Katello issue with Puppet6 after upgrading Foreman/katello and Puppet server
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
- "https://tickets.puppetlabs.com/browse/PUP-9506"
- "https://projects.theforeman.org/issues/26763#change-124655".
- "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 }
Updated by Jean-Marie Magnier over 5 years ago
Some additional information about code modification.
- File <foreman server>/<path>/info_provider.rb
Updated by Samir Jha over 5 years ago
- Assignee set to Chris Roberts
- Target version set to Katello 3.14.0
- Triaged changed from No to Yes
Updated by Wagner Sartori Junior about 5 years ago
I'm having this problem when using --no-environment on node.rb. Without it works fine.
I'm running katello-3.13.2-1.el7.noarch
I ran node.rb manually with and without --no-environment, and this is the diff:
--- env 2019-12-18 13:39:36.782264707 +0000
+++ no_env 2019-12-18 13:39:42.786281857 +0000
@@ -9,23 +9,23 @@
label: CentOS_7_Gluster_6
latest-version: '35.0'
version: '35.0'
- published: 2019-12-10 12:47:42 UTC
+ published: 2019-12-10 12:47:42.000000000 +00:00
components:
CentOS_7_Base:
version: '8.0'
- published: 2019-11-25 08:55:04 UTC
+ published: 2019-11-25 08:55:04.000000000 +00:00
EPEL_7:
version: '5.0'
- published: 2019-11-20 10:42:50 UTC
+ published: 2019-11-20 10:42:50.000000000 +00:00
Gluster_6:
version: '4.0'
- published: 2019-11-20 11:28:20 UTC
+ published: 2019-11-20 11:28:20.000000000 +00:00
[REDACTED]:
version: '15.0'
- published: 2019-12-10 12:47:24 UTC
+ published: 2019-12-10 12:47:24.000000000 +00:00
Clients:
version: '9.0'
- published: 2019-11-25 14:26:44 UTC
+ published: 2019-11-25 14:26:44.000000000 +00:00
kickstart_repository:
hostgroup: prd/gluster
realm: [REDACTED]
@@ -329,9 +329,9 @@
remote_execution_effective_user_method: sudo
remote_execution_connect_by_ip: false
classes: {}
-environment: production
Updated by Jonathon Turel almost 5 years ago
- Target version deleted (
Katello 3.14.0) - Triaged changed from Yes to No
Updated by John Mitsch almost 5 years ago
- Category set to 89
- Target version set to Katello 3.16.0
- Triaged changed from No to Yes
Updated by Chris Roberts almost 5 years ago
- Status changed from New to Need more information
Hi Wagner,
Can you attempt to upgrade to Katello 3.14 and let us know if the issue is still present?
Updated by Chris Roberts almost 5 years ago
- Status changed from Need more information to Closed
- Target version changed from Katello 3.16.0 to Katello Recycle Bin
I have not heard back in 16 days, if the issue is still present feel free to create a new issue.
Thanks,
- Chris
Updated by Jean-Marie Magnier over 4 years ago
- File deleted (
puppetserver-access.log)
Updated by Jean-Marie Magnier over 4 years ago
- File deleted (
node.rb_query_result)
Updated by Jean-Marie Magnier over 4 years ago
- File deleted (
puppet_client.trace)