当前位置: 首页 > 工具软件 > Murano Agent > 使用案例 >

部署多节点gre网络的OpenStack(包括Murano和Magnum)

庾鸿飞
2023-12-01

这里只给出两个conf文件,其他均使用devstack一键部署。


1.controller和第一个compute节点在同一台服务器上。

DATABASE_PASSWORD=123456
RABBIT_PASSWORD=123456
SERVICE_TOKEN=123456
SERVICE_PASSWORD=123456
ADMIN_PASSWORD=123456

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 q-lbaas
enable_service q-vpn

DEST=/opt/devstack/

DATA_DIR=$DEST/data
SERVICE_DIR=$DEST

LOGDIR=/opt/devstack/logs/
LOGFILE=$LOGDIR/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=$LOGDIR/screens

Q_PLUGIN=ml2
#ENABLE_TENANT_VLANS=True

Q_AGENT=openvswitch
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch
ENABLE_TENANT_TUNNELS=True
Q_ML2_TENANT_NETWORK_TYPE=gre

LOGDAYS=1

RECLONE=False
OFFLINE=True

GIT_BASE="http://github.com"

IMAGE_URLS="http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"

# Enable Heat
enable_service heat h-api h-api-cfn h-api-cw h-eng

# Enable Murano
enable_service murano murano-api murano-engine


# magnum requires the following to be set correctly

enable_plugin magnum https://git.openstack.org/openstack/magnum

这个conf文件里边的很多参数都是可以改的,比如密码,日志存放地点等。



2.其他两个compute节点的conf文件

ENABLED_SERVICES="n-cpu,neutron,q-agt,rabbit"
SERVICE_HOST=9.21.54.63
ADMIN_PASSWORD=123456
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=123456
HOST_IP=9.21.54.65
MYSQL_HOST=9.21.54.63
Q_HOST=9.21.54.63
IMAGE_URLS=" "

DEST=/opt/stack
SERVICE_DIR=$DEST/status
DATA_DIR=$DEST/data
LOGFILE=$DEST/logs/stack.sh.log
LOGDIR=$DEST/logs

# The default fixed range (10.0.0.0/24) conflicted with an address
# range I was using locally.
Q_PLUGIN=ml2
Q_AGENT=openvswitch
Q_ML2_PLUGIN_MECHANISM_DRIVERS=openvswitch
ENABLE_TENANT_TUNNELS=True
Q_ML2_TENANT_NETWORK_TYPE=gre

# I am disabling horizon (because I rarely use the web ui)
# and tempest in order to make the installer complete a
# little faster.
disable_service tempest


注意:cmopute节点的conf文件需要根据实际环境修改master_ip这个value

 类似资料: