Commit Graph

38 Commits

Author SHA1 Message Date
Takashi Kajinami 318c54648c Remove support for neutron-lbaas
... because it is of no use since neutron-lbaas was retired and was
replaced by Octavia. This feature was officially deprecated during
Yoga cycle[1] so we are ready to remove it.

[1] 8917c73964

Change-Id: Ic145c23cc0b0372ef78f4a45ffb084bec24936c3
2022-06-08 14:44:35 +00:00
zhufl 784cb2c827 Fix invalid argument formatting in the exception message
This is to fix the invalid argument formatting in the exception message.

Change-Id: I828be0751e598cf1aad25f78241b2fbc7b2e1781
2021-01-12 10:14:13 +00:00
Dmitriy Rabotyagov 648ce9b668 Run migration with NotFound exception as well
Gnocchi start returning regular 404 when requesting resource that do not
exist [1]. That means, that in case of 404, which is also excpected,
we just fail resource creation.

[1] http://paste.openstack.org/show/796938/

Change-Id: Ie5f8caba3111db7e7e8e50b9bc58c6e8de606338
2020-08-19 12:20:24 +03:00
Dmitriy Rabotyagov 49b098eda4 Run migration with NotFound exception as well
Gnocchi start returning regular 404 when requesting resource that do not
exist [1]. That means, that in case of 404, which is also excpected,
we just fail resource creation.

[1] http://paste.openstack.org/show/796884/

Change-Id: I7061a31405a421da3ab2f192259fb23c5aa54ce6
2020-08-17 15:29:07 +03:00
Jorge Niedbalski cd9e199076 Add loadbalancer resource type.
Adds the loadbalancer resource type for usage
with the network.services.lb.* metrics.

Change-Id: Ib6e78438c3da0e22d93f720f00cdeadf0ed7a91f
Closes-Bug: #1848286
Signed-off-by: Jorge Niedbalski <jnr@metaklass.org>
2019-11-07 18:38:28 -03:00
Zuul 5ca16ccee7 Merge "Pass gnocchi endpoint into adapter endpoint_override param" 2019-04-30 11:13:18 +00:00
Sam Morrison 21a810fec6 Add availability_zone attribute to gnocchi instance resources.
Since moving to libvirt nova-compute poller we no longer have
the availability_zone attribute of an instance available.

We can capture instance.create.end events and create gnocchi resources
based on these which do have the availability_zone availabile.

Currently we are only handling delete events for resources, this
patch adds the handling of create events for this purpose.

Change-Id: Ieddbddd4ddb6af11d5158f5c90c87ae4f847bb96
2019-03-21 09:26:23 +11:00
Jeffrey Zhang 926596b93c Pass gnocchi endpoint into adapter endpoint_override param
In default, since the url in gnocchi has no netloc, it will trigger the
keystoneauth.serssion to get the gnocchi endpoint again. It will
consumer lots of CPU time and make lots of pressure on keystone service.

This patch try to pass the gnocchi endpoint into adapter through
endpoint_override parameter. It saves around almost 20% CPU time.

Change-Id: Ia0c825a2c81298c3a10fedc1ad3861f1d0b2f3e8
2018-12-10 10:50:08 +08:00
Mehdi Abaakouk be22389c47 cinder: link volume to image and instance
This change tracks the image_id and the instance_id of
volume.

Change-Id: I5e15080fad6cabece132d4609ed473494a64495e
2018-02-27 16:14:19 +01:00
Mehdi Abaakouk 36414e1ceb Add new attributes to instance
This change adds launched_at/started_at/deleted_at attribute to instance.

Rely on started_at/ended_at of Gnocchi to known when the operation have
done is not precise. Nova records the exact time of this event, just
copy them to Gnocchi.

Change-Id: If7870fd525d1ef58e4c2dbbbf93525bab3623b0f
2018-02-27 16:14:19 +01:00
gord chung 663c523328 add ipmi sensor data to gnocchi
we've been missing this data for a while.

Change-Id: I0df15c3e2f4ce98a41320a711e1f18d2c5d7c34d
Related-Bug: #1746736
2018-02-09 19:12:27 +00:00
gord chung 3295542057 add volume provider resource types to gnocchi
Implements: cinder-capacity-notifications
Change-Id: I23429467e61fea701949b99a2ac53eb988a6cf64
2018-01-24 17:07:00 +00:00
Mehdi Abaakouk 02c99b1867 Check required Gnocchi version is installed
Change-Id: I301511279c1d49736027e51274c8740935e154b0
2018-01-04 10:37:46 +01:00
Julien Danjou 83ffaffcb2 Replace the Gnocchi dispatcher by a publisher
This removes the deprecated Gnocchi dispatcher and replaces it by its
equivalent publisher.

Change-Id: Ie44baf20ccb8de5794f5f0c3d4717f7e56afa63b
2017-10-13 18:18:07 +02:00
gord chung c49546b43f support new gnocchiclient interface
support for explicitly setting interface/regoin_name was changed in
gnocchiclient 3.1 and remove in gnocchiclient 4.

temporarily cap gnocchiclient to allow gate to pass

Closes-Bug: #1714483
Change-Id: I851e16f537f547fb3a31fb22535dd4dae62fb235
2017-09-03 19:44:22 +00:00
Victoria Martinez de la Cruz 04d77e1d9e Fix share.size meter
Availability zone and name attributes were marked
as required while they are not, hence causing errors
when Gnocchi tried to create the resource.

This patch set removes the requirement over those attributes.
Availability zone has been removed, it will be shown only
when its present. Name has been replaced with share_id, which
is always present.

Other attributes has been added as well to keep track of other
relevant data.

Closes-Bug: #1706440

Change-Id: I191bcfae155278f7688c1148ad7e6994a0322fa6
2017-07-28 18:12:41 -03:00
Deepthi V V 5621e1cc32 Gnocchi support for SDN controller meters
Change-Id: Ice633b842698b3ed69676686bfc75e60e5690624
Implements: blueprint network-statistics-from-opendaylight
2017-07-19 00:38:56 +05:30
Victoria Martinez de la Cruz d89b6c3b4c Add share create/delete/expand/shrink meters
Partially-Implements: blueprint manila-meters

Change-Id: Iaeb1e1ffc2b9c5f6e93f68f8b319066335781377
2017-06-16 12:18:54 -03:00
Matt Wisch 5e430aeeff Added Nova Compute CPU metrics to gnocchi_resources.yaml
By default, there is no supporting configuration in Ceilometer
to handle CPU monitors provided by the Nova compute_monitors
driver (cpu.virt_driver in this case).

Added metric defitions provided by cpu.virt_driver to
ceilometer/dispatcher/data/gnocchi_resources.yaml under a new
resource type, nova_compute. This enables these metrics to be
passed by the dispatcher to Gnocchi.

Added create_resource_type operation to gnocchi_client
upgrade_resource_types operations.  This way the resources_initial
dict can stay static, but new resource types can be added as
needed by the upgrade resource types function.

Change-Id: I7698ba3168f79d05943042971039aea9a4c4e1a9
Closes-Bug: #1693846
2017-06-12 08:37:10 -04:00
Julien Danjou c84c113c0a gnocchi/notification: allow to configure the maximum number of requests in parallel
This overrides the number of $executor_thread_pool_size with a global option
that is also used to set the number of parallel requests to Gnocchi that can be
done.

Change-Id: Iaa7e3d0739a63d571dd2afc262d191dffe5a0eef
2017-04-24 16:57:28 +02:00
gord chung ff64b360ce make gnocchi posting more resilient
gnocchi might be slow occasionally so we should just retry a few
times before raising issue.

Change-Id: I92cc9e0e7d659b1b36839d566c8440335edd8063
2017-03-10 19:06:14 +00:00
gord chung 7c6160e3a1 support gnocchi timeout
set gnocchi timeout to 6.05 because requests recommends multiple
of 3[1]. also, it seems safe to assume gnocchi is not functioning well
and will not scale if we can't post in 6s. in my benchmark, it took
under 0.25s to post 5000 points. the only thing that took >3s was
getting >80K datapoints and this workflow is only pushing, and only
getting small chunks occasionally. making it 6s because it seems
keystone adds decent overhead.

do not set timeout for upgrade because it might take longer than normal
workflow

[1] http://docs.python-requests.org/en/master/user/advanced/#timeouts

Change-Id: I41b5e4f0c0f54b7f4b627d9116e63096ca2decf9
Closes-Bug: #1666072
2017-02-24 21:31:02 +00:00
Mehdi Abaakouk c07fd33b6a nova: track flavor name
We currently track only the flavor id, but this one can disapear over
the time. When the name is always present.

Change-Id: Ib1da71a0fad06c844b75683193a10e774a1c94e3
2017-02-15 16:31:42 +01:00
gord chung 7cdee69e35 remove endpoint_override
this isn't used anywhere.

Change-Id: Ic22e1855fd05d1aafc77a8785e1b82812b0642e1
2017-01-31 15:16:26 +00:00
Mehdi Abaakouk 49aac3d607 fix the gnocchi resource type upgrade
This fixes the upgrade code to return -1 on exception,
and the volume updates dict.

Change-Id: I3eb2f718428082d4c637cf0f13d503737cfcf1cb
2017-01-10 10:37:13 +01:00
Mehdi Abaakouk 407b726fc2 upgrade: fix gnocchi resource update
This fix the gnocchi upgrade code.

Also it makes devstack fail if the upgrade don't work.

Change-Id: I658adf71fb997b63daeb2a56d9a6303103ef446d
2017-01-05 09:41:10 +01:00
Jenkins 96d6f0b4d1 Merge "gnocchi: Allow to set a different creds section" 2017-01-03 18:10:19 +00:00
Jenkins 9e89918fcc Merge "gnocchi: Add volume_type attribute to volume" 2016-12-14 19:31:32 +00:00
Mehdi Abaakouk 638f691a9e gnocchi: Allow to set a different creds section
This change will allow to remove keystoneauth in Gnocchi
dispatcher for people where authentication of Gnocchi
request doesn't make sense.

Change-Id: If3a47f091a80333a0e7e0246e28040254c4f423b
2016-12-13 12:35:32 +01:00
Mehdi Abaakouk 970358ce5e gnocchi: Add volume_type attribute to volume
Change-Id: I3b968d35dc30122756abdbabd96424fc8e587d25
Co-Authored-By: zhangguoqing <zhang.guoqing@99cloud.net>
2016-12-13 07:35:00 +00:00
gord chung 43ec7637cf cleanup gnocchiclient
we don't support url for since mitaka. it is discovered via keystone

Change-Id: Ic7ef35bf208e2a8a1c8fe3c54f8c23abd0c5c50e
2016-11-30 16:57:15 +00:00
Jenkins c0210dd0a2 Merge "Change gnocchi_ext.NotFound to gnocchi_ext.ResourceTypeNotFound" 2016-11-30 16:22:27 +00:00
fengchaoyang 6c90b469c0 Change gnocchi_ext.NotFound to gnocchi_ext.ResourceTypeNotFound
Makes the exception locator more specific.

Change-Id: Ia2fd73666f9da9ac132f7408996defe92a677cc0
2016-11-30 20:03:12 +08:00
Mehdi Abaakouk 1842e19487 register ceilometer options at runtime
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
2016-11-24 15:29:46 +01:00
Mehdi Abaakouk fce0729c63 gnocchi: remove useless keepalive adapter
This adapter is created by keystoneauth1 when no request session
object is pass to keystoneauth1. So remove it from Ceilometer.

Change-Id: I71f16ab0830cb4f3931be8615ffeb7fecf6f6af3
2016-11-22 08:28:18 +01:00
Hanxi Liu bbcf7e0b00 comment: remove unused comment
When we use ceilometer-upgrade, we get the same gnocchi resources as
gnocchi-upgrade produces. To avoid confusing people with the duplicate
resources, we will drop the gnocchi side. So the comment has no sense.

Change-Id: Id5e31e3c2015a65d63a7ad787a93036c6214c279
2016-11-18 23:38:16 +08:00
Mehdi Abaakouk 336fffe3f1 keystone_client: stop using global conf
Change-Id: I464ec9b619c5f68814d71be0d5741375a6224529
2016-11-04 09:25:30 +01:00
Mehdi Abaakouk 9709608bb1 gnocchi: Create resource-types on upgrades
Change-Id: Ibc7ce7daf598a5d5702655d50e116cefcc8267bc
2016-09-06 15:33:33 +02:00