Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f0d69d66 authored by Gaetan SIMO's avatar Gaetan SIMO
Browse files

[Rakefile] Adding option PHOENIX= in rake deadnodes:tofix task to list nodes...

[Rakefile] Adding option PHOENIX= in rake deadnodes:tofix task to list nodes with wrong comments because of phoenix
parent f47bf137
Branches
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@ namespace :deadnodes do
def comment_ok?(comment)
comment == "OK"
end
phoenix = []
@api_sites.each do |site|
reg = /^([^-]+)-(\d+)/
site.status["nodes"].sort{|a,b|
......@@ -114,10 +115,12 @@ namespace :deadnodes do
@logger.info "Node '#{uid}' is dead because '#{comment}'" if @reasons
else
@logger.error "Node '#{uid}' should have the not-dead-comment 'OK', since its state is '#{state}'. Instead, it has comment '#{comment}'." if @tofix
phoenix.push uid if comment.match(/^\[phoenix\]/) != nil
end
end
end
end
puts phoenix if ENV["PHOENIX"] == "yes"
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment