| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Closes-Bug: #1509430
Change-Id: I4f3b60776230dec5ac0ee31369fbe95cb0a8cd71
(cherry picked from commit b97ef58628a824851ef07e4c0429723b08424214)
|
| |
|
|
|
|
|
|
|
|
|
| |
This adds an optional param to resource-list
CLI to enable meter-links. By default, meter
links are not generated, this patch adds an
optional param to generate links.
Change-Id: I308b94c8a57833cf30b4815ecec2ff9a50e91af6
Closes-Bug: #1508709
(cherry picked from commit e4a62a20b1d072969e842c38b2885a46a20fc54c)
|
| |
|
|
|
|
|
|
| |
limit is now a mandatory condition when querying. this patch
allows users to control this value.
Change-Id: Ied5f80dc8cfe8b5f85e60fb8ca1d4a8f26663456
Closes-Bug: #1493511
|
| |
|
|
| |
Change-Id: I53f3af447a8f814388985f6e4ab57a8ffec18a2a
|
| |
|
|
| |
Change-Id: Ic29d7d5fcf95ff29112bd42fed747c54181e3640
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* Add --direct flag for ceilometer sample-create and sample-create-list
commands to support this feature
* Add parameter for ceilometerclient.v2.samples.create() and
ceilometerclient.v2 samples.create_list() to support this feature
Partially implements: blueprint api-no-pipeline
Change-Id: Ia3d787bbeaf360ddc198cb4ec183d83a5e76203a
|
| |\ \ |
|
| | |/
| |
| |
| | |
Change-Id: I17ca56142870313681c8ae9410db4173c2946f65
|
| |/
|
|
|
|
|
|
|
|
|
| |
Info about alarm's severity is missing from
the detail column for creation and deletion
type of alarm-history call.
This fix adds that.
Change-Id: I669126596ef7391530e7822c2807ffca7c6a1de1
Closes-Bug: 1468295
|
| |
|
|
|
|
|
|
|
| |
When creating sample with wrong resource metadata format, Ceilometer CLI
will return a ValueError about json decoding, this change provide a more
explicit error info.
Change-Id: I18e757ddb319fbf0ffad13c07528355785ea5e9a
Closes-Bug: 1465193
|
| |
|
|
|
|
|
|
|
|
| |
Added method for creating array of samples to samples manager.
Added shell command for creating array of samples.
Added tests for this changes.
It is made for Rally tests that use big data arrays. So now only one
function may be called instead of numerous calls simple create function.
Change-Id: I01ba4f0c0db40c95ef72dadaa34b3fafc034e417
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Whenever an entity wasn't found, the ceilometerclient would issue a
NotFound exception. Which is fine, except that it's not the exception
that was being expected in the client at all. This exception was defined
in the apiclient in the openstack/common directory. So, instead this
exception is now being caught in the manager, and now the appropriate
exception is being raised.
There were some functions where, if the entity was not to be found, a
404 exception would be raised, which was never caught by the client
since it was expecting the function to return None, instead of raising.
This CR fixes that.
Closes-Bug: #1451833
Change-Id: I47b34af2df9c85f86ba1f7f4d7b2951f8d27f96c
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.
The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.
Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.
Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages
Change-Id: I1f539cf9f5d6f48e10cac381c13eeb5fa314abd4
|
| |/
|
|
| |
Change-Id: Ie4c55f33d18294924701032031cf78539ee3b23b
|
| |
|
|
|
|
| |
add ability to show raw details of event.
Change-Id: I7068eed3647b7068d3286d3d205ed4c9f4372122
|
| |
|
|
|
|
| |
Implements blueprint capability-cli
Change-Id: I23fe9c0bc9c27e04e3e0133fc84da7cf1f87321f
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since https://review.openstack.org/#/c/163462/ and
https://review.openstack.org/#/c/162649/4 in gnocchi, all kind of aggregations
have been moved in the same URI namespace (/v1/aggregation/...)
and we can use complex query to make aggregation across multiples metrics.
This change sync the ceilometerclient alarm shell to match these
changes.
Change-Id: I5717a4604af5505dfb8c56463e2bdb86c59e41ce
|
| |/
|
|
|
|
|
|
|
|
| |
The change of I9ba984f804aecee5b63e5a86e699733040dee245 enables
us to specify os-user-id in CLI, but it shadows the user-id when
creating sample and alarm, this patch fixes it as what we've done
for project-id.
Change-Id: Ic3ce5dc8e1aea49b3e41fe495be4921fbf85ea5a
ref-change: I0ce2416dccd61eb50584799e6df0b8c45d44cdda
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
After we port to oslo-incubator.apiclient, the project_id can no
longer be specified for alarm-{,threhsold,combination}-{create,update}
and sample-create, this is because client.AuthPlugin registers a CLI
argument named --os-project-id which will shadow the project-id
argument.
Since os-project-id is used for Keystone V3 API, we should not
remove it from AuthPlugin, so this patch moves the dest of project_id
to {alarm,sample}_project_id, and adds a decorator to restore shadowed
project_id field when we call v2 client.
Change-Id: I0ce2416dccd61eb50584799e6df0b8c45d44cdda
Closes-Bug: #1393489
|
| |
|
|
|
|
|
|
|
| |
Patchset I67152c636526dad3ec27e06058ff73ad969ae2b9 broke the sample-show
and sample-create when introducing the new sample API support. This
patch fixes those.
Change-Id: I3e36df61cf672b44c376c4a18dc808d565315bf6
Closes-Bug: #1421040
|
| |\ |
|
| | |
| |
| |
| | |
Change-Id: Id1c6832c2db32c5cce0e31cd0022a86508630a7e
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Currently we print traits list for each event when run event-list
command, but that is a lot of information. After system run for a
few days, the event-list command prints so much that it is not
convenient to know the whole event-list even with less command.
This patch adds a simple argument called --no-traits, it is False
by default, event-list will not print traits if this argument is
specified. Since this argument is boolean type, no need to assign
a value, if it is specified, then it is actived.
Change-Id: Ib69209fef5967a18f094f2d4665fa189e4ca3e6a
|
| |\ \ \ |
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Sample API has been implemented in Ceilometer for a long time, but
CLI is lack of such support, this patch implements Sample CLI.
Implements blueprint cli-samples-api
Change-Id: I67152c636526dad3ec27e06058ff73ad969ae2b9
DocImpact
|
| |\ \ \
| |/ /
|/| | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of 'with a cron expression , whereas its duration' it should be
'with a cron expression, whereas its duration'.
Change-Id: Id545045dd4b25b5cbd2d79933851adab4963dada
|
| | |/
|/|
| |
| |
| | |
Change-Id: I699bea4859d4f0a5832ced5ba74ba7fb26c122ef
Partially-Implements: blueprint ceilometer-alarm-level
|
| |\ \ |
|
| | | |
| | |
| | |
| | | |
Change-Id: Ib563a9817f6f24ce0d72fe7a8ba96cb6e35c4e46
|
| |\ \ \
| |/ /
| | /
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| | |
Fix H405 pep8 issue. H904 issue check was ignored, although
there were no places in client code violating this rule.
Change-Id: If3b84eb8abb03511d7f77cabfa2955f472a60f23
|
| |/
|
|
|
|
|
|
|
|
| |
Currently, event-list output will be sorted by message id, that is
because table field 0 is the default sort field. But sort by id makes
no sense, and REST API returns events by timestamp order, so let's
keep consistent with upstream.
Change-Id: I524b05ed5ff9db34430afd722991d02545c263cb
Closes-Bug: #1406622
|
| |
|
|
|
|
|
| |
oslo.utils is released and corresponding code in oslo-incubator has
been removed.
Change-Id: Ic3a13380809a8b00c979e5ac405b4084f486a31d
|
| |\ |
|
| | |
| |
| |
| | |
Change-Id: I0aee668d9a19da76bb01646c87b3cd17418822e5
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When deleting an alarm, we use "ceilometer alarm-delete -a <ALARM_ID>",
unlike other deleting commands of openstack, the parameter-a/--alarm_id
is redundant. The similar situations exist in showing alarm, geting alarm
state, showing resource and so on.
It is more easy to use for reducing these parameters.
New behaviour:
$ ceilometer help alarm-show
usage: ceilometer alarm-show [<ALARM_ID>]
Show an alarm.
Positional arguments:
<ALARM_ID> ID of the alarm to show.
$ ceilometer alarm-show
alarm_id should not be empty
$ ceilometer alarm-show abcde
Not Found (HTTP 404)
$ ceilometer alarm-show -a abcde
-a is obsolete! See help for more details.
Not Found (HTTP 404)
$ ceilometer alarm-show --alarm_id abcde
--alarm_id is obsolete! See help for more details.
Not Found (HTTP 404)
Co-Authored-By: Nejc Saje <nsaje@redhat.com>
Change-Id: I1fbc85aa253929bfbb5e73ed834a725b9cf828b4
Closes-bug: #1268557
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes the bug that broke the alarms CLI if the alarm didn't have
a time constraints field.
Reduces code duplication of alarm printing code, so now all the alarm
printing code is actually tested.
Renames some auxiliary methods for more clarity.
Change-Id: Ib691b4a5a6cf5ae133cd0a5576f90e4d0d189a92
Closes-bug: #1316390
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Currently, empty entity field is accepted but will fail when call cli,
it is because the empty field leads to incorrect rest api uri, which will
get 404 error.
This patch checks some required entity fields, which will present in uri path,
and raises CommandError if they are empty. Note the other required fields
will not cause the same problem, so they are not checked.
Change-Id: I59411b760ff7457064b386911e868518b3057e3a
Closes-Bug: #1313679
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Currently, alarm-threshold-update command can not update its query
field, because the dest value is removed accidently so the query is
not put under threshold_rule dict. This patch simply adds it back.
Change-Id: I2eeaf8cbb26f506e097dafdcb6d0eae4ad7fec3e
Closes-Bug: #1313676
|
| |\ \ \ |
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Resource classes of managers should have methods
like delete() and get(). Basicly base.Resource
class has method get(), which uses id attribute,
but classes Alarm, Event, etc. have no this attribute.
Added intercept getting of id in the resource classes.
Also added catch of HTTPNotFound for alarm get()
because it affects correct functionality of
scenario tests.
Closes-Bug: #1312146
Change-Id: Ie598b73c64dece2185955467936dc6544a8a3dc7
|
| |\ \ \ \ |
|