Commit Graph

1122 Commits

Author SHA1 Message Date
OpenStack Proposal Bot 92f97576f3 Updated from global requirements
Change-Id: Idd8453b0c37e991dbd80260664c775539baa7c0c
2017-04-12 04:21:02 +00:00
OpenStack Proposal Bot a9a8cc56ba Updated from global requirements
Change-Id: I8c9321e6dca3b6c66e1341fa4b66d3cfb7228362
2017-04-07 06:15:34 +00:00
lijunbo 07ad860d07 Remove references to Python 3.4
Now that there exists only a gate job for Python 3.5 and not 3.4,
we should remove those references to the 3.4 that is untested.

Change-Id: I8853fadc29823b16fb4b620648636d658ec38d8d
2017-03-24 01:52:08 +00:00
Jenkins ba46e69eee Merge "Replace functions 'dict.get' and 'del' with 'dict.pop'" 2017-03-06 17:09:00 +00:00
OpenStack Proposal Bot 333494a6d0 Updated from global requirements
Change-Id: I04411a2a10fc9587fbe61859b2a8597d8375fcdf
2017-03-03 22:58:20 +00:00
Jenkins 1268ca5333 Merge "Updated from global requirements" 2017-03-03 21:47:05 +00:00
Jenkins 0b77214f03 Merge "x-openstack-request-id logged twice in logs" 2017-03-03 20:56:25 +00:00
OpenStack Proposal Bot 7752c4a434 Updated from global requirements
Change-Id: Ib0bd11e18e336c86e66045a256e0befe90f0f56b
2017-03-02 11:54:22 +00:00
ricolin 70f27293bd Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I131cce2efade625af3e1e36a058c086ea5793f47
2017-03-02 16:35:24 +08:00
OpenStack Proposal Bot 5f1ae538e0 Updated from global requirements
Change-Id: I33e7b23e1c47148b9b1b29b7c05d6c2d88dcd065
2017-03-01 04:15:29 +00:00
Abhishek Kekane 87e4f7646f x-openstack-request-id logged twice in logs
In the recent release of keystoneauth1 2.18.0 provision is made to log
x-openstack-request-id for session client. Once this new library is synced
in openstack projects, the x-openstack-request-id will be logged twice
on the console if session client is used.

For example,
$ glance --debug image-list

DEBUG:keystoneauth.session:GET call to image for
http://10.232.48.204:9292/v2/schemas/image used request id
req-96a3f203-c605-4c96-a31d-f1199d41705c

DEBUG:glanceclient.common.http:GET call to glance-api for
http://10.232.48.204:9292/v2/schemas/image used request id
req-96a3f203-c605-4c96-a31d-f1199d41705c

Above log will be logged twice on the console.

Removed logging of x-openstack-request-id in case of SessionClient as it
is already logged in keystoneauth1. x-openstack-request-id will only be
logged once on console if HTTPClient is used.

Depends-On: I492b331ff3da8d0b91178bf0d5fe1d3702f15bd7
Closes-Bug: #1657351
Change-Id: I64258f997dc060113f53682aee74bdd40a346e54
2017-02-22 01:49:22 +05:30
OpenStack Proposal Bot 1cd7030c8f Updated from global requirements
Change-Id: I082f5baf52318187aa0f7d32a25d23d033255218
2017-02-11 17:51:14 +00:00
OpenStack Proposal Bot 7ba2ac7bf9 Updated from global requirements
Change-Id: I366cd5564fd786ad990d0902586aa6396613e7fc
2017-02-10 05:58:36 +00:00
bhagyashris 6740f57096 Replace functions 'dict.get' and 'del' with 'dict.pop'
Refactoring code: Making dict to use single instruction: pop()
rather than two instructions: get() and del, giving the codes a
format that carries through.

TrivialRefactoring

Change-Id: Idb21df37c287fdff24c29153676f82544f735297
2017-01-31 10:09:28 +05:30
Jenkins c1f54742f9 Merge "Replace dict.iteritems() with dict.items()" 2017-01-24 22:34:49 +00:00
OpenStack Release Bot d532d50663 Update reno for stable/ocata
Change-Id: Iba4cf2b4e14d1d2573e93396325ddb830787387c
2017-01-24 17:33:12 +00:00
OpenStack Proposal Bot 9afb56c875 Updated from global requirements
Change-Id: Ie074e23e82e89511100e65f88da18676f47bd7c6
2017-01-23 23:51:45 +00:00
Jenkins 99cbde26ac Merge "Add support for community images" 2017-01-23 22:19:37 +00:00
Jenkins a76fdcd20a Merge "Add request id to returned objects" 2017-01-23 22:19:31 +00:00
Ravi Jethani 610177a779 Add request id to returned objects
Adding two classes RequestIdProxy and GeneratorProxy derived from
wrapt.ObjectProxy to wrap objects returned from the API.

GeneratorProxy class is used to wrap generator objects returned
by cases like images.list() etc. whereas RequestIdProxy class is
used to wrap non-generator object cases like images.create() etc.

In all cases the returned object will have the same behavior as
the wrapped(original) object. However now the returned objects
will have an extra property 'request_ids' which is a list of
exactly one request id.

For generator cases the request_ids property will be an empty list
until the underlying generator is invoked at-least once.

Co-Authored-By: Abhishek Kekane <abhishek.kekane@nttdata.com>

Closes-Bug: #1525259
Blueprint: return-request-id-to-caller
Change-Id: If8c0e0843270ff718a37ca2697afeb8da22aa3b1
2017-01-20 14:50:42 +05:30
Evgeny Antyshev 6ab6a740ff Add ploop in disk_format
"ploop" image format is supported in upstream Glance
https://review.openstack.org/341633

And similar patch has been added in python-openstackclient:
https://review.openstack.org/411405

Co-Authored-By: yuyafei <yu.yafei@zte.com.cn>
Change-Id: I1471224df97cf5fecfe7f02e549855af81c45848
Related-Bug: 1650342
2017-01-19 14:31:01 +00:00
OpenStack Proposal Bot 54e6faadf2 Updated from global requirements
Change-Id: I63545eb6cb26b6296e162c39c8df93d35ea652d0
2017-01-16 17:27:24 +00:00
Jenkins 8f8df1cced Merge "Handle formatting of subcommand name in error output" 2017-01-13 19:35:35 +00:00
Ian Cordasco 81039a1e36 Handle formatting of subcommand name in error output
On Python 2, decoding all arguments leads to the possibility that users
that use the wrong command or mistype the name will see error output
with a unicode string's representation instead of one without it. To
avoid this we try and find the first non-option string in the argument
list and replace it with an string that is not text only on Python 2. If
we encoded the string at all times, then users installing glanceclient
on Python 3 would see b'invalid-subcommand' instead. That's as bad as
seeing u'invalid-subcommand' on Python 2.

Closes-bug: 1533090
Change-Id: I018769e159a607ebb233902cbeb13b95ca417190
2017-01-11 07:33:34 -06:00
Li Wei efb5e2aa32 Add vhdx in disk_format
vhdx is also a format of the disk valid value in v2 version,
so add it in disk_format.

Related-Bug: 1635518
Co-Authored-By: Stuart McLaren <stuart.mclaren@hpe.com>
Change-Id: I7d82d4a4bdb180a53e86552f6f6b3bed908e6dc0
2017-01-10 07:41:02 +00:00
Luong Anh Tuan 1a5fac7da2 Replace dict.iteritems() with dict.items()
Following Python 3 guide https://wiki.openstack.org/wiki/Python3
Thus, we should replace task.iteritems() with task.items()

Change-Id: If617c3a87836930dc78a4ce7dd45a9b7804e0d24
2016-12-20 11:02:42 +07:00
Jenkins fa11427af5 Merge "Use import_versioned_module from oslo.utils" 2016-12-16 12:30:19 +00:00
OpenStack Proposal Bot 07e0cb9e2b Updated from global requirements
Change-Id: If643570d0aebd47f7c9d76285a30dc26aaa1425f
2016-12-15 03:54:52 +00:00
Jenkins 8b96bbc34c Merge "Revert "Add last_request_id member to HTTPClient and SessionClient"" 2016-12-14 17:35:22 +00:00
Li Wei 4773c96672 Use import_versioned_module from oslo.utils
oslo.utils 3.17 provides this funtion, so just use it directly.

Change-Id: I85cb78a6fd33a5b1f7e09648efed1b0737678eee
Closes-Bug: #1627313
2016-12-06 09:35:55 +00:00
OpenStack Proposal Bot 611401d229 Updated from global requirements
Change-Id: I95aeef6351136ca3093fdea1d1dc159532dcbe70
2016-12-05 18:47:55 +00:00
Brian Rosmaita 1505a47ff3 Add alt text for badges
The RST image directive takes an alt parameter that's used to supply an
alt attribute for the HTML image element that's generated during RST
to HTML conversion.  The alt text is useful for accessibility purposes
and is also displayed if the image source is unavailable when the HTML
is generated.  Because of the latter point, we can't rely on the
accessibility features of the SVG image, we need to maintain some info
here in the README.rst file.

Change-Id: I1ca4a4d84cbb87c696b98d2d1d14f9ef792fcff6
2016-12-01 12:38:08 -05:00
Flavio Percoco 36aeb8cc9c Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

b'https://gist.github.com/3462d6f4e23cdccc6d239311d224b61c\n'

Change-Id: I0d1bcd680bd3cb7728997d5a059d1bc0f621da01
2016-11-25 14:32:27 +01:00
Jenkins 993d45293c Merge "Add Apache 2.0 license to source file" 2016-11-18 15:48:45 +00:00
Jenkins 3d1c814d07 Merge "Move old oslo-incubator code out of openstack/common" 2016-11-15 17:58:49 +00:00
Alexander Bashmakov 20ab7b8201 Add support for community images
This patch adds support for community images retrieval and
creation in the Glance client.

Depends-On: I94bc7708b291ce37319539e27b3e88c9a17e1a9f
Change-Id: I81e83eab5a9d30643c354f0cb6df425cf7a7bae3
2016-11-10 22:55:33 +00:00
Jenkins bdf2aebe12 Merge "Updated from global requirements" 2016-11-09 16:28:28 +00:00
Jenkins c886ada235 Merge "Remove unused _i18n.py shim." 2016-11-09 13:56:05 +00:00
OpenStack Proposal Bot bcbd2af6aa Updated from global requirements
Change-Id: I87aa54d8afae437826c46b913e49985e633c8fa0
2016-11-09 04:23:37 +00:00
Abhishek Kekane c2898998a7 Move old oslo-incubator code out of openstack/common
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.

Package openstack/common/apiclient is moved to glanceclient/v1
package as it is used by v1 api only.

NOTE:
Removed glanceclient/common/base.py as it is deprecated and not
used anywhere.

Closes-Bug: #1639487
Change-Id: Ib3ac09743ce761ab0186e99e1c9de02517f89510
2016-11-08 11:33:09 +05:30
Jenkins 9e1d4a4f22 Merge "Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)'" 2016-11-03 18:39:15 +00:00
OpenStack Proposal Bot dca95300de Updated from global requirements
Change-Id: I3cf13c3f0ec14056afa30f8d7e95ed950e961751
2016-10-22 01:26:47 +00:00
Jenkins 5eba376eed Merge "Enable release notes translation" 2016-10-07 18:47:01 +00:00
Andreas Jaeger 5b5eeb486b Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: Ifad58c69d888e58cf1cc998bb1ddb409b4489490
2016-10-06 20:49:36 +02:00
Cao Xuan Hoang 7a6cd5ebe2 Add Apache 2.0 license to source file
As per OpenStack licensing guide lines [1]:
[H102 H103] Newly contributed Source Code should be licensed under
the Apache 2.0 license.
[H104] Files with no code shouldn't contain any license header nor
comments, and must be left completely empty.

[1] http://docs.openstack.org/developer/hacking/#openstack-licensing

Change-Id: I15cbb71d028e9297cb49b5aab7d0427f7be36c49
2016-10-04 09:38:39 +07:00
OpenStack Proposal Bot 6e0ef89e92 Updated from global requirements
Change-Id: Ibc25874307327b2a5cb8117f455f53b37bde6db7
2016-09-30 20:05:34 +00:00
Alexander Bashmakov aba02eaa68 Remove unused _i18n.py shim.
This patch is part of the effort to remove copies incubated
Oslo code [1]. Removed unused openstack/common/_i18n.py which
graduated to oslo.i18n back in Juno release [2].

[1] http://governance.openstack.org/goals/ocata/remove-incubated-oslo-code.html
[2] http://specs.openstack.org/openstack/oslo-specs/specs/juno/graduate-oslo-i18n.html

Change-Id: I7f7d2916baebf0c23c962329d22b4be930abc326
2016-09-30 10:04:19 -07:00
OpenStack Proposal Bot bd092e953c Updated from global requirements
Change-Id: I517305a872086e4d711de869d05ad44c38018d80
2016-09-28 17:00:17 +00:00
Cao Xuan Hoang 47e289bec2 Replace 'assertTrue(a not in b)' with 'assertNotIn(a, b)'
trivialfix

Change-Id: I4d05a8bbcf99794c02261a9f9136e1c6f2c561a6
2016-09-28 11:52:29 +07:00
OpenStack Proposal Bot 3bb28213bc Updated from global requirements
Change-Id: If0aef91c8240332aef26503f266362cfcdf47e97
2016-09-27 10:07:03 +00:00