<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-ceilometerclient.git/ceilometerclient/common/base.py, branch master</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>Retire ceilometerclient</title>
<updated>2017-11-22T09:09:10+00:00</updated>
<author>
<name>Julien Danjou</name>
<email>julien@danjou.info</email>
</author>
<published>2017-11-22T09:08:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=cc6639ad63e80f50012b24695619e5d771462031'/>
<id>cc6639ad63e80f50012b24695619e5d771462031</id>
<content type='text'>
Depends-On: Ic2947fd066a2df685d52539d0756cd981cc16113
Change-Id: I65738a55db82053643f7580eee20b63df52b957f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Depends-On: Ic2947fd066a2df685d52539d0756cd981cc16113
Change-Id: I65738a55db82053643f7580eee20b63df52b957f
</pre>
</div>
</content>
</entry>
<entry>
<title>move old oslo-incubator code out of openstack/common</title>
<updated>2016-11-05T00:18:45+00:00</updated>
<author>
<name>Steve Martinelli</name>
<email>s.martinelli@gmail.com</email>
</author>
<published>2016-10-29T16:05:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=c1141ed5be72ee169a7640b5d4957bfe02ad37ce'/>
<id>c1141ed5be72ee169a7640b5d4957bfe02ad37ce</id>
<content type='text'>
As part of the first community-wide goal, teams were asked
to remove the openstack/common package of their projects
if one existed. This was a byproduct of the old oslo-incubator
form of syncing common functionality.

The package, apiclient, was moved to a top level location
and a new i18n module was created. There is no oslo.apiclient
library or equivalent, the recommended solution is to move it
in tree and maintain it there.

Change-Id: Ia788313e0926dc872a87b090ef0a350898bfb079
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As part of the first community-wide goal, teams were asked
to remove the openstack/common package of their projects
if one existed. This was a byproduct of the old oslo-incubator
form of syncing common functionality.

The package, apiclient, was moved to a top level location
and a new i18n module was created. There is no oslo.apiclient
library or equivalent, the recommended solution is to move it
in tree and maintain it there.

Change-Id: Ia788313e0926dc872a87b090ef0a350898bfb079
</pre>
</div>
</content>
</entry>
<entry>
<title>remove py24 compatible code</title>
<updated>2016-01-08T01:40:36+00:00</updated>
<author>
<name>ZhiQiang Fan</name>
<email>aji.zqfan@gmail.com</email>
</author>
<published>2016-01-08T01:40:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=d2feb8871b843f13333bfbe862f7e303a7819a0b'/>
<id>d2feb8871b843f13333bfbe862f7e303a7819a0b</id>
<content type='text'>
Change-Id: If62986b3ba913776ee6b9328a10e358e0e14e7cd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: If62986b3ba913776ee6b9328a10e358e0e14e7cd
</pre>
</div>
</content>
</entry>
<entry>
<title>Catch missing 404 exceptions in client</title>
<updated>2015-05-18T17:22:58+00:00</updated>
<author>
<name>Juan Antonio Osorio Robles</name>
<email>juan.osorio.robles@ericsson.com</email>
</author>
<published>2015-05-05T12:38:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=ec491131546f8a9d50c912d3f8f81587937e50e6'/>
<id>ec491131546f8a9d50c912d3f8f81587937e50e6</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow all pep8 checks</title>
<updated>2015-01-12T10:55:29+00:00</updated>
<author>
<name>Dina Belova</name>
<email>dbelova@mirantis.com</email>
</author>
<published>2015-01-12T10:52:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=00f9e3f3a032caef21be6e4d50749e3ab403ba56'/>
<id>00f9e3f3a032caef21be6e4d50749e3ab403ba56</id>
<content type='text'>
Fix H405 pep8 issue. H904 issue check was ignored, although
there were no places in client code violating this rule.

Change-Id: If3b84eb8abb03511d7f77cabfa2955f472a60f23
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix H405 pep8 issue. H904 issue check was ignored, although
there were no places in client code violating this rule.

Change-Id: If3b84eb8abb03511d7f77cabfa2955f472a60f23
</pre>
</div>
</content>
</entry>
<entry>
<title>Add client property for common.base.Manager</title>
<updated>2014-12-19T03:06:42+00:00</updated>
<author>
<name>ZhiQiang Fan</name>
<email>zhiqiang.fan@huawei.com</email>
</author>
<published>2014-12-19T03:04:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=dc74ae7c14af89b8371bf737b4e24468caaba198'/>
<id>dc74ae7c14af89b8371bf737b4e24468caaba198</id>
<content type='text'>
The latest oslo-incubator.apiclient code assumes resource manager has
property named client, but ceilometerclient has named that property
to api, which will cause problem when we sync with oslo-incubator.

This patch simply uses client as an alias of api.

Change-Id: I90c5ff10309ff7ad3fb634274e16c26ec8e6a1a2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The latest oslo-incubator.apiclient code assumes resource manager has
property named client, but ceilometerclient has named that property
to api, which will cause problem when we sync with oslo-incubator.

This patch simply uses client as an alias of api.

Change-Id: I90c5ff10309ff7ad3fb634274e16c26ec8e6a1a2
</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>Use Resource() class from common Oslo code</title>
<updated>2014-01-08T11:41:25+00:00</updated>
<author>
<name>ekudryashova</name>
<email>ekudryashova@mirantis.com</email>
</author>
<published>2013-12-18T13:48:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=1fe2e7f8d3241114f71a2720379b9ba32936953e'/>
<id>1fe2e7f8d3241114f71a2720379b9ba32936953e</id>
<content type='text'>
In the process of unification of the clients code we should
reuse common functionality from Oslo. Resource() class from ceilometer
duplicates Oslo funclionality, so we replace it with inheritance

Change-Id: I4e4b83252cdc87e8484d15e351cd5dab08f3ed8a
</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. Resource() class from ceilometer
duplicates Oslo funclionality, so we replace it with inheritance

Change-Id: I4e4b83252cdc87e8484d15e351cd5dab08f3ed8a
</pre>
</div>
</content>
</entry>
<entry>
<title>Use six.iteritems() for dict</title>
<updated>2013-10-14T09:25:58+00:00</updated>
<author>
<name>Kui Shi</name>
<email>skuicloud@gmail.com</email>
</author>
<published>2013-10-14T08:57:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-ceilometerclient.git/commit/?id=38e1ee4632e955e3b8d3643b9d842675c6d15437'/>
<id>38e1ee4632e955e3b8d3643b9d842675c6d15437</id>
<content type='text'>
Fix the error:
AttributeError: 'dict' object has no attribute 'iteritems'

Partial Implement: blueprint py33-support

Change-Id: I5dff17d1df01d6583f882f818434804d65726c51
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the error:
AttributeError: 'dict' object has no attribute 'iteritems'

Partial Implement: blueprint py33-support

Change-Id: I5dff17d1df01d6583f882f818434804d65726c51
</pre>
</div>
</content>
</entry>
</feed>
