Commit Graph

15 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 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 2de1192137 Code cleaup in run tests script
1. Use variables for Openstack repo names
2. Modified logic to check unit tests result

Change-Id: If633a16d71d949ff5e47158656ea4d534d44f1f8
2017-09-25 11:30:32 +05:30
Pushkar Acharya 16d4db46e8 Support deletion of keypairs from AWS
Deletion of keypairs from OpenStack does not trigger a key pair deletion
from AWS. Listen to the keypair deletion notifications and delete the
key from AWS when one is received.

Also pulling in some of the local changes.

Change-Id: Iea466533a8a12c0acccf5b6bf08d99b4e7a1b622
Closes-Bug: #1716454
2017-09-13 00:00:47 -07:00
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 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
Yusuf Kanchwala 8e28863a4d Adding unit test cases for GCE Router plugin
Change-Id: I37df2e0cf1c16aba4d45ee9692c062f88ebc5d1c
Closes-Bug: #1707862
2017-08-18 07:58:47 +05:30
Sanket 249f707233 Enable AWS testcases in Omni tox run with required fixes
Closes-Bug: #1704149

Change-Id: Ib42e1130411bb519cb9d172641a4056c8668bb08
2017-07-31 13:39:34 +05:30
Pratik Shah 264939cfb5 Applied pep8 fixes
Closes-Bug: #1703514

Change-Id: I89c25bd9e678dc2f7cc27f952aa4833e26c90f4a
2017-07-24 16:25:25 +05:30
Pratik Shah c030c3d645 Removed neutron/neutron/common/exceptions.py as it is duplicate file from
neutron component

Added AWSException class in
neutron/neutron/plugins/ml2/drivers/aws/mechanism_aws.py

Fixed run_tests.sh bug to handle failed tests

Closes-Bug: #1704150

Change-Id: If52a55fdde8067a509ce48a3718699256d1eb132
2017-07-21 23:29:17 +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
Pratik Shah ece3139e2d Added a fix to run this script from zuul.
Description:
- While running tests using zuul, we are cloning repositories inside zuul configuration.
To handle this, created "clone_repos.sh" which contains cloning logic.

Change-Id: Ic94df88f48d147c190fd9699aeebb13b6adb156f
2017-06-29 11:45:25 +00:00
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