最新devstack安装(ussuri)

参考

http://www.chenshake.com/local-conf-devstack-profile-parameter-description/

local.conf配置文件

controller节点

[[local|localrc]]
MULTI_HOST=true
# management & api network
HOST_IP=192.168.101.11
LOGFILE=/opt/stack/logs/stack.sh.log
USE_PYTHON3=True

# Credentials
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=admin
SERVICE_TOKEN=admin

# enable neutron-ml2-vlan
disable_service n-net

# Enable LBaaS v2
enable_plugin neutron-lbaas https://opendev.org/openstack/neutron-lbaas stable/stein
enable_plugin neutron-lbaas-dashboard https://opendev.org/openstack/neutron-lbaas-dashboard stable/stein
enable_plugin octavia https://opendev.org/openstack/octavia stable/stein
enable_plugin octavia-dashboard https://opendev.org/openstack/octavia-dashboard.git stable/stein
enable_plugin barbican https://opendev.org/openstack/barbican stable/stein

# enable FWaaS v2
enable_plugin neutron-fwaas https://opendev.org/openstack/neutron-fwaas stable/stein
enable_plugin neutron-fwaas-dashboard https://opendev.org/openstack/neutron-fwaas-dashboard stable/stein

VERBOSE=True
LOG_COLOR=True
# Pre-requisite
ENABLED_SERVICES=rabbit,mysql,key
# Horizon - enable for the OpenStack web GUI
ENABLED_SERVICES+=,horizon
# Nova
ENABLED_SERVICES+=,n-api,n-crt,n-cpu,n-cond,n-sch,n-api-meta,n-sproxy,n-novnc
ENABLED_SERVICES+=,placement-api,placement-client
# Glance
ENABLED_SERVICES+=,g-api,g-reg
# Neutron
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron,q-lbaasv2,q-vpn,q-fwaas-v2
ENABLED_SERVICES+=,octavia,o-cw,o-hk,o-hm,o-api,o-da
# Cinder
ENABLED_SERVICES+=,c-api,c-vol,c-sch,c-bak
# Tempest
ENABLED_SERVICES+=,tempest


Q_AGENT=linuxbridge
ENABLE_TENANT_VLANS=True
TENANT_VLAN_RANGE=3001:4000
PHYSICAL_NETWORK=default

# logging
LOG_COLOR=True
LOGDIR=$DEST/logs
SCREEN_LOGDIR=$LOGDIR/screen

# use TryStack git mirror
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git

DOWNLOAD_DEFAULT_IMAGES=False
IMAGE_URLS="https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img"

compute文件内容如下

[[local|localrc]]

MULTI_HOST=true
# management & api network
HOST_IP=192.168.101.12

USE_PYTHON3=True
VERBOSE=True

# Credentials
ADMIN_PASSWORD=admin
MYSQL_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=admin
SERVICE_TOKEN=admin

# Service information
SERVICE_HOST=192.168.101.11
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
Q_HOST=$SERVICE_HOST
KEYSTONE_AUTH_HOST=$SERVICE_HOST
KEYSTONE_SERVICE_HOST=$SERVICE_HOST

DATABASE_TYPE=mysql

ENABLED_SERVICES=n-cpu,q-agt,neutron,n-api-meta,c-vol,c-bak,placement-client,n-novnc

Q_AGENT=linuxbridge
ENABLE_TENANT_VLANS=True
TENANT_VLAN_RANGE=3001:4000
PHYSICAL_NETWORK=default

# vnc config
NOVA_VNC_ENABLED=True
NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_lite.html"
VNCSERVER_LISTEN=$HOST_IP
VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN

# Logging
LOG_COLOR=True
LOGDIR=$DEST/logs
SCREEN_LOGDIR=$LOGDIR/screen

# use TryStack git mirror
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git

执行安装

FORCE=yes 
./stack.sh

我自己测试下来无需任何代理,都能成功安装

如果失败一般都是网络问题,如果失败了可以先 ./unstack 然后./clean 再重新执行安装

之前还遇到过openvswitch安装报错失败,可以自己先建个br-int

apt install openvswitch-switch -y
ovs-vsctl add-br br-int

---装好后要发现下计算节点:

nova-manage cell_v2 discover_hosts --verbose

----Dashboard登陆

http://192.168.101.11/dashboard

----列出所有组件

stack@controller:~/devstack$ ll /etc/systemd/system/ | grep devstack | awk '{print $9}'
devstack@barbican-keystone-listener.service
devstack@barbican-retry.service
devstack@barbican-svc.service
devstack@c-api.service
devstack@c-sch.service
devstack@c-vol.service
devstack@g-api.service
devstack@g-reg.service
devstack@keystone.service
devstack@n-api-meta.service
devstack@n-api.service
devstack@n-cond-cell1.service
devstack@n-cpu.service
devstack@n-novnc-cell1.service
devstack@n-sch.service
devstack@n-sproxy-cell1.service
devstack@n-super-cond.service
devstack@o-api.service
devstack@o-cw.service
devstack@o-da.service
devstack@o-hk.service
devstack@o-hm.service
devstack@placement-api.service
devstack@q-agt.service
devstack@q-dhcp.service
devstack@q-l3.service
devstack@q-meta.service
devstack@q-svc.service

posted @ 2020-08-31 11:51  被罚站的树  阅读(655)  评论(1编辑  收藏  举报