Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit 6faa774

Browse files
oo-admin-chk: Adds helpful information to oo-admin-chk errors
Bug 1111598 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1111598 Updates some of the error messages to contain more information (or links to support articles) that will help the user diagnose/fix the errors. The generic "use oo-admin-repair" line has been fleshed out to recommend using the man page to see what inconsistencies it can solve.
1 parent 024c835 commit 6faa774

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

broker-util/oo-admin-chk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ $datastore_hash.each do |gear_uuid, gear_info|
142142
if gear_si_present and datastore_si_present
143143
puts "#{gear_uuid}...FAIL" if $verbose
144144
print_message "Gear #{gear_uuid} does not exist on any node"
145+
print_message "Please see https://access.redhat.com/site/solutions/712593 for more information."
145146
elsif datastore_si_present
146147
puts "#{gear_uuid}...FAIL" if $verbose
147148
non_responding_nodes[server_identity] = 0 unless non_responding_nodes.has_key? server_identity
@@ -159,6 +160,7 @@ puts "Checked application gears on nodes in #{(Time.now - current_time).to_i} se
159160
# print error messages for any non-responding nodes
160161
non_responding_nodes.each do |server_identity, gear_count|
161162
print_message "The node #{server_identity} expected to contain #{gear_count} gears wasn't returned from mcollective for the gear list"
163+
print_message "Make sure the node #{server_identity} exists and that the ruby193-mcollective service is running."
162164
end
163165

164166
puts "Checking node gears in application database" if $verbose
@@ -169,6 +171,7 @@ node_hash.each do |gear_uuid, gear_info|
169171
if !datastore_has_gear?(gear_uuid)
170172
puts "#{gear_uuid}...FAIL" if $verbose
171173
print_message "Gear #{gear_uuid} exists on node #{gear_info[0]} (uid: #{gear_info[1]}) but does not exist in mongo database"
174+
print_message "Please see https://access.redhat.com/solutions/1171163 for more information."
172175
end
173176
elsif !datastore_gear_info['gear_uid'].nil?
174177
begin
@@ -226,7 +229,7 @@ if level >= 1
226229
puts "Checked usage record inconsistencies in #{(Time.now - current_time).to_i} seconds\n\n"
227230

228231
current_time = Time.now
229-
run :find_user_plan_inconsistencies
232+
run :find_user_plan_inconsistencies
230233
puts "Checked user plan inconsistencies in #{(Time.now - current_time).to_i} seconds\n\n"
231234
end
232235

@@ -239,7 +242,7 @@ if $total_errors == 0
239242
errcode = 0
240243
else
241244
print_message "FAILED", true
242-
puts "Please refer to the oo-admin-repair tool to resolve some of these inconsistencies."
245+
puts "Please refer to the oo-admin-repair tool man page to resolve some of these inconsistencies if no suggestion was provided with any error message(s)."
243246
errcode = 1
244247
end
245248
exit errcode

0 commit comments

Comments
 (0)