Project

General

Profile

Bug #4626

Facter 2 + DB migrations: undefined method `domain' for Facter:Module

Added by Dominic Cleal over 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
DB migrations
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

During DB migrations with Facter 2 installed, there are quite a few calls to Facter.foo, which is no longer supported.

# [ WARN 2014-03-11 10:43:56 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: rake aborted!
# [ WARN 2014-03-11 10:43:56 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: An error has occurred, this and all later migrations canceled:
# [ WARN 2014-03-11 10:43:56 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: 
# [ WARN 2014-03-11 10:43:56 verbose]  /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: undefined method `domain' for Facter:Module

Related issues

Related to Installer - Bug #4372: undefined method `fqdn' for Facter:Module (NoMethodError) in hostanme.rb system checkClosed2014-02-18
Blocks Installer - Tracker #4359: Puppet 3.5.0 supportClosed2014-02-172014-02-28

Associated revisions

Revision 312042b0 (diff)
Added by Dominic Cleal over 6 years ago

fixes #4626 - update Facter calls for 2.0 compatibility

Revision 0c93dfc0 (diff)
Added by Dominic Cleal over 6 years ago

fixes #4626 - update Facter calls for 2.0 compatibility

(cherry picked from commit 312042b0ddd557fb42f67ba7424020b8dde72da2)

Conflicts:
app/models/setting/general.rb
app/models/setting/provisioning.rb

History

#1 Updated by Dominic Cleal over 6 years ago

#2 Updated by Dominic Cleal over 6 years ago

  • Related to Bug #4372: undefined method `fqdn' for Facter:Module (NoMethodError) in hostanme.rb system check added

#3 Updated by Dominic Cleal over 6 years ago

  • Status changed from Assigned to Ready For Testing

#4 Updated by Dominic Cleal over 6 years ago

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

Also available in: Atom PDF