Skip to content

Instantly share code, notes, and snippets.

@pmorie
Last active December 20, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmorie/6157259 to your computer and use it in GitHub Desktop.
Save pmorie/6157259 to your computer and use it in GitHub Desktop.
upgrade
get all active gears
get all logins
get all domains
get all apps with a gear
get all gears across nodes
write node level gear files
make threads per node
for each node... (theads)
- upgrade_node
- shells to --upgrade-file using node gear file for node
-+ upgrade_from_file
-+ for each command in file...
-+ upgrade_gear
-+ performs mcollective call to upgrade
-+ returns output from mcollective
-+ appends errors (re-run cmd) to node error_file
-+ appends output to node log_file
-+ delete the line from node gear file
- reads node error file and addds to @failures
- reads node log and extracts/returns timings and acceptable errors
collect timings and acceptable errors from node run
wait for threads
report failures
report leftovers
report acceptable errors
report summary
+ => subprocess
- => thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment