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
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
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
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
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
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
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
Consolidating all python requirements required to run unit tests
in test-requirements.txt. Removed rest of all files.
Change-Id: Ifed7288e2b1d92fb180cb8c722578e9887f6f844
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
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
- 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
Some tests used incorrect order of arguments in
assertEqual(observed, expected). The correct order expected
by testtool is assertEqual(expected, observed).
Change-Id: I707f67d3239b7a250ef3bcbf8923fb0575a1d7f1
Description:
After instance name change, Create volume from disk snapshot fails in instance snapshot
procedure as length of disk name goes beyond 61 chars.
GCE resource name should be in format '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)'
Before change:
>>> len('vol-novasnap-inst-7b51c5e2-17a5-435a-a068-61326e6058c21496985304')
64
After change:
>>> len('vol-nsnap-inst-7b51c5e2-17a5-435a-a068-61326e6058c21496985304')
61
Change-Id: I4a21dd7e73c4d219ca7d6cbc5b2647634ffa43d8
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
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
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 disk data for attach_volume and detach_volume API(get_disk.json)
4. Fake instance data(get_instance.json)
5. Fake list of instances(list_instances.json)
6. Machines information for flavor information(list_machines_info.json)
7. Fake instance data with boot value False(get_instance_without_boot.json)
8. Fake image data(get_image.json)
Change-Id: Ib8bf42c93e4a2f8f1c821a26b2868dfda993eadd
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>
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>
Consists of Nova driver for GCE which performs basic operations
like spawning instance, start, stop etc through openstack.
Implements: blueprint gce-support
Change-Id: Id04b093cc3828446ebf5e40f4e4829ea32748bc0
Signed-off-by: Sanket <sanket@infracloud.io>
This commit updates the nova driver to latest release of Platform9.
Some of the notable changes include:
1. Addition of unit tests
2. Configurable maximum usable resources i.e. memory, disk and cpu
3. Better integration for security groups with latest changes in neutron