PUBLIC_INTERFACE
: 外部网络网卡名称PUBLIC_NETWORK_GATEWAY
:外部网络网关地址Q_USE_PROVIDERNET_FOR_PUBLIC
:允许配置Neutron L3 Agent的外部接口使用provider网络,从而实现对OpenStack云实例的公共网络访问。OVS_PHYSICAL_BRIDGE
:指定了一个OVS网桥br-ex作为物理网桥,外部网络的流量将通过这个OVS网桥br-ex,底层物理网卡将连接到br-ex网桥上PUBLIC_BRIDGE
:直接将之前定义的br-ex网桥指定为公共网络的网桥,所有外部网络的流量都将通过br-ex网桥OVS_BRIDGE_MAPPINGS
:映射外部网络到之前定义的br-ex网桥
安装控制节点
$ ./stack.sh
确认安装成功
......
=========================
DevStack Component Timing
(times are in seconds)
=========================
wait_for_service 12
async_wait 102
osc 180
apt-get 71
test_with_retry 5
dbsync 7
pip_install 128
apt-get-update 1
run_process 27
git_timed 85
-------------------------
Unaccounted time 184
=========================
Total runtime 802
=================
Async summary
=================
Time spent in the background minus waits: 322 sec
Elapsed time: 802 sec
Time if we did everything serially: 1124 sec
Speedup: 1.4015
Post-stack database query stats:
+------------+-----------+-------+
| db | op | count |
+------------+-----------+-------+
| keystone | SELECT | 31269 |
| keystone | INSERT | 82 |
| neutron | SELECT | 4482 |
| neutron | CREATE | 1 |
| neutron | SHOW | 4 |
| neutron | INSERT | 4113 |
| neutron | DELETE | 27 |
| neutron | UPDATE | 116 |
| placement | SELECT | 38 |
| placement | INSERT | 55 |
| placement | SET | 1 |
| nova_api | SELECT | 305 |
| nova_cell0 | SELECT | 65 |
| nova_cell1 | SELECT | 317 |
| nova_cell0 | INSERT | 5 |
| nova_cell0 | UPDATE | 3 |
| nova_cell1 | INSERT | 4 |
| nova_cell1 | UPDATE | 20 |
| placement | UPDATE | 3 |
| glance | SELECT | 57 |
| glance | INSERT | 14 |
| glance | UPDATE | 2 |
| nova_api | INSERT | 23 |
| nova_api | SAVEPOINT | 11 |
| nova_api | RELEASE | 11 |
+------------+-----------+-------+
This is your host IP address: 192.168.93.21
This is your host IPv6 address: ::1
Horizon is now available at http://192.168.93.21/dashboard
Keystone is serving at http://192.168.93.21/identity/
The default users are: admin and demo
The password: secret
Services are running under systemd unit files.
For more information see:
https://docs.openstack.org/devstack/latest/systemd.html
DevStack Version: 2024.1
Change: f4f09416ca8de09820b52599c7bcd2911b407466 Merge "Drop unused environments for TripleO and heat agents" 2024-03-19 18:55:14 +0000
OS Version: Ubuntu 22.04 jammy
修改网卡配置,增加bridges
部分,使网桥开机自动启动
stack@devstack21:~/devstack$ sudo vim /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
ens33:
addresses:
- 192.168.93.21/24
nameservers:
addresses:
- 223.5.5.5
- 223.6.6.6
search: []
routes:
- to: default
via: 192.168.93.2
ens37:
dhcp4: false
bridges:
br-ex:
openvswitch