Created attachment 1231231 [details] production.log Description of problem: Version-Release number of selected component (if applicable): 5.7.0.14 How reproducible: Always Steps to Reproduce: 1.Go to Settings -> Configuration -> Diagnostics -> CFME Region 2.Select Roles by Servers or Servers by Roles 3. Select a role and suspend it by clicking on configuration -> suspend in toolbar Actual results: Error in production.log added in attachment Expected results: Additional info:
It looks like ops_controller/diagnostics.rb is calling MiqServer.find with 0 as an argument: @selected_server = kls.find(from_cid(x_node.split("-").last))
https://github.com/ManageIQ/manageiq/pull/13234
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/7c008ee357c9f0ae91d15754656bb6f2805fe3bc commit 7c008ee357c9f0ae91d15754656bb6f2805fe3bc Author: Harpreet Kataria <hkataria> AuthorDate: Sun Dec 18 14:29:33 2016 -0500 Commit: Harpreet Kataria <hkataria> CommitDate: Sun Dec 18 14:36:07 2016 -0500 Fixed code that sets selected_server record to be used by view. Use existing parent record to set @selected_server variable that should point to the record selected in the diagnostics tree on the left. https://bugzilla.redhat.com/show_bug.cgi?id=1404280 app/controllers/ops_controller/diagnostics.rb | 3 +- .../controllers/ops_controller/diagnostics_spec.rb | 34 ++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-)
Verified in 5.8.1.0. Active roles can be suspended without any errors.