We run this tool primarily on our mirror-update nodes which are
currently Focal with python3.8. We want to drop the python35 testing so
that we can clean up our Xenial test nodes. Update afsmon's testing to
more closely match the current production environment and potential
future environments while also dropping python35 on Xenial jobs.
Small changes are made to fix a string escapes warning and a use of mock
error when running flake8.
Change-Id: Id509936bf9eb200fc92dcaa06a18c1a79ef13e2c
Backup volumes appear in the "vol listvol" with a "BK" status, which
broke our existing match which only handles RO/RW volumes.
Add matching for this, and a basic unit test for parsing of this
output.
Change-Id: I1b3e985f79977981b2f0d3e3d3823d99f7cf3626
Remove project name, Zuul no longer requires the project-name
for in-repo configuration. Omitting it makes forking or renaming
projects easier.
Move publish-to-pypi back to project-config, this should not be in-repo
since it's tag triggered.
Change-Id: I8df51040335a07b3d22a2a2f2857b08c36fc8e55
After discussion, the best way to see if volumes are being released is
to check the creation date.
This adds the creation date to reported volume stats, and also starts
reporting RO volumes by default too (skipping them was a theory to
reduce output, but they are important for seeing how releases are
working).
The creation date is reported in statsd with a unix timestamp gauge
Change-Id: I3feb4eac26bf1eb7196531b2d01029d28417e162
I guess technically the openafs tools are a dependency of this;
however they are not required for the purposes of unit testing and
building the package.
Change-Id: I9fdf51db0c0ee2708dfb57373e27cffc73e6016b
Add a fileservers option (which extends the cell list if specified).
Add debug option to config file
Better handle all config variables and better document the sample
config file.
With a few volumes, stats tend to go missing as there's a big flood of
individual packets. Use the statsd pipeline which is meant for this
sort of batch reporting.
Test-case is updated to handle the batched messages which are
delineated by newlines.