Commit Graph

19 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
Jenkins b8c88fbd71 Merge "Replace assertTrue(isinstance()) with assertIsInstance()" 2017-10-11 05:01:15 +00:00
lihaijing f1e54d1a7f Replace assertTrue(isinstance()) with assertIsInstance()
Some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by test tools.
And add some relevant hacking files.

Change-Id: I4b154a2e2898e316c61decf856547d57b1dcc2f8
2017-10-11 04:30:08 +00:00
Pratik Shah d407b5f482 [AZURE] Added a fix to create resource group in Azure if not present
Change-Id: I8ad06bd32d381573f794c37a577bb6ff2e056efb
Closes-Bug: #1720982
2017-10-11 09:37:20 +05:30
Sanket Sudake 232c9badbe [Azure] Glance store unit tests
Change-Id: I9ca869cd63ed87a35eea976c2e1e8611f17a01fc
2017-10-06 12:12:40 +05:30
Sanket Sudake 60cf0c8296 Organizing all Omni specific scripts at one place
Currently we have different scripts to create images or flavors.
Moving all scripts at one place, in future we need to find better way
to manage and package them.

Change-Id: I23ed6218175c9c851547142c8d81eb7a1a32e925
2017-10-04 18:34:46 +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
Sanket c9e0396752 Add Azure support for Glance
This drivers defines Glance location format for Azure images
and support for adding info of Azure images inside glance.

Change-Id: I68954be5b926b7f390b275c459484051618d8ebd
Implements: blueprint azure-support
2017-09-04 20:16:47 +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
Sanket 6c6d849778 Create GCE Service outside glance_store constructor
Closes-Bug: #1707045

Change-Id: I2648f4bb682bdc3b044078415b337bb49579cf5e
2017-07-28 12:35:47 +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
kavithahr d85752fdda Fixed order of arguments in assertEqual
Some tests used incorrect order of arguments in
assertEqual(observed, expected). The correct order expected
by testtool is assertEqual(expected, observed).

Change-Id: I707f67d3239b7a250ef3bcbf8923fb0575a1d7f1
2017-07-10 17:41:06 +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 3c0a37d203 Unit Testcases for GCE Glance Driver
Additional data files in gce/data:

1. Fake service key file(omni.json)
2. Data required to generate Gce Service(service/service_data.json)
3. Fake image data(get_image.json)

Change-Id: I7d6c4dab92480ef60e6a7b1aa2489139b24ab6d6
2017-06-05 16:32:42 +05:30
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 9a11c06e3b Add Glance Store Driver for GCE
1. Consists of Glance store Driver and mechanism to discover GCE images
and them to Glance catalog as Glance images
2. Pick up correct Glance flavor in instance spawn
3. Mechanism to populate nova flavors from GCE machine info

Implements: blueprint gce-support
Change-Id: Iab71206b760ed6f516484690030d9ecb6c891e68
Signed-off-by: Sanket <sanket@infracloud.io>
2017-04-19 10:20:11 +05:30
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