Project

General

Profile

Bug #12302

Cannot subscribe content host during provision

Added by Stephen Benjamin over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
High
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Facts cannot be imported while a host is in build mode, so when trying to do subscription-manager in kickstart %post, you get this error:

ERF42-9911 [Foreman::Exception]: Host is pending for Build (Foreman::Exception)
/home/vagrant/foreman/app/models/host/base.rb:108:in `import_facts'
/home/vagrant/katello/app/models/katello/system.rb:196:in `update_foreman_facts'
/home/vagrant/katello/app/lib/actions/katello/system/create.rb:34:in `plan'

Associated revisions

Revision bdf89b5e (diff)
Added by Stephen Benjamin over 3 years ago

fixes #12302 - do not import facts if foreman host in built mode

Revision c468edd9
Added by Stephen Benjamin over 3 years ago

Merge pull request #5547 from stbenjam/12302

fixes #12302 - do not import facts if foreman host in built mode

History

#1 Updated by The Foreman Bot over 3 years ago

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

#2 Updated by Anonymous over 3 years ago

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

#3 Updated by Eric Helms over 3 years ago

  • Triaged changed from No to Yes

Also available in: Atom PDF