Commit Graph

1102 Commits

Author SHA1 Message Date
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
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
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
OpenStack Proposal Bot 8c78a973f1 Updated from global requirements
Change-Id: I4eb1b99d0763ba02dc232ad90d2d5bc871223a5a
2016-09-13 09:42:20 +00:00
Jenkins 9ae5deb7fe Merge "switch from keystoneclient to keystoneauth" 2016-09-10 19:51:06 +00:00
Jenkins 5267d84926 Merge "Use constraints everywhere" 2016-09-09 14:46:19 +00:00
Doug Hellmann 4af7d7dda5 standardize release note page ordering
In order to support automatically updating the release notes when we
create stable branches, we want the pages to be in a standard order.
This patch updates the order to be reverse chronological, so the most
recent notes appear at the top.

Change-Id: Ib364dcc8eb31275a31c83b68d7914263b183e393
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2016-09-07 16:49:50 -04:00
OpenStack Proposal Bot e2eb44e6b8 Updated from global requirements
Change-Id: I7d635eb8c6ef6fb74194f1efd7c54e1c4821b823
2016-09-06 17:11:11 +00:00
Itisha Dewan a9115b4cd8 switch from keystoneclient to keystoneauth
move glanceclient to keystoneauth as keystoneclient's auth session,
plugins and adapter code has been deprecated.

refer to [1] for more information.

1: https://github.com/openstack/python-keystoneclient/commit/1a84e24fa4ce6d3169b59e385f35b2a63f2257f0

implements bp: use-keystoneauth

Co-Authored-By: Itisha <ishadewan07@gmail.com>
Change-Id: I88fb327628e1bec48dc391f50d66b3deab4a8ab9
2016-09-03 03:22:04 +00:00
Andreas Jaeger 27f0c35a72 Improve tools/tox_install.sh
Inspired from the tox_install script in the python-openstackclient, this
commit brings in the following improvements to python-glanceclient's
tools/tox_install.sh:

* Do not leave temporary directory around, instead delete temporary
  directory directly after usage (change
  I939eae82dba3287fd4e4086128ebf4609a0e0770).
* Do not set ZUUL_BRANCH explicitely and remove unused if condition
  (change I0077c986a17d6bb92791474e03d1e77776e9382f).

Change-Id: Ibed7e2fbe35d2f2a520383e36ad31a5e7c8ef548
2016-08-30 20:40:33 +02:00
Andreas Jaeger 546a9beea8 Use constraints everywhere
Infra now supports constraints everywhere, remove now unused
workarounds.

For more information about constraints see:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: Ie46068f0bf406da82c521d888e0876f60cf91115
2016-08-30 19:45:37 +02:00
Doug Hellmann fec9b5f5e3 Update reno for stable/newton
Change-Id: If55361414c025c4d2ca3de88c01480ece9fbc3bb
2016-08-29 20:26:11 +00:00
Jenkins d4196325eb Merge "Revert "Don't update tags every time"" 2016-08-20 19:16:37 +00:00
Jenkins ca54f059c4 Merge "Update doc URL" 2016-08-20 18:27:35 +00:00
OpenStack Proposal Bot 405d9691a0 Updated from global requirements
Change-Id: I58866d86b0755d38c30e5c7859747e73b825a250
2016-08-19 08:58:05 +00:00
Steve Martinelli b78285761d Revert "Don't update tags every time"
This reverts commit e77322c179.

Change-Id: Ida826a2aa888beeb76dbe657b2ccd6cb088157ed
2016-08-19 06:10:14 +00:00
KATO Tomoyuki 3a10936248 Update doc URL
Docs team changed URL for search engine optimization.

Change-Id: I68e2a5d666da55722d5ee2fa4aec2326c0de0946
2016-08-19 07:31:05 +09:00
Jenkins 5de07c3395 Merge "Fix warlock model creation" 2016-08-12 15:15:46 +00:00
OpenStack Proposal Bot 9e84185a6d Updated from global requirements
Change-Id: I1f342679edc9284fb051ec6e2d012bc6265600d7
2016-08-11 18:17:44 +00:00
Jenkins 7936f173c0 Merge "Don't update tags every time" 2016-08-08 09:09:22 +00:00
OpenStack Proposal Bot 3659eb7a90 Updated from global requirements
Change-Id: I787b389ea50d0ec1743604725bead55fc477a0c0
2016-08-05 20:27:36 +00:00
Jenkins 07eb350b33 Merge "Remove unused openstack/common/apiclient/client" 2016-08-04 17:05:26 +00:00
Jenkins cc17ca3265 Merge "Remove discover from test-requirements" 2016-08-01 16:16:10 +00:00