<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-openstackclient.git/openstackclient/compute/v2/usage.py, branch 4.0.2</title>
<subtitle>opendev.org: openstack/python-openstackclient
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/'/>
<entry>
<title>Paginate over usage list to return all usages</title>
<updated>2019-02-28T18:27:04+00:00</updated>
<author>
<name>Pavlo Shchelokovskyy</name>
<email>shchelokovskyy@gmail.com</email>
</author>
<published>2019-02-27T12:21:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=c79de8a90bc1f1149b8302052580e5a76876724c'/>
<id>c79de8a90bc1f1149b8302052580e5a76876724c</id>
<content type='text'>
since nova api 2.40 the os-simple-tenant-usage API supports pagination
and will by default return a number of entities configured internally in
Nova.
This means that when there are many enough projects,
the single call to usage.list() will not return usages for all projects.

This patch effectively copy-pastes the logic to paginate over usage list
results from novaclient/v2/shell.py code.

Change-Id: I1b639fe386b7b7db3223f6965495094b9d51533a
Story: #2005099
Task: #29713
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
since nova api 2.40 the os-simple-tenant-usage API supports pagination
and will by default return a number of entities configured internally in
Nova.
This means that when there are many enough projects,
the single call to usage.list() will not return usages for all projects.

This patch effectively copy-pastes the logic to paginate over usage list
results from novaclient/v2/shell.py code.

Change-Id: I1b639fe386b7b7db3223f6965495094b9d51533a
Story: #2005099
Task: #29713
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix additional output encoding issues</title>
<updated>2018-03-20T20:40:23+00:00</updated>
<author>
<name>Dean Troyer</name>
<email>dtroyer@gmail.com</email>
</author>
<published>2018-03-20T20:40:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=6df58b63667b3f7b76c7825f5204a6c4f531521c'/>
<id>6df58b63667b3f7b76c7825f5204a6c4f531521c</id>
<content type='text'>
This is a followup to https://review.openstack.org/#/c/541609/ that
changes most outstanding direct uses of sys.stdout to use the encoded
stdout set up by cliff.

Change-Id: I07cfc418385fc787d3b7d3c32d39676cf81bb91f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a followup to https://review.openstack.org/#/c/541609/ that
changes most outstanding direct uses of sys.stdout to use the encoded
stdout set up by cliff.

Change-Id: I07cfc418385fc787d3b7d3c32d39676cf81bb91f
</pre>
</div>
</content>
</entry>
<entry>
<title>Modified API calls in os usage</title>
<updated>2016-12-07T19:00:45+00:00</updated>
<author>
<name>jiahui.qiang</name>
<email>jiahui.qiang@easystack.cn</email>
</author>
<published>2016-12-07T19:00:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=035a87051c73eb5e6c4de3a12a4d50bd6acd1714'/>
<id>035a87051c73eb5e6c4de3a12a4d50bd6acd1714</id>
<content type='text'>
We usually call v3 keystoneclient APIs for V2 OSC, this patch
modified 'tenants' to 'projects'.

Change-Id: Idbf74f098cd1386aa675c081480b89bbc11c8534
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We usually call v3 keystoneclient APIs for V2 OSC, this patch
modified 'tenants' to 'projects'.

Change-Id: Idbf74f098cd1386aa675c081480b89bbc11c8534
</pre>
</div>
</content>
</entry>
<entry>
<title>translate all command help strings</title>
<updated>2016-11-17T02:33:42+00:00</updated>
<author>
<name>Steve Martinelli</name>
<email>s.martinelli@gmail.com</email>
</author>
<published>2016-11-13T14:42:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=0ef8535036c3739d798fd5627ae142d121f20d42'/>
<id>0ef8535036c3739d798fd5627ae142d121f20d42</id>
<content type='text'>
Leverage the new cliff command class attribute (_description)
to get the help of a command, this allows us to mark strings
for translation. We could not do this before since the help
was grabbed from the docstring.

This also depends on a new release of cliff and a bump to the
minimum level in osc's requirements.

Closes-Bug: 1636209
Depends-On: Id915f6aa7d95a0ff3dc6e2ceaac5decb3f3bf0da
Change-Id: I8673080bb5625e8e3c499feaefd42dfc7121e96f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Leverage the new cliff command class attribute (_description)
to get the help of a command, this allows us to mark strings
for translation. We could not do this before since the help
was grabbed from the docstring.

This also depends on a new release of cliff and a bump to the
minimum level in osc's requirements.

Closes-Bug: 1636209
Depends-On: Id915f6aa7d95a0ff3dc6e2ceaac5decb3f3bf0da
Change-Id: I8673080bb5625e8e3c499feaefd42dfc7121e96f
</pre>
</div>
</content>
</entry>
<entry>
<title>osc-lib: command</title>
<updated>2016-06-13T16:00:22+00:00</updated>
<author>
<name>Dean Troyer</name>
<email>dtroyer@gmail.com</email>
</author>
<published>2016-05-13T22:27:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=9e2b8e67307e739008307e977ce545d49d0956a6'/>
<id>9e2b8e67307e739008307e977ce545d49d0956a6</id>
<content type='text'>
Leave command.py and test_command.py as a sanity check during the
deprecation period.

Change-Id: I24e1b755cbfbcbcaeb5273ec0c9706b82384fc85
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Leave command.py and test_command.py as a sanity check during the
deprecation period.

Change-Id: I24e1b755cbfbcbcaeb5273ec0c9706b82384fc85
</pre>
</div>
</content>
</entry>
<entry>
<title>osc-lib: utils</title>
<updated>2016-06-13T15:50:44+00:00</updated>
<author>
<name>Dean Troyer</name>
<email>dtroyer@gmail.com</email>
</author>
<published>2016-05-13T21:14:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=e5e29a8fef7ba2396015918545a49e717fe75d15'/>
<id>e5e29a8fef7ba2396015918545a49e717fe75d15</id>
<content type='text'>
Use osc-lib directly for utils.

Leave openstackclient.common.utils for deprecation period.

Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use osc-lib directly for utils.

Leave openstackclient.common.utils for deprecation period.

Change-Id: I5bd9579abc4e07f45219ccd0565626e6667472f7
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix i18n support for help and error messages in compute</title>
<updated>2016-05-24T03:03:49+00:00</updated>
<author>
<name>Tang Chen</name>
<email>chen.tang@easystack.cn</email>
</author>
<published>2016-05-14T07:12:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=5398c96e2a816148cbcde7ce43c46de6721051f6'/>
<id>5398c96e2a816148cbcde7ce43c46de6721051f6</id>
<content type='text'>
Change-Id: Id6eebcb48d1b7b49b6636524506294edbc44a83f
Partial-bug: #1574965
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Id6eebcb48d1b7b49b6636524506294edbc44a83f
Partial-bug: #1574965
</pre>
</div>
</content>
</entry>
<entry>
<title>log take_action parameters in a single place</title>
<updated>2016-02-02T00:58:32+00:00</updated>
<author>
<name>Akihiro Motoki</name>
<email>motoki@da.jp.nec.com</email>
</author>
<published>2016-01-10T12:54:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=258c1102cc6b93a860bcd7cc083d4e14ae0025ce'/>
<id>258c1102cc6b93a860bcd7cc083d4e14ae0025ce</id>
<content type='text'>
Previously each command logs take_action parameters explicitly
by using @utils.log_method decorator or log.debug().
Some commands have no logging.

This commit calls a logger in the base class and
drops all logging definition from individual commands.

Closes-Bug: #1532294
Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously each command logs take_action parameters explicitly
by using @utils.log_method decorator or log.debug().
Some commands have no logging.

This commit calls a logger in the base class and
drops all logging definition from individual commands.

Closes-Bug: #1532294
Change-Id: I43cd0290a4353c68c075bade9571c940733da1be
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove deprecated 'project usage list' command</title>
<updated>2015-11-18T21:37:55+00:00</updated>
<author>
<name>Dean Troyer</name>
<email>dtroyer@gmail.com</email>
</author>
<published>2015-11-18T21:32:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=1a8020cc1b7a47ad5c910673ce3d279687bbaa14'/>
<id>1a8020cc1b7a47ad5c910673ce3d279687bbaa14</id>
<content type='text'>
Remove the 'project usage list' command that was deprecated in version
1.0.2 in review Ie08d4f88d71a660fca1862405351109cd0aa86b6.

Note that the removed command class is a good example of how to wrap a
command and show a deprecation message.

Change-Id: I6c750730963615895f5d9953487d2d5a905885a8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the 'project usage list' command that was deprecated in version
1.0.2 in review Ie08d4f88d71a660fca1862405351109cd0aa86b6.

Note that the removed command class is a good example of how to wrap a
command and show a deprecation message.

Change-Id: I6c750730963615895f5d9953487d2d5a905885a8
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the bug of "openstack usage show"</title>
<updated>2015-11-02T09:28:17+00:00</updated>
<author>
<name>xiexs</name>
<email>xiexs@cn.fujitsu.com</email>
</author>
<published>2015-11-02T09:28:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=9e507523215bb38502832ceccea0a9b94b6f4cbd'/>
<id>9e507523215bb38502832ceccea0a9b94b6f4cbd</id>
<content type='text'>
When there is no resouce usage associated with the project,
an odd output will be displayed.
This patch tried to fix this issue.

Change-Id: I6f254c6ba37fbb760ada08e640c4938668d560dc
Closes-Bug: #1512220
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When there is no resouce usage associated with the project,
an odd output will be displayed.
This patch tried to fix this issue.

Change-Id: I6f254c6ba37fbb760ada08e640c4938668d560dc
Closes-Bug: #1512220
</pre>
</div>
</content>
</entry>
</feed>
