0ac440c7d6
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 |
||
---|---|---|
.. | ||
tests/unit/virt | ||
virt | ||
CHANGELOG | ||
README.md | ||
requirements-aws.txt | ||
requirements-gce.txt | ||
test-requirements.txt |
README.md
Setup
Updated: 12th December 2016 (Updated to be in sync with Platform9 release 2.4)
Prerequesites
- Working green field OpenStack deployment (code currently based out of stable/liberty)
- The virtualenv used by nova should have Amazon boto package installed
Components
- Nova driver: Handles instance creation, power operations and snapshotting an instance to AMI
Instructions
- Copy the nova/ec2 directory to /nova/nova/virt/
- Update the configuration files -
- edit /etc/nova/nova.conf
[DEFAULT] compute_driver = ec2.EC2Driver [AWS] secret_key = <your aws secret access key> access_key = <your aws access key> region_name = <was region to use> max_cpus = <maximum CPUs that nova should use (default: 500)> max_memory_mb = <maximum memory that nova should use (default: 102400 i.e. 1000GB)> max_disk_gb = <maximum storage that nova should use (default: 1024 i.e. 1 TB)>
- Restart the nova compute services
Running unit tests:
- Copy the nova/tests/ec2 to /nova/tests/unit/virt directory
- To run the AWS Driver unit tests -
tox -e <env> nova.tests.unit.virt.ec2 e.g. to run python 2.7 tests - tox -e py27 nova.tests.unit.virt.ec2