Project

General

Profile

Bug #31624

Host update and puppet class assignment fails

Added by Eric Helms over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

2021-01-13T19:08:59 [I|app|c87b0f64] Backtrace for 'Action failed' error (NoMethodError): undefined method `content_source' for nil:NilClass
 c87b0f64 | Did you mean?  contains_erb?
 c87b0f64 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.0.pre.master/app/models/katello/concerns/redhat_extensions.rb:47:in `kickstart_repos'
 c87b0f64 | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-4.0.0.pre.master/app/models/katello/concerns/host_managed_extensions.rb:25:in `update_os_from_facts'
 c87b0f64 | /usr/share/foreman/app/models/host/managed.rb:500:in `populate_fields_from_facts'
 c87b0f64 | /usr/share/foreman/app/models/concerns/puppet_host_extensions.rb:3:in `populate_fields_from_facts'
 c87b0f64 | /usr/share/foreman/app/services/host_fact_importer.rb:50:in `block (2 levels) in parse_facts'
 c87b0f64 | /usr/share/foreman/app/services/foreman/telemetry_helper.rb:27:in `telemetry_duration_histogram'
 c87b0f64 | /usr/share/foreman/app/services/host_fact_importer.rb:49:in `block in parse_facts'
 c87b0f64 | /usr/share/foreman/app/services/host_fact_importer.rb:90:in `block in skipping_orchestration'
 c87b0f64 | /usr/share/foreman/app/models/concerns/orchestration.rb:124:in `without_orchestration'
 c87b0f64 | /usr/share/foreman/app/services/host_fact_importer.rb:89:in `skipping_orchestration'
 c87b0f64 | /usr/share/foreman/app/services/host_fact_importer.rb:45:in `parse_facts'
 c87b0f64 | /usr/share/foreman/app/services/host_fact_importer.rb:34:in `import_facts'
 c87b0f64 | /usr/share/foreman/app/controllers/api/v2/hosts_controller.rb:307:in `facts'

Associated revisions

Revision c1c9043f (diff)
Added by Eric Helms over 1 year ago

Fixes #31624: host object may not always have a content facet

History

#1 Updated by The Foreman Bot over 1 year ago

  • Assignee set to Eric Helms
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9099 added

#2 Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases Katello 4.1.0 added

#3 Updated by Eric Helms over 1 year ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Chris Roberts over 1 year ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.17.2
  • Category set to Hosts

Also available in: Atom PDF