Commit Graph

21 Commits

Author SHA1 Message Date
Harsha Dhake 3fc8b3f97d Added credentials manager and updated omni drivers.
This change:
1. Adds credmanager service which handles credentials for AWS drivers.
2. Adds support for managing multiple AWS accounts through use of credmanager. Each account is mapped to a single project in keystone.
3. Adds support for multiple AZs by running one nova-compute and cinder-volume process per AZ.
4. Improves support for AWS networking in neutron.
5. Also, made few stability fixes in GCP and Azure drivers.

Change-Id: I0f87005a924423397db659ab754caaa6cde90274
2019-02-25 00:38:42 -05:00
Pratik Shah dbdd45789b [AZURE] Added unit test cases for Cinder
Change-Id: I1419983fc22dbfddb69999c58d666fe49c1d8c71
2017-10-10 14:00:50 +05:30
Sanket 92ee8cde01 Cleanup unused requirements from Omni
Consolidating all python requirements required to run unit tests
in test-requirements.txt. Removed rest of all files.

Change-Id: Ifed7288e2b1d92fb180cb8c722578e9887f6f844
2017-09-11 09:39:39 +05:30
Pratik Shah 814542b626 Added Azure support for Cinder
Files modified:
- omni-requirements.txt: Added Azure dependencies

Testing Done:
- Create empty volume
- Create volume from snapshot
- Create volume from another volume
- Create volume from image
- Create snapshot from volume

Implements: blueprint azure-support

Change-Id: I095aeab7668233fe230ccd6dbc4f452c557437cd
2017-09-08 23:39:29 +05:30
Pratik Shah 59af73e47b [AWS] Added a support to create volume from image and volume from volume
Description:
- Changes in 'glance/glance_store/_drivers/aws.py' are required because
when glanceclient tries to retrieve image details, it expects 2 values.
But in the current case, it was yielding a tuple which was throwing
exception as it was getting only 1 value when 'get()' was called

- Added a function "clone_image()" which takes volume details, image
metadata, object of glance service, image location as arguments.

- Steps:
1. get image details from AWS using image id provided in image metadata
and get snapshot id from response. If snapshot id is None, then raise an
exception
2. create a dict object which contains size, zone and snapshot id as
fields
3. call create_volume() with dict created as argument
4. create tags for volume created

Closes-Bug: #1710046

Change-Id: I241e55f45d27e14b7328ae276ec544e5360e1ebd
2017-08-31 12:30:00 +05:30
Pratik Shah ffa3e4c212 [AWS] Added Neutron mechanism test cases
Files modified:
- omni-requirements.txt: Added boto3 package

- run_tests.sh: Added support for running AWS test cases for Neutron

Closes-Bug: #1708586

Change-Id: I91e46a5422a044eeccc171c8f820235e1dc583ef
2017-08-30 11:54:53 +05:30
Pratik Shah 264939cfb5 Applied pep8 fixes
Closes-Bug: #1703514

Change-Id: I89c25bd9e678dc2f7cc27f952aa4833e26c90f4a
2017-07-24 16:25:25 +05:30
Pratik Shah 84b9c632f5 Modified tox.ini to clone repos using zuul-cloner
Replaced "," with "%" in logs statement for files:
- cinder/volume/drivers/aws/ebs.py
- cinder/volume/drivers/gce/gceutils.py
- glance/glance_store/_drivers/aws.py
- neutron/neutron/common/gceutils.py
- neutron/neutron/plugins/ml2/drivers/gce/mech_gce.py
- neutron/neutron/plugins/ml2/managers.py
- neutron/neutron/services/l3_router/gce_router_plugin.py
- nova/virt/ec2/ec2driver.py
- nova/virt/gce/driver.py
- nova/virt/gce/gceutils.py

Added import fix in nova/tests/unit/virt/ec2/test_ec2.py

Modified run_tests.sh to get total number of passed and failed tests

Closes-Bug: #1704147

Change-Id: I4b144b8095cf9ff4807c4b9f4ca21577a43de27f
2017-07-14 13:19:22 +05:30
Pratik Shah f2c95ee757 - Add executable permission to clone_repos.sh and run_tests.sh
- Removed AWS tests temporarily from run_tests.sh as they are failing
with credential error.

- Removed check from run_tests.sh which was used to run tests on
devstack setup.

- Fixed LOG statement bug for Cinder driver

- Fixed Nova braces bug for Nova tests

Closes-Bug: #1704124

Change-Id: Id94e44e848555bf6a96b9ef0b0c276579169987c
2017-07-13 19:28:21 +05:30
Ngo Quoc Cuong 7823d3ddb4 Remove translation of log messages
The i18n team has decided not to translate the logs because it
seems like it not very useful; operators prefer to have them in
English so that they can search for those strings on the internet.

cinder, nova, neutron and glance are removing i18n log translation
functions, once it release, it will cause omni build failed.

Related-Bug: #1701139

Change-Id: I090fde16602945035cbda66f0633371d3dfebd3c
2017-06-28 21:25:52 -04:00
Pratik Shah d86cd042c3 Added a fix for Cinder GCE to run on stable/newton and master branch
Files modified:
- cinder/volume/drivers/gce/driver.py
- cinder/volume/drivers/gce/gceutils.py

Change-Id: Ia897d7d8a69ef85bae2f98477de27566b87b1e5c
2017-06-23 18:56:05 +05:30
Pratik Shah 699caafaa0 Added tox integration to run unit tests for Omni project.
Description:

1. Fixed file paths in Nova, Neutron according to actual Openstack repository.
2. tox.ini: init file to run to tox command
3. run_tests.sh: actual script to run unit tests
4. omni-requirements.txt: Contains Python packages from Nova, Glance, Neutron and Cinder

Usage:
To run unit tests, execute 'tox -epy27' command in Omni project directory.

Change-Id: Ife3a5d4c009198fb46faff7a21525dd739a87e9c
2017-06-19 16:17:03 +05:30
Jenkins 17cc6a4307 Merge "Unit Testcases for GCE Cinder Driver" 2017-06-02 15:53:19 +00:00
Sanket 40e6f7b0ee Added Nova Instace Snapshot Operation and security group rules support
1. Added instance snapshot feature
2. Support for security group rules using GCE firewall rules
2. Added disk, snapshot related operations nova gceutils library
3. Cleanup unwanted operations from glance gceutils library

Change-Id: I1777e99cf4e1f7c230c4a9b286e4c01e8deb3d2f
Signed-off-by: Sanket <sanket@infracloud.io>
2017-06-01 14:42:58 +05:30
Sanket 1e54ec1abe Unit Testcases for GCE Cinder Driver
Additional data files in gce/data:

1. Fake service key file(omni.json)
2. Data required to generate Gce Service(service_data.json)
3. Fake snapshot data for get_snapshot API(get_snapshot.json)

Change-Id: Ib286337218f0168e3817bd13387edc349de97afa
Signed-off-by: Sanket <sanket@infracloud.io>
2017-05-24 10:45:53 +05:30
Sanket Sudake 1de5c3778c Add Cinder support for GCE
Supported operations:
1. Create/delete a volume
2. Snapshot a volume
3. Create a volume from snapshot
4. Attach/detach volume to an instance

Change-Id: I5b2a9ee964fc239153d6de9886cc5e4a8e743c17
Signed-off-by: Sanket <sanket@infracloud.io>
2017-05-08 10:50:13 +05:30
Sachin Manpathak ccbbe69a8b Add exception handling to EBS driver initialization
Change-Id: I8913429303a32ab9e310ce23858e74ddef6a9f8d
2017-04-12 10:53:58 -07:00
Sachin Manpathak db31845d4c Create volume-from-snapshot, fix AWS volume names 2016-11-18 14:09:02 -05:00
Sachin Manpathak 202a7916c0 EBS Driver enhancements, config changes 2016-11-02 16:59:46 -04:00
yanheven 57dbef940e Add requirements.txt to nova, glance and cinder driver directiory,
and add boto as prerequesites to README.MD of cinder.
2016-10-26 13:21:39 +02:00
Sachin fa89beafab Initial commit: Introducing AWS Drivers for OpenStack 2016-10-26 00:12:14 -07:00