To support python3 in the near future this was done:
* Removed dependency on supervisor.
* Added template configuration for systemd target that includes all
services.
* Added templates configuration for systemd service for every single
service.
* Changed monasca_setup to use the new templates.
In the meanwhile code was formated to cope with pep8 settings and some
other small changes were done to comply with pycodestyle and
pydocstring.
Task: 4126
Story: 2000975
Depends-On: https://review.openstack.org/#/c/566475/
Change-Id: I0d0c4ea41a830581d6b9f247fad6a2dda1f96cbe
Waits up to 10 seconds for shutdowns to complete before returning.
Helps ensure restarts will actually start.
Allows us to remove the old 1 second sleep between start and stop,
which was not always necessary and not always enough.
Change-Id: I45c30cf2ffa29a77ee30b2b20b87519f32ee0b61
Changed some places to templates to make it possible to change agent
user using monasca_setup. There is one place that it is still
hard coded
The deb creation now uses a hardcoded mon-agent user instead of
monasca-agent
Change-Id: I8f2ee8903289d74c0397ccf911701c89e7a1b691
Converted the config file to yaml and updated the config processing logic to match.
Cleaned up some deprecated config item processing.
Change-Id: I8c5d9ad841b22d20825608ac9f2c82d8011b04f0
Removed all the lsb helper utils from the sysv init script
Added a better error message for template missing.
Added the ability to skip the definition of the monasca_api_url
Made check frequency configurable and added an option to monasca setup
Also set the forwarder flush interval to be calculated based on check
frequency.
Modified monasca-setup so it can work with non-standard paths.
Change-Id: If8916e17bf42ffb804fa6c79166149a9fd33c553
Renamed monagent package to monasca_agent and monsetup package to monasca_setup.
Also, renamed the monstatsd agent package to statsd to more closely match the internal
collector and forwarder packages.
Change-Id: I0649ae4341fe325007e2a8d37161d330e4c95d72