Project

General

Profile

Actions

Bug #4303

closed

Foreman fails to import reports after upgrade to 1.4

Added by Dennis Benndorf about 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Foreman fails to import reports after upgrade to 1.4 with the following message:

Started POST "/api/reports" for 193.174.240.222 at Mon Feb 10 10:06:25 +0100 2014
Processing by Api::V2::ReportsController#create as JSON
Parameters: {"apiv"=>"v2", "report"=>"[FILTERED]"}
undefined method `chefproxy_proxies' for #<Class:0x7f3e3fbf84a0> (NoMethodError)

We do not use Chef but Puppet instead so changing a line in /usr/share/foreman/app/controllers/concerns/foreman/controller/smart_proxy_auth.rb

  1. if !Setting[:restrict_registered_puppetmasters] or auth_smart_proxy(SmartProxy.puppet_proxies+SmartProxy.chefproxy_proxies, Setting[:require_ssl_puppetmasters])
    if !Setting[:restrict_registered_puppetmasters] or auth_smart_proxy(SmartProxy.puppet_proxies, Setting[:require_ssl_puppetmasters])

Fixes the import Problem for me!

Actions #1

Updated by Dominic Cleal about 10 years ago

  • Category set to Database
  • Status changed from New to Feedback

This indicates an incomplete upgrade, please run foreman-rake db:seed, restart Foreman and then it should work.

http://theforeman.org/manuals/1.4/index.html#3.6Upgrade

Actions #2

Updated by Soungalo SIDIBE almost 10 years ago

Its works for me
thankyou

Actions #3

Updated by Ohad Levy almost 10 years ago

  • Status changed from Feedback to Resolved
Actions #4

Updated by Walden Raines almost 10 years ago

  • Bugzilla link set to https://bugzilla.redhat.com/show_bug.cgi?id=1112835
Actions #5

Updated by Dominic Cleal almost 10 years ago

  • Bugzilla link deleted (https://bugzilla.redhat.com/show_bug.cgi?id=1112835)
Actions

Also available in: Atom PDF