summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add vanity names to notification samplesstable/wallabyYadnesh Kulkarni2023-04-245-46/+88
| | | | | | | | | | | | | | | | | | This change adds "project_name" and "user_name" fields to the polling samples created from notifications of "event_type". Also move caching helper functions into "ceilometer/cache_utils.py" to make them accessible throughout the project. Conflicts: ceilometer/tests/unit/meter/test_notifications.py Change-Id: I68bd4ee096b28a2fd952e749d56a6b3eed9bfb94 (cherry picked from commit 6e339d3e74df5460d372b3e2abce27664ddb1100) (cherry picked from commit d9a61da15033a55b5730974a9c6a4868c1d98d0f) (cherry picked from commit 600dbfab1e227efc16b03b693d08354eaf1d0f98) (cherry picked from commit 5191f9466a7a36e3b9c2cc48227cfe40d234bd9f) (cherry picked from commit 3d03c31ae69b65033da653c6a8b205d54737fa08)
* Change oslo_cache implementationYadnesh Kulkarni2023-04-246-53/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As of now to leverage caching, oslo_cache library has to be imported and configured everytime it's needed. This change migrates such implementatio to use `cache_utils.py` which returns a cache client to perform caching operations. This eliminates the purpose of importing oslo_cache everytime when needed. To get a cache client: ``` from ceilometer import cache_utils . cache_client = cache_utils.get_client(conf) ``` Update oslo.utils to 4.7.0 to import "md5" from "oslo_utils.secretutils". Conflicts: ceilometer/publisher/gnocchi.py Signed-off-by: Yadnesh Kulkarni <ykulkarn@redhat.com> Change-Id: I14f9e1cbe84a953b092c3a88345d5faa9bcc9fb2 (cherry picked from commit b4a2801ec6a99df400d353d27a11de9be879c2a3) (cherry picked from commit 6bc73e6c07622935eca55f79829ec724e1374df4) (cherry picked from commit 2f2bb9a01225558bb92a1d6c5fedece2ca5ef04f) (cherry picked from commit 5dcf16000025ddae959f6de8592506d475390883)
* Merge "Add vanity names to telemetry polling notifications" into stable/wallabyZuul2023-04-201-0/+2
|\
| * Add vanity names to telemetry polling notificationsYadnesh Kulkarni2023-04-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | This change adds "project_name" and "user_name" fields to polling samples which is related to the identification of vanity names change 79454d6b22787627ae6239aa7b2707101ba30212 Depends-On: https://review.opendev.org/c/openstack/ceilometer/+/880506 Change-Id: I5fbe97439e7fadbdd8fd2641c49f1c88fbc416fc (cherry picked from commit 2a5f63da95a26dae46707a2a22e593604726aeae)
* | Add user/project names to polled samplesYadnesh Kulkarni2023-04-176-2/+138
|/ | | | | | | | | | | | | | | | | | | Project and user names would be first fetched from cache, if not found, they will be requested from keystone and then cached. Using cache will significanlty reduce the number of calls made to keystone. If ceilometer is configured with no caching backend, the results will always be fetched by querying request to keystone. A new config option, `tenant_name_discovery` is introduced to operate this feature. This feature is optional and is disabled by default. No attempts to identify names will be made if uuids are found to be `None`. Signed-off-by: Yadnesh Kulkarni <ykulkarn@redhat.com> Change-Id: Iee5dbf09a1fd3ac571746fc66d2683eb8e6a1b27 (cherry picked from commit 79454d6b22787627ae6239aa7b2707101ba30212) (cherry picked from commit 1da0e14bef969c7ccff57910f1b4408234d50f5c)
* Add centos9s jobsEmma Foley2023-02-141-0/+8
| | | | | | | | Depends-On: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/853291 Depends-On: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/853829 Depends-On: https://review.opendev.org/c/openstack/devstack/+/855344 Change-Id: Ib396c0072c57181f1672444e6fd6c8407d27f8c4
* Fix swift pollsters that use get_accountPavlo Shchelokovskyy2023-01-182-2/+2
| | | | | | | | | | | | this is a followup to I38f9ff2bec0a2a3cb9dfc5c362284e33c12f3127 in swiftclient, head_account and get_account have somewhat different signatures, specifically order of kwargs. While passing http_conn as third arg works for head_account, it does not work for get_account. In order for it to work for both, it must be passed as kwarg. Change-Id: I5433dc248e3f02c67107466408ed8c9ea8dd16a7 (cherry picked from commit 05ac6c5d52f94ee4129c521974430fa582323bb6)
* Merge "Fix OutgoingBytesDeltaPollster sample name" into stable/wallabyZuul2022-12-211-1/+1
|\
| * Fix OutgoingBytesDeltaPollster sample nameArnaud Morin2022-12-061-1/+1
| | | | | | | | | | | | | | | | | | The good name is network.outgoing.bytes.delta. Change-Id: I78e9fbe9d60b3e83761f6490d25e85ad54fcc7c4 Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com> (cherry picked from commit 7a507457cb5180296922d1f533751259dee7a19c) (cherry picked from commit 5d246c6ceaff22eca7eaa1591bdecd8818aef555)
* | Fix broken test_discovery_with_libvirt_errorSzymon Wroblewski2022-12-151-5/+7
| | | | | | | | | | | | | | | | | | | | Mock only small parts of libvirt not the whole library, when testing libvirt discovery. Closes-Bug: #1774292 Change-Id: Ifbcf3fa0602d805b1e493f1ee6c3385edb87a277 (cherry picked from commit 0940d4f2318e7216486ad2d6ad11837c8f54797a) (cherry picked from commit 274e51555f0b939efc228efe1ec34e0253742a8e)
* | Remove queue declaration and fix docs jobsMatthias Runge2022-12-154-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | This commit combines the following changes: * Remove lingering queue declaration from .zuul.yaml file. https://review.opendev.org/859777 (master) Co-authored-by: Matthias Runge <mrunge@redhat.com> * Replace oslo_utils.fnmatch with fnmatch The oslo_utils.fnmatch module was added to solve an issue in py2.7 but it is no longer required because py2.7 is no longer supported. The module was deprecated since oslo.utils 4.9.1[1] and the stdlib's fnmatch module should be used instead. https://review.opendev.org/799654 (master) https://review.opendev.org/852644 (stable/wallaby) Co-authored-by: Takashi Kajinami <tkajinam@redhat.com> [1] 4c893c92f551c9dd2a7cfbe7ae8171ad8139df0b Change-Id: I9b34ac062d45b2b839dc9d6e0cdce696185890e4 (cherry picked from commit 7e545b0fd9fd4a393d9e2af30f9fc370b20078c0) (cherry picked from commit 142cb0b6e6f6fa85634c5176c84ab15d6511fa89)
* Adding FIPS jobChris Sibbitt2022-02-151-0/+8
| | | | Change-Id: If4fdbb473a00fd1506ed036a4438ca931023e137
* Merge "remove monotonic from requires" into stable/wallabywallaby-em16.0.1Zuul2022-02-092-2/+0
|\
| * remove monotonic from requiresJon Schlueter2021-12-152-2/+0
| | | | | | | | | | | | | | Since python 2 support was removed there are no direct usage of monotonic package Change-Id: I9dcf775cc3306a6f5145d3159127518440b29c51
* | Merge "Support two nova metadata versions in instance XML" into stable/wallabyZuul2022-02-092-11/+36
|\ \
| * | Support two nova metadata versions in instance XMLPavlo Shchelokovskyy2022-02-092-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is followup to I2aa34cf142c6429a7a0a3b8f232c3ed83f7d9981 In order to support discovery of instances booted before Wallaby, ceilometer must support working with both 1.0 (old, Victoria and before) and 1.1 (new, Wallaby and for now newer) versions of nova metadata. Conflicts: ceilometer/compute/discovery.py Change-Id: I93b6e92a5f46de5486f30a99fa3917a5932f7360 Related-Bug: #1930446 (cherry picked from commit 2fc72043d31af7acd45f918eeb290d9d7564d168) (cherry picked from commit c724307a080469e25950e25093b3e70b92794415)
* | | setup.cfg: Replace dashes with underscoresYandong Xuan2022-02-091-4/+4
|/ / | | | | | | | | | | | | | | | | | | | | Resolves warnings like the following: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead Change-Id: Ie1a033f1dcb1b62bf1bc8a213b9d7ef7e4e5b299 (cherry picked from commit 6c99d4dbad9c3ad850a1156cf45f0108810168bd)
* | Pin cryptography to 3.2.0 to make pyOpenSSLMatthias Runge2021-12-171-0/+1
|/ | | | | | | work in wallaby branch. The module 'lib' has dropped the attribute 'Cryptography_HAS_TLSEXT_HOSTNAME' in later releases. Change-Id: Ib9a73d9beaf0e97b297ada36294c977f0adc6049
* Fix CA file for Swift pollsterMark Goddard2021-08-233-17/+40
| | | | | | | | | | | | | | | | | | | Most OpenStack API communication uses the cafile option in the service_credentials config. For swift the client is created differently, and does not get this option. When TLS is used, we may get an error like the following: exceptions.SSLError: HTTPSConnectionPool(host='1.2.3.4', port=443): Max retries exceeded with url: /swift/v1/AUTH_XXXX (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')],)",),)) This change fixes the issue by creating an HTTP connection for the Swift client that uses the configured CA file. Closes-Bug: #1940660 Change-Id: I38f9ff2bec0a2a3cb9dfc5c362284e33c12f3127 (cherry picked from commit ed404c5f66e874779d58d3ac81f28ae22c55cf09)
* Do not install libvirt python bindings from pipTakashi Kajinami2021-08-161-3/+2
| | | | | | | | | | | | | | | | | | | | | Since [1] was merged, devstack no longer installs libvirt python bindings from pip but use distro packages. This change removes the logic to install the python bindings using pip to follow that change in devstack, otherwise installation fails because of conflict between packages available in pip and one installed by distro packages. [1] https://review.opendev.org/c/openstack/devstack/+/798514 Conflicts: devstack/plugin.sh Resolved conflicts caused by f57a51e43ca7a8903763cc24b1c510fa50a16b2c which is not backported to stable branches. Closes-Bug: #1939990 Related-Bug: #1933096 Change-Id: I369a95cf30e91738d10ad2e5a3d5f6988bdd76cb (cherry picked from commit 9366bc8f18a07695aa1af9217307b0a55376a331)
* [Stable-only] Pin Gnocchi to a specific releaseTakashi Kajinami2021-07-251-2/+1
| | | | | | | | Currently we use the latest Gnocchi in functional tests but this often results problems caused by any update in Gnocchi side. This change pins Gnocchi to a specific version to avoid such problems. Change-Id: I791f214c6c130973fff9703a0ada1efd93720ae6
* Use tox constraints instead of upper constraintsMatthias Runge2021-05-122-19/+4
| | | | | | | | | | | | Drop cap on tenacity, since it is already capped by upper constraints. Make grenade jobs non-voting, until they have been fixed. Depends-on: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/787739 Change-Id: Ie21f8db89fc2045fd6cc6b1b7a5886b7e87e08e2 (cherry picked from commit 26f5ceca03322978421fe05ebf9d01c9e63a8837)
* Cap tenacity < 7.0.0Matthias Runge2021-03-291-1/+1
| | | | | | | | https://github.com/jd/tenacity/pull/274/files removed code which was still in use. Change-Id: I8ac6684d9f03a48cc5dd3d712cbd2868b34e1013 (cherry picked from commit e7abc7070e9de182b7f4c5ae16e1d615f8d35c96)
* Update TOX_CONSTRAINTS_FILE for stable/wallabyOpenStack Release Bot2021-03-221-3/+3
| | | | | | | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/wallaby branch, tests will continue to use the upper-constraints list on master. Change-Id: I41f69ff3c2b7100979d2049f52a8c42e04abc033
* Update .gitreview for stable/wallabyOpenStack Release Bot2021-03-221-0/+1
| | | | Change-Id: Icd91d8e81f22b24e092e83890c95f0fd6a74fd49
* Merge "Deprecate support for Xen"16.0.0.0rc116.0.0Zuul2021-02-223-1/+18
|\
| * Deprecate support for XenTakashi Kajinami2021-02-193-1/+18
| | | | | | | | | | | | | | | | | | | | Since Nova removed its XenAPI driver[1] and Xen support using libvirt, we no longer expect usage of Xen in OpenStack deployments. [1] adb28f503ca8c38bd7224ec0a335f730557d7ca9 [1] 3a390c2c8238409c00acc08fad725d46fa02c0ad Change-Id: Id79799541dfc8ec17d3ea1482c6b8ca4b58f7a92
* | Merge "Fix gnocchi create resource error when missing flavor"Zuul2021-02-112-2/+31
|\ \
| * | Fix gnocchi create resource error when missing flavorliyi2021-02-032-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a server created, I delete the related flavor, and the gnocchi can not discover the server. This patch also makes discovery of private flavors possible. Change-Id: I0f570bddf0f2597808a0148d72c0ea2e5f900e23 Closes-Bug: #1777607
* | | Merge "Using Iterable was deprecated in python 3.3"Zuul2021-02-071-1/+1
|\ \ \ | |/ / |/| |
| * | Using Iterable was deprecated in python 3.3Matthias Runge2021-02-021-1/+1
| | | | | | | | | | | | | | | | | | and one should use collections.abc.Iterable Change-Id: I52455c85b5cb50e9c4f1fdf5538965dc200065aa
* | | Imported Translations from ZanataOpenStack Proposal Bot2021-01-301-4/+5
| |/ |/| | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I86b4591955b9e54f4e83650a29ec3d8978d6224b
* | Update requirements URLs in tox configlikui2021-01-141-1/+1
|/ | | | | | | Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org Change-Id: If5ce1830aab844fa34ec375e474fa1651693cad9
* Merge "Fix invalid argument formatting in the exception message"Zuul2021-01-141-2/+2
|\
| * Fix invalid argument formatting in the exception messagezhufl2021-01-121-2/+2
| | | | | | | | | | | | This is to fix the invalid argument formatting in the exception message. Change-Id: I828be0751e598cf1aad25f78241b2fbc7b2e1781
* | Replace six with python3 code stylekuangcx2021-01-1344-172/+88
|/ | | | | | Co-authored by: Matthias Runge <mrunge@redhat.com> Change-Id: I85a4d79396874670f1b36cb91cfba5da812c2839
* Merge "Fix lower-constraints job"Zuul2021-01-123-21/+21
|\
| * Fix lower-constraints jobMatthias Runge2020-12-143-21/+21
| | | | | | | | Change-Id: I5a7c087b29f3b0d7d9f63c2a774b8f2aff35b7a3
* | Imported Translations from ZanataOpenStack Proposal Bot2020-12-201-4/+4
|/ | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I491b25ea97ee97426d314ff72d9b11fe3682444b
* Imported Translations from ZanataOpenStack Proposal Bot2020-12-131-4/+4
| | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I2c5b60bea3820c495387a452be48e95ecca07c4d
* Merge "Update bug location"Zuul2020-12-111-3/+3
|\
| * Update bug locationMatthias Runge2020-12-011-3/+3
| | | | | | | | Change-Id: I9872cf22db8585b308df1efa137853814e3c4002
* | Imported Translations from ZanataOpenStack Proposal Bot2020-12-111-4/+4
| | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: I89602960839435487ae54ef5a2f8d18a3acf6c10
* | Imported Translations from ZanataOpenStack Proposal Bot2020-11-251-4/+4
| | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Iaf2b3d3c0a5648878a390b55e00fed663af8086c
* | Merge "Reuse the docs deps to benefit from constraints"Zuul2020-11-171-1/+3
|\ \
| * | Reuse the docs deps to benefit from constraintslikui2020-11-171-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Tox trying to install latest versions for building releasenotes, which may not be supported by stable and lower branches, so should be restricted by respective version's upper-constraints.txt Change-Id: If0b3ecffaccff9512ec43b853a8a6eaa8088251e
* | | Imported Translations from ZanataOpenStack Proposal Bot2020-11-161-4/+4
|/ / | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Ia9749502d5815b270fc9b31d431f50ec4c743142
* | Merge "Imported Translations from Zanata"Zuul2020-11-101-4/+4
|\ \
| * | Imported Translations from ZanataOpenStack Proposal Bot2020-11-041-4/+4
| | | | | | | | | | | | | | | | | | | | | For more information about this automatic import see: https://docs.openstack.org/i18n/latest/reviewing-translation-import.html Change-Id: Iefd5759a2f00d74517619d6bd8feea51a7ab5e1a
* | | Merge "Implement some new meters for vnic delta"Zuul2020-11-057-9/+82
|\ \ \ | |/ / |/| |