这里简要介绍一下使用devstack(stable/juno)部署多节点的Openstack运行环境:
-
多节点的Nova-network环境
- 多节点Neutron环境
系统版本:ubuntu 13.10
Devstack Multi-host Nova-network
-
-
遇到的问题:
-
部署时到 error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 错误
-
这是因为一些依赖包没有安装,可以使用以下命令更新依赖包:
$sudo apt-get build-dep python-lxml
控制节点:
###IP ConfigurationHOST_IP=IP_ADDRESS#CredentialsADMIN_PASSWORD=passwordDATABASE_PASSWORD=passwordRABBIT_PASSWORD=passwordSERVICE_PASSWORD=passwordSERVICE_TOKEN=password#MULTINODE CONFIGURATIONFLAT_INTERFACE=eth0FIXED_RANGE=10.4.128.0/20FIXED_NETWORK_SIZE=4096FLOATING_RANGE=<>MULTI_HOST=1####Tempestenable_service tempest#Log OutputLOGFILE=/opt/stack/logs/stack.sh.logVERBOSE=TrueLOG_COLOR=FalseSCREEN_LOGDIR=/opt/stack/logs
Devstack Multi-host Neutron
控制节点:
HOST_IP=172.16.5.106ADMIN_PASSWORD=passwordMYSQL_PASSWORD=passwordRABBIT_PASSWORD=passwordSERVICE_PASSWORD=passwordSERVICE_TOKEN=tokentoken# Use Quantum instead of nova-networkdisable_service n-netenable_service q-svcenable_service q-agtenable_service q-dhcpenable_service q-l3enable_service neutronenable_service q-metaenable_service q-metering# Network settings##VLAN configureQ_PLUGIN=ml2ENABLE_TENANT_VLANS=TrueML2_VLAN_RANGES=physnet1:100:200Q_ML2_TENANT_NETWORK_TYPE=vlanQ_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitchQ_ML2_PLUGIN_TYPE_DRIVERS=vlan,local,flatPHYSICAL_NETWORK=physnet1OVS_PHYSICAL_BRIDGE=br-eth1##Tunnel configureENABLE_TENANT_TUNNELS=False##Public Ip configureFLOATING_RANGE=172.16.5.0/24PUBLIC_NETWORK_GATEWAY=172.16.5.80Q_USE_PROVIDERNET_FOR_PUBLIC=TrueLOGFILE=/opt/stack/data/stack.logSCREEN_LOGDIR=/opt/stack/data/logRECLONE=yes
计算节点:
HOST_IP=172.16.5.107SERVICE_HOST=172.16.5.106ADMIN_PASSWORD=passwordMYSQL_PASSWORD=passwordRABBIT_PASSWORD=passwordSERVICE_PASSWORD=passwordSERVICE_TOKEN=tokentokenENABLED_SERVICES=n-cpu,rabbit,neutron,q-agt# Openstack services running on controller nodeMYSQL_HOST=$SERVICE_HOSTRABBIT_HOST=$SERVICE_HOSTQ_HOST=$SERVICE_HOSTGLANCE_HOSTPORT=$SERVICE_HOST:9292#Enable compute vnc server.NOVA_VNC_ENABLED=True# Network settings##VLAN configureQ_PLUGIN=ml2ENABLE_TENANT_VLANS=TrueML2_VLAN_RANGES=physnet1:100:200Q_ML2_TENANT_NETWORK_TYPE=vlanQ_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitchQ_ML2_PLUGIN_TYPE_DRIVERS=vlan,local,flatPHYSICAL_NETWORK=physnet1OVS_PHYSICAL_BRIDGE=br-eth1##Tunnel configureENABLE_TENANT_TUNNELS=FalseLOGFILE=/opt/stack/data/stack.logSCREEN_LOGDIR=/opt/stack/data/logRECLONE=yes
手动执行:
ovs-vsctl add-port br-eth1 eth1 #数据网
ovs-vsctl add-port br-ex eth0 #公网