374 Commits

Author SHA1 Message Date
OpenStack Jenkins
c1563a75e4 Updated from global requirements
Change-Id: Icb2526c2b9f300430b1a2b84189a0a3646bca627
2013-12-10 22:21:31 +00:00
Zhenguo Niu
cd7f2cbd79 Updates .gitignore
To ignore swap files from getting into repository
currently the implemented ignore is *.swp
however vim adds more swap files if these files exists,
so improving this with *.sw?

Change-Id: I1f3ee52050ac6812c34357ad786fd8210f4238f2
Closes-Bug: #1255876
2013-12-04 08:09:58 +00:00
Jenkins
57a2b43f6a Merge "Readd missing Babel dependency after merge from Oslo(master/bdda833)" 2013-12-03 01:40:04 +00:00
Jenkins
5d658bf5a8 Merge "python3: xrange no longer exists" 2013-11-26 13:35:28 +00:00
Jenkins
ab6eb00e64 Merge "Make HACKING.rst DRYer" 2013-11-26 13:31:21 +00:00
Dirk Mueller
b34cc13e8a Readd missing Babel dependency after merge from Oslo(master/bdda833)
The gettextutils now require Babel.

Change-Id: I2c3c443eff63a1adc727b9f65a755a3977c85a90
2013-11-26 13:34:49 +01:00
Jenkins
6807e3b249 Merge "Sync from oslo-incubator" 2013-11-22 02:21:14 +00:00
Jenkins
c22b88d9b1 Merge "Add release notes for 0.12.0" 2013-11-15 09:14:34 +00:00
Jenkins
10764641f8 Merge "Fix Pep8 errors found by Pep8 1.4.6" 2013-11-15 08:47:38 +00:00
Mark J. Washenberger
7dfd205eb2 Add release notes for 0.12.0
Change-Id: I7642635ba0326d97ca44f08ca54c1d613f1925f1
2013-11-14 23:33:23 -08:00
Jenkins
a7c33d5802 Merge "change assertEquals to assertEqual" 2013-11-15 06:33:29 +00:00
Jenkins
9a649d46ea Merge "Replace OpenStack LLC with OpenStack Foundation" 2013-11-15 06:33:28 +00:00
Jenkins
861bc832cb Merge "Added support for running the tests under PyPy with tox" 2013-11-12 04:47:31 +00:00
Jenkins
12a1d719b2 Merge "Fix python 3.x related Hacking warnings" 2013-11-12 04:38:33 +00:00
Joe Gordon
56734e2b75 Make HACKING.rst DRYer
Reference the OpenStack hacking guide in HACKING.rst and remove
duplicated entries.

Change-Id: I80099c4da8928874f4647ab6f306876db126b0a3
2013-11-11 10:52:07 -08:00
Christian Berendt
7f8292f39d change assertEquals to assertEqual
According to http://docs.python.org/2/library/unittest.html
assertEquals is a deprecated alias of assertEqual.

Change-Id: I22f4702f41537c05684dfacb3f305627b36849c5
2013-10-24 07:54:16 +02:00
Dirk Mueller
fb31223291 Fix Pep8 errors found by Pep8 1.4.6
These missed E128 warnings were missed by 1.4.5, adjust
the indentation.

Change-Id: I7b459113a6f5143012acf959639b725238ca8a11
2013-10-18 11:32:25 +02:00
Chuck Short
518cb2508d python3: use six.moves for httplib imports
This adds six to the requirements.txt file in order to make
some HTTP-related imports work across Python 2's httplib and Python 3's
http.client modules. Tests were updated, including one change to the
location of HTTPConnection - moving it from being accessed where it was
imported rather than its canonical location inside of
six.moves.http_client.

Change-Id: Ibc4932b37dfdf195cd5091066914513af1876955
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-10-16 10:00:56 -04:00
Chuck Short
79138278b1 Sync from oslo-incubator
Sync from oslo-incubator contains various python3 fixes.

Change-Id: I55e867450d65d9fa74fd6ef6ffece2bbb9f929cf
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-10-15 14:57:26 -04:00
Chuck Short
7a80d6de39 python3: xrange no longer exists
range now behaves like xrange did in Python 2.

http://docs.python.org/3.1/whatsnew/3.0.html

Change-Id: I71bef224fb6b0e972373a024f8b86355b5970827
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2013-10-15 11:34:20 -04:00
Jenkins
cd11833cff Merge "Fix regression bug after removing posixpath in http.py" 2013-10-09 17:46:01 +00:00
Jenkins
5ec5e7baec Merge "Fix getting header in redirect processing" 2013-10-09 17:36:54 +00:00
Jenkins
ad12bcf23d Merge "Fix default value for a header" 2013-10-09 05:06:39 +00:00
Chang Bo Guo
7bf27252e5 Fix misused assertTrue in unit tests
Refactored unit tests to use assertEqual instead of assertTrue
where needed.

Closes-Bug: #1226374

Change-Id: I5f3b582e19f3461a04b5df05960095779ec8aa1a
2013-10-08 19:04:08 -07:00
eddie-sheffield
32d9c42816 Add CLI for V2 image create, update, and upload
Provides command line support for image-create, image-update,
and image-upload using the Glance V2 API. This includes building
help text for create and update based on the image jsonschema
as fetched from the server.

Also fixes bug caused by default warlock patch generation not
matching what Glance expects when updating a core property
which had not originally been set when the image was created.

Related to bp glance-client-v2

Change-Id: I841f9e3d05802f4b794cb6f4849abe03ff0324d9
2013-10-02 13:22:55 -04:00
Yang Yu
a0715e966d Fix regression bug after removing posixpath in http.py
After removing posixpath.normpath(url) in http.py, the code has a
regression bug that the url like 'http://example.com:80/test' can
not work. The code urlparse.urljoin() can not work as '%s%s' %
(self.endpoint_path, url).

Fixes bug #1230032

Change-Id: Ie7266fc3a067b92dfeed169086b4bf6a87dedbd6
2013-09-28 21:47:09 -05:00
Russell Bryant
50266eec2b Fix getting header in redirect processing
The code for processing an HTTP redirect included an incorrect method of
getting the Location header from an HTTPResponse.  It needs to use the
getheader() method on the response, instead.  This patch fixes that and
includes a unit test that covers this code path.

Change-Id: I0952fabad581b020dee07bdc4007b55b47c906aa
Closes-Bug: #1231524
2013-09-26 11:45:06 -04:00
Russell Bryant
4718635811 Fix default value for a header
This code specified None as the default value, but it would raise an
exception if that was ever returned.  An empty string causes the code to
work as intended.

This came up while I was writing a unit test for another bug fix.

Change-Id: I658bb8a9b5124f281988fb60b645182ea0ccf99f
Related-bug: #1231524
2013-09-26 11:45:05 -04:00
Jenkins
7a4a8a0979 Merge "Support glance client can get ipv6 image url correctly" 2013-09-25 20:01:58 +00:00
ZhiQiang Fan
2517203975 Replace OpenStack LLC with OpenStack Foundation
Change-Id: I38dcbcf1a6c8efe540fcf5f29e782cb3826e583d
Fixes-Bug: #1214176
2013-09-20 04:05:51 +08:00
Jenkins
360a29a763 Merge "Use openstack-images-v2.1-json-patch for update method" 2013-09-19 17:55:45 +00:00
Dazhao
061da46202 Support glance client can get ipv6 image url correctly
This patch is for fix bug 1208784. In openstack ipv6 environment,
if the os image url is not provided, need use the provided host
to generate literal ipv6 image url.

Fixes bug 1208784

Change-Id: Icb71241a639db02d079348f086bd7bd5f0412609
2013-09-06 13:58:24 +08:00
Alex Gaynor
b331cb63a4 Added support for running the tests under PyPy with tox
This is a precursor to having them run under check and gate.

Change-Id: I9c2f8218f457aeaa03e06b4a87554fcdc40e4a0a
2013-09-05 09:57:40 -07:00
Fei Long Wang
897ae3d795 Enable query image by tag
This patch will enable Glance client to query images by user
defined tags.

Implement bp image-query-by-tag
Implement bp glance-client-v2

Change-Id: I6f54630c5b7c9c567d85485ad4289284e5486814
2013-08-28 14:13:27 +08:00
Dirk Mueller
69fa91b432 Fix python 3.x related Hacking warnings
Convert print operator usages to print functions.
Fix one instance of outdated "except x,y:" syntactical construct.
Remove usages of local() in string formatting alongway.

Change-Id: Id0673a9183a6ea6bd9bf3f5c6d8e7c5f114ebf01
2013-08-26 14:25:23 +02:00
Gabe Westmaas
b6e117f151 Fix glanceclient usage inconsistences for options
Enumerated options should have the same format for all enumerated options.

This commit moves all options to the {option1,option2} format.

fixes bug: #1155171

Change-Id: I8e0ecf3896c76021cb027cbbbb3b5564a04aacec
2013-08-25 01:14:07 +00:00
Mark J. Washenberger
b15c57c4a2 Add 0.11.0 doc notes
Change-Id: Ic76e872e78ec77b731ad9dced833803da3fa9aca
2013-08-22 23:55:52 -07:00
Ghe Rivero
3307549a0f Use openstack-images-v2.1-json-patch for update method
image.patch returns a JSON schema Draft 10 (application/openstack-images-v2.1-json-patch)
while the glaceclient update method specify a Content-Type header
application/openstack-images-v2.0-json-patch with correspond to a JSON schemea Draft 4.

Fixes bug 1206095
Change-Id: I8c5a96f0e117a81b5b527a96ef45758fc69b518d
2013-08-23 06:52:08 +00:00
Jenkins
835638fd8a Merge "Don't use posixpath for URLs" 2013-08-22 21:12:47 +00:00
Jenkins
fe9a62b5b5 Merge "Allow single-wildcard SSL common name matching" 2013-08-22 21:12:36 +00:00
Brian Waldon
683e40fd31 Allow single-wildcard SSL common name matching
Fix bug 1212463

Change-Id: I168601fd9847497c2261c77ce6c856bca187c6c8
2013-08-21 17:57:38 +00:00
Dean Troyer
53d3a0e129 Revert "removed deprecated parameter --public"
While trunk devstack was updated for this, stable/folsom and stable/grizzly
are not and grenade is now broken.  I'm not sure how long --public was
undocumented but it may be that certain cli args may need to remain deprecated
but supported for longer than we wish.

This reverts commit ce8636b6b3c4b606483cfb2bc405d86224f309bc

Change-Id: I91d4884e470c8fcc611dae62a30fa22d08dbec03
2013-08-19 14:46:28 -05:00
Jenkins
20bd548d71 Merge "removed deprecated parameter --public" 2013-08-19 15:34:56 +00:00
eddie-sheffield
7e4ba229c3 \Allow removal of properties using glance v2 api
This adds support to the glance client library for removing
properties from an image. Properties to be removed must be
explicitly listed. There is no equivalent of the 'purge_props'
functionality in v1.

Also beefed up testing around create since some of the
functionality is the same as update.

Fixes bug 1206472

Change-Id: I16f4c39cdfc8a0cd07bede600461b7a289fbb080
2013-08-13 14:13:27 -04:00
Jenkins
3de64660a9 Merge "Raise warlock requirement" 2013-08-12 22:15:33 +00:00
Jenkins
14a9d27796 Merge "Updated from global requirements" 2013-08-12 17:14:42 +00:00
Monty Taylor
1f2eef510f Updated from global requirements
Change-Id: I2e2bd3a38458e1307bcc0410da74dc76c0a5987a
2013-08-10 10:49:11 -07:00
Jenkins
0c2d2a982d Merge "Cast image_id to string before calling urllib.quote" 2013-08-09 20:34:10 +00:00
Mark J. Washenberger
eb47b55dbd Revert 02116565d358a4fa254217779fef82b14b38d8ca
A patch slipped in that modified the default image list limit in a
backwards-incompatible way. This change reverts that patch, but
preserves some of the formatting improvements.

Change-Id: I17ae5024896ca7b1064be66b9e47653e953771d6
2013-08-08 22:31:40 -07:00
Mark J. Washenberger
5cdbcdf3fc Add 0.10.0 docs update
Change-Id: Ib2e75abc7d696f89d97918738bfc960cf3d1da5b
2013-08-08 19:20:39 -07:00