On Developing... !! Experimental Project !!
Only the 'Newton' version is supported. 'Mitaka' version comming soon.
AWS Plugin For Openstack Horizon
Youtube Link : https://youtu.be/gEXULxQbzIg
Clone this repository:
git clone https://github.com/dennis-hong/aws-dashboard.git
Copy the
_3*.py
file fromaws-dashboard/aws_dashboard/enabled/_3*.py
file tohorizon/openstack_dashboard/local/enabled
directory. Example:cd aws-dashboard cp ./aws_dashboard/local/enabled/_3*.py ../horizon/openstack_dashboard/local/enabled/ cp ./aws_dashboard/local/local_settings.d/_30000_aws_dashboard.py ../horizon/openstack_dashboard/local/local_settings.d/
install plugin:
sudo pip install -e . sudo python setup.py build sudo python setup.py install
Go back into the horizon repository and collect your static files:
cd ../horizon python manage.py collectstatic --noinput && python manage.py compress --force
Restart your horizon and check plugin:
sudo service apache2 restart
Configure "AWS API Key" in your horizon local setting:
vi openstack_dashboard/local/local_settings.d/_30000_aws_dashboard.py AWS_API_KEY_DICT = { "$PROJECT_UUID": { "AWS_ACCESS_KEY_ID": "$AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY": "$AWS_SECRET_ACCESS_KEY", "AWS_REGION_NAME": "ap-northeast-2" }, "$PROJECT_UUID": { "AWS_ACCESS_KEY_ID": "", "AWS_SECRET_ACCESS_KEY": "", "AWS_REGION_NAME": "" }, }
Add just one line in your local.conf:
enable_plugin aws-dashboard https://github.com/dennis-hong/aws-dashboard.git stable/newton
Requires AWS API Key permission
- Go to(AWS IAM Menu) : https://console.aws.amazon.com/iam/home
- Requires Permission
- AmazonEC2FullAccess
- AmazonS3FullAccess
- AWSImportExportFullAccess
If you want to test the instance import/export function...
Installing qemu-utils package is required for image conversion.(qemu-img convert):
sudo apt-get install -y qemu-utils OR sudo yum install -y qemu-img
The instance import function will be separated into separate modules. In the meantime, you need to increase the Apache timeout setting.
ex) /etc/apache2/apache2.conf -> Timeout 21600
(Optional) Nova-compute's 'injected_network_template' setting is required to revert the interface settings that AWS modified when importing instances. *If your VM interface name is 'eht0' in your OpenStack environment, you do not need this setting.
cd aws-dashboard pip uninstall . cd ../horizon rm openstack_dashboard/local/enabled/_30000_aws_dashboard.py* rm openstack_dashboard/local/enabled/_31000_aws_compute_panel_group.py* rm openstack_dashboard/local/enabled/_31100_aws_compute_ec2_panel.py* rm openstack_dashboard/local/enabled/_31120_aws_compute_access_and_security_panel.py* rm openstack_dashboard/local/enabled/_31110_aws_compute_images_panel.py* rm openstack_dashboard/local/enabled/_31200_aws_compute_transport_panel.py* rm openstack_dashboard/local/local_settings.d/_30000_aws_dashboard.py* python manage.py collectstatic --noinput && python manage.py compress --force sudo service apache2 restart cd .. sudo rm -rf aws-dashboard/