Project

General

Profile

Actions

Bug #10898

closed

Auto-provision a host via Discovery_Manager role rasies undefined method

Added by Lukas Zapletal almost 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Discovery plugin
Fixed in Releases:
Found in Releases:

Description

Description of problem:
Created a user and assigned "discovery Manager" role to it. When login with created user, I can see the discovered host.

But when I selected "auto_provision" from dropdown, I got following error in production.log:

--
2015-03-16 12:37:54 [I] Processing by DiscoveredHostsController#auto_provision as HTML
2015-03-16 12:37:54 [I] Parameters: {"authenticity_token"=>"koGOJke03MsLI8HDVy1arpNmYfRxI1WGctnPfMpsczE=", "id"=>"mac52540032b2de"}
2015-03-16 12:37:54 [W] Operation FAILED: undefined method `transaction' for nil:NilClass
2015-03-16 12:37:54 [I] Rendered common/500.html.erb within layouts/application (5.0ms)
2015-03-16 12:37:54 [I] Rendered layouts/base.html.erb (1.4ms)
2015-03-16 12:37:54 [I] Completed 500 Internal Server Error in 48ms (Views: 8.7ms | ActiveRecord: 8.3ms)
--

https://bugzilla.redhat.com/show_bug.cgi?id=1202336


Related issues 1 (1 open0 closed)

Related to Foreman - Feature #10900: Ship all built-in roles as read-only and provide a way to clone rolesNew06/22/2015Actions
Actions #1

Updated by Lukas Zapletal almost 9 years ago

  • Related to Feature #10900: Ship all built-in roles as read-only and provide a way to clone roles added
Actions #2

Updated by Lukas Zapletal almost 9 years ago

Ok this stems from the fact that Discovery Manager is missing some permissions.

WORKAROUND: Delete the role, restart the server, will be recreated with correct perms.

Actions #3

Updated by The Foreman Bot almost 9 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/197 added
  • Pull request deleted ()
Actions #4

Updated by Anonymous over 8 years ago

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

Updated by The Foreman Bot about 8 years ago

  • Pull request https://github.com/theforeman/foreman_discovery/pull/203 added
Actions

Also available in: Atom PDF