devstack
安装
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| #
useradd -s /bin/bash -d /opt/stack -m stack
chmod +x /opt/stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
sudo -u stack -i
git clone https://opendev.org/openstack/devstack && cd devstack && git checkout stable/zed
# create local.conf
[[local|localrc]]
ADMIN_PASSWORD=openstack
DATABASE_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_PASSWORD=openstack
HOST_IP=192.168.1.231
#
./stack.sh
## optional
yum install git redhat-lsb python3 -y
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
vi ./tools/install_pip.sh
|
openstack 集成 ovn
1
2
3
4
5
| yum install python2-networking-ovn openvswitch-ovn-central openvswitch-ovn-common openvswitch-ovn-host libibverbs -y
systemctl stop neutron-server
systemctl start openvswitch
|
[[local|localrc]]
ADMIN_PASSWORD=openstack
DATABASE_PASSWORD=openstack
RABBIT_PASSWORD=openstack
SERVICE_PASSWORD=openstack
CINDER_REPO=https://gitee.com/yyycode/cinder
GLANCE_REPO=https://gitee.com/yyycode/glance
HORIZON_REPO=https://gitee.com/yyycode/horizon
KEYSTONE_REPO=https://gitee.com/yyycode/keystone
NEUTRON_REPO=https://gitee.com/yyycode/neutron
NOVA_REPO=https://gitee.com/yyycode/nova
SWIFT_REPO=https://gitee.com/yyycode/swift
PLACEMENT_REPO=https://gitee.com/yyycode/placement
HOST_IP=192.168.1.231
ETCD_DOWNLOAD_URL=https://mirrors.huaweicloud.com/etcd/
PYPI_OVERRIDE=https://mirrors.ustc.edu.cn/pypi/web/simple
IMAGE_URLS=“https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cloud-images/jammy/current/jammy-server-cloudimg-amd64-disk-kvm.img"