You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2018. It is now read-only.
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.
@@ -159,6 +160,7 @@ puts "Checked application gears on nodes in #{(Time.now - current_time).to_i} se
159
160
# print error messages for any non-responding nodes
160
161
non_responding_nodes.each do |server_identity, gear_count|
161
162
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."
162
164
end
163
165
164
166
puts "Checking node gears in application database" if $verbose
@@ -169,6 +171,7 @@ node_hash.each do |gear_uuid, gear_info|
169
171
if !datastore_has_gear?(gear_uuid)
170
172
puts "#{gear_uuid}...FAIL" if $verbose
171
173
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."
172
175
end
173
176
elsif !datastore_gear_info['gear_uid'].nil?
174
177
begin
@@ -226,7 +229,7 @@ if level >= 1
226
229
puts "Checked usage record inconsistencies in #{(Time.now - current_time).to_i} seconds\n\n"
227
230
228
231
current_time = Time.now
229
-
run :find_user_plan_inconsistencies
232
+
run :find_user_plan_inconsistencies
230
233
puts "Checked user plan inconsistencies in #{(Time.now - current_time).to_i} seconds\n\n"
231
234
end
232
235
@@ -239,7 +242,7 @@ if $total_errors == 0
239
242
errcode = 0
240
243
else
241
244
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)."
0 commit comments