Change: %s by {:s}, %d by {:d} in string and use .format method for formatting
Closes-bug: #1552139
Change-Id: Ic9bdf9200fa89fa7c78f2806a7b94e3eee914cf9
- set python3 as an interpretator
- add '.decode()' to convert strings from 'binary' mode for python3
Change-Id: I92fe5fcee471af44e2c0bad3bf437480f12df703
Closes-Bug: #1439135
This tool can extract the useful lines from Astute and Puppet logs
within the Fuel log snapshot or on the live Fuel master node.
usage: fuel_logs [-h] [--astute] [--puppet] [--clear] [--sort] [--evals]
[--mcagent] [--less]
[SNAPSHOT [SNAPSHOT ...]]
positional arguments:
SNAPSHOT Take logs from these snapshots
optional arguments:
-h, --help show this help message and exit
--astute, -a Parse Astute log
--puppet, -p Parse Puppet logs
--clear, -c Clear the logs on the master node
--sort, -s Sort Puppet logs by date
--evals, -e Show Puppet evaltrace lines
--mcagent, -m Show Astute MCAgent calls debug
--less, -l Redirect data to the "less" pager
Using anywhere to view Fuel snapshot data:
fuel_logs.py fail_error_deploy_ha_vlan-2015_02_20__20_35_18.tar.gz
Using on the live Fuel Master node:
fuel_logs.py -a View the current Astute log
fuel_logs.py -p View the current Puppet logs
Using without -a and -p options assumes both options
fuel_logs.py -c Truncates Astute and Puppet logs. Respects -a and -p options.
It you are running and debugging many deployments on a single master node
you may want to truncate the logs from the previous deployments. Using -l
option is aslo recomended for interactive use.
Fuel-CI: disable
Change-Id: Id6985625c07bd4751cdb214fba8ed4f9243f3591