<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-openstackclient.git, branch 2.3.1</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>Add Mitaka relnotes</title>
<updated>2017-01-31T21:26:29+00:00</updated>
<author>
<name>Dean Troyer</name>
<email>dtroyer@gmail.com</email>
</author>
<published>2017-01-31T21:26:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=fbcda721a944c3c3548ad1a260753e1d76fe9c71'/>
<id>fbcda721a944c3c3548ad1a260753e1d76fe9c71</id>
<content type='text'>
Change-Id: I9c0da059ff6fd58a69f7b2775ae2155ac2b74314
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I9c0da059ff6fd58a69f7b2775ae2155ac2b74314
</pre>
</div>
</content>
</entry>
<entry>
<title>Add early release notes for current Reno setup</title>
<updated>2017-01-27T21:31:07+00:00</updated>
<author>
<name>Dean Troyer</name>
<email>dtroyer@gmail.com</email>
</author>
<published>2017-01-27T21:14:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=cec67dc68c79a4af2b2936c1a5588a4a7ff3bd38'/>
<id>cec67dc68c79a4af2b2936c1a5588a4a7ff3bd38</id>
<content type='text'>
We changed to use Reno at release 2.0, add the old notes here and set up
for 2.0-2.3 notes.

Change-Id: I2243c9f035274de85d1d38ad831e40cfe95a65bc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We changed to use Reno at release 2.0, add the old notes here and set up
for 2.0-2.3 notes.

Change-Id: I2243c9f035274de85d1d38ad831e40cfe95a65bc
</pre>
</div>
</content>
</entry>
<entry>
<title>arguments are not locale decoded into Unicode</title>
<updated>2017-01-16T15:54:04+00:00</updated>
<author>
<name>John Dennis</name>
<email>jdennis@redhat.com</email>
</author>
<published>2016-07-15T18:46:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=21cbc1b14e61f712278b6551a9c5e2cfc4624f5f'/>
<id>21cbc1b14e61f712278b6551a9c5e2cfc4624f5f</id>
<content type='text'>
When the openstackclient in Python2 passes command line arguments to a
subcommand it fails to pass the arguments as text
(e.g. Unicode). Instead it passes the arguments as binary data encoded
using the current locales encoding.

An easy way to see this is trying to pass a username with a non-ASCII
character.

% openstack user delete ñew
No user with a name or ID of 'ñew' exists.

What occurs internally is when the user data is retrieved it's it
properly represented in a Unicode object. However the username pased
from the command line is still a str object encoded in the locales
encoding (typically UTF-8). A string comparison is attempted between
the encoded data from the command line and the Unicode text found in
the user representation. This seldom ends well, either the comparison
fails to match or a codec error is raised.

There is a hard and fast rule, all text data must be stored in Unicode
objects and the conversion from binary encoded text to Unicode must
occur as close to the I/O boundary as possible. Python3 enforces this
behavior automatically but in Python2 it is the programmers job to do
so.

In the past there have been attempts to fix problems deep inside
internal code by attempting to decode from UTF-8. There are two
problems with this approach. First, internal code has no way to
accurately know what encoding was used to encode the binary data. This
is way it needs to be decoded as close to the I/O source as possible
because that is the best place to know the actual encoding. Guessing
UTF-8 is at best a heuristic. Second, there must be a canonical
representation for data "inside" the program, you don't want dozens of
individual modules, classes, methods, etc. performing conversions,
instead they should be able to make the assumption in what format text
is represented in, the format for text data must be Unicode. This is
another reason to decode as close to the I/O as possible.

In Python3 the argv strings are decoded from the locales encoding by
the interpreter. By the time any Python3 code sees the argv strings
they will be Unicode. However in Python2 there must be explicit code
added to decode the argv strings into Unicode.

The conversion of sys.argv into Unicode only occurs when argv is not
passed to OpenStackShell.run(). If a caller of OpenStackShell.run()
supplies their own arg it is their responsiblity to assure they are
passing actual text objects. Consider this a requirement of the API.

Note: This patch does not contain a unittest to exercise the behavior
because it is difficult to construct a test that depends on command
invocation from a shell. The general structure of the unit tests is to
pass fake argv into OpenStackShell.run() as if it came from a
shell. Because the new code only operates when argv is not passed and
defaults to sys.argv it conflicts with the unittest design.

Change-Id: I779d260744728eae8455ff9dedb6e5c09c165559
Closes-Bug: 1603494
Signed-off-by: John Dennis &lt;jdennis@redhat.com&gt;
(cherry picked from commit 756d2fac67b4128312e1d779648e62f1458b4ffc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the openstackclient in Python2 passes command line arguments to a
subcommand it fails to pass the arguments as text
(e.g. Unicode). Instead it passes the arguments as binary data encoded
using the current locales encoding.

An easy way to see this is trying to pass a username with a non-ASCII
character.

% openstack user delete ñew
No user with a name or ID of 'ñew' exists.

What occurs internally is when the user data is retrieved it's it
properly represented in a Unicode object. However the username pased
from the command line is still a str object encoded in the locales
encoding (typically UTF-8). A string comparison is attempted between
the encoded data from the command line and the Unicode text found in
the user representation. This seldom ends well, either the comparison
fails to match or a codec error is raised.

There is a hard and fast rule, all text data must be stored in Unicode
objects and the conversion from binary encoded text to Unicode must
occur as close to the I/O boundary as possible. Python3 enforces this
behavior automatically but in Python2 it is the programmers job to do
so.

In the past there have been attempts to fix problems deep inside
internal code by attempting to decode from UTF-8. There are two
problems with this approach. First, internal code has no way to
accurately know what encoding was used to encode the binary data. This
is way it needs to be decoded as close to the I/O source as possible
because that is the best place to know the actual encoding. Guessing
UTF-8 is at best a heuristic. Second, there must be a canonical
representation for data "inside" the program, you don't want dozens of
individual modules, classes, methods, etc. performing conversions,
instead they should be able to make the assumption in what format text
is represented in, the format for text data must be Unicode. This is
another reason to decode as close to the I/O as possible.

In Python3 the argv strings are decoded from the locales encoding by
the interpreter. By the time any Python3 code sees the argv strings
they will be Unicode. However in Python2 there must be explicit code
added to decode the argv strings into Unicode.

The conversion of sys.argv into Unicode only occurs when argv is not
passed to OpenStackShell.run(). If a caller of OpenStackShell.run()
supplies their own arg it is their responsiblity to assure they are
passing actual text objects. Consider this a requirement of the API.

Note: This patch does not contain a unittest to exercise the behavior
because it is difficult to construct a test that depends on command
invocation from a shell. The general structure of the unit tests is to
pass fake argv into OpenStackShell.run() as if it came from a
shell. Because the new code only operates when argv is not passed and
defaults to sys.argv it conflicts with the unittest design.

Change-Id: I779d260744728eae8455ff9dedb6e5c09c165559
Closes-Bug: 1603494
Signed-off-by: John Dennis &lt;jdennis@redhat.com&gt;
(cherry picked from commit 756d2fac67b4128312e1d779648e62f1458b4ffc)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix SSL/TLS verification for network commands</title>
<updated>2017-01-16T06:22:54+00:00</updated>
<author>
<name>Richard Theis</name>
<email>rtheis@us.ibm.com</email>
</author>
<published>2016-04-07T21:35:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=53a79c33f88cea83fb2a90408dd3f5e8dd48a2f5'/>
<id>53a79c33f88cea83fb2a90408dd3f5e8dd48a2f5</id>
<content type='text'>
The network commands ignored the --insecure and --os-cacert
options and OS_CACERT environment variable which prevented
them from properly completing SSL/TLS verification. This
resulted in the network commands failing with
"An SSL error occurred."

Change-Id: I15167631ef58335e1476c16b828b079e3b0f13c1
Closes-Bug: #1560157
(cherry picked from commit b5f10f43eb9fd1a046a3e80db09d8bc8c350c218)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The network commands ignored the --insecure and --os-cacert
options and OS_CACERT environment variable which prevented
them from properly completing SSL/TLS verification. This
resulted in the network commands failing with
"An SSL error occurred."

Change-Id: I15167631ef58335e1476c16b828b079e3b0f13c1
Closes-Bug: #1560157
(cherry picked from commit b5f10f43eb9fd1a046a3e80db09d8bc8c350c218)
</pre>
</div>
</content>
</entry>
<entry>
<title>Follow upper constraints for all tox targets</title>
<updated>2017-01-16T04:20:47+00:00</updated>
<author>
<name>Steve Martinelli</name>
<email>s.martinelli@gmail.com</email>
</author>
<published>2016-07-16T17:33:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=59bd93e49aace4e827b5d269dc3505812e0cf45f'/>
<id>59bd93e49aace4e827b5d269dc3505812e0cf45f</id>
<content type='text'>
With the exception of releasenotes and cover, we should follow
upper constraints. The tox_install file was copied over from
python-neutronclient [1].

[1] http://git.openstack.org/cgit/openstack/python-neutronclient/tree/tools/tox_install.sh

Change-Id: I633fa149820efafd7b2acec0388fa8bc8d06c988
(cherry picked from commit e2a9fd29c118351cd2c99e40233c9eb31c760154)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
With the exception of releasenotes and cover, we should follow
upper constraints. The tox_install file was copied over from
python-neutronclient [1].

[1] http://git.openstack.org/cgit/openstack/python-neutronclient/tree/tools/tox_install.sh

Change-Id: I633fa149820efafd7b2acec0388fa8bc8d06c988
(cherry picked from commit e2a9fd29c118351cd2c99e40233c9eb31c760154)
</pre>
</div>
</content>
</entry>
<entry>
<title>Updated from global requirements</title>
<updated>2016-10-03T13:46:38+00:00</updated>
<author>
<name>OpenStack Proposal Bot</name>
<email>openstack-infra@lists.openstack.org</email>
</author>
<published>2016-10-03T13:46:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=2577402e773a973a7521357fa7b2783c28315107'/>
<id>2577402e773a973a7521357fa7b2783c28315107</id>
<content type='text'>
Change-Id: Icf93a2a490eeb7e5d9989663f21aecd0710b3d20
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Icf93a2a490eeb7e5d9989663f21aecd0710b3d20
</pre>
</div>
</content>
</entry>
<entry>
<title>Updated from global requirements</title>
<updated>2016-04-29T22:41:08+00:00</updated>
<author>
<name>OpenStack Proposal Bot</name>
<email>openstack-infra@lists.openstack.org</email>
</author>
<published>2016-04-29T22:41:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=2c076ec17ee8a6fe8860fe45d965ac5057f33399'/>
<id>2c076ec17ee8a6fe8860fe45d965ac5057f33399</id>
<content type='text'>
Change-Id: I06b9609aae483b7632ae7e021b239cab99cbb968
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I06b9609aae483b7632ae7e021b239cab99cbb968
</pre>
</div>
</content>
</entry>
<entry>
<title>Updated from global requirements</title>
<updated>2016-04-18T15:06:52+00:00</updated>
<author>
<name>OpenStack Proposal Bot</name>
<email>openstack-infra@lists.openstack.org</email>
</author>
<published>2016-04-18T15:06:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=82bb10e63b361347048cf89b4ad19cb7cfa6b81d'/>
<id>82bb10e63b361347048cf89b4ad19cb7cfa6b81d</id>
<content type='text'>
Change-Id: I917683b445854eb809455e8fff7cb8c4f05a6bc2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I917683b445854eb809455e8fff7cb8c4f05a6bc2
</pre>
</div>
</content>
</entry>
<entry>
<title>Updated from global requirements</title>
<updated>2016-03-24T13:50:43+00:00</updated>
<author>
<name>OpenStack Proposal Bot</name>
<email>openstack-infra@lists.openstack.org</email>
</author>
<published>2016-03-24T13:50:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=a0261f846acbe6a180b629da9e212deebe7af4bb'/>
<id>a0261f846acbe6a180b629da9e212deebe7af4bb</id>
<content type='text'>
Change-Id: I5b6c24ccfd6f945bba6370c2967d16e0b80caea7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I5b6c24ccfd6f945bba6370c2967d16e0b80caea7
</pre>
</div>
</content>
</entry>
<entry>
<title>Update .gitreview for stable/mitaka</title>
<updated>2016-03-10T22:59:05+00:00</updated>
<author>
<name>Doug Hellmann</name>
<email>doug@doughellmann.com</email>
</author>
<published>2016-03-10T22:59:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-openstackclient.git/commit/?id=5125219d07b3d3dfa6ece9415d69a3dc65aafb11'/>
<id>5125219d07b3d3dfa6ece9415d69a3dc65aafb11</id>
<content type='text'>
Change-Id: Ic75280a8228f3a98c65acea790cd4da4859bac94
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Ic75280a8228f3a98c65acea790cd4da4859bac94
</pre>
</div>
</content>
</entry>
</feed>
