<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-ceilometerclient.git/ceilometerclient/common, branch 1.0.12</title>
<subtitle>opendev.org: openstack/python-ceilometerclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/'/>
<entry>
<title>switch to oslo.utils</title>
<updated>2014-09-29T19:38:56+00:00</updated>
<author>
<name>gordon chung</name>
<email>gord@live.ca</email>
</author>
<published>2014-09-29T15:29:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=5aa2a69f36c1738d9cc24470e81651732f180859'/>
<id>5aa2a69f36c1738d9cc24470e81651732f180859</id>
<content type='text'>
oslo.utils is released and corresponding code in oslo-incubator has
been removed.

Change-Id: Ic3a13380809a8b00c979e5ac405b4084f486a31d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
oslo.utils is released and corresponding code in oslo-incubator has
been removed.

Change-Id: Ic3a13380809a8b00c979e5ac405b4084f486a31d
</pre>
</div>
</content>
</entry>
<entry>
<title>Verify alarm found before modifying</title>
<updated>2014-08-29T14:04:30+00:00</updated>
<author>
<name>Eric Pendergrass</name>
<email>eap@hp.com</email>
</author>
<published>2014-07-29T15:52:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=8a01731d4e68152e9f575bea78b2baa085986726'/>
<id>8a01731d4e68152e9f575bea78b2baa085986726</id>
<content type='text'>
Current behavior is to retrieve alarm by id and conduct operations on the
object.  If the tenant doesn't own the alarm or isn't admin, the user will
receive the message: 'NoneType' object has no attribute 'to_dict'

Above message doesn't provide any useful diagnostic information and indicates a
programming error since an unexpected None-type is encountered and not handled.

This change verifies the alarm is found before using the object.  If alarm not
found it prints the same message for a not found Alarm as other PUT operations
like alarm-state-set:  Alarm not found: &lt;alarm_id&gt;.

This message is more useful for diagnosis and gets rid of the uncaught
None-type error.

Change-Id: I66abcd4498b24ac7cadcf29fe3ced3fcda08458c
Closes-Bug: #1348387
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Current behavior is to retrieve alarm by id and conduct operations on the
object.  If the tenant doesn't own the alarm or isn't admin, the user will
receive the message: 'NoneType' object has no attribute 'to_dict'

Above message doesn't provide any useful diagnostic information and indicates a
programming error since an unexpected None-type is encountered and not handled.

This change verifies the alarm is found before using the object.  If alarm not
found it prints the same message for a not found Alarm as other PUT operations
like alarm-state-set:  Alarm not found: &lt;alarm_id&gt;.

This message is more useful for diagnosis and gets rid of the uncaught
None-type error.

Change-Id: I66abcd4498b24ac7cadcf29fe3ced3fcda08458c
Closes-Bug: #1348387
</pre>
</div>
</content>
</entry>
<entry>
<title>Use HTTPClient from common Oslo code</title>
<updated>2014-07-31T15:59:58+00:00</updated>
<author>
<name>ekudryashova</name>
<email>ekudryashova@mirantis.com</email>
</author>
<published>2014-01-23T17:28:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=47934c777c50897b649793e0960eebdaad322c45'/>
<id>47934c777c50897b649793e0960eebdaad322c45</id>
<content type='text'>
In the process of unification of the clients code we should
reuse common functionality from Oslo.

bp common-client-library-2

Change-Id: I0e027c33ee42b6de032d33269caeea33e7837f40
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the process of unification of the clients code we should
reuse common functionality from Oslo.

bp common-client-library-2

Change-Id: I0e027c33ee42b6de032d33269caeea33e7837f40
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't expose X-Auth-Token in ceilometer CLI</title>
<updated>2014-07-18T01:26:50+00:00</updated>
<author>
<name>Zhi Kun Liu</name>
<email>zhikunli@cn.ibm.com</email>
</author>
<published>2014-07-15T05:17:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=e5048043e211ea9cc094e439a51099fdc7e38e2e'/>
<id>e5048043e211ea9cc094e439a51099fdc7e38e2e</id>
<content type='text'>
Ceilometer CLI exposes X-Auth-Token in debug mode. This patch
replaces X-Auth-Token's value with '{SHA1}&lt;sha1oftoken&gt;'. Some
credentials are exposed by keystoneclient as ceilometerclient
uses keystoneclient to authenticate, it will be fixed in bug:
100414.

Change-Id: Ia6364314e4b4d26301f974582c0c2ba34b054c86
Partial-Bug: #1327019
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ceilometer CLI exposes X-Auth-Token in debug mode. This patch
replaces X-Auth-Token's value with '{SHA1}&lt;sha1oftoken&gt;'. Some
credentials are exposed by keystoneclient as ceilometerclient
uses keystoneclient to authenticate, it will be fixed in bug:
100414.

Change-Id: Ia6364314e4b4d26301f974582c0c2ba34b054c86
Partial-Bug: #1327019
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix hacking rules: H302,H305,H307,H402</title>
<updated>2014-06-11T09:32:16+00:00</updated>
<author>
<name>ZhiQiang Fan</name>
<email>zhiqiang.fan@huawei.com</email>
</author>
<published>2014-06-11T08:32:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=55227d6d32deb49b9a8728d217eece9d4ecfeedc'/>
<id>55227d6d32deb49b9a8728d217eece9d4ecfeedc</id>
<content type='text'>
Currently, OpenStack Proposal Bot tries to update requirements with
global requirements, while the upgraded hacking has introduced some
new rules which are not fully handled by current code.

This patch fixes some simple rules which are quite straight-forward.

Change-Id: If8334f69fb1ad34fbbd6ad898e0e92eb3f81e95a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, OpenStack Proposal Bot tries to update requirements with
global requirements, while the upgraded hacking has introduced some
new rules which are not fully handled by current code.

This patch fixes some simple rules which are quite straight-forward.

Change-Id: If8334f69fb1ad34fbbd6ad898e0e92eb3f81e95a
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "fixed several pep8 issues"</title>
<updated>2014-05-29T05:46:54+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2014-05-29T05:46:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=d55038ceafdd49ac60ba1e115c331583b430f1ee'/>
<id>d55038ceafdd49ac60ba1e115c331583b430f1ee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix exception handling of CLI</title>
<updated>2014-05-23T03:02:18+00:00</updated>
<author>
<name>liu-sheng</name>
<email>liusheng@huawei.com</email>
</author>
<published>2014-05-21T08:40:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=cb11c9bb3dd9781e6b3066c0db04667c8175db31'/>
<id>cb11c9bb3dd9781e6b3066c0db04667c8175db31</id>
<content type='text'>
Because exc.Unauthorized exception has been removed for commit
"Remove out-dated exceptions"(https://review.openstack.org/#/c/93852/).
but it still in use in ceilometerclient.shell.CeilometerShell#main().
This patch replace exc.Unauthorized with exc.HTTPUnauthorized.
And other three places of exc.NotFound are in use too.

Change-Id: I3e010db20cb6f6636126cceed5c62a9817213739
Closes-bug: #1321649
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Because exc.Unauthorized exception has been removed for commit
"Remove out-dated exceptions"(https://review.openstack.org/#/c/93852/).
but it still in use in ceilometerclient.shell.CeilometerShell#main().
This patch replace exc.Unauthorized with exc.HTTPUnauthorized.
And other three places of exc.NotFound are in use too.

Change-Id: I3e010db20cb6f6636126cceed5c62a9817213739
Closes-bug: #1321649
</pre>
</div>
</content>
</entry>
<entry>
<title>fixed several pep8 issues</title>
<updated>2014-05-16T17:20:46+00:00</updated>
<author>
<name>Christian Berendt</name>
<email>berendt@b1-systems.de</email>
</author>
<published>2014-05-13T20:56:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=0f834438227b483e1dd214575df0a8c0bf5e90ad'/>
<id>0f834438227b483e1dd214575df0a8c0bf5e90ad</id>
<content type='text'>
  * E122 continuation line missing indentation or outdented
  * E126 continuation line over-indented for hanging indent
  * E128 continuation line under-indented for visual indent
  * E265 block comment should start with '# '

Tested with pep8 version 1.5.6 (2014-04-14).

Change-Id: Iaea72c74d3678061b0ac837eb8fe8c85a883bb4a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  * E122 continuation line missing indentation or outdented
  * E126 continuation line over-indented for hanging indent
  * E128 continuation line under-indented for visual indent
  * E265 block comment should start with '# '

Tested with pep8 version 1.5.6 (2014-04-14).

Change-Id: Iaea72c74d3678061b0ac837eb8fe8c85a883bb4a
</pre>
</div>
</content>
</entry>
<entry>
<title>Adds alarm time constraint support to ceilometer CLI</title>
<updated>2014-03-26T08:24:56+00:00</updated>
<author>
<name>Uros Jovanovic</name>
<email>uros.jovanovic@gmail.com</email>
</author>
<published>2014-03-05T18:49:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=7146571b702579fa1367598ab278ca2f8ec1e156'/>
<id>7146571b702579fa1367598ab278ca2f8ec1e156</id>
<content type='text'>
Time constraints can be specified for create and update
families of commands with the following format:

--time-constraint name=constraint1;start='0 11 * * *';duration=300

This switch can be specified multiple times in the case of
multiple time constraints.

With update commands, time constraints are updated by name,
e.g. --time-constraint name=constraint1;duration=500 updates
the constraint 'constraint1' with a new duration 500.

Time constraints can be removed with update commands using the
switch --remove-time-constraint=constraint1,constraint2 .

Example of display outputs:

&gt; ceilometer alarm-list
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+
| Alarm ID                             | Name  | State             | Enabled | Continuous | Alarm condition            | Time constraints                                             |
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+
| 2ead776d-2fc7-47a2-b0bb-0f88dcefa457 | test2 | insufficient data | True    | False      | cpu == 50.0 during 1 x 60s | cons1 at 0 11 * * *  for 300s, cons2 at 0 23 * * *  for 600s |
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+

&gt; ceilometer alarm-show -a
+---------------------------+-----------------------------------------------------------------------+
| Property                  | Value                                                                 |
+---------------------------+-----------------------------------------------------------------------+
| alarm_actions             | []                                                                    |
| alarm_id                  | 2ead776d-2fc7-47a2-b0bb-0f88dcefa457                                  |
| comparison_operator       | eq                                                                    |
| description               | Alarm when cpu is eq a avg of 50.0 over 60 seconds                    |
| enabled                   | True                                                                  |
| evaluation_periods        | 1                                                                     |
| exclude_outliers          | False                                                                 |
| insufficient_data_actions | []                                                                    |
| meter_name                | cpu                                                                   |
| name                      | test2                                                                 |
| ok_actions                | []                                                                    |
| period                    | 60                                                                    |
| project_id                | 962f75ad22c24cbf99d40d7b82718505                                      |
| query                     |                                                                       |
| repeat_actions            | False                                                                 |
| state                     | insufficient data                                                     |
| statistic                 | avg                                                                   |
| threshold                 | 50.0                                                                  |
| time_constraints          | [{name: cons1,                                                        |
|                           |   description: Time constraint at 0 11 * * * lasting for 300 seconds, |
|                           |   start: 0 11 * * *,                                                  |
|                           |   duration: 300},                                                     |
|                           |  {name: cons2,                                                        |
|                           |   description: Time constraint at 0 23 * * * lasting for 600 seconds, |
|                           |   start: 0 23 * * *,                                                  |
|                           |   duration: 600}]                                                     |
| type                      | threshold                                                             |
| user_id                   | 76f335df8e2f4c7e9e8185e26ea85759                                      |
+---------------------------+-----------------------------------------------------------------------+

&gt; ceilometer alarm-history -a 2ead776d-2fc7-47a2-b0bb-0f88dcefa457
+----------+----------------------------+--------------------------------------------------------------------------------+
| Type     | Timestamp                  | Detail                                                                         |
+----------+----------------------------+--------------------------------------------------------------------------------+
| creation | 2014-03-06T07:41:35.362050 | name: test2                                                                    |
|          |                            | description: Alarm when cpu is eq a avg of 50.0 over 60 seconds                |
|          |                            | type: threshold                                                                |
|          |                            | rule: cpu == 50.0 during 1 x 60s                                               |
|          |                            | time_constraints: cons1 at 0 11 * * *  for 300s, cons2 at 0 23 * * *  for 600s |
+----------+----------------------------+--------------------------------------------------------------------------------+

Change-Id: I3953276537b4526e46e5e6d229d6fa154f8ab0fc
Closes-Bug: #1288246
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Time constraints can be specified for create and update
families of commands with the following format:

--time-constraint name=constraint1;start='0 11 * * *';duration=300

This switch can be specified multiple times in the case of
multiple time constraints.

With update commands, time constraints are updated by name,
e.g. --time-constraint name=constraint1;duration=500 updates
the constraint 'constraint1' with a new duration 500.

Time constraints can be removed with update commands using the
switch --remove-time-constraint=constraint1,constraint2 .

Example of display outputs:

&gt; ceilometer alarm-list
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+
| Alarm ID                             | Name  | State             | Enabled | Continuous | Alarm condition            | Time constraints                                             |
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+
| 2ead776d-2fc7-47a2-b0bb-0f88dcefa457 | test2 | insufficient data | True    | False      | cpu == 50.0 during 1 x 60s | cons1 at 0 11 * * *  for 300s, cons2 at 0 23 * * *  for 600s |
+--------------------------------------+-------+-------------------+---------+------------+----------------------------+--------------------------------------------------------------+

&gt; ceilometer alarm-show -a
+---------------------------+-----------------------------------------------------------------------+
| Property                  | Value                                                                 |
+---------------------------+-----------------------------------------------------------------------+
| alarm_actions             | []                                                                    |
| alarm_id                  | 2ead776d-2fc7-47a2-b0bb-0f88dcefa457                                  |
| comparison_operator       | eq                                                                    |
| description               | Alarm when cpu is eq a avg of 50.0 over 60 seconds                    |
| enabled                   | True                                                                  |
| evaluation_periods        | 1                                                                     |
| exclude_outliers          | False                                                                 |
| insufficient_data_actions | []                                                                    |
| meter_name                | cpu                                                                   |
| name                      | test2                                                                 |
| ok_actions                | []                                                                    |
| period                    | 60                                                                    |
| project_id                | 962f75ad22c24cbf99d40d7b82718505                                      |
| query                     |                                                                       |
| repeat_actions            | False                                                                 |
| state                     | insufficient data                                                     |
| statistic                 | avg                                                                   |
| threshold                 | 50.0                                                                  |
| time_constraints          | [{name: cons1,                                                        |
|                           |   description: Time constraint at 0 11 * * * lasting for 300 seconds, |
|                           |   start: 0 11 * * *,                                                  |
|                           |   duration: 300},                                                     |
|                           |  {name: cons2,                                                        |
|                           |   description: Time constraint at 0 23 * * * lasting for 600 seconds, |
|                           |   start: 0 23 * * *,                                                  |
|                           |   duration: 600}]                                                     |
| type                      | threshold                                                             |
| user_id                   | 76f335df8e2f4c7e9e8185e26ea85759                                      |
+---------------------------+-----------------------------------------------------------------------+

&gt; ceilometer alarm-history -a 2ead776d-2fc7-47a2-b0bb-0f88dcefa457
+----------+----------------------------+--------------------------------------------------------------------------------+
| Type     | Timestamp                  | Detail                                                                         |
+----------+----------------------------+--------------------------------------------------------------------------------+
| creation | 2014-03-06T07:41:35.362050 | name: test2                                                                    |
|          |                            | description: Alarm when cpu is eq a avg of 50.0 over 60 seconds                |
|          |                            | type: threshold                                                                |
|          |                            | rule: cpu == 50.0 during 1 x 60s                                               |
|          |                            | time_constraints: cons1 at 0 11 * * *  for 300s, cons2 at 0 23 * * *  for 600s |
+----------+----------------------------+--------------------------------------------------------------------------------+

Change-Id: I3953276537b4526e46e5e6d229d6fa154f8ab0fc
Closes-Bug: #1288246
</pre>
</div>
</content>
</entry>
<entry>
<title>py3kcompat: remove in python-ceilometerclient</title>
<updated>2014-02-21T07:22:53+00:00</updated>
<author>
<name>Jia Dong</name>
<email>jiadong.jia@huawei.com</email>
</author>
<published>2014-02-14T07:04:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=f75c253650a8a36005c325eb5fdce7c7f6a3eceb'/>
<id>f75c253650a8a36005c325eb5fdce7c7f6a3eceb</id>
<content type='text'>
Everything is already in six&gt;=1.4.0 and we already depend on such a
version. There's no reason to keep this file. So remove py3kcompat
from python-ceilometerclient.

Change-Id: Ide6876e7a60377cb3843816d1d9ab2c589bc8f1b
Closes-Bug: #1280033
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Everything is already in six&gt;=1.4.0 and we already depend on such a
version. There's no reason to keep this file. So remove py3kcompat
from python-ceilometerclient.

Change-Id: Ide6876e7a60377cb3843816d1d9ab2c589bc8f1b
Closes-Bug: #1280033
</pre>
</div>
</content>
</entry>
</feed>
