| Commit message (Collapse) | Author | Age | Files | Lines |
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/
|
|
|
|
|
|
|
|
| |
Strips leading and trailing whitespaces
from CLI query field and value parameter
before building url.
Closes-Bug: 1464694
Change-Id: Ibe99747e22afe05eee187d59aaf0603f58e91373
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |\ \
| |/ |
|
| | |
| |
| |
| |
| |
| |
| | |
Add tests to increase unittest coverage of ceilometerclient.client,
ceilometerclient.shell, ceilometerclient.v2.shell.
Change-Id: I83a64ee31d6068a5903ef85ec85d5780828a24d7
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| | |
The unit test code for capabilities command are left alone, it should
be under unit directory
Change-Id: I6c9d4e75b44aeba8bd5e79b3c9cf531b928499b8
|
| | |
| |
| |
| |
| |
| |
| | |
In v2.test_shell.ShellEventListCommandTest, we specify traits
twice, the first one should be removed.
Change-Id: Iedd7c6161165816b9e76c44ef0f2ae6bf6016204
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Ceilometer alarm-threshold-update should support updating
project-id and user-id, but the update function was silently
ignoring changes of these options.
Change-Id: I33231bff44b90f3c58e5ef1646349b6dc63a3ce7
Closes-Bug: 1395932
|
| |\ \
| |/
|/| |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Currently, if we update an alarm with wrong time constraint which
doesn't get name defined, then the shell only prints a very simple
string 'name'.
This is because our code assume name field has always been specified,
however it is not true, then KeyError exception will be raised but not
handled well, finally user only gets an implicit message.
This patch uses dict.get() for name field, and sends request (may be broken)
to ceilometer api, then extracts error message from response.
Change-Id: I086c4ec790acc22767ba7f5e43dbcf73f3af5dff
Closes-Bug: #1439207
|
| |\ \ |
|
| | |/
| |
| |
| |
| |
| | |
Implements blueprint capability-cli
Change-Id: I23fe9c0bc9c27e04e3e0133fc84da7cf1f87321f
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Currently, we only apply timeout on ceilometer api, but not on keystone
api as well, this is not consistent. Keystone api may be slow, or worse,
stuck, then ceilometerclient will not return timely. This issue has caused
availability problem in our environment when ceilometer alarm service
has been running for a long time.
Change-Id: I0d5f82ff9cf4132a1de2f0b649908483326e116e
Closes-Bug: #1436249
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
If endpoint is not specified, then auth plugin will request to keystone
to get target endpoint, however, we don't provide region name for it,
this will cause critical issue in multiple region scenario.
Change-Id: I99ceafec25072988435018ca1affbd778ca9b22f
Closes-Bug: #1439553
|
| |/
|
|
|
|
|
|
| |
The os_insecure argument needs to be parsed and passed to the auth
plugin for non-shell usage.
Change-Id: Id45a680396a9b646b273d971a0f6c274e95019a6
Closes-Bug: #1438750
|
| |
|
|
|
|
|
|
| |
This avoids auth_plugin being undefined when calling self.get_base_parser
without self.main having been called.
Closes-Bug: #1434264
Change-Id: Ic3a898ccecb865ff4e88d82538bcb04001d623db
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
This is in preparation of moving functional tests currently in
tempest in-tree.
No surprises in this change:
* move files
* update the local imports
Same number of tests run, all still pass.
Change-Id: Ibfeac44421c5f36740b1377868f5ec469b2893f5
|