Commit Graph

118 Commits

Author SHA1 Message Date
Zuul 13a498a5ea Merge "Adding credsmgr support in devstack" 2019-06-25 05:27:04 +00:00
harsha.dhake d05c20bb60 Adding credsmgr support in devstack
Change-Id: Ied7da6e314d81426e60063f7347dbeb1dc05216b
2019-06-17 14:36:03 +05:30
OpenDev Sysadmins a6552cccf1 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:34 +00:00
Ian Wienand bc94150974 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I77ef82065c0ae1f6250f46f41840372b01adf541
2019-03-24 20:34:50 +00:00
Pratik Shah e7ffe3d333 Fixed devstack for AWS
- Moved common functions for clouds in separate file
- Added boto3 dependency in requirements file

Change-Id: I9c93692eed47078c56eb91a247af5729cf56c84c
2019-02-26 09:22:21 +05:30
lijunjie dda3df3ffc Fix the misspelling of "except"
Change-Id: I0f7246eb5382e94cbb3f761b76e0cd50c03132ff
2019-02-25 10:16:57 +00:00
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 14f465f99d [AWS] Fixed error while deleting VPC
- Issue: When trying to delete network immediately after deleting VM,
throws "DependencyViolation" error. This is due to security group was
not getting deleted before deleting VPC

Change-Id: I8f1e642819188c56fddcfbb1337b2459c939e7f4
2017-11-08 10:45:47 +05:30
Pratik Shah fc2b12b79b [AZURE] Added unit test cases for Neutron
Description:
- Added unit test cases
- Fixed a bug which was throwing exception while creating resource group
in mech_azure.py

Change-Id: I4c96d96f96a0ac640407df5ff0d49937f2690fa3
2017-10-16 13:43:05 +05:30
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
Pratik Shah dbdd45789b [AZURE] Added unit test cases for Cinder
Change-Id: I1419983fc22dbfddb69999c58d666fe49c1d8c71
2017-10-10 14:00:50 +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
Pratik Shah bcf7055acf [AWS] Added a bug fix for ec2 driver
Description:
- In ec2 driver, driver was trying to connect to regions using
ec2.cloudwatch. It was throwing an AttributeError exception as ec2
don't have cloudwatch module

Change-Id: I9a47d4c63c167a85c57cedbcec59dcb4ebf10f23
2017-10-04 17:40:02 +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
Sanket 3e9cad24ba [GCE] Use NoDBTestCase for nova tests
Currently we use nova.test.TestCase which causes db access and
test failure sometimes. Since we don't require database access
in gce nova testcases we can use NoDBTestCase instead.

Change-Id: I47546695ba8a69e494c677d9e542768f34e51250
2017-09-23 00:06:36 +05:30
Sanket d6f6913ee2 [AWS] Remove unused EC2VirtAPI from nova driver
Change-Id: Ief07ab940f8338196848d91785e982bdbd107223
2017-09-21 09:45:12 +00:00
Sanket c547b5523a [GCE] Use instance name instead of instance id for instance mapping
1. Currently we use GCE id for instance mapping from GCE to Openstack.
Since we use GCE name as primary identifier in all GCE operations,
we should use GCE name for mapping.
2. Add Openstack Project ID and User ID in GCE instance metadata
3. Some pep8 fixes in nova code

Change-Id: Id26a674be0f96e2ff5bf89c5ffcca120bd52e0fa
Closes-Bug: #1717889
2017-09-21 09:33:52 +00:00
Sanket 38f171bdea Unit tests fixes in nova and neutron
Patch 1:
[General] Removed unused parameters from InstanceInfo

Many of unused parameters were removed from nova.virt.hardware.InstanceInfo in Pike.
Same was notified to OOT(Out of tree) drivers.

References:
[1] https://review.openstack.org/#/c/471146/6/nova/virt/hardware.py
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-June/117962.html

Closes-Bug: #1717907

Patch 2:
[General] Remove l3_db.subscribe calls from router plugins

l3_db.subscribe has been deprecated from newton. Removing it
was recently disabled from pike release.

Refer bug description for more details.
Closes-Bug: #1718180

Change-Id: Ied1868736c4edb9da839d6d4b49aa1d98cbef251
2017-09-21 14:31:09 +05:30
Jenkins 882ab1d8b1 Merge "Support deletion of keypairs from AWS" 2017-09-13 07:31:56 +00:00
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 2ee894b7ea [Azure] Attach/detach volume to instance support
Implements: blueprint azure-support

Change-Id: I1d87e94c1ce0aa1e16c2a62f146de9f029cc3fb0
2017-09-11 13:28:00 +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
Jenkins 4fe87700fd Merge "Add Azure support for Nova" 2017-09-08 23:25:50 +00:00
Jenkins af1f8e0d4d Merge "Added Azure support for Cinder" 2017-09-08 23:24:42 +00:00
Jenkins b4369a7e5f Merge "Add Azure support for Neutron" 2017-09-08 23:22:01 +00:00
Jenkins f8a82f1780 Merge "Added a fix to run Neutron tests on master and newton branches." 2017-09-08 23:10:58 +00:00
Sanket 2def976ad7 Add Azure support for Nova
Change-Id: I05315b83ab28b948caadeadf9be9ecb5fd2c9e5e
Implements: blueprint azure-support
2017-09-08 18:26:32 +00:00
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
Sanket 370e7eeb72 Add Azure support for Neutron
Operations Supported:
1. Operations of network, subnetworks, router
2. Fixed IP allocation to VM from tenant network
3. Assign, delete, remove floating ip
4. Security groups and security group rules

Change-Id: Ia38f37356852c50da5b65cb5c55d1e73ef4a8041
Implements: blueprint azure-support
2017-09-08 23:34:48 +05:30
Pratik Shah d9fa689b8d Added a fix to run Neutron tests on master and newton branches.
Files modified:
- gce_mock.py: Changed line endings to 'unix'
- test_gce_router.py: Changed line endings to 'unix'
- test_ec2.py: Updated mocking for deleting and updating router
- aws_router_plugin.py: Added a fix when trying to remove router interface

Closes-Bug: #1715814

Change-Id: I8981e2e2207370d40bf786c7077ffc512755cc69
2017-09-08 22:09:10 +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
Jenkins c6fcdc9e04 Merge "Replace http with https for doc links in omni" 2017-08-31 06:32:46 +00:00
Jenkins 963d736599 Merge "[Trivialfix]Fix typos in omni" 2017-08-31 06:32:40 +00:00
Jenkins 4fdcdd95a8 Merge "[AWS] Added Neutron router plugin unit test cases" 2017-08-30 17:48:42 +00:00
Jenkins 93b9f1187f Merge "[AWS] Added Neutron mechanism test cases" 2017-08-30 17:38:03 +00:00
shangxiaobj e46aa023d6 Replace http with https for doc links in omni
1) Update doc links according to OpenStack document migration
2) Use https instead of http for docs links

Change-Id: I19e3336cbfffa90071d11a14ffe42c28bb27e78a
2017-08-30 02:28:12 -07:00
shangxiaobj 1aeb62b0ef [Trivialfix]Fix typos in omni
Fix the typos in omni.

Change-Id: I6e7c1e53752cdf064b12f9de7642af5d138f1463
2017-08-30 02:22:55 -07:00
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 0ac440c7d6 [AWS] Added Neutron router plugin unit test cases
Files modified:
- aws_router_plugin.py: Fixed bugs encountered while running test cases

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

- omni-requirements.txt: Changed version of moto and added boto3 package

- test_ec2.py in Cinder and Nova: With latest moto version, '@mock_ec2'
is deprecated. Hence Cinder and Nova test cases were unable to mock
EC2 credentials. Hence used '@mock_ec2_deprecated' instead of '@mock_ec2'

Closes-Bug: #1708585

Change-Id: I51d2bb99ef7d13b75940df6bbb33475de4a4630d
2017-08-30 11:50:51 +05:30
Pushkar Acharya df2a8218f7 Fix floating IP associate in AWS
The router plugin failed to create a valid nova
client and failed the floating IP associate API.

Change-Id: I8333deb06fc8d0358c0ddc41e768f390ea6be656
Closes-Bug: #1713820
2017-08-29 18:28:43 -07:00
Jenkins 6538ef949e Merge "Adding unit test cases for GCE Router plugin" 2017-08-25 05:34:29 +00:00
Pratik Shah be713677ba Fixed service restart preferences in Omni devstack-plugin
Issue:
- When setting up devstack, Nova didn't find devstack service for
conductor. Hence set up was failing.

Fix:
- Removed unnecessary services from being restarted.

Change-Id: Ibdf16f50364ee53849b0a12726b9d9a17c9b0480
2017-08-19 16:01:56 +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
Jenkins 84f7272b2b Merge "[GCE] Delete instance on GCE fails with timeout" 2017-08-11 05:47:52 +00:00
Jenkins 4aa67e3eea Merge "[GCE] Skip Security group rule verification for egress rules" 2017-08-11 02:36:44 +00:00
Sanket 66620a1d4b [GCE] Delete instance on GCE fails with timeout
GCE instance delete operation fails sometimes as it may take
more than 60 sec. Default timeout for wait_for_operation is 60 sec,
which is not sufficient for instance delete operation.

Change-Id: I06f8172a2f87ea5f7972b7624265a3fd0ad576e4
Closes-bug: #1709891
2017-08-11 08:06:10 +05:30