We stopped supporting downgrade of OpenStack, so drop the downgrade
function of migration scripts.
Change-Id: I785a19c312488eca531ffc2c4f4401562a283324
Closes-Bug: #1434103
we switch to work queues in Juno and made it the default rather
than rpc. the main advantage of using RPC is it offers callback
functionality at the expense of performance. we don't need callback
for our use cases so it's best to stop supporting rpc and leave just
udp and queues in our collector.
Change-Id: Ia02421ae09cdf27998ce76a99170100f36595f71
Related-Bug: #1479820
some payloads (ie. CADF) may contain multiple meters per payload.
we need to support ability to loop through meters and process them
individually.
this patch adds support for gathering a list of meters with
consistent schema. a multi attribute is added to denote which fields
are jsonpath and could return multiple values. currently, this
supports looping across multiple meters of the same resource only.
Implements: blueprint declarative-notifications
Change-Id: I94ff536e2563d4c740a8514f814316474dc58e87
this is a patch until we properly separate polling logic. this
patch adds history so if a resource is defined in separate pipelines
it will only be processed in one. by doing this, we send only a
single copy of each sample and it can be processed appropriately
by the notification agent
this removes duplication check as it is covered by poll history and
removes the pipeline references in polling.
Change-Id: I9c1d3e25740fff5281d796c7bfea2f0e105bb5c5
Closes-Bug: #1480442
similar patch as Ib0674c93c8e41ab610fb799470a99fa427dfd14f but for
opencontrail
Change-Id: I4462e5c2f56490a5a0f5b5a96b7abe376d70998a
Related-Bug: #1482740
The previous test relied on mocks of retrying.time.sleep. This is
the same sleep as time.sleep so there's a chance, if eventlet is in
context, that something else can call that.
So instead the test now checks to see how many times should_reject
is called. This is the same as the max retries that will be
attempted.
Also the retry wait time has been set to something very small so the
test doesn't hang around sleeping uselessly, making test runs
faster.
Change-Id: Ib15d4d6f8dd23ba534d58005da5dc64aad9e0e90
Closes-Bug: #1482722
TranslationHook was using a threading.local() to store an error
message however the threading.local() was being created in __init__
of the Hook. Hooks are not per request, so this wasn't really
working as planned.
Now, instead of using threading.local() at all, we just modify the
environ held by pecan (and later used by the
ParsableErrorMiddleware). environ is request-local.
This change feels a bit crufty because it is but because of the way
Exceptions are managed in the app there's not really any good way to do
it. We could consider changing the way Exceptions related to error
messages, but that would be a very large change.
Duplicated from similar change in aodh:
I463059df28f291cea0644b1a9908a907f146ba1f
Change-Id: Ie561ec7ee7ec8b6d4a535ba7b20569b5a1101878
Closes-Bug: #1481244
Otherwise it can fail intermittently when run with other tests or
consistently when run in isolation.
Change-Id: Ib0674c93c8e41ab610fb799470a99fa427dfd14f
Closes-Bug: #1482740
this patch adds support for disable_non_metric_meters option.
depending on option, meter definitions where volume=1 will either
be skipped or loaded.
Change-Id: Ia84313785ea27d684ff0ddd221e3162f3155ad88
Currently MongoDB and HBase return integer values from samples and statistics,
but wsme expected a float type.
In this CR MongoDB and HBase statistics and sample values cast to float.
Change-Id: I97ccf8f8cd10e065ebd80ccbe1a688bf8d722b2f
Closes-Bug: #1474031
Include the new entry point for meters notifications
and deprecate the migrated ones. Also add the exchange
controls to the notification agent directly.
As a first step, this commit converts glance, magnetodb
and orchestration meters.
Partially Implements: blueprint declarative-notifications
Depends-On: I9de94c5ac6349c3b46adbacb77fc877b5201285c
Change-Id: I45ea9ab20bbed1ec12b91a20977e8adb52bf59da
When raising the PollsterPermanentError,
the list of resources(tenants) are passed,
which enables the Agent Manager to blacklist
those resources. This stops those resources
from being polled again and avoids any unwanted
error messages from being logged.
Change-Id: I4f7bf23d5d7f3c182e4089d80b03a1587fa31222
Closes-Bug: #1475441
there was a regression in code which led to discrete polling tasks
being created per pipeline. while logical, this meant that the cache
between tasks with same interval never got shared and therefore
duplicate calls were made.
Change-Id: I72876f61a73f4ca2f4ca48aebb1489ce7ebb702e
Related-Bug: #1480442
The API allow the actions to be null.
This allow the alarm to be deleted and updated in this case.
Backported from:
b40b4513e6
Closes bug: #1479274
Change-Id: Id29ede93951e9d21bf5e6416955ae096a1259d72
The kafka publusher is not concurrency safe at all.
And the sample/event payload cannot be serialized correctly
To fix that:
* the code now is shared with the messaging one.
* the connection to kafka is done before sending messaging to not touch
the queue
* use jsonutils to serialize samples
Change-Id: I3fb731d2eb33cbfba38c5165ce9874af89072e34
Closes-bug: #1479976
While the removal of ceilometer from core devstack is still pending
we need to make sure that change in lib/ceilometer are reflected in
the plugin. This synchronizes the small number of recent changes.
We're nearly there on the extractions so there shouldn't be too much
more of this.
Change-Id: I8c99d57ba5183d3c63b4814ca0664d5bf3420832
This change uses the correct user to work in gate.
It also fixes the condition that checks if we run in gate or not.
Change-Id: I0240bf64275a599b899a097a6e55c57f78f361df
Currently we run tests which uses real backend or real daemons with
other unit tests.
This CR is initial for sequence of functional tests implementation.
It contains only moving files and modules to right directories and
fixing tox.ini. This approach allows to avoid constantly rebase conflicts,
because git handles file removing correct.
Next step - separate classes and functions from moved files to right
test types.
Depends-On: Ifdb0de150b2c738117308b2aae6c0c197e162821
Change-Id: I16b84ed83ac075658626f3ec6a35a24e228b61e7
Partialy-Implement: blueprint ceilometer-functional-tests
we minimise it by deleting the test. the method itself is tested
to ensure empty secret is processed accordingly so the
coverage is already there.
Change-Id: I9a3f2530cfbeb1e3a6f768da2c098f9cca92b20b
Closes-Bug: #1481149
The gnocchi dispatcher just bail out on any unexpected Gnocchi HTTP code.
This change moves all Gnocchi API and HTTP stuffs in the gnocchi_client
module.
And improves the handling of 401 error code to retry requests when the
authentication fail, usualy because the token have expired.
Change-Id: I9d7e29337de2cb480c64af03032dcf9fa2a3829c