27 Commits

Author SHA1 Message Date
Thomas Leaman
c93a7a22c0 Bump python-swiftclient version
https://review.openstack.org/#/c/69187/ introduced SSL certificate checking
in python-swiftclient (released as v2.0). This patch ensures that the version
of swiftclient used will verify SSL certificates correctly.

This patch also documents the `swift_store_auth_insecure` configuration
option for bypassing the cert verification

DocImpact
SecurityImpact

Change-Id: I20ddab5c3359071daf7505268c72331e4c786987
2014-05-27 12:43:36 +00:00
Brian Cline
ba1f41d89d Fixes "bad format" in replicator for valid hosts
Due to a bad regex, the glance-replicator tool rejects any source or
target host:port combination that contains a period. As a result, only
hostnames without periods can be used.

This fix expands the host/port checks to:
  - allow periods in hostnames
  - allow and verify IPv6 addr/port pairs (i.e., [fe80::f00d:face]:1234)
  - allow and verify IPv4 addr/port pairs (i.e., 172.17.17.2:1234)
  - sanity-check port numbers

This also includes extensive tests for each component of the parsing,
and adds network_utils to openstack-common.conf.

Change-Id: I94fdd7a57a4cb0aa5d79f66d68be159d1f1266d1
Closes-Bug: #1216247
2014-04-15 08:28:53 +00:00
OpenStack Jenkins
8990b32ed4 Updated from global requirements
Change-Id: I5db8a08cc2f4d4465de633db8d06e111b171a630
2014-04-07 21:20:09 +00:00
OpenStack Jenkins
eb887a2219 Updated from global requirements
Change-Id: Ic042a64906cf69214261d6651787c08c6f025ea5
2014-03-13 01:47:54 +00:00
Arnaud Legendre
18b4df178b VMware storage backend should use oslo.vmware
Currently, the VMware store is using its own copy of the
VMwareApiSession to connect to vCenter server and ESX(i).
This patch gets rid of this copy to use the oslo.vmware library.

Closes-Bug: #1282715

Change-Id: I0aa47eada388c09d9835b00fb2c93f50f22675a4
2014-02-27 16:15:07 -08:00
OpenStack Jenkins
9206ad813f Updated from global requirements
Change-Id: Iebef337a6a6c56047f94abefc822ae9d90a1bdb1
2014-02-23 09:24:48 +00:00
OpenStack Jenkins
b249db1bdc Updated from global requirements
Change-Id: Iad328b1d0887d3f31f3db73b7ad699bd20b6847f
2014-02-06 15:37:54 +00:00
Dmitry Kulishenko
8e861d396f glance requires pyOpenSSL>=0.11
glance uses  OpenSSL.crypto.sign() and OpenSSL.crypto.verify(), which
are new in pyOpenSSL 0.11. Global requirements already fixed, do the
same change in glance

Change-Id: Ide1d180cd1966cac454d7d5d3b6475a04591735c
Partial-Bug: #1268966
2014-01-31 09:57:42 +02:00
Arnaud Legendre
f9589bd010 VMware Datastore storage backend
Customers using a VMware environment with OpenStack should be able to
store their Glance images in VMware datastores. This is a first step to solve
the problem where Nova needs to copy the bits over the network
from Glance to the datastore when spawning an instance.
Also, this give the ability to provide some optimizations for specific
image formats in the future (fast cloning for example).

This patch contains a 'glance/store/vmware/' folder with the code
to manage the connection with vCenter or an ESX(i) host.
This code will go away as soon as it is merged to Olso:
see review https://review.openstack.org/#/c/65075/

The current implementation give this ability to specify the vCenter or
ESX(i) IP. In case of a vCenter IP, there is no optimization to reduce
the datapath (no host selected).
Consequently, it is recommended to specify an ESX IP if the ESX host
API endpoint is accessible from Glance.

docImpact
Implements bp vmware-datastore-storage-backend

Change-Id: I3837912e0d1614b9c31a689f71c2e34d453e2dc3
2014-01-30 18:14:15 -08:00
Jenkins
64d5c9786f Merge "Sync with global requirements" 2014-01-29 16:55:12 +00:00
Sascha Peilicke
fc0c8d8c3d Sync with global requirements
Change-Id: Iae2b1c78c7351861484260ad4ccf0a26747b2f91
2014-01-27 10:10:47 +01:00
Flavio Percoco
5ab50f424a Sync oslo.messaging version with global-requirements
Change-Id: I5a6001810154d5a443e5f305b461b836fdea31a8
2014-01-27 09:05:00 +01:00
Zhi Yan Liu
9567c2b6a0 Adding image location selection strategies
An image can be saved to more than one backend storage by multi-location
mechanism, Glance should have a capability to select the best backend
storage for improving image consuming performance. This change
implements two strategy modules: "location_order" and "store_type", and
allow Admin configure some strategy-specified options for Glance as
their deployment required.

As an end user, he can get VM or consuming image faster base on this
enhancement. This is not only for 'download' transport handling on the
API server side but also for client since they can obtain locations by
standard 'direct URL' interface.

docImpact
Implements bp: image-location-selection-strategy

Change-Id: I86f192aeae8e5f21a72f946552f6507654c25a6c
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-01-16 15:17:34 +08:00
Jenkins
1ded23d6c3 Merge "Migrate to oslo.messaging" 2013-12-04 14:00:54 +00:00
Flavio Percoco
90d6ef8130 Migrate to oslo.messaging
Glance currently uses a custom notifier and it has been maintaining it
for a long time. In a hope of reducing duplicated code and improving
cross-project contributions, this patch replaces the old notifier with
the one, recently developed, in oslo.messaging.

The oslo.messaging project is a port of the old oslo-rpc code to a
standalone, more stable and improved project. It brings all the benefits
that oslo-rpc would've brought as well as an easier way to integrate
with other projects.

This patch also:

    - Reduces the code shipped along with Glance since all the code
      copied from oslo-incubator related to the notifier is not needed
      anymore.
    - Improves the stability of existing, broker based, notifications.
    - Brings HA support.
    - Keeps backward compatibility by translating the old
      `notifier_strategy` into oslo.messaging drivers.

Changes to the code:

    - It is now necessary to pass the request context to the
      notification call.
    - Notifier package is no longer necessary. A notifier module was
      added instead.
    - New, notifier related, configurations were added.
    - A lot of code was removed

Since there's still not an official release, requirements.txt points to
the latest tarball created. A release for oslo.messaging is planned for
Icehouse.

docImpact
Implements bp oslo-messaging

Change-Id: I8cd84772bc5867e06b2a50ed7e15b9e86f0b94ad
2013-12-04 09:05:51 +01:00
Noboru Arai
b318742842 Remove unused package in requirement.txt
This patch is similar to https://bugs.launchpad.net/glance/+bug/1252344.

Currently wsgiref/passlib package exist in requirement.txt,
but I confirmed that they are unused in glance source by "grep" command.

I removed them to clean up.

Closes-bug: #1255826
Change-Id: Ibbc2f1d413efacd0c18ba16c9250ef08470667d1
2013-11-28 18:35:28 +09:00
Alex Meade
b7f9120cd4 Remove lxml requirement
Fixes bug 1252344

Change-Id: Iaa10b7c78bf03b00c84a27592265bb79203df376
2013-11-18 16:54:52 +00:00
Thomas Leaman
4e7c8e6d55 Use packaged version of ordereddict
Removes the need for ordereddict source to exist in the project.
Uses collections.OrderedDict for python2.7 and above and falls
back to ordereddict.OrderedDict for python2.6

Fixes bug 1229569

Change-Id: Iaf8b500d7b340f370df239bfe9ab0656575dc93b
2013-10-30 16:52:15 +00:00
Zhi Yan Liu
8160ae2933 Sync iso8601 requirement and fixes test case failures
1. Sync requirements from global.
2. iso8601>=0.1.7 "parse_date()" could successfully handle date string
which only have date part like YYYY-MM-DD, it caused two Glance test
cases failure.

Fixes bug: 1242501

Change-Id: I2625eb3888111829a9da4d093b34193b8795f264
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2013-10-24 06:49:25 +08:00
OpenStack Jenkins
f7e9122140 Updated from global requirements
Change-Id: I4f26d3a8790c799e5c1f7f81031406e0c57545f9
2013-10-16 16:09:02 +00:00
Jenkins
567fab9061 Merge "Add swift_store_ssl_compression param" 2013-09-27 10:42:31 +00:00
Mark McLoughlin
31681c58f7 Require oslo.config 1.2.0 final
Now that 1.2.0 has been released, require it rather than one of the beta
release tarballs.

Closes-Bug: #1182861
Change-Id: I75ffc4a572d14488d19491a38742d6920951c171
2013-09-24 21:55:49 +01:00
Stuart McLaren
8a85be099e Add swift_store_ssl_compression param
Add a new glance-api.conf parameter 'swift_store_ssl_compression',
which allows disabling SSL layer compression for https swift requests.

This can increase performance when transferring compressed images (eg
qcow2) to/from swift.

Addresses bug 1190666.

DocImpact.

Change-Id: Ic26dba9dce5ea7e5c09fdd531746b93cec54fc5c
2013-09-23 14:55:54 +00:00
Flaper Fesp
e705481127 Use latest Oslo's version
The patch replaces current Oslo version with 1.2. The change is needed
to pull in a fix released in that specific version, which fixes the
issue #1175570. The fix we're interested in is giving priority to CLI
arguments instead of config files. Without this, commands like the one
below won't work.

    $ glance-manage --sql_connection=.... db_sync

Oslo's release notes:
http://docs.openstack.org/developer/oslo.config/#a3

Closes-Bug: #1175570
Change-Id: I4ea749cfaae0e18e035abe7b5d7e345dda7d476d
2013-08-26 15:08:37 +02:00
Monty Taylor
8302c4264f Migrate to PBR for setup and version code.
Fixes bug 1179007

Also, sync with global requirements because we can't do it in two steps.

Change-Id: If1c687f874272b9d9569af9dd1e5cb4457308f5c
2013-08-09 10:32:31 -03:00
Zhi Yan Liu
6cc1dcd396 Raise jsonschema requirement
Glance PATCH API need use new 'require' condition for schema to validate
income requests.

Raise jsonschema requirement to >=1.3.0,!=1.4.0.

See bug #1202391 for details.

Change-Id: I3b8054b25f2b3d9ed0c3dd1be320f7402ceb9635
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2013-08-07 14:20:02 +08:00
Monty Taylor
d0314c0973 Rename requirements files to standard names.
Change-Id: Icde92cdff054f8c1efb4a518ab7cf166a8eb791a
2013-07-30 00:34:26 -04:00