omni/nova
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
..
tests/unit/virt [AWS] Added Neutron mechanism test cases 2017-08-30 11:54:53 +05:30
virt [GCE] Delete instance on GCE fails with timeout 2017-08-11 08:06:10 +05:30
CHANGELOG Update nova driver to Platform9 2.4 release 2017-01-04 14:41:44 -08:00
README.md Update nova driver to Platform9 2.4 release 2017-01-04 14:41:44 -08:00
requirements-aws.txt Add Nova driver for GCE 2017-04-12 00:01:32 +05:30
requirements-gce.txt Add Nova driver for GCE 2017-04-12 00:01:32 +05:30
test-requirements.txt Update nova driver to Platform9 2.4 release 2017-01-04 14:41:44 -08:00

README.md

Setup

Updated: 12th December 2016 (Updated to be in sync with Platform9 release 2.4)

Prerequesites

  1. Working green field OpenStack deployment (code currently based out of stable/liberty)
  2. 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

  1. Copy the nova/ec2 directory to /nova/nova/virt/
  2. Update the configuration files -
    1. 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)>
    
  3. Restart the nova compute services

Running unit tests:

  1. Copy the nova/tests/ec2 to /nova/tests/unit/virt directory
  2. 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