flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.
Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.
To avoid similar gate break in future, we need to bump the hacking min
version.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html
Change-Id: I4d54bfabc2faabd302b613378e49326de9a1cc8f
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I8ac5e339700316b07b7c548f24ffc8dd83110df3
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
With the Monasca Publisher now a supported pipeline in
Ceilometer, the functionality of Ceilosca can now be simply
configured in a Ceilometer deployment.
This commit makes a comment in the README to explain that.
Change-Id: Ia3cea3d5f87d952ac1f2638ac5180861006a889f
Story: #2007560
Task: #39439
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Change-Id: Ica99c9a4affd2b693ef74f1e3ef7c8ea2c6a46d6
There was a recent question in IRC about how to configure Ceilosca.
These edits should make it clearer that Gnocchi is not needed
in a Ceilosca deployment, and how to disable it.
Change-Id: I25b894e1ad222e3b55c6787c0625c03b9ebdcbf1
In our efforts to clean up meters that were removed from Ceilometer
in the Rocky release (see c514916761 )
the ceilosca_pipeline.yaml was deleted. However, that file is needed
for the devstack plugin, as specified in devstack/settings .
This patch restores that file, and renames it to make the purpose
clearer.
Also added comments to the pipeline.yaml files to indicate their
purpose.
Change-Id: I28de9011d3e8c73f9d5057c8ca05cd42d3262dfc
Gathering up some configurations that have actually been used
in production as examples for user configurations of Ceilosca.
Story: 2001766
Task: 33543
Change-Id: If6eb225c74e417041a557426c796e814ffc40aba
A number of meters have been removed from Ceilometer in Rocky release.
This change updates the example configuration files to reflect it.
README.rst has been updated to reflect the current state.
Change-Id: I05650fef1cc5dc0d9e9f6e9a5aa66a5017b2377a
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.
This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.
This update should result in no functional change.
For more information see the thread at
http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html
Change-Id: I37a7c44da90e2067adf7b99154fb21e534e4f504
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I1d9ae44d4956d6c76bda9232ef8aee8c965164e2
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.
Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.
More details can be found in this mailing list post:
http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html
Change-Id: I8a7b18ed2b8cd2386f6a44598545bb7e37e77de4
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
There have been a few changes in ceilometer repository, specifically
https://review.openstack.org/#/c/596378/, which warrant an update
post-Rocky.
Change-Id: I9e127e0976be4c44bd56a977a755564a88fc1b44
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Ib4546226c254ef59d2b1b872f32267d2541e72de
The built-in unicode no longer exists under python 3, so using it causes
pylint to report an undefined name. Use six.text_type instead.
Change-Id: I0b015bb56893e6683a6c36a63cb28aead07cc47c
Story: 2003240
Task: 26766
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.
Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.
Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: I034ae602a55acb445237c155f5de3beb8e12849c
Story: #2002586
Task: #24312
As of Queens the Ceilometer V2 API has been removed. Storage
driver related code in monasca-ceilometer can thus be removed.
Backport some refactoring that came up in creating
https://review.openstack.org/#/c/562400/
Realized some class names could be clearer and fit better with
Ceilometer.
Update test-requirements.txt with Rocky release of
python-monascaclient. Also include more license info.
Specify py35 instead of py34 in tox.ini (gates already using py35).
Include updates to devstack configuration to keep up with master
ceilometer. These include adding values for the [monasca] section
in ceilometer.conf and refreshing setup.cfg as well as updating
how the connection url to Monasca API is configured.
Also include some testing notes in devstack/README.md
Change-Id: I9291dfc06d67f18109a0ff66184bd418c6361977
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository and .testr.conf
are unnecessary and should be removed.
[1] https://review.openstack.org/576862
Change-Id: I9f35e4f1341848a62a143b7f7150f2b845575861
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: Ib1f69777740eceece1e4d4e1ef6979383fb714d7
Signed-off-by: Charles Short <zulcss@gmail.com>
Fill in some examples and detail about which files configure
the mapping behavior.
Change-Id: I5a3b3e643ec9dee05fdf0b9fd3ecce260eb44b0e
Story: 2001766
Task: 12169
monasca-ceilometer repo has an example copy of the ceilometer.conf
file used for devstack deployment and as an example. Ceilometer
project has made a few changes in Pike and Queens (including
removal of the famous v2 API), so some options have changed.
Also noticed a typo in devstack/plugin.sh.
Change-Id: I2dabefd825bbe131b42d435af479075f8a372e0d
This updates the README. Following work has been done:
* Indent some lines (there is a rendering issue on github)
* Remove the "Edit entry_points.txt" step. (This file doesn't exist anymore
in any of Ceilometer's upstream branches.)
* Update some parts of "Edit setup.cfg" step: the 'ceilometer.publisher' section
doesn't exist anymore.
* Remove 'storage/impl_monasca.py' from files to copy step
* Add opts.py and monasca_ceilometer_opts.py to copy step
* Wrap lines > 80 chars
* Made relevant files a bullet list
* Update branch from stable/liberty to stable/pike
Change-Id: I77820547df9cc1514896f56a567db779ed00e1f8