Commit Graph

2003 Commits

Author SHA1 Message Date
OpenDev Sysadmins c13944774a 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:36:35 +00:00
Ondřej Kobližek dc6dc2bf8a gnocchi 3.0.4 release
meta:version: 3.0.4
 meta:diff-start: -
 meta:series: independent
 meta:release-type: release
 meta:pypi: no
 meta:first: no
 meta:release:Author: Julien Danjou <julien@danjou.info>
 meta:release:Commit: Julien Danjou <julien@danjou.info>
 meta:release:Change-Id: I198372001318bd53428bae0b4f54c5816d2c2af8
 meta:release:Code-Review+2: Doug Hellmann <doug@doughellmann.com>
 meta:release:Workflow+1: Doug Hellmann <doug@doughellmann.com>
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJYfOTLAAoJELkGmxM1cAzcdPEH/2urR8IzIwvcxCymGVhAcJ9b
 9yBoPydl31nQ0lLcrXF+qJ6OcE7yYv9f+U4Wq45TGMRakocnn88PNmBtuIZLjimF
 Ih6ugGkMk3pEv+69g1dbyscZ4CiG1WrV0mvbbq8mwlYwOcUkMwM9L2qMJ9EA81rC
 Lqx60sJZs/K2g1vln6/46YtXkfQQ+bWBKwep9jEX3XqD4z8TgXmK0smTj+drSNK3
 gHkcRnYB7TYHG/agMBrjf/FzJoPOwbmZm4XfIsIzHM+anunNDyx0rVJHBTg7AQ01
 kplUTwou2lvLq+oGqjBfCIrj8q7ZLgx5sM/R5HemtXJbleSL68U1mKh0WEDI2Zw=
 =53rm
 -----END PGP SIGNATURE-----

Merge tag '3.0.4' into debian/newton

gnocchi 3.0.4 release

Change-Id: Iccc30f5f5140bd4e6773ea1a1f5bc93239c6b687
meta:version: 3.0.4
meta:diff-start: -
meta:series: independent
meta:release-type: release
meta:pypi: no
meta:first: no
meta:release:Author: Julien Danjou <julien@danjou.info>
meta:release:Commit: Julien Danjou <julien@danjou.info>
meta:release:Change-Id: I198372001318bd53428bae0b4f54c5816d2c2af8
meta:release:Code-Review+2: Doug Hellmann <doug@doughellmann.com>
meta:release:Workflow+1: Doug Hellmann <doug@doughellmann.com>
2017-02-03 09:11:50 +01:00
Julien Danjou a9c1383992 ceph: fix data compression when oldest_mutable_timestamp == next(key)
Change-Id: I1c66b720d2c1424f022898ed4afd9ca820965b68
Closes-Bug: #1655422
2017-01-12 19:33:40 +01:00
Julien Danjou bb687e1715 carbonara: log a message and do not fail if a file is missing
When rewriting data for compression, it's possible a file
<metric>_<splitkey>_<aggregation_method>_<granularity> is missing,
because of some data corruption. In that case the following traceback happens:

  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 557, in process_new_measures
      ignore_too_old_timestamps=True)
    File "/usr/lib/python2.7/site-packages/gnocchi/carbonara.py", line 217, in set_values
      before_truncate_callback(self)
    File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 551, in _map_add_measures
      for aggregation in agg_methods))
    File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 675, in _map_no_thread
      return list(itertools.starmap(method, list_of_args))
    File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 316, in _add_measures
      oldest_mutable_timestamp)
    File "/usr/lib/python2.7/site-packages/gnocchi/storage/_carbonara.py", line 249, in _store_timeserie_split
      offset, data = split.serialize(key, compressed=write_full)
  AttributeError: 'NoneType' object has no attribute 'serialize'

This patch makes the driver log a warning and return, so it just ignores
the failure and continues anyway.

Change-Id: I4f367b2418c8be0067746c88bcce74ca756acf4e
2017-01-03 13:53:41 +01:00
Julien Danjou 5a6d3935bc Fix expected content-type and move CORS tests to gabbi
The Content-Type is not automatically set by WebOb anymore. That also
broke the CORS test as keystonemiddleware is broken.
This patch moves the test to gabbi. While not strictly identical – it
does not test Keystone anymore – it ought to be enough.

Change-Id: I0f23481d5f75694da23d05c9ef88005a0f2c27d7
2016-12-29 20:22:26 +00:00
Julien Danjou 8ce4215763 config: only include oslo.middleware options that are shipped
Adding options from middleware not enabled by default is not a good
idea.

Change-Id: I3ed922c84e6d37f2424262d108e6bdc5a03e2858
(cherry picked from commit 14a7cbaa64)
2016-12-08 15:40:12 +00:00
Jenkins 9e8bf6edb9 Merge "Modify api startup parameters in devstack plugin" into stable/3.0 2016-12-08 15:11:36 +00:00
Mehdi Abaakouk 2a787565d5 fix oslo.db 4.15.0 breakage
oslo.db 4.15.0 breaks our gate because it assumes we use the
oslo.db provision module.

This have been fixed by Ie8c454528ce3aa816c04fbb4beb69f4b5ec57e9c

Also oslo.db now cleans the database resources. We was mocking self.db
to avoid that before because of the provision module dependencies.
But since this module is no more required, we can use the oslo.db
facility.

This change does that but keep compatibility with oslo.db < 4.15.0

Change-Id: I69f8ff9f702064e8fc5bf4018ebc6f3b2a8ea1a8
(cherry picked from commit f5794af695)
2016-12-08 12:27:59 +00:00
Xiang Li 399f0d3bf1 Modify api startup parameters in devstack plugin
Because the api binary script is generated by pbr now, the api
startup parameters need to be adapted accordingly in devstack
script or the api will be unable to start if the devstack deploy
mode is 'simple'.

Change-Id: I72abc3a83a4a2cf993198b0b1ac98c79ee26ec56
Closes-Bug: #1626979
(cherry picked from commit b8c0c23dd5)
2016-12-08 19:02:30 +08:00
Ondřej Nový 60e5811d5f Bumped debhelper compat version to 10
Added lsb-base to depends

Change-Id: I0663d70a80ad967c313958b39c59134bb1413a2e
2016-11-24 16:44:41 +01:00
Julien Danjou 2cf420db47 carbonara: add support for Gnocchi v2 measures format
This adds a fallback method when unserializing measures so Gnocchi 3 is
able to read measures stored in Gnocchi 2 format.

Change-Id: Ic863ace3ac8df430e5de93f17a45f73398ed143f
(cherry picked from commit 0c66859f82)
2016-11-10 13:58:28 +01:00
Julien Danjou 9af1d88420 metricd: retry slowly coordination connection failure
If the coordinator fails to start (e.g. ToozConnectionError), the metricd
subprocess started by Cotyledon fails to start and raises an error. That means
Cotyledon will retry to spawn the process with no delay at all, spamming the
CPU with forking request.

This patches fatorize the coordination retrieval and connection code into one
function in gnocchi.utils, which makes sure both metricd and the Carbonara
based drivers leverage the same code to retry to connection to the coordinator
with some delay.

Change-Id: I83157c5fdb0a3e488a9b788d48d974de80219dbb
(cherry picked from commit 04917de585)
2016-11-10 13:58:28 +01:00
Julien Danjou f3c9a9a8ea Revert "drop non-I/O threading in upgrade"
This reverts commit 84443ca4d4.

Upgrade with some storage drivers such as Swift consumes a lot of I/O with high
latency, so running in parallel improve speed.

Change-Id: I65106a5fbb8cd19235274ea55fb19fe2ecff9093
(cherry picked from commit c95b98f765)
2016-11-02 18:06:47 +00:00
Jenkins 34f488e81a Merge "Update doc because default services are all being added to settings" into stable/3.0 2016-10-20 15:53:35 +00:00
Jenkins d905c7ee32 Merge "devstack: stop all gnocchi services, not just api" into stable/3.0 2016-10-20 15:27:37 +00:00
Hanxi Liu 386c163d93 Update doc because default services are all being added to settings
Change-Id: Ib69d05c9f820af89b382444efd2a5ff2783708c5
2016-10-20 13:27:18 +00:00
gord chung aab337a912 accommodate new oslo.config
new oslo.config enforces type. it should give warning but we uuid
type doesn't give ValueError or TypeError, which are caught. rather
it gives AttributeError

Change-Id: Ib8fe3f0e6f37f2ca5c0785e73b2c770b71fac9e6
2016-10-19 23:24:19 +00:00
gord chung f13cd69e39 devstack: stop all gnocchi services, not just api
Change-Id: I666ce4f24d81f6f6c140ec7021d105ff951a88e3
2016-10-18 09:05:29 +00:00
Hanxi Liu a44d88f594 Fix incorrect EXTRA_FLAVOR in plugin.sh
Change-Id: I881e49abacd554b387d4fc156262f00220b64de0
2016-10-17 10:48:47 +00:00
Julien Danjou 175d8bd3bf carbonara: fix SplitKey with datetime greater than 32bits value
Current implementation based on pandas.Timestamp can't handle keys that
go further than 2^32 seconds after epoch, which makes e.g. archive
policies with very high granularity failing.

Change-Id: Idb81345544cc25e36447473e5115d9d856766c83
(cherry picked from commit 9a95873f40)
2016-10-17 10:40:06 +02:00
Juan Antonio Osorio Robles 67cdbb737a Add http_proxy_to_wsgi to api-paste
This sets up the HTTPProxyToWSGI middleware in front of Gnocchi. The
purpose of thise middleware is to set up the request URL correctly in
case there is a proxy (For instance, a loadbalancer such as HAProxy)
in front of Gnocchi.

So, for instance, when TLS connections are being terminated in the
proxy, and one tries to get the versions from the / resource of
Gnocchi, one will notice that the protocol is incorrect; It will show
'http' instead of 'https'. So this middleware handles such cases.
Thus helping Keystone discovery work correctly.

The HTTPProxyToWSGI is off by default and needs to be enabled via a
configuration value.

Change-Id: Ic5526cf37e70335fa2cc70946a271253f227f129
Closes-Bug: #1590608
(cherry picked from commit 2b1ed8d452)
2016-10-13 06:09:34 +00:00
Julien Danjou bc6a61d51d doc,tests: fix reaggregate/reaggregation mispelling
The query argument used was mistyped, and the results were actually 'mean' and
not 'min' in the end. Same in doc.

Change-Id: Iac5683eecc923a4150e93ecb23cff343faad988b
Related-Bug: #1630306
2016-10-11 07:34:08 +00:00
Jenkins a852145d1a Merge "Fix oslo.log minimum requirement" into stable/3.0 2016-10-06 14:57:53 +00:00
Mehdi Abaakouk 35e22d1f42 Fix some gabbi tests
Last gabbi version checks that data have the right content-type.

In theses tests we say that data in plain/text and we put json that's not
correct, old version was silencly ignored and now this is correctly
checked.

Same when we put data but no content-type.

Since our tests are wrong, this change fixes them.

Change-Id: I9a60db296467b08ef32f956471ef5e4f81f462af
(cherry picked from commit 35c4a08dd4)
2016-10-05 10:15:55 +00:00
Julien Danjou afdb60597a Fix oslo.log minimum requirement
Gnocchi actually uses oslo_log.log.get_default_log_levels which is provided by
oslo.log starting at 2.3.0.

Change-Id: Idd01d577a0b85a6603f5c69f783c951c7a0bd438
(cherry picked from commit b36b66eedf)
2016-10-05 08:53:22 +00:00
Thomas Goirand 44af3874d4 Debconf translation + unstable upload
* Uploading to unstable.
  * Debconf translation:
    - it (Closes: #839198).

Change-Id: I5cba0d4e1388baa36fe575c2a3a5934efa46b23a
2016-10-04 09:38:32 +02:00
Ondřej Nový 9d23658f10 Mass changes
d/s/options: extend-diff-ignore of .gitreview

Change-Id: I090cd4fa614e9785bb2c0e6d5f1cea3bd0dc6883
2016-09-26 19:02:22 +02:00
Thomas Goirand a8b5a2f228 gnocchi 3.0.0 release
meta:version: 3.0.0
 meta:diff-start: -
 meta:series: independent
 meta:release-type: release
 meta:announce: openstack-announce@lists.openstack.org
 meta:pypi: no
 meta:first: no
 meta:release:Author: Julien Danjou <julien@danjou.info>
 meta:release:Commit: Julien Danjou <julien@danjou.info>
 meta:release:Change-Id: I5984d3fc68a114b913f29c90496b4a73ec83fa32
 meta:release:Code-Review+1: Mehdi Abaakouk (sileht) <sileht@redhat.com>
 meta:release:Code-Review+2: Davanum Srinivas (dims) <davanum@gmail.com>
 meta:release:Workflow+1: Davanum Srinivas (dims) <davanum@gmail.com>
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJX4qGQAAoJENljH+rwzGInoHMH/j9+gfevtR9ecspbYvAnj2Up
 yOgVrej7HuWz0QlwxC2uc/1XwzBQMmx45bCWPZlDeDTiDpX3kk5mkiVEP7JyAPbx
 KfX6IZBREZlvBDkfCn/JtZTZ03HM+jToDbUuX/qlz6Xi/CGt9NuqJfus/nl8cFO5
 KvQQ+Z/IEBVGhUH5EnatboXMw4xP1rE3Ak/SOw3p0w8v+JpqW1BgNWkWuPXSTNJq
 0qLTKLZNizkNQOr/KhEpE1CEdrIls91GnBybtbhOLeP37ye4WS3LJfhL8l41FV/4
 OuRJ9BMUBI93m+hHf4JLZGVZ9wtbIT3X81emFZzHqzsjNbpF36m9QXW80FUPJsI=
 =jMMh
 -----END PGP SIGNATURE-----

Merge tag '3.0.0' into debian/newton

gnocchi 3.0.0 release

  * New upstream release.
  * Fixed (build-)depends for this release.
  * Using OpenStack's Gerrit as VCS URLs.

Change-Id: Ic813bac08ddb9635e0075e6541315977ce98de4a
2016-09-23 16:44:00 +02:00
Davanum Srinivas c6b2c5185c Update .gitreview for stable/3.0
Change-Id: I860b493122e63183ed81c1df1a80112ae8ae9ce0
2016-09-22 08:30:08 -04:00
Jenkins 97a0bddc7b Merge "Fix gnocchi-metricd shutdown" 2016-09-21 11:23:37 +00:00
Mehdi Abaakouk 252e7bf1ae track the metric locked time
Change-Id: I108f05e58a265425622cd04dcd7524cf7bce44b1
2016-09-21 08:29:25 +00:00
Jenkins 5594840a71 Merge "resource_type: check that min is not None before comparing with max" 2016-09-20 22:33:44 +00:00
Mehdi Abaakouk d28daa279b Fix gnocchi-metricd shutdown
gnocchi-metricd does not shutdown gracefully because we block on
metric queue.get(). This change adds a timeout to allow the process
to terminate every 10 seconds.

Change-Id: Id7917464009b19a0e27ff84694803f97f43cfac7
2016-09-20 23:01:21 +02:00
Julien Danjou 39ee5998bd resource_type: check that min is not None before comparing with max
None > int() is not valid in Python 3.

Change-Id: Ifd49eda012ef7a7b60bcf34b72e4df4f9f3d083b
2016-09-20 21:25:12 +02:00
Jenkins ac5e9f9411 Merge "metricd: fix a data type inconsistent bug" 2016-09-20 19:10:27 +00:00
Jenkins 30771964ad Merge "cli: do not run tooz watchers in parallel" 2016-09-20 18:19:55 +00:00
Jenkins 47c62fb578 Merge "Fix a typo in sqlalchemy.py" 2016-09-20 18:07:30 +00:00
Jenkins c34b0fdfd4 Merge "devstack-gate: do not create legacy resources" 2016-09-20 17:51:32 +00:00
Jenkins 5ca9cf44d7 Merge "storage: increase default processing delays" 2016-09-20 17:34:42 +00:00
Julien Danjou d66b6efd15 cli: do not run tooz watchers in parallel
If you run more than one tooz watcher at the same time, we might end up
updating block_size and block_index in parallel, causing incorrect
computing of the block to grab.

It's easier and simpler to just run the watchers serially.

Change-Id: I1d7f4f725a1c62c7511af6189d8deaebf836f31d
2016-09-20 19:03:33 +02:00
shengping zhang 51a0950121 metricd: fix a data type inconsistent bug
The variable 'self.previously_scheduled_metrics'
initially is Set type, afterwards it is assigned
a List type data ('metrics'), this causes the
error:

  2016-09-20 17:14:27.919 28772 ERROR gnocchi.cli TypeError: unsupported
  operand type(s) for -: 'set' and 'list'

Change-Id: Iec5ab651d82fdd8d058f8a3232a6cd93df1e3cf5
Closes-Bug: #1625529
2016-09-20 18:59:20 +02:00
Jenkins 1a6cab7b25 Merge "ceph: rename optional extra names" 2016-09-20 16:53:36 +00:00
Jenkins afefc81dc4 Merge "Fix PostgreSQL migration script with resource_type_state_enum" 2016-09-20 16:53:30 +00:00
Jenkins 4dbb1134cb Merge "carbonara: replace msgpack encoding with struct for new measures" 2016-09-20 15:25:48 +00:00
Jenkins 82d4449314 Merge "carbonara: implement compressed format for BoundTimeSerie" 2016-09-20 13:47:45 +00:00
Mehdi Abaakouk 72fb45f3c4 ceph: rename optional extra names
- is not allowed in extra name, and are silently ignored.

We also rename them to make them the extra purpose clearer.

Change-Id: I4470050e1a196577e2c667ce7c2949d82655f77c
2016-09-20 15:05:14 +02:00
Mehdi Abaakouk aa3d0ae22f Fix PostgreSQL migration script with resource_type_state_enum
On PostgreSQL, migration scripts are run within transaction, so things
can be already committed or not. Adding value on an Enum already commit
in PostgreSQL won't work within a new transaction, so we have to delete
the old enum and create a new one.

Closes-Bug: #1624504
Change-Id: I8227021bc0e3dc63d1a28512fe7c610da4c6dc63
2016-09-20 15:05:07 +02:00
Mehdi Abaakouk 96dd4ed08c carbonara-drivers: elapsed can be zero
If computation is really fast elapsed can be zero.
Tests something fail on that with:

File "gnocchi/storage/_carbonara.py", line 530, in process_new_measures
    * computed_points['number']) / elapsed)
    ZeroDivisionError: float division by zero

This change fixes that.

Change-Id: I350db83fb90566f985f8555fcb6f2d077bb806d4
2016-09-20 10:52:14 +00:00
Thomas Goirand dd7d292c20 Add a .gitreview file
Change-Id: Ie0b004fbd8a2f6da3bc4603d2200079c55e5d549
2016-09-20 09:58:11 +02:00
zhangyanxian f22caccc63 Fix a typo in sqlalchemy.py
TrivialFix

Change-Id: If3c1cea4d8785d42752ae47341723ba622bdab7a
2016-09-20 06:43:21 +00:00