| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I18c2a212a3f4c3ebb55c882c403ac4c374596657
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.
We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.
Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]
[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328
Change-Id: I60485bcd7c69987ffa06dfad6e0e8bfa40570137
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Set the volume api version to 3.43 to make
sure we get 3.41 change where it exposes
the user_id for snapshots.
This will fix the volume.snapshot.size metric
that is not working when trying to access the
user_id throws a AttributeError.
Change-Id: I2414717e7c9e64b0092fe93c97a062a48dbf09a8
Closes-Bug: 1794475
|
|
|
|
|
|
|
| |
This change tracks the image_id and the instance_id of
volume.
Change-Id: I5e15080fad6cabece132d4609ed473494a64495e
|
|
|
|
|
|
|
| |
Volume Snapshot details include user_id since version 3.41
https://developer.openstack.org/api-ref/block-storage/v3/#list-snapshots-and-details
Change-Id: I13ab9733d79a19bc191792ee8c7d11ab477df52e
|
|
|
|
|
|
| |
common agent for all
Change-Id: I19a83d3d0e5c91ab5cb6e792ab7389e36f8ede55
|
|
|
|
|
|
|
|
| |
- corresponding work merged in cinder.
commit-id: 3f7acda20fb1e9e2623c86e560c4a5ab25b475e4
- switch to cinderv3 since v2 is deprecated
Change-Id: I347a463d33e662353147546ed4b302550eb3215d
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This remove pollsters option from configfile sample
due to a duplicate option registration. This will
be fixed later.
The exchange_control group in the config sample doesn't exit
in reality exchange are in DEFAULT group.
This removes usage of cfg.CONF everywhere left.
This adds all missing OPTS in sample file.
Change-Id: I48c11ee7e1aae65847958b98532b3bdb48a3ceb5
|
|
|
|
|
|
|
| |
This change add the support of metering size of volume/snapshot/backup.
Blueprint add-support-of-metering-volume-related-resources
Change-Id: I9c6ec1e79c267255e7839d70324726e56bc6d768
|
|
|
|
| |
Change-Id: Ica102ab3a003f4a7d84ad435c00993d5d81db767
|
|
|
|
|
|
|
|
|
| |
snapshot.update events are not emitted by cinder. So we
dont really need this code until cinder emits this
topic
Change-Id: Ie438642d072237f5c7e1d6741a1cbb2f2b55ddb1
Closes-bug: #1449104
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.
The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.
Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.
Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages
Change-Id: I2eeef93ee2e61a721c69f62add819f93f62f077d
|
|
|
|
|
|
|
|
|
| |
a large chunk of meters don't measure anything and are really
healthcheck events. these should be stored as events and not
samples. this patch adds an option to disable false meters and
warn if not disabled.
Change-Id: I654f657dd36967ad3ec99bbe06209e7745432e12
|
|
|
|
| |
Change-Id: Ia567c3aeb7f8516d0834dc8e4c3852e43a687043
|
|
|
|
| |
Change-Id: I85d5c8d3d9f00f86fd14500be0da1289f5672614
|
|
|
|
|
|
|
|
|
| |
That's the preparation for further compute and central agents
merge
Partially-Implements-Blueprint: merge-compute-central-agents
Change-Id: If5f151ab7d30c9711929f6dcade553fdca09ab67
|
|
|
|
|
|
|
|
|
| |
This change allows to collect and view notifications of different types -
volume/snapshot.(create | delete | update).(start | end) and
volume.(resize | attach | detach).(start | end).
Implements: blueprint add-new-notifications-types-for-volumes-and-snapshots
Change-Id: I592605bcea483d06f219a4d02d3a70a9fc0e27a3
|
|
|
|
|
|
|
|
| |
Handle attach and detach Cinder notifications so
the latest volume state is available in samples.
Closes-bug: #1353590
Change-Id: I725d04bee332429e864941199e37aef07a0f6adf
|
|
|
|
|
|
| |
H405 is a new rule in hacking 0.9, so fix new violations and
re-enable gating.
Change-Id: I61541fa0a9dc18ad938df54d56c65c972b151622
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The word "Copyright" alone is sufficient to claim copyright, the (c)
symbol need not be present.[1]
As per PEP 263, a Python file with non-ASCII characters must have a
line with "coding: <some-encoding>". Python files containing only
7-bit ASCII characters need no such line.[2]
This commit removes unnecessary Unicode copyright symbols and
unnecessary encoding lines.
[1]: http://www.copyright.gov/circs/circ03.pdf
[2]: http://legacy.python.org/dev/peps/pep-0263/
Closes-Bug: #1324686
Change-Id: Id381ea1f029a0cfddd3773c6d9f16c47842d9c33
|
|
|
|
|
|
|
|
|
| |
Cinder already publishes the required notifications, but Ceilometer
wasn't recording them. This patch fixes that.
Closes-Bug: #1316670
Change-Id: I53532d1833db2f22a803bf77e548f5d3b095a30f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The patch replaces oslo.rpc by oslo.messaging.
The important changes:
- On the collector, the queue name and the topic are now the same
(ie: metering, instead of ceilometer.collector.metering for the queue
and metering for the topic)
- Same for the alarm partitionner the queue is no more prefixed by
ceilometer.alarm.
Implements switch-to-oslo.messaging
Change-Id: Ia5e4ff1dd1d419c090b8039627234ae7f07e8660
|
|
|
|
|
|
|
|
|
|
| |
Follow oslo.config style guide for help strings better to create
consistent help strings:
* Capitalize first word of each help string
* Finish help strings with "."
* Improve wording
Change-Id: I4723ad672c30146869254695ba82678b082efd91
|
|
|
|
|
|
| |
Enabled H306 in tox.ini and corrected the import order.
Change-Id: If77984e8c62b0ec0cfb3d068e9c1b0d4d7c3583d
|
|
|
|
|
|
|
|
|
| |
Cinder sends a notification at the beginning and the end
of the resize process. Those notifications are volume.resize.start
and volume.resize.end. Handle them for proper usage logging.
Fixes: bug #1220377
Change-Id: I94f0c82594f2573749d124e2cc59f7f9ff4b689d
|
|
|
|
|
|
|
|
|
|
|
| |
This introduces a simpler matching system for event types that supports
wildcard. We use this to grab all Nova instances notifications and a bit
more Neutron events.
We also change the get_event_types to a property to simplify the code a
bit.
Change-Id: Ica133ff2e9348a5d2640f068251d034bbd8a4f43
|
|
|
|
|
| |
Change-Id: Id5e943cffd59bd439c235630ca040035128a919f
Blueprint: remove-counter
|
|
|
|
|
|
|
|
|
|
| |
This will make sure we don't lose any metadata information from
notifications into the Counter/samples we publish.
This is part of fixing bug #1187833 and bug #1187843
Change-Id: I315581907be1dcec33f43a5d5fd7b7876a7889f6
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
|
|
|
|
|
| |
What a better thing to do on a Friday afternoon to chill out before the
week-end?
Change-Id: Ie264d2bff02794d80ddbecb95a6b2ff9a3840d44
|
|
|
|
|
|
|
|
|
| |
change floating ip counters to 'ip' unit
change volume.size counters to 'GB' unit
change image.[update/upload/delete] counters to 'image' unit
Change-Id: Icdb92b3edf08d9cf9ea555b3bdfe7d452dd3ffff
Fixes:bug1173287
|
|
|
|
|
|
|
|
|
| |
update devstack documentation to include instructions on how to
enable cinder notifications
fix docstring in volume notifications to say volume instead of compute
Change-Id: I9491b4384b212f973211da7e7f716cd7d11d8052
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.
Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.
For each testenv in tox.ini which overrides the base testenv deps list,
explicitly include {pip,test}-requires in the list so that oslo-config
doesn't fail to install later when easy_install attempts to install
the tarball when doing 'python setup.py install'.
Retain dummy cfg.py file until keystoneclient middleware has been
updated (I18c450174277c8e2d15ed93879da6cd92074c27a).
Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
|
|
|
|
|
|
|
| |
This is needed to update openstack.common
Change-Id: I8410f978f38b3893b71239f97f785086ca5faffe
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
|
|
|
|
|
|
| |
* change pollsters and notification handlers to report units
* modify db storage to store units in counters
Change-Id: Ibd7e52623b84d26ca7bbc9f260c20fdf1d61a4bc
Implements: blueprint provide-meter-units
|
|
|
|
|
|
|
|
| |
We stop putting the source in the Counter, but we set it via the
configuration file and use it as a source.
Change-Id: I82c00ac5e55e09ab38de9364cda3194beb35e3c4
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add naming rules to doc
Rename root_disk_size -> disk.root.size
Rename ephemeral_disk_size -> disk.ephemeral.size
Rename floating_ip -> ip.floating
Rename volume_size -> volume.size
Change-Id: I4f99dd12efeea3acffbb79b551246b9e506d82a4
|
|
|
|
|
|
|
| |
This fixes bug #1039069
Change-Id: I17b5188d1cab08369599b1c936ab8d00b96dcf67
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
|
|
|
|
|
|
|
| |
Also fixes the type for floatingip counter.
This fixes bug#1059765
Change-Id: I367303e3d6b4cdf53d3f60222a922d3ccc8190b5
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
|
|
|
|
|
|
|
|
|
| |
After discussion with people outside of Ceilometer, it seems that absolute
is a confusing name. For example, what we call currently 'delta' is called
'absolute' in RRD.
Using gauge seems to be clearer.
Change-Id: I1b686e34a1294cbdd35cdb84e3ab9c6c78df04dd
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
|
|
|
|
|
|
|
| |
We allow plugin to specify clearly which exchange and topic there are
interested in, and we call directly the handler process notification without
looking in a dict to be faster.
Change-Id: I867f0b2568d140bfc0dae63163fd02c8c080d8d1
Signed-off-by: Julien Danjou <julien@danjou.info>
|
|
|
|
|
|
|
|
|
|
| |
Fixes bug 1057462
Register interest in volume.delete.start events instead of
volume.delete.end so that the owner isn't charged for time
taken to tear down the volume.
Change-Id: Idf27876aff8a3ccb2a6f76679744c8513783d523
|
|
This implements bug #1021772
Change-Id: Ic0292e8bdc20668abd331f4f03b06b9d1496217a
Signed-off-by: Julien Danjou <julien@danjou.info>
|