Commit Graph

5857 Commits

Author SHA1 Message Date
OpenDev Sysadmins 11cc70f5c4 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:31:07 +00:00
Jenkins c98aed6818 Merge "High precision rate of change timedelta" into stable/ocata 2017-07-24 16:38:25 +00:00
Mehdi Abaakouk 251a06d5c6 High precision rate of change timedelta
The current way to calculate rate of change is not precise at all and
depends on the local host clock. So, we have good chance that the host
clock derive a bit between each polling. Also the timestamp is polling
cycle run and not the exact polled sample.

This makes the rate of change transformer not accurate, and maybe wrong
if the local clock have jumped to much or if a pollster make to much
time to get the stats (libvirt reconnection, ...).

A sample gets a new attribute monotonic_time, where we can store an
accurate polling time using monotonic.monotonic().

In rate of change transformer, if the monotonic time is available we use
to calculate the time delta between samples.

For instance metrics, we set monotonic_time as soon as we poll it from
libvirt, avoiding almost all precision issue.

That makes the rate of change precise to the nanoseconds for polled
samples, while keeping the timestamp identical for all samples polled
during one cycle.

Related-bug: #1527620
Change-Id: I40e14fb6aa595a86df9767be5758f52b7ceafc8f
(cherry picked from commit fd6a76601a382cdf47527893f9255b48bc235d05)
2017-07-20 17:00:59 +02:00
Gyorgy Szombathelyi 1f14b191e0 Use vcpu.x.time and vcpu.x.wait values in libvirt inspector
If possible, calculate cputime from vcpu time + vcpu wait.
Fall back to cpu.time, if any vcpu.x.time or vcpu.x.wait
values are missing.
derived from I7bce33854dfe9c7b0e03b8c22721d04028183701

Co-Authored-By: Michael Ly <msly@us.ibm.com>
Co-Authored-By: Avi Weit <WEIT@il.ibm.com>
Co-Authored-By: Jorge Rodriguez <jorgedr@us.ibm.com>
Co-Authored-By: Karolyn Chambers <Karolyn.Chambers@target.com>
Co-Authored-By: Daniel Berrange <berrange@redhat.com>
Co-Authored-By: gordon chung <gord@live.ca>

Change-Id: I20700a32d608b3444b22c5ae460002eeb86d78ae
Closes-bug: #1677159
Closes-bug: #1421584
(cherry picked from commit a4ec0911a3)
2017-07-18 07:56:38 +02:00
Jenkins 09b8713a6d Merge "cap cpu_util" into stable/ocata 2017-07-17 12:29:14 +00:00
gord chung 6c0d24ec3e cap cpu_util
deriving cpu_util from cputime is not exact as it relies on timing
of host and a completely independent timing of pollster. this can
cause precision issues with nanosecond timing resulting in >100%
calculations. this sets a cap so at most cpu_util can only report
100% cpu utilisation.

Change-Id: I80c099d8618833794ef19e9497cfad4db7912851
Closes-Bug: #1527620
(cherry picked from commit 41d940e369)
2017-07-17 09:44:57 +02:00
Jenkins cd9673fcd7 Merge "Fixed error use retry_on_disconnect decorator" into stable/ocata 2017-07-13 16:32:56 +00:00
xianbin e272e98bed Fixed NotificationService object has no attribute refresh_pipeline_periodic
Change-Id: I8df193e2bfa108cc6e78756195fd7b9618bc6713
Closes-bug: #1700709
2017-06-28 13:35:50 +08:00
xianbin a483ec27a8 Fixed error use retry_on_disconnect decorator
This is wrong use for decorator @property without set method.
For retry_on_disconnect method, when raise libvirt.libvirtError
may be invoke self.connection = None which will raise
"AttributeError: can't set attribute". Because the invoke class has
not method for connection which decorator @connection.setter:

@connection.setter
def connection(self, value):
    self._connection = value

You can find how to use @property decorator over here:
https://docs.python.org/3/library/functions.html#property

Change-Id: I3d5f3e8182ddad30d7ed33607451b799eec8aaaa
2017-06-27 13:04:36 +08:00
OpenStack Proposal Bot 0c4209fd3a Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: If73a8806a029d1d0d47036891b600e55a2300594
2017-06-16 08:43:58 +00:00
gord chung 4465d95760 add instruction to set auth_mode
we need auth_mode set in gnocchi3.1+ or else it won't use keystone

Change-Id: I3fb8173dd4637514c06f7fec6cd86aa42038120f
(cherry picked from commit b8960479ac)
2017-06-14 17:30:50 +00:00
gord chung 1cc4068298 remove resource if not created
gnocchi dispatcher will attempt to patch resource after pushing
measures. if we can't create resource, we shouldn't bother trying
to handle the patch later on. also, add better logging to figure
out which resource failed

Change-Id: Icfb2a694230d5c185a2726463657d3a11ed59fe0
(cherry picked from commit 54aea5b2d7)
2017-05-17 08:13:39 +00:00
gord chung c25e934b8c add configuration instructions from admin guide and dev docs
- move cinder and keystone configuration instructions from admin
guide to install guide so we have all meter enabling steps in
same place.
- move heat and neutron config to install guide.

Change-Id: Ibc8096e3fb6c95886c3bddafb927600fe506415d
(cherry picked from commit 9105e194c7)
2017-05-01 20:01:41 +00:00
Mehdi Abaakouk 27cc9758b9 tests: fix messaging driver
Since last oslo.config, an issue in our tests have showup.

We set a string on a MultiStrOpt, for example this results to have the
messaging driver looks like ["a", "e", "g", "i", "m", "n"] instead of
["messaging"]. I wonder how this have worked before...

This change fixes the drivers lists.

(cherry picked from commit 52f561c88e)
Change-Id: I973aa66f54b284fd87b1e48d43a2e459d760cbe3
2017-04-27 10:18:19 +02:00
Thomas Graichen df47b4e90b Swallow & report 404s from Swift (missing tenant)
The 404s are caused when Keystone has a tenant that Swift does not.
These 404s can safely be ignored.
If not ignored, some meters are not collected from Swift, as the
ClientException stops the tenant loop from completing.

Change-Id: I34aa40ba6c8e40e6d51b0a8dd24b8975c742f3ab
(cherry picked from commit 2ab761db26)
Closes-bug: #1681362
2017-04-10 09:13:45 +00:00
Jenkins b102f73f71 Merge "fix install-guide gnocchi+keystone instruction" into stable/ocata 2017-04-08 00:06:38 +00:00
gord chung 2a91b3430d fix install-guide gnocchi+keystone instruction
gnocchi+keystone should be setting keystone configurations under
keystone_authtoken for api authentication. service_credentials is
for accessing external services

Change-Id: I4dd837b3c5c4775b5d2c6d22097bf90884712b41
(cherry picked from commit 84e871fda8)
2017-04-07 18:33:01 +00:00
Daniel Russell 3c5c9e5128 Adds 'disabled' to the possible states for a member in LBaaSv2
Change-Id: I4c9570dd8a35a2f2d5db559b3d8960ffb46d0c21
Closes-Bug: 1677091
(cherry picked from commit 8a26a164b0)
2017-04-02 22:59:47 +00:00
Jenkins 67aadb5ca8 Merge "Correct bad use response_strings in live.yaml" into stable/ocata 2017-03-24 17:07:36 +00:00
gord chung 3a6ac4fe6f Correct bad use response_strings in live.yaml
response_strings wants a list, not a string. In gabbi earlier than
1.33.0 it accept a string and then iterated checking for each single
character in the response body. So still passing.

This fixes recent failures by putting the necessary '-' at the start
of the search string. It's an easy bug to make and then never
notice, which is why gabbi 1.33.0 is all uptight about it.

Change-Id: I239a968e28a57ad4732f57c10eea7999f5d06349
(cherry picked from commit a868016635)
2017-03-24 12:44:54 +00:00
Petr Kovar 30062abe47 [install-guide] Add more links
Change-Id: Ic2da3115e591aff24d5738371c9ac68e7f4f98df
(cherry picked from commit ba20cf7be0)
2017-03-23 16:06:50 +00:00
Jenkins 73e58f416f Merge "Bump gnocchiclient min version" into stable/ocata 2017-03-21 15:37:43 +00:00
Mehdi Abaakouk 89b1d78e86 Bump gnocchiclient min version
To not fall into https://review.openstack.org/#/c/428777
during ceilometer-upgrade we should require at least gnocchiclient 3.1.

Change-Id: I020a7d84b1732f8c2bebb0c5d633ec476432e248
(cherry picked from commit 2874c2af12)
2017-03-21 13:35:36 +00:00
OpenStack Proposal Bot a3bf9e21d5 Imported Translations from Zanata
For more information about this automatic import see:
http://docs.openstack.org/developer/i18n/reviewing-translation-import.html

Change-Id: Ieb579f839e57539283f074eddc3195184a8eba8c
2017-03-17 08:26:55 +00:00
gord chung 555d8740d0 fix blacklisting NovaLike resources
we aren't blacklisting items properly because our NovaLike objects
can't be compared and therefore we can never detect if it has
been blacklisted previously.

Change-Id: I4177fe5f45b6b1fb328e88376c179e790f360adf
(cherry picked from commit 00a19698f5)
2017-03-15 11:47:28 +00:00
gord chung d3b28bde8e fix gnocchi_resources mapping
meters.yaml sets flavor_name and flavor_id under resource_metadata
instead of id and name under flavor key as polling does.

note: only pick flavor_id from original patch

Change-Id: I328ca62a203f47cf8d0e05049723b914f378acd2
(cherry picked from commit 7a0954eedf)
2017-03-14 08:53:43 -04:00
gord chung 3c810b7cca include gnocchi+keystone instructions in install guide
ceilometer needs gnocchi to be registered in keystone to work

Closes-Bug: #1665348
Change-Id: Ie1986861b7d6812a52951f89aa406e3e7bec87aa
(cherry picked from commit 8c6d8551bb)
2017-03-13 14:09:06 +00:00
Jenkins 9cfd46c2e4 Merge "tripleo: Fix logging of tripleo discovery" into stable/ocata 2017-03-03 18:44:32 +00:00
Jenkins 3877bdd1e1 Merge "add missing instance meta" into stable/ocata 2017-03-03 09:53:14 +00:00
Ken'ichi Ohmichi 0b1653f30f Switch to use test_utils.call_until_true
test.call_until_true has been deprecated since Newton on Tempest side,
and now Tempest provides test_utils.call_until_true as the stable
library method. So this patch switches to use the stable method before
removing old test.call_until_true on Tempest side.

(cherry-pick from commit d46c28b30c)
Change-Id: If8985f511d434af0449992b2bc3540da9b3a0591
2017-03-02 10:27:08 +01:00
gord chung 320d56c1b3 add missing instance meta
flavor_id, flavor_name, display_name and host are required... we need to
include them when we build sample from notification.

host does not exist in compute.instance.create.start messages because
(i assume) nova doesn't know which host to create on yet.

also, when multiple metrics missing same resource, only attempt to
create once.

Change-Id: Ia680ad23608f6712ebce619797e2968f8acc6310
(cherry picked from commit 48d9cb7793)
2017-03-01 20:03:03 +00:00
Mehdi Abaakouk 0350533f48 tripleo: Fix logging of tripleo discovery
This change doesn't log error message when the instance in nova is
not an Ironic node deployed by Tripleo.

Change-Id: Ic915825e795291cd688cffe2b1e1263f325546f9
Closes-bug: #1658656
(cherry picked from commit d1b25ebbe9)
2017-03-01 19:39:58 +00:00
gord chung a5f78f8d96 chill out on the number of items in toc
we have an absurd amount of entries in our table of contents[1]. this
patch does better groupings so we nest a bit more.

[1] https://docs.openstack.org/project-install-guide/telemetry/draft/

Change-Id: Ib56af520483b39e2c80ce03e0cf48a18bbfa5267
(cherry picked from commit b01c33f78b)
2017-02-23 16:10:44 +00:00
Jenkins 69c7659c6a Merge "fix gnocchi url links" into stable/ocata 2017-02-22 22:03:36 +00:00
Jenkins c45fa580fa Merge "fix [service_credentials] section location" into stable/ocata 2017-02-22 22:03:30 +00:00
Hanxi Liu cd9a849c94 fix [service_credentials] section location
Unit the [service_credentials] section and make it visible under code-block.
http://docs.openstack.org/project-install-guide/telemetry/draft/install-base-ubuntu.html

Change-Id: I474ca79bc78332d5f2424aad9cb08a1ab440714e
(cherry picked from commit f13660f87f)
2017-02-22 19:41:19 +00:00
gord chung d549e33d3c fix gnocchi url links
Change-Id: I19696684855c1a52d54e781460f48cfba9c926cf
Closes-Bug: #1664215
(cherry picked from commit ec508a1645)
2017-02-22 19:41:11 +00:00
ZhaoBo ddd495dd5d Correct the doc link
Correct the project install guide link.

Change-Id: I28cfe8eb8074b116064a612cbf0c4e8e1f256d20
(cherry picked from commit f31774de05)
2017-02-22 19:40:53 +00:00
gord chung b3c404a7c5 set OS_AUTH_TYPE in gate
we use keystone in integration gate but never set OS_AUTH_TYPE.
gnocchi will not default to keystone if OS_AUTH_TYPE isn't set.

Change-Id: I5e006c1b47a68bbe6c2e966faf8c740c23dde1ac
(cherry picked from commit 83412c80cc)
2017-02-17 20:09:58 +00:00
gord chung cae2d154d6 match generic cirros name
devstack/tempest removed cirros ami image for qcow image[1][2]. this changes
suffix of file. this patch generically looks for first cirros match and
disregards suffix

[1] https://review.openstack.org/#/c/338435/
[2] https://review.openstack.org/#/c/338377/

Change-Id: Iefcfe839916e0501cd82daa6f538b440a8d8ee96
(cherry picked from commit a622ab3013)
2017-02-15 22:51:28 +00:00
OpenStack Release Bot c9afa1c58f Update .gitreview for stable/ocata
Change-Id: Ia8e7f673ea7783a62c17201809154c45a0a2db32
2017-02-02 17:49:21 +00:00
Jenkins 2db686275f Merge "Use Tempest stable library interfaces" 2017-02-02 09:35:53 +00:00
gord chung 8c40ca8f65 add polling.yaml docs
Change-Id: I36e84fc70ae0580f78b99be98c73368fff231b16
2017-02-02 04:24:18 +00:00
Jenkins 6235cada55 Merge "polling definition file" 2017-02-02 03:08:42 +00:00
Julien Danjou b7a9f13047 Do not use non-UUID resource ID in Aodh+Gnocchi tests
The non-UUID resource id are getting to be unique per user, and since the user
creating the alarm (gabbi) and the user checking for resource existence (aodh)
are different, the string->UUID conversion gives different result.

Using an UUID instead of a string should fix that.

Change-Id: I89cb079325e327541a444559217015f38029a506
2017-02-01 17:42:05 +01:00
Ken'ichi Ohmichi 259ce468f7 Use Tempest stable library interfaces
Now Ceilometer uses copy&paste tempest code and the gate issue
happened sometimes because the code refers tempest internal code
which is defined as unstable.
This patch makes Ceilomter use the stable library interfaces instead
for keeping the gate test stable.

Change-Id: I055d8482a9be5fc5d4cf2601a31573aec9e4bee6
2017-02-01 02:10:28 -08:00
gord chung 8999528092 polling definition file
add support for polling specific definition file.
this splits the existing polling specific options out of
pipeline.yaml as transformations only exists on notifcation agent
and polling interval/discovery only exists on polling agents.

backward compatibility is maintained so pipeline.yaml file from
previous releases can still be passed in as polling definition file.

Change-Id: I206566349f98d6b17336cd5ea36ceb1e304dd90c
2017-02-01 01:39:56 +00:00
Jenkins f786989976 Merge "modernise gabbi tests" 2017-01-31 16:51:35 +00:00
Jenkins 4befdf8c58 Merge "add ceilometer-upgrade step to install guide" 2017-01-31 16:51:31 +00:00
Jenkins f6372e96a0 Merge "update multi-publisher image" 2017-01-31 16:50:31 +00:00