Skip to content

lionelz/hybridcloud

Repository files navigation

Hybrid Cloud Connectivity Sample Code

Devstack all-in-one installation with aws/vcloud nova driver

  • Based on installed ubuntu server 14.04
  • add mitaka repository
sudo add-apt-repository -y cloud-archive:mitaka
sudo apt-get update && sudo apt-get -y dist-upgrade
  • Install git
sudo apt-get install git
  • get devstack, mitaka version
git clone https://github.com/openstack-dev/devstack.git
cd devstack
git checkout stable/mitaka
  • local.conf configuration sample
[[local|localrc]]

enable_plugin hybridcloud https://github.com/lionelz/hybridcloud.git

HOST_IP=##your mgmt interface host ip##
LOGFILE=$DEST/logs/stack.sh.log

ADMIN_PASSWORD=stack
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=$ADMIN_PASSWORD

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
enable_service n-novnc
enable_service n-cauth
disable_service h-eng
disable_service h-api
disable_service h-api-cfn
disable_service h-api-cw
disable_service tempest

[[post-config|/$Q_PLUGIN_CONF_FILE]]
[agent]
dont_fragment = False
l2_population = True
enable_distributed_routing = True
[vxlan]
enable_vxlan = True
local_ip = ##your data interface host ip##
[ovs]
enable_tunneling = True
local_ip = ##your data interface host ip##
[ml2]
type_drivers = vxlan
tenant_network_types = vxlan
mechanism_drivers = openvswitch,l2population

[[post-config|$NEUTRON_CONF]]
[DEFAULT]
router_distributed = True

[[post-config|$Q_L3_CONF_FILE]]
[DEFAULT]
agent_mode = dvr_snat
router_delete_namespaces = True

[[post-config|$NOVA_CONF]]
[DEFAULT]
compute_driver = nova_driver.virt.hybrid.HybridDriver

[hybrid_driver]
provider = ###aws or vcloud###
conversion_dir = /opt/stack/data/hybridcloud
volumes_dir = /opt/stack/data/hybridcloud
vm_naming_rule = openstack_vm_id
mgnt_network = ##name of mgmt net or id##
data_network = ##name of data net or id##
vms_network = ##name of vms net or id##

[aws]
access_key_id = ## AWS access key id ##
secret_access_key = ## AWS access key secret ##
region_name = ## region name ##
s3_bucket_tmp = ## s3 tmp bucket for image upload ##
flavor_map = m1.nano:t2.micro, m1.micro:t2.micro, m1.tiny:t2.micro, m1.small:t2.micro, m1.medium:t2.micro, m1.large:t2.micro, m1.xlarge:c4.large
security_groups = ## map net id (mgnt, data, vms) / security group id ##

[vcloud]
node_name = ##node description name##
host_ip = ##vcloud ip##
host_username = ##vcloud user##
host_password = ##vcloud password##
vdc = ##vcloud vdc##
org = ##vcloud org##
flavor_map = m1.nano:1, m1.micro:1, m1.tiny:1, m1.small:1, m1.medium:1, m1.large:1, m1.xlarge:1
catalog_name = metadata-isos

  • Run stack script
cd ~/devstack && ./stack.sh
  • install ovftool (tools/VMware-ovftool-4.1.0-2459827-lin.x86_64.bundle)
sh /opt/stack/hybridcloud/tools/VMware-ovftool-4.1.0-2459827-lin.x86_64.bundle

Agent VM creation

  • Based on ubuntu 14.04
  • Hybrid code and thirdparties install
sudo apt-get install git
git clone https://github.com/lionelz/hybridcloud.git
cd hybridcloud
sudo ./bin/install_hypervm.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published