Skip to content

Commit

Permalink
Fix bsc#1163381
Browse files Browse the repository at this point in the history
Hawk2 returns "Low level server error occurred" after authentication if a resource has the same name as a node"
  • Loading branch information
MalloZup committed Jul 23, 2020
1 parent fadd1ef commit e40165d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hawk/app/models/cib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,12 @@ def initialize(id, user, use_file = false, stonithwarning = false)
if rsc
rsc_state = rsc[:state]
elsif n[:host]
rsc_state = CibTools.rsc_state_from_lrm_rsc_op(@xml, n[:host], n[:id])
begin
rsc_state = CibTools.rsc_state_from_lrm_rsc_op(@xml, n[:host], n[:id])
rescue NoMethodError => e
# bsc#1163381. Catch the case resource name = node name. this is not allowed in pacemaker
error _("Please check if any resources have IDs that are conflicting with node names" + "#{e.backtrace.first}: #{e.message} (#{e.class})")
end
end
# node has a matching resource:
# get state from resource.rb
Expand Down

0 comments on commit e40165d

Please sign in to comment.