Commit Graph

27 Commits

Author SHA1 Message Date
Zuul 0bbe8b439f Merge "Remove Babel requirement" 2020-02-12 01:05:43 +00:00
Zuul 2fb60c3721 Merge "flake8 regex fixes" 2020-02-12 01:05:43 +00:00
Ian Wienand bd5e4cddf3 Remove Babel requirement
It's not really clear why this was added, but it isn't required and
brings in false dependencies.

Change-Id: Icf0caf5eef266833adaae71936e959bdc61dbe94
2020-02-12 11:46:58 +11:00
Ian Wienand dcc872442f flake8 regex fixes
Prefix strings with regex escapes with "r"

Change-Id: I1dcbaa9947a693992e560ca258469b8cbcfcfec3
2020-02-12 11:46:58 +11:00
OpenDev Sysadmins 22eb6e9c67 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:26:08 +00:00
Ian Wienand 618e1833e1 Handle backup volumes
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
2018-10-10 17:18:57 +11:00
Andreas Jaeger 4817833717 Fix zuul.yaml
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
2018-08-16 21:57:35 +02:00
Ian Wienand bf39628920 Add timestamps to debug messages
Useful in log files to see when things are running

Change-Id: Ie19faf9dd0bab8545f96a2977f37c7387823e24c
2018-06-13 05:55:23 +10:00
Ian Wienand 494a12801b Remove accidental debug print
Change-Id: I0acd19c539e0d06be8081f46beb88209a8638640
2018-06-12 14:45:00 +10:00
Ian Wienand 1b0b447d51 Add creation date, report RO volumes
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
2018-06-08 13:15:49 +10:00
Ian Wienand 0c1cb59cc2 Run pep8
Change-Id: I9c0b96d7b3ca83c12617dc41d35dd31b8085534d
2018-06-08 12:50:09 +10:00
Ian Wienand 1427fb0803 Add empty bindep.txt
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
2018-06-08 12:50:09 +10:00
Ian Wienand b9ce078100 Add .gitreview
Change-Id: I7663c25de09161643884872706a957c8073159ac
2018-06-08 10:51:20 +10:00
Ian Wienand 593b4e30f0 Add basic zuul jobs
Change-Id: I3f1575108f9e745e3904c623987f8a6aaea3de35
2018-06-08 10:51:20 +10:00
Ian Wienand cacf936df8 Add some config options
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.
2018-06-05 11:54:37 +10:00
Ian Wienand 52734ec18e README.rst formatting fixes
Minor fixes for formatting
2018-06-05 11:54:12 +10:00
Ian Wienand 2bb567c24e Allow default statsd values
Show the defaults in the debug log if nothing is specified
2018-06-05 11:05:00 +10:00
Ian Wienand 26a7a2c827 Use statsd pipeline
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.
2018-06-05 09:58:52 +10:00
Ian Wienand 9d29fbb8b7 Fail early when no command given 2018-06-01 15:46:56 +10:00
Ian Wienand 5bc5403d6d Revert to pre-3.6 regex group matching 2018-06-01 15:43:07 +10:00
Ian Wienand c424ff5dd5 Update README 2018-06-01 15:31:15 +10:00
Ian Wienand a7122e2a2d pep8 fixes 2018-06-01 14:36:23 +10:00
Ian Wienand 719425d9f2 Add statsd reporter and test 2018-06-01 14:25:22 +10:00
Ian Wienand 8a1eb3901b Initial code motion
Rename things to just afsmon, and split out cmd from library.
2018-06-01 08:40:03 +10:00
Ian Wienand 60cd36e5de Initial framework 2018-05-31 19:40:44 +10:00
Ian Wienand 04b37aa1b7 Initial framework 2018-05-31 11:02:11 +10:00
Ian Wienand 3ac65b2a43
Initial commit 2018-05-31 10:40:51 +10:00