From django V1.9 django.utils.datastructures.SortedDict
will be removed and it is deprecated in V1.7.
The similar functionality is added in collections.OrderedDict
from python 2.7.
Horizon code also should avoid the SortedDict class and
start using the OrderedDict class.
This patch replacing the SortedDict with OrderedDict.
Change-Id: I8dfcf7c29fc49b6215451f160cf7a951bf11b5ad
Closes-Bug: #1492270
Change "hardware.ipmi.node.inlet.temperature"
meter name to "harware.ipmi.node.temperature".
The change is according to ceilometer service.
Please reference:
https://review.openstack.org/#/c/170379.
Closes-Bug: #1455335
Change-Id: I6192993775a36fd6081ba91de14a6a940130fa87
Currently we using a meter-list for getting a "unit" for metric.
Meter list get all available metric on environment,
it's may be a thousands of records.
It's better to use sample-list for this metric with "limit" 1.
This request gets a 1 sample for queried metric.
Change-Id: I4bf0ab7ebcbcae1ddc90d8ee01d5f5a84ed4fbba
Related-bug: #1444456
We have made the ipmi meters visible in "Resource Usage" panel.
Now a meter should be removed and other 7 meters missed need to
be added in. All these meters are under IPMI protocol.
Change-Id: I34ed7187347ff4a4cfac7c572f16e03f1fe15b39
Closes-Bug: #1436635
On file ceilometer.py some changes were made regarding with
units and clarifying some other descriptions.
Additionally few minor improvements have been applied for existing
comments and redundant conditional parentheses have been removed.
Change-Id: I379033bf40a86a624605ae8f0f39654bfd15cd4d
Closes-Bug: #1288487
Co-Authored-By: Facundo Farias <facundo.farias@intel.com>
Co-Authored-By: Kamil Rykowski <kamil.rykowski@intel.com>
To implement blueprint: ipmi-meters-in-horizon
We know Horizon has already implemented
the blueprint which the name is
admin-resource-usage-page. See Change-Id:
I21342d595ee08da45707e909f3d9802707d912cc.
It includes most of the meters at that time.
IPMI meters has already been implemented now,
so just add the ipmi meters into this structure.
This change-Id adds 6 ipmi meters exported
from ceilometer. It adds "list_ipmi" and
"_get_ipmi_meters_info" methods to get meter datas.
See this blueprint at:
https://blueprints.launchpad.net/horizon/+spec/ipmi-meters-in-horizon
Change-Id: I7e3a76ed032090f89f2a51c56c620cbeb7560412
Implements: blueprint ipmi-meters-in-horizon
There are some missing meters(network.*.rate, disk.*.rate, memory.usage)
not included.
http://docs.openstack.org/developer/ceilometer/measurements.html
This patch adds these missing meters.
Change-Id: I4e96f00f40c9d45ddbf6c21cf6bfb5e9b50aa646
Closes-bug: 1348895
Previously token values are logged as DEBUG level when a new client
object is instantiated. In other project and clients, token values
are now not logged and is output as *REDACTED* instead.
In Horizon these log lines do not have much meaning and
we can simply remove them.
Change-Id: I67617ac6424907574d79ec2a57b513a548e220d2
Closes-Bug: #1380642
E127 continuation line over-indented for visual indent
Also fixes E127 introduces by other reviews
after other E127 fixes were merged.
Closes-Bug: #1375931
Change-Id: I0a09f1c2f74c707fc8a347f0ea5975bf2679976e
Previously API client object like novaclient are created
every time methods in openstack_dashboard/api.
It leads to regeneration of API HTTP connections.
This commit caches API client object for a WSGI request
to reduce the number of HTTP connection to backends.
As WSGI request object is recreated, a cached API client
object will live in a single request to Horizon.
Change-Id: I66620b3b0a2737c7232d91006e65d0fabbd3090b
Closes-Bug: #1352144
Storing of meters in the wrapper object attributes is bad. It
can lead to name conflicts, which can theoretically result
in weird bugs.
Change-Id: I7b1a248be52721b0401fba7bf976b9c4e63f71ba
Implements: blueprint ceilometer-api-enhancements
Remove vim setting:
comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4
at the top of source code files, except for files in
openstack/common.
Change-Id: I9a5c6b17c6ef7ecec601f4503dfc7b31fc72e90a
Close-bug: #1229324
This metric seems to have an existential crisis.
Change to more succinct "Image existence check"
Change-Id: I953c55214e73bb93c452b25f97960e9637f1008c
Closes-Bug: #1292937
We have a lot of import with #noqa that is there to ignore h302,
because it's traditional to import and use a name directly, instead
of a whole module. This hides other errors and gives people the
impression that it's actually fine to import non-modules, you just
have to slap #noqa on those lines.
I went through the code and identified about a dozen names that are
most commonly imported this way. I remove the #noqa tag from them,
and added them to the list in import_exceptions.
I also removed a few unused imports that were revealed in the process.
Change-Id: I27afb8e2b1d4759ec974ded9464d8f010312ee78
Fixed error in the code responsible for retrieving the
list of meters tied to glance
Change-Id: I911288e944f4f573d1f1d40a756f548663202515
Closes-Bug: #1265762
- Extract the metadata of the meters to a class (label,
description)
- The list operation support (only, except) filter
- It supports listing meters by their service e.g. .list_nova(),
.list_neutron()
- Tests for meters list written.
Fixes bug 1226479
Change-Id: Ifa366fd2de3e8f4e31347962630f96344ebba974
The tables were interpreting the stats in a wrong way, for some stats
it's not even easily possible to get those stats. We need to go through
each statistic separately and document it in the Ceilometer docs first.
Then it's more likely that these table stats will be distributed in
various tables in dashboard in the form of sparklines so these pages
won't be needed.
Fixes bug 1249279
Change-Id: Ib8c110f5d66fae50df12f8f0beeb99c2b2d00bf6
In an effort to help horizon more friendly to OpenStack hacking
guidelines, we now gate on H40* violations.
Change-Id: Id07294543660368d2f7f5ac363710176ab23b874
Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
- optimizing requests for resource by multithreading on resource level
(each resource is obtaining stats in separate thread)
- fix last comment addressed in review
https://review.openstack.org/#/c/35589/
- fixing typos and misleading comments
Fixes bug 1218407
Change-Id: I24826bac7679bd075792691e3ed9a342aa1659fb
The various OpenStack client libaries support specifying a SSL
certificate that should be used to verify the SSL-connection, but
this option was not exposed in the horizon options. This patch
implements that. Note that although some clients do implement a
cacert-parameter, they do not necessarily actually verify the
certificate (Swift).
Change-Id: I9dfbd48a0d96103421da7d884e839d591a90cab1
Implements: blueprint ssl-cacert
Adding ceilometer api basic function wrappers.
Adding Class wrapper of each ceilometer object.
Adding ceilometer general usage wrappers for common statistics over
list of Resources and ResourceAggregates.
Adding specific table statistics wrappers.
Adding tests and test data for Ceilometer API.
Best to be tested with commit for resource usage panel at:
https://review.openstack.org/#/c/35590/ - this commit is for the
test purpose only.
Link to bp: https://blueprints.launchpad.net/horizon/+spec/ceilometer
Implements bp ceilometer.
Change-Id: I5b3392de8bae2be8cbcba7a580af669676e54052