summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updated from global requirementsicehouse-eolstable/icehouseOpenStack Proposal Bot2015-04-221-1/+1
| | | | Change-Id: If49c46819bfae39cf9924003bf5fa7020fd0f1f1
* Updated from global requirementsOpenStack Proposal Bot2015-04-082-15/+15
| | | | Change-Id: Id1d9471d8e2516cfa5852d012210c258cde935b0
* Updated from global requirementsOpenStack Proposal Bot2015-01-142-5/+5
| | | | Change-Id: I9ffebb718b1a27bd5370fb8d8514564b803e3d78
* Merge "Ensure that the pbm is not None"0.3Jenkins2014-03-121-1/+1
|\
| * Ensure that the pbm is not NoneGary Kotton2014-03-041-1/+1
| | | | | | | | | | | | Ensure that the cookie is correctly set. Change-Id: I65e75306fe8470030b97268395c062001aaed6fc
* | Merge "Fix unit tests running unnecessarily slow"Jenkins2014-03-122-16/+23
|\ \
| * | Fix unit tests running unnecessarily slowVui Lam2014-03-072-16/+23
| | | | | | | | | | | | | | | | | | | | | | | | Mocked/reduced various sleeps that got triggered on certain tests that caused the tests to run unnecessary slow. Closes-Bug: #1286729 Change-Id: Ib24be3d9aaa2b71d137ae4f0a9adc4986a49bdca
* | | Updated from global requirementsOpenStack Jenkins2014-03-111-1/+1
|/ / | | | | | | Change-Id: Ib3d12f23888a474e1db9bce0982e56ae7397ceca
* | Enable download of streamOptimized file-likeVui Lam2014-03-052-16/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new function download_stream_optimized_data, that facilates the transfers of stream-optimized file data obtained via additional processing of the data from the image server. One use case for it is when image is actually an OVA, which is a tar archive containing the VMDK disk of interest, using roughly the following code flow: image_data = image_service.download(context, image_id) tar = process_image_data_as_tar(image_data) file_obj = tar.extractfile(disk_name) imported_vm = download_stream_optimized_data(context, timeout, file_obj, ...) In addition, corrected the FileReadWriteTask to really read in 64k chunks like it intended to by passing the size parameter to read(). This will prevent the above file_obj's data from being slurped in one go. Closes-Bug: #1286708 Change-Id: I85c7f9079c89ba3b65a11741e8b0c8d64f62a3cd
* | Fix docstrings in VMwareAPISessionRadoslav Gerganov2014-03-041-2/+2
|/ | | | | | The constructor's argument is 'create_session', not '_create_session' Change-Id: I65555ce909a95047113eeafd123c0fb4836a36ea
* PBM related utility methodsVipin Balachandran2014-03-032-1/+239
| | | | | | | | | | | This change adds following PBM related utility methods: * Get all profiles * Get profile ID by profile name * Filter hubs by profile * Convert datastores to hubs * Filter datastores by hubs Change-Id: I47524f28edfa4325340046cf266184771ea4e3dc
* Add PBM client for policy based placementVipin Balachandran2014-03-035-17/+118
| | | | | | | | This change defines a SOAP based client to invoke VMware PBM APIs. It also make necessary changes in VMwareAPISession to expose the PBM client to the drivers. Change-Id: Ic715cf8795e178ce8d99d492501935658ad9b2a7
* Updated from global requirementsOpenStack Jenkins2014-02-282-5/+5
| | | | Change-Id: I601ace053bf38a23aec8eeb6d43a0189c3342786
* Replace unicode() for six.text_typeArnaud Legendre2014-02-272-4/+7
| | | | | | | | To support Python3, unicode() calls has been replaced by six.text_type Change-Id: Iae216e449a18f1d1108faa73ed6585d154c0cb2e Closes-Bug: #1285952
* Merge "Remove dependency on log.py from openstack/common"0.2Jenkins2014-02-2711-724/+10
|\
| * Remove dependency on log.py from openstack/commonArnaud Legendre2014-02-2611-724/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Importing oslo.vmware to another OpenStack project gives the ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option exception. This happens because openstack/common/log.py registers CLI options after the project using oslo.vmware parses its configuration. This patch addresses this issue by removing any dependency on log.py, using logging from the standard python library instead. Change-Id: Id2bddb8a7efc2a53399e2a2278dba4605da083d8 Closes-Bug: #1284837
* | Remove vim headerChangBo Guo(gcb)2014-02-241-2/+0
|/ | | | | | | | We don't need vim modelines in each source file, it can be set in user's vimrc. Change-Id: Ib52a71276d514ca01dd1e21d754c6c150c94a2a5 Closes-Bug: #1229324
* VMware: raise more specific exceptions0.1Gary Kotton2014-02-215-10/+152
| | | | | | | | | | | | | | | | | | | | | | In certain cases the exception handling for backend errors would be handled too broadly. This patch elevates the backend exception to the application so that it can treat specific errors. In the application we can now handle the following specific exceptions: - FileAlreadyExists - for example when moving a directory to a directory that already exists - InvalidProperty - for example when using neutron and opaque networks are not supported - AlreadyExists - for example a port group already exists - NotAuthenticated - for example the operation is denied as because a session is not established - CannotDeleteFile - the file cannot be deleted - FileFault - a file access exception - FileLocked - an attempt is made to lock a file that is already in use - FileNotFound - the specific file does not exist Change-Id: I789165f3879ec5df73f72c2737377e0fcfc99656
* Move image transfer code in VMware drivers to OSLOVipin Balachandran2014-02-212-0/+700
| | | | | | | | | | | | There is lot of common code between VMware drivers for nova and cinder; for e.g., session management and VIM API invocation code. The new VMware driver for glance and the telemetry agent for vSphere are also planning to use this common code. This change moves methods and classes for image transfer between VMware servers and the image service into OSLO. Change-Id: I527122c99b3a03fca6bb22e4817771c91c1a023d Implements: blueprint vmware-api
* Merge "Move read/write handles in VMware drivers to OSLO"Jenkins2014-02-202-0/+953
|\
| * Move read/write handles in VMware drivers to OSLOVipin Balachandran2014-02-202-0/+953
| | | | | | | | | | | | | | | | | | | | | | | | There is lot of common code between VMware drivers for nova and cinder; for e.g., session management and VIM API invocation code. The new VMware driver for glance and the telemetry agent for vSphere are also planning to use this common code. This change moves the classes defining read and write handles for image transfer between VMware servers and image service into OSLO. Change-Id: Idd5e0a3e13bb1e752ed577b63a012ca59c461bce Implements: blueprint vmware-api
* | Move API invocation code in VMware drivers to OSLOVipin Balachandran2014-02-202-0/+775
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is lot of common code between VMware drivers for nova and cinder; for e.g., session management and VIM API invocation code. The new VMware driver for glance and the telemetry agent for vSphere are also planning to use this common code. This change moves the classes in VMware drivers for session and API call management calls into OSLO. The api module in this change contains classes to invoke VIM APIs. It supports automatic session re-establishment and retry of API invocations in case of connection problems or server API call overload. Change-Id: I74e2be632631f83a97e26c03e33f1d9ae7632e27 Implements: blueprint vmware-api
* | Move VIM API client code in VMware drivers to OSLOVipin Balachandran2014-02-202-0/+503
|/ | | | | | | | | | | There is lot of common code between VMware drivers for nova and cinder; for e.g., session management and VIM API invocation code. The new VMware driver for glance and the telemetry agent for vSphere are also planning to use this common code. This change moves the classes in VMware drivers for making VIM API SOAP calls into OSLO. Change-Id: I115e2d093c19051c507061b50d7ee1d1851fc412 Implements: blueprint vmware-api
* Add eventlet requirementVipin Balachandran2014-02-201-0/+1
| | | | | | | | This change adds the eventlet requirement which is needed by multiple changes. Change-Id: I58e8a20b7479585c52a021c3907ddd5121cbfc25 Implements: blueprint vmware-api
* Move utility methods in VMware drivers to OSLOVipin Balachandran2014-02-205-0/+730
| | | | | | | | | | | | There is lot of common code between VMware drivers for nova and cinder; for e.g., session management and VIM API invocation code. The new VMware driver for glance and the telemetry agent for vSphere are also planning to use this common code. This change moves the utility methods for inventory traversal spec creation, managed object property retrieval etc. defined in various drivers into OSLO. Change-Id: Ibdd80188ffb0936468545ceec86b67162a111fff Implements: blueprint vmware-api
* Import necessary files from openstack.commonDavanum Srinivas2014-02-2019-36/+1896
| | | | | | | | First cut of openstack-common.conf to pick up a few files needed by the patch series Change-Id: I148ff1e0e28df8b732a7865e162e5104a4233b7d Implements: blueprint vmware-api
* Initial checkin for Oslo VMware Library generated using oslo-cookiecutterDavanum Srinivas2014-02-0327-0/+639