Commit Graph

99 Commits

Author SHA1 Message Date
OpenDev Sysadmins e89cba80c0 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:50:30 +00:00
Jenkins 536f851533 Merge "Add code to build collectd" 2017-03-21 23:46:55 +00:00
Jenkins 0e50513e0e Merge "Created the collectd-aodh-plugin" 2017-03-21 15:56:34 +00:00
Emma Foley 43d86ff1cd Add code to build collectd
- Add option to build collectd from source
  - Clones, builds and installs collectd under the source repo
- Add install_requirements function
- Add config options:
  - COLLECTD_INSTALL_TYPE
  - COLLECTD_REPO
  - COLLECTD_DIR
  - COLLECTD_BRANCH
  - COLLECTD_PREFIX
- Update documentation in doc/source/usage.rst
- Add service file for systemd
- Make sure the config dir is included

Partial-Bug: #1596966
Change-Id: I92156cf69438634c6340c21089538ff7ea716e6f
2017-03-21 15:34:52 +00:00
Helena McGough 1933ec8f29 Created the collectd-aodh-plugin
- Provided code that creates the collectd-aodh-plugin. Aodh alarms
    are created based on collectd notifications. Event alarms are
    created.
  - Included a .conf file for this change.
  - Added changes to the base.py file for the meters to facilitate
    this change.
  - Included a reno for this change.
  - Included tests for this change.

Change-Id: I7db01df69104aded199a8c43e8c7b433ff549763
2017-03-20 09:56:00 +00:00
Jenkins 911961d18a Merge "Add custom unit mapping to Gnocchi" 2017-03-10 17:30:06 +00:00
Jenkins 868a676b95 Merge "Add deployment code for gnocchi" 2017-03-10 17:30:00 +00:00
Jenkins aab8ad09e5 Merge "Requirements for binary installation" 2017-03-10 17:28:24 +00:00
Emma Foley fbf2959d6e Add custom unit mapping to Gnocchi
- Add new UNIT block to sample conf.
- Configure the UNIT block for Gnocchi.
- Add a new config_units function
- Change COLLECTD_CUSTOM_UNITS to COLLECTD_CEILOMETER_CUSTOM_UNITS
- Add COLLECTD_GNOCCHI_CUSTOM_UNITS config option

Change-Id: I93088f2299ac4b5679289b1526febcf5e773be02
2017-03-10 13:30:35 +00:00
Emma Foley fc514f3f0f Add deployment code for gnocchi
- Check if gnocchi/ceilometer services are enabled
- Configures gnocchi service
- Update devstackGSG.rst to remove workaround
  - Modulepath previously needed to be changed manually
- Add COLLECTD_{CEILOMETER,GNOCCHI}_ENABLED option

Change-Id: Ic644f53b53dcdbb92eef2c8ddf7d2888fc308797
2017-03-09 16:58:16 +00:00
Jenkins 1dd391a3de Merge "Fix duplicit collectd logging" 2017-03-02 17:12:24 +00:00
Helena McGough a5ae7b4613 Requirements for binary installation
- Binary installation requires the collectd service to be
    stopped once installed.

Change-Id: Idba586ccf7ae5a5680446f56b4ef60c6279ab3d5
2017-03-02 08:03:18 +00:00
Jenkins 1ca93526ca Merge "Check for unsupported distros" 2017-02-28 12:04:35 +00:00
Helena McGough 82c3a9ef1a Check for unsupported distros
- Updated install_requirements to check for and warn users
    of unsupported distros.

Change-Id: I66446be71ef8c3236449cc63c62c1a4fd114c066
2017-02-28 09:53:14 +00:00
Emma Foley 7505f014bd Added six to requirements
six is a required package to run the collectd-ceilometer-plugin.
It has been added to requirements.txt

Change-Id: Ibdce74802a731815dddec485ae9ae28f57563e38
2017-02-22 12:08:39 +00:00
Jaroslav Safka 9b2bcf893e Fix duplicit collectd logging
Decrease syslog verbosity when file logging is enabled.

Change-Id: If2c53556914cdc15e6442a264c44c7b9404838e8
Closes-Bug: #1644476
2017-02-14 12:39:21 +00:00
Jenkins 457fb7417e Merge "Install collectd_ceilometer module during deployment" 2017-02-10 15:46:56 +00:00
Emma Foley 5bfb438f1c Load logfile.conf first to help debugging
Conf files in $COLLECTD_CONF_DIR are loaded in alphabetical order.

If there is an error loading the python plugin, the logfile plugin is not
loaded.
To help debugging, the logfile should be loaded first.

Changing logfile.conf to 01-logfile.conf should fix this issue by making
collectd load the logfile.conf first

Closes-Bug: #1657859

Change-Id: I1f748d61d6d9a291bcc32476ac17bb0d60fdc573
2017-02-08 17:38:14 +00:00
Emma Foley 7ff2e4252f Install collectd_ceilometer module during deployment
pip_install collectd_ceilometer module
- Install libvirt-* requirements from the package manager so pip can build

This ensures is actually installed from teh requirements.txt file, in
relation to the related bug.

Change-Id: Iba26b1da863288e789f68646dee6a7f62fd6c160
Partial-Bug: #1644254
2017-02-08 17:00:03 +00:00
Jenkins 7231032cba Merge "Indent bash functions for better readability" 2017-01-26 15:50:45 +00:00
Emma Foley f0adfc65c0 Remove pbr-dependent code
- Remove the pbr import in colelctd_ceiloemter/__init__.py
- PBR is still needed for a pip_install, but was causing import
  errors in the plugin.

Change-Id: I24c6349caba3fdd097a5218cc048aa696bd27550
Closes-Bug: #1644254
2017-01-20 16:30:00 +00:00
Emma Foley 4eab82eb12 Indent bash functions for better readability
Change-Id: I5e3918a234efe9713a7ebf6273e85e917ac70e47
Closes-Bug: #1658113
2017-01-20 15:01:08 +00:00
Emma Foley 2e690a324c Add example gnocchi file
- Add a sample collectd-gnocchi-plugin.conf

Change-Id: Ie7997d0c4b35964002693ea0cc83d66372b56191
2017-01-17 09:55:32 +00:00
Emma Foley cfcdbfdfd1 Add collectd_gnocchi support
- Create a new gnocchi dir for the collectd-gnocchi plugin.
- Get gnocchi endpoint from keystone
- Add new _base_url format
- Create metrics if they don't already exist
- Add instructions to doc/source/devstackGSG.rst

Change-Id: Id7ce8130cb22f33147b7f031cd65564375db10d6
2017-01-17 09:55:32 +00:00
Emma Foley 4f1d999665 COLLECTD_CUSTOMIZE_UNITS -> COLLECTD_CUSTOM_UNITS
- Change the config variable name.
  - The config variable no longer references ceilometer.
  - It is now clearer that the config variable is for all plugins
  - The variable is a noun instead of a verb, so it's clearer that
    this is something to define, instead of a boolean.

- Update docs
  - Added a clarification on the format of the custom unit definition.
  - Corrected incorrect reference to COLLECTD_CEILOMETER_UNITS in
    devstackGSG.rst and usage.rst

Closes-Bug: #1656877
Change-Id: Ie688397242d57cf0fee6629fafb89afd8899a599
2017-01-16 16:18:50 +00:00
Jenkins 1e64bdeb1e Merge "Re-order logic in plugin.sh" 2017-01-13 20:59:51 +00:00
Helena McGough 5def6f9975 Updated documentation for CEILOMETER_BACKEND
- Updated devstackGSG.rst to set CEILOMETER_BACKEND
 - Added CEILOMETER_BACKEND to local.conf.minimal
 - Added a reno for this bug fix

Change-Id: Ibbf606021a1f0dcc0db6c586e092b03df423a7a5
Closes-Bug: #1655611
2017-01-13 12:38:40 +00:00
Emma Foley 2c7862cef3 Use KEYSTONE_SERVICE_URI instead of KEYSTONE_AUTH_URI
- KEYSTONE_AUTH_URI is the admin url
- Use KEYSTONE_SERVICE_URI to access keystone as a service user.

Closes-Bug: #1656063

Change-Id: I957e166931b3dea050d0cee3365250a92ae3a57f
2017-01-12 18:31:14 +00:00
Jenkins a5df9666fb Merge "Added -p flag to mkdir" 2017-01-11 14:04:47 +00:00
Jenkins e2ca9306d7 Merge "Add details on how to contribute" 2017-01-11 14:03:53 +00:00
Jenkins 336942144a Merge "Add troubleshooting guide" 2017-01-11 14:00:33 +00:00
Jenkins 2e2cec7b26 Merge "DevStack enablement of the collectd-ceilometer custom units feature" 2017-01-11 10:35:22 +00:00
Helena McGough 606902c455 DevStack enablement of the collectd-ceilometer custom units feature
- Added deployment code for custom units enablement
      - Updated the DevStack documentation to provide instructions on
        how to enable this feature
      - Editted the collectd-ceilometer-plugin.conf file to enable the
        feature
      - Added a reno for this change

Change-Id: Ia93da4abdf066ba677dcb3ee0e44388c06d97ff5
2017-01-11 10:18:08 +00:00
Jenkins 7cbb59d87e Merge "Remove installation.rst" 2017-01-11 10:13:27 +00:00
Emma Foley 6590b5cc21 Add details on how to contribute
Add collectd-ceilometer specific contrib information
- What needs to be included in a feature?
- How to add a reno entry

Change-Id: I91cf5af30eb0e26695dffd374f796023dd8af099
2017-01-10 13:26:17 +00:00
Emma Foley afb3843695 Remove installation.rst
- Remove installation.rst as the information has been superceeded
  by devstackGSG.rst and GSG.rst.

Change-Id: Iefcb16d4a657ba591e1e20e8cff8d31a6fd47c34
Closes-Bug: #1568178
2017-01-10 13:01:13 +00:00
Helena McGough a2759bcdb1 Added -p flag to mkdir
- Add -p flag when creating configuration directory
 - Added a reno for this bug fix

Closes-Bug: #1648554
Change-Id: I8882738db03675a43911c04aa0172d7d3a55c5f1
2017-01-10 10:10:03 +00:00
Helena McGough 67061abdc0 Documented the manual enablement of custom units feature for collectd-ceilometer-plugin
- Updated the GSG.rst file with instructions on how to
    enable the feature.
  - Provided a reno for this documentation update.

Change-Id: I007e262f2676067ebd3bdc16dac0e26155a1f1e9
2017-01-10 09:55:38 +00:00
Emma Foley bf32465eb1 Add troubleshooting guide
Add a trouble shooting guide for debugging common issues in your deployment

Change-Id: I8629f2a8ddf21c57878e6b09374aa4558d89e10e
2017-01-09 13:24:33 +00:00
Jenkins 54b4f156b2 Merge "Remove Keystone V2 API support" 2016-12-20 20:04:26 +00:00
Jaroslav Safka 95c0d43f19 Remove Keystone V2 API support
removing keystone v2.0 api because is no longer supported

Closes-Bug: #1614892
Change-Id: Iaeabc663990168e2d6959d8fb629234ca02128d1
2016-12-16 09:27:01 +00:00
Radek Zetik 53015ad86c Configuration of OS_TENANT_NAME
collectd-ceilometer-plugin.conf OS_TENANT_NAME was not set, therefore
was unable to connect to keystone as this value was not set during
deployment.
This change sets OS_TENANT_NAME to SERVICE_TENANT_NAME which is set by
devstack for all projects.

Change-Id: I2fdda934cb48d70bfc7f361a3916630f8aa912f7
Closes-Bug: #1649795
2016-12-14 16:42:25 +00:00
Petr Fortelny b98559c3bc Re-order logic in plugin.sh
- Move collectd installation into install section

Change-Id: I3613c6f167e47f70924c00252dcfdde71ed75eed
Closes-Bug: #1623992
2016-12-13 10:57:14 -05:00
Jenkins 2c26125421 Merge "Provides steps and documentations for installing collectd-ceilometer-plugin with Kolla." 2016-12-13 02:26:00 +00:00
Jenkins 9f128da4eb Merge "Refactor directory structure for multiple plugins" 2016-12-12 17:18:15 +00:00
Helena McGough 132158b1bb Updated Documentation
- Added Devstack GSG
 - Added sample local.conf.minimal
 - Added GSG from source

Change-Id: Ie58b99f11412627cc89916c777d700fcb80aa627
2016-12-07 17:16:23 +00:00
prithiv 994931559d Provides steps and documentations for installing
collectd-ceilometer-plugin with Kolla.

Change-Id: Ic23a8e9a13fac1141913c438f1f94b5ec1e7b447
Closes-Bug: #1628856
Co-Authored-By: Helena McGough helena.mcgough@intel.com
2016-12-06 20:19:19 +00:00
Emma Foley 4ab4f23b4d Add reno to the repo
Change-Id: If76e1055317347cf6c15f37751a5d8a83aebe959
2016-12-06 15:28:00 +00:00
Emma Foley 53bd946ff7 Refactor directory structure for multiple plugins
- Add collectd_ceilometer.ceilometer dir
- Add collectd_ceilometer.common dir
- Move test files to collectd_ceilometer/tests/{ceilometer,common}
- Add base code to collectd_ceilometer/tests

Change-Id: I5bd0a8cfe8eb55407f3d6827c0bb4b509dae8c8c
2016-12-05 18:07:32 +00:00
Emma Foley 3e98d4f26a Create separate config files for collectd plugins
- Add collectd-ceilometer-plugin.conf to etc/collectd.conf.d/
- Add logfile.conf to etc/collectd.conf.d/
- Add default values to the collectd-ceilometer-plugin.conf
- Add default values to the logfile.conf
During deployment:
- Add substitutions for the vars

Change-Id: I196367e6f48af94c053b149596c57a735109b9ed
2016-12-05 15:20:43 +00:00