1. What is the problem Necessary changes for local plugin and central plugin to boot a virtual machine have been submitted in this patch[1]. As the next step, we need to add l3 functionality to the local and central plugin. 2. What is the solution to the problem Several changes in local plugin. (1) Before creating local subnet, local plugin sends request to central plugin to create a "reserved gateway port", and use the ip address of this port as the gateway ip of the local subnet. (2) When local plugin receives network or subnet creation request, if the request contains "name" parameter and the name is a UUID, local plugin uses the name as the id of the local network or subnet. 3. What the features need to be implemented to the Tricircle to realize the solution With this patch, users can connect virtual machines booted directly via the local Nova server in different networks with a router. [1] https://review.openstack.org/375281 Change-Id: I12094f30804c0bad2f74e0ff510ac26bd217cfd4
73 lines
1.7 KiB
Plaintext
73 lines
1.7 KiB
Plaintext
#
|
|
# Sample DevStack local.conf.
|
|
#
|
|
# This sample file is intended to be used for your typical Tricircle DevStack
|
|
# environment that's running all of OpenStack on a single host.
|
|
#
|
|
# No changes to this sample configuration are required for this to work.
|
|
#
|
|
|
|
[[local|localrc]]
|
|
|
|
DATABASE_PASSWORD=password
|
|
RABBIT_PASSWORD=password
|
|
SERVICE_PASSWORD=password
|
|
SERVICE_TOKEN=password
|
|
ADMIN_PASSWORD=password
|
|
LOGFILE=/opt/stack/logs/stack.sh.log
|
|
VERBOSE=True
|
|
LOG_COLOR=True
|
|
SCREEN_LOGDIR=/opt/stack/logs
|
|
HOST_IP=127.0.0.1
|
|
FIXED_RANGE=10.0.0.0/24
|
|
NETWORK_GATEWAY=10.0.0.1
|
|
FIXED_NETWORK_SIZE=256
|
|
FLOATING_RANGE=10.100.100.160/24
|
|
Q_FLOATING_ALLOCATION_POOL=start=10.100.100.160,end=10.100.100.192
|
|
|
|
NEUTRON_CREATE_INITIAL_NETWORKS=False
|
|
|
|
PUBLIC_NETWORK_GATEWAY=10.100.100.3
|
|
|
|
Q_USE_SECGROUP=False
|
|
LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver
|
|
|
|
Q_ENABLE_TRICIRCLE=True
|
|
enable_plugin tricircle https://github.com/openstack/tricircle/
|
|
|
|
# Use Neutron instead of nova-network
|
|
disable_service n-net
|
|
enable_service q-svc
|
|
enable_service q-dhcp
|
|
enable_service q-agt
|
|
|
|
disable_service n-obj
|
|
disable_service n-cauth
|
|
disable_service n-novnc
|
|
disable_service q-l3
|
|
enable_service c-api
|
|
enable_service c-vol
|
|
enable_service c-sch
|
|
disable_service c-bak
|
|
# disable_service tempest
|
|
disable_service horizon
|
|
|
|
CENTRAL_REGION_NAME=CentralRegion
|
|
TRICIRCLE_NEUTRON_PORT=20001
|
|
|
|
[[post-config|$NEUTRON_CONF]]
|
|
|
|
[DEFAULT]
|
|
core_plugin=tricircle.network.local_plugin.TricirclePlugin
|
|
|
|
[client]
|
|
admin_username=admin
|
|
admin_password=$ADMIN_PASSWORD
|
|
admin_tenant=demo
|
|
auto_refresh_endpoint=True
|
|
top_pod_name=$CENTRAL_REGION_NAME
|
|
|
|
[tricircle]
|
|
real_core_plugin=neutron.plugins.ml2.plugin.Ml2Plugin
|
|
central_neutron_url=http://127.0.0.1:$TRICIRCLE_NEUTRON_PORT
|