Commit Graph

768 Commits

Author SHA1 Message Date
OpenDev Sysadmins 5643b19964 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:39:30 +00:00
Darja Shakhray 2506953b7f Glance v3 client methods for work with blobs
This commit adds methods for work with BLOB and related tests to the client.
Currently implemented methods: 'delete_blob', 'download_blob', 'upload_blob'

Co-Authored-By: Mike Fedosin <mfedosin@mirantis.com>

FastTrack
Implements-blueprint: artifact-repository

Change-Id: I29357ee117d7dbdaed58ab12ccb10ba575820b2a
2015-08-26 20:02:25 +03:00
Mike Fedosin c71a87241e Glance v3 client basic methods
This commit adds standard lifecycle methods and related tests
to the client.

Currently implemented methods: 'create', 'update', 'get', 'delete'

FastTrack
Implements-blueprint: artifact-repository

Change-Id: I03f8be8917cf1de527989c441dde24160854cf59
2015-08-26 20:02:24 +03:00
Mike Fedosin 5d847b92cd Glance v3 client initial commit
This commit provides initial support for Glance v3 api and
creates stubs for methods.

FastTrack
Implements-blueprint: artifact-repository

Change-Id: I83bf3eed4e2c44687f001e98be264fa75f16b349
2015-08-26 20:02:10 +03:00
Doug Hellmann 24a7448c65 Update .gitreview for feature/artifacts
Change-Id: I46d07b26104d59ca7b11b9761d6506682863d852
2015-07-20 14:27:57 +00:00
Kamil Rykowski d9d586942b Extend unittests coverage for v2 tasks module
Add new tests for v2 tasks module to cover following cases:
- getting list of tasks using the marker
- getting list of tasks using sort_key & sort_dir keys

Change-Id: Ic126999ebb16e51cc472fe8f86dfe1fced0bc016
Closes-Bug: 1433637
2015-07-20 07:25:45 +00:00
Jenkins d3e384965c Merge "Fix exception message in Http.py" 2015-07-17 18:00:36 +00:00
Jenkins 744a7d5dee Merge "Add .eggs/* to .gitignore" 2015-07-16 22:03:37 +00:00
wangxiyuan b48ff98e16 Fix exception message in Http.py
In common.http.py, the exception RequestTimeout has
wrong message.This patch fixed it.

Change-Id: Ie8ff188b9c82ce424cb8177278f36e4d1275b306
2015-07-14 09:01:12 +08:00
Jenkins 16ab18b64d Merge "Fix an issue with broken test on ci" 2015-07-13 21:34:19 +00:00
Mike Fedosin e240bddd5a Fix an issue with broken test on ci
Several tests with cert verification are broken. This
code fixes it by setting right imports. Also some typos
are fixed too.

Change-Id: Ie014f90714c3dabee65459fd704dd11b1770c7de
Closed-Bug: #1472234
2015-07-13 17:54:41 +03:00
rico.lin e976032a95 Remove usage of assert_called_once on Mock objects
mock 1.1.0 was released on 10 July 2015 which prevents users from using
non-existent assertion methods. This broke the test in the diff.

Co-Authored-By: Ian Cordasco <graffatcolmingov@gmail.com>
Closes-Bug: #1473454
Change-Id: I162b76bbd7d96c96787a8dd8f9642ca1c80c596a
2015-07-10 15:57:51 -05:00
Erno Kuvaja 9fdd4f15e5 Add .eggs/* to .gitignore
Change-Id: I4657733071dfed6485411406427901efeffb348c
2015-07-09 12:52:18 +00:00
OpenStack Proposal Bot 0f9aa99114 Updated from global requirements
Change-Id: I61ff841e2224fbd127e695bb11ca884f541f76a8
2015-06-30 22:45:17 +00:00
Jenkins 731cc77d4a Merge "Do not fall back to namespaced oslo.i18n" 2015-06-30 18:10:37 +00:00
Jenkins 099b49a66a Merge "Account for dictionary order in test_shell.py" 2015-06-30 03:42:03 +00:00
Corey Bryant 1b93adc8fb Account for dictionary order in test_shell.py
Change-Id: Id15f3d642e8fcbd663f12b32f52b6014e32574a5
Closes-Bug: 1468485
2015-06-29 10:22:13 -04:00
Ian Cordasco e192a39af3 Do not fall back to namespaced oslo.i18n
The Oslo libraries have moved all of their code out of the 'oslo'
namespace package into per-library packages. The namespace package was
retained during kilo for backwards compatibility, but will be removed by
the liberty-2 milestone. This change removes the use of the namespace
package, replacing it with the new package names.

The patches in the libraries will be put on hold until application
patches have landed, or L2, whichever comes first. At that point, new
versions of the libraries without namespace packages will be released as
a major version update.

Please merge this patch, or an equivalent, before L2 to avoid problems
with those library releases.

Blueprint: remove-namespace-packages
https://blueprints.launchpad.net/oslo-incubator/+spec/remove-namespace-packages

Change-Id: I831eb6b773d80edc233fd6f6e565ca6f24b65210
2015-06-24 16:56:56 -05:00
OpenStack Proposal Bot b10e8938f9 Updated from global requirements
Change-Id: I19b9915bedacec60fc584a7437a9b46a80a26bdc
2015-06-22 08:27:41 +00:00
Jenkins cc38f51086 Merge "Add v2 support for the marker attribute" 2015-06-22 04:52:27 +00:00
Brad Pokorny ea01f13be2 Add v2 support for the marker attribute
The v2 Glance client implementation ignores the marker attribute if
it's passed to the client as part of the kwargs.  Include support
for the attribute, as the v1 client supports it and it makes it
easier to work with the Glance client.

Change-Id: Ifaa59129bc4178212b890ea591673cb154e0f110
Closes-bug: 1465373
2015-06-19 15:03:37 -07:00
Jenkins dc3dd87de9 Merge "Import only modules and update tox.ini" 2015-06-18 19:52:43 +00:00
Cindy Pallares 997c12d3ab Import only modules and update tox.ini
As stated in the OpenStack Hacking Guidelines, it is prefered
that only modules should be imported.

Also updated tox.ini to ignore opestack/common among others.

Change-Id: I2f0a603c31052eadee581c11880c0ec6bd392829
2015-06-17 10:56:37 -05:00
OpenStack Proposal Bot 081080534c Updated from global requirements
Change-Id: I9b3c158fecbbd36587cb0a1e402bdf1598af2b69
2015-06-16 19:22:51 +00:00
Jenkins 71d8528364 Merge "Close iterables at the end of iteration" 2015-06-16 19:01:18 +00:00
Jenkins 0d22e821f9 Merge "Add parameter 'changes-since' for image-list of v1" 2015-06-15 18:11:27 +00:00
Jenkins e863cb3f94 Merge "cleanup openstack-common.conf and sync updated files" 2015-06-14 20:09:05 +00:00
Robert Collins 43621dc1ac Close iterables at the end of iteration
This fixes a bug where if iteration is interrupted, we're stuck until
the iterable is garbage collected, which can be a very long time (e.g. if
the iterable is held in an exception stack frame).

Co-authored-by: Stuart McLaren <stuart.mclaren@hp.com>

Change-Id: Ibe9990e8c337c117a978b1cd8ec388c4bc6d3b4b
Closes-bug: 1461678
2015-06-11 18:11:39 +00:00
Jamie Lennox 5ce9c7dc96 Make glanceclient accept a session object
To make this work we create a different HTTPClient that extends the
basic keystoneclient Adapter. The Adapter is a standard set of
parameters that all clients should know how to use like region_name and
user_agent. We extend this with the glance specific response
manipulation like loading and sending iterables.

Implements: bp session-objects
Change-Id: Ie8eb4bbf7d1a037099a6d4b272cab70525fbfc85
2015-06-11 13:11:56 +00:00
Davanum Srinivas 5e85d61fb9 cleanup openstack-common.conf and sync updated files
periodic updates of latest from oslo-incubator. please
note that files no longer on oslo-incubator mean that
they have been moved to oslo.* libraries. So there's
more work needed to remove these files and switch
to appropriate libraries

Change-Id: Icd71b4b1ea9f1df526614a29277f25a7ab47b721
2015-06-10 11:59:12 +00:00
Nikhil Komawar db6420b447 Add release notes for 0.19.0
Changes included in this release:

    $ git log 0.18.0..HEAD --no-merges --oneline
    dfa98ab Updated from global requirements
    6cb26fc Include owner and status option in v2 image list
    5d933b0 Fix Metadef Object update issue with python-glanceclient
    9f5c581 Fix functional tests in gate
    1686d6a Do not crash on homedir mkdir
    1f89beb Improve import related error handling
    583adc3 Check image-download for redirection
    9c172fb Add some basic CLI functional tests
    bf413a6 Use assertIn instead of assertTrue in tests
    6431fae Unorder compare in tests
    5fa71aa Add release notes for 0.18.0
    6d31116 Update README to work with release tools
    71d9783 Create functional test base
    f2a8a52 Move unit tests to standard directory
    f931a20 Fixed doc example

Co-Authored-By: Louis Taylor <louis@kragniz.eu>

Change-Id: Ied7f5b4f298e2bbf4a5486eb6b7dbcea2d0e74d3
2015-06-10 10:04:23 +01:00
Louis Taylor dfa98ab04c Updated from global requirements
Also update hacking to

    hacking>=0.10.0,<0.11

to get around breakage with pbr dependency.

Change-Id: Ic5e2d8df6993397ee4d1b087d96cc6667bd72acc
2015-06-05 15:23:33 +00:00
Jenkins d80c70e58a Merge "Improve import related error handling" 2015-05-26 18:20:16 +00:00
Jenkins 7ab3490978 Merge "Fixed doc example" 2015-05-26 17:16:57 +00:00
Jenkins 064822181a Merge "Fix Metadef Object update issue with python-glanceclient" 2015-05-26 14:59:51 +00:00
Jenkins 85078098e7 Merge "Use assertIn instead of assertTrue in tests" 2015-05-26 09:55:18 +00:00
Jenkins 0bf3bfe94f Merge "Unorder compare in tests" 2015-05-26 01:29:03 +00:00
Jenkins 2eb5292e9d Merge "Include owner and status option in v2 image list" 2015-05-25 21:15:12 +00:00
Jenkins 0c244b24bd Merge "Check image-download for redirection" 2015-05-25 21:15:09 +00:00
Jenkins 048e763b75 Merge "Fix functional tests in gate" 2015-05-25 17:29:27 +00:00
Cindy Pallares 6cb26fc2bf Include owner and status option in v2 image list
Show the owner and status information when adding -v or --verbose
to the image-list command.

Closes-bug: #1381514
Change-Id: I90bf622147b12ed157072fad0823af58223caf91
2015-05-22 01:56:42 -05:00
Lakshmi N Sampath 5d933b0dd5 Fix Metadef Object update issue with python-glanceclient
Disallowed fields(schema, created_at and updated_at) were
getting deleted from Metadef namespace instead of Metadef object.

Change-Id: Id80e204c7af1ac6926c66627d290a15c4e6b00d9
Closes-Bug: #1433884
2015-05-18 13:49:52 +02:00
Jenkins e180dbf12c Merge "Add release notes for 0.18.0" 2015-05-18 00:25:19 +00:00
Stuart McLaren 9f5c58193b Fix functional tests in gate
The check-glanceclient-dsvm-functional gate job was failing due to the
functional tests not picking up valid OpenStack credentials.

Update how we aquire credentials -- fixes side effect of how tox 2.0
handles environment variables.

Change-Id: Ia665dc9673d09421508476d05039d2da8a5e1a29
Closes-bug: 1455102
2015-05-15 13:18:00 -04:00
Jenkins 688f902305 Merge "Do not crash on homedir mkdir" 2015-05-14 19:14:38 +00:00
Thomas Goirand 1686d6aa53 Do not crash on homedir mkdir
Glanceclient is trying to create ~/.glanceclient, and crashes if it can't
do that. In some environment (for example, when building the package
under Jenkins), writing on $HOME is simply not allowed, and Glanceclient
can simply ignore it. This patch allows the mkdir() to fail, which fixes
the issue.

Closes-Bug: #1446096
Change-Id: Ib3591fb4e54ccd2fe63a1a4815551ac10ef5b961
2015-05-14 15:41:24 +00:00
Stuart McLaren 1f89beb609 Improve import related error handling
If there was a problem importing a library we would incorrectly raise
an unsupported version error:

  $ glance --os-image-api-version 1 image-list
  "1" is not a supported API version. Example values are "1" or "2".

We should change this to provide information on the failed import, eg:

  $ glance --os-image-api-version 1 image-list
  No module named badimport

We also now raise the full stacktrace in this case if '--debug' is passed
on the command line.

Change-Id: I1c687ae6c5da239090b0b7a4a855b3271a9076da
Related-bug: 1402632
2015-05-08 12:51:02 +00:00
Fei Long Wang 116fac8ae8 Add parameter 'changes-since' for image-list of v1
Now Glance /images/detail API of v1 supports parameter
'changes-since' to query deleted images. But it's missed
in client. This patch will add the parameter.

Related-Bug: #1432701

Change-Id: Id38e3a78b4b2ef680ea04d35e32beb4b9c8efa00
2015-05-06 14:58:44 +12:00
Cindy Pallares 583adc34f8 Check image-download for redirection
Currently when you download an image without specifying
a file or redirecting the output, the image is dumped into
the console as gibberish. We can avoid this if we
check if file is being redirected or if a file is specified.

Change-Id: I257760752f05b82b935cf19fb10573ee7ff1395d
2015-05-05 13:17:39 -05:00
Louis Taylor 9c172fb056 Add some basic CLI functional tests
This ports over most of the functional glanceclient cli tests out from
tempest.

Change-Id: I59d409ade72c289ed9942ce374cae732a40518aa
2015-05-01 17:03:40 +00:00