我使用本指南 [OpenStack Charms 部署指南] 执行了集群节点安装。(https://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/install-maas.html),其中网络类型是平面网络,使用的组件有:
- 马斯
- 巨聚
- 开放堆栈。
我的实验室有以下网络计划:
+-------------+
Firewall
10.20.81.254
+-------------+
|
+-------------------------------------------------------------+
Switch
vlan81 vlan81 vlan81
+-------------------------------------------------------------+
| | || || || ||
+--------------+ +------------+ +------------------+
|Maas+Juju |Juju Gui| |Openstack
|10.20.81.1 |10.20.81.2 |10.20.81.21-24
+--------------+ +-------------+ +------------------+
|
+--------------------------------------------+
Private Subnet-1 Public Subnet-2
10.0.0.0/24 10.20.81.0/24
+---+----+--+ +----+------+
| | +----+ |
| | | | |
| +--------+ VR +-------------+
| | |
+--+-+ +----+
| |
| VM |
| .9 |
| |
我的实验室:
1 IBM System 3540 M4 Maas (500GB HDD - 8GB RAM - 1 Nic)
1 IBM System 3540 M4 Juju (500GB HDD - 8GB RAM -1 Nic)
4 IBM System 3540 M4 Openstack (500GBx2 HDD - 16GB RAM - 2 Nic)
1 Palo Alto Network Firewall
知识产权计划:
Public Network: 10.20.81.0/24
Private Network: 10.0.0.0/24
Maas: 10.20.81.1
Juju: 10.20.81.2
Openstack: 10.20.81.21-24
Gateway 10.20.81.254
Private Network 10.0.0.0/24
Instance: 10.0.0.9 - 10.20.81.215 (floating)
马斯路线:
$: ip route
default via 10.20.81.254 dev enp2s0 proto static
10.20.81.0/24 dev enp2s0 proto kernel scope link src 10.20.81.1
Juju控制器:
ubuntu@juju-controller:~$ ip route
default via 10.20.81.254 dev enp8s0 proto static
10.20.81.0/24 dev enp8s0 proto kernel scope link src 10.20.81.2
计算节点:
ubuntu@os-compute01:~$ ip route
default via 10.20.81.254 dev br-eno2 proto static
10.20.81.0/24 dev br-eno2 proto kernel scope link src 10.20.81.21
10.38.53.0/24 dev lxdbr0 proto kernel scope link src 10.38.53.1
ubuntu@os-compute02:~$ ip route
default via 10.20.81.254 dev br-eno2 proto static
10.20.81.0/24 dev br-eno2 proto kernel scope link src 10.20.81.22
10.104.230.0/24 dev lxdbr0 proto kernel scope link src 10.104.230.1
ubuntu@os-compute03:~$ ip route
default via 10.20.81.254 dev br-eno2 proto static
10.20.81.0/24 dev br-eno2 proto kernel scope link src 10.20.81.23
10.126.34.0/24 dev lxdbr0 proto kernel scope link src 10.126.34.1
ubuntu@os-compute04:~$ ip route
default via 10.20.81.254 dev br-eno2 proto static
10.20.81.0/24 dev br-eno2 proto kernel scope link src 10.20.81.24
10.72.47.0/24 dev lxdbr0 proto kernel scope link src 10.72.47.1
路由器:
$:openstack router show u1804Ro
Password:
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up | UP |
| availability_zone_hints | |
| availability_zones | nova |
| created_at | 2019-02-28T22:27:36Z |
| description | |
| distributed | False |
| external_gateway_info | {"network_id": "e2ba9320-b1cb-4fd8-acd8-b4d9df9df819", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "b3ae37b6-487b-4063-8d69-ec849fd9c9c7", "ip_address": "10.20.81.212"}]} |
| flavor_id | None |
| ha | False |
| id | fc288112-3fce-405d-9c3f-5451253de4f0 |
| interfaces_info | [{"subnet_id": "c7fcfa82-ec70-4917-8f24-7074bf22743b", "ip_address": "10.0.0.1", "port_id": "84693247-3f86-4c84-b0f6-aa8bd95c6c16"}] |
| name | u1804Ro |
| project_id | 1f4809b5083549c1a35c4c023487752c |
| revision_number | 8 |
| routes | |
| status | ACTIVE |
| tags | |
| updated_at | 2019-03-01T14:02:46Z |
+-------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
安全组列表
$:openstack security group list
Password:
+--------------------------------------+----------+-----------------------------+----------------------------------+
| ID | Name | Description | Project |
+--------------------------------------+----------+-----------------------------+----------------------------------+
| 57f3fbd9-7574-4116-826f-083a1241bc0f | default | Default security group | 3e59e7cde179423abcdce8fe431fbea0 |
| c242b952-8b07-4d25-b24e-ada213cc116f | u1804Sec | Security Group for u1804Pro | 3e59e7cde179423abcdce8fe431fbea0 |
+--------------------------------------+----------+-----------------------------+----------------------------------+
安全组规则列表
$:openstack security group rule list
Password:
+--------------------------------------+-------------+-----------+------------+--------------------------------------+--------------------------------------+
| ID | IP Protocol | IP Range | Port Range | Remote Security Group | Security Group |
+--------------------------------------+-------------+-----------+------------+--------------------------------------+--------------------------------------+
| 07b3bd3f-cc62-409c-bc65-62eea6c7b3ea | None | None | | 57f3fbd9-7574-4116-826f-083a1241bc0f | 57f3fbd9-7574-4116-826f-083a1241bc0f |
| 34216d9f-f5fc-44a3-9e1a-ac52b0cdc334 | None | None | | None | 57f3fbd9-7574-4116-826f-083a1241bc0f |
| 472eff92-c0f8-4a7e-806d-de98fe066d8f | tcp | 0.0.0.0/0 | 22:22 | None | c242b952-8b07-4d25-b24e-ada213cc116f |
| 8f101215-759d-48bc-b665-bd72463ecb3d | None | None | | None | c242b952-8b07-4d25-b24e-ada213cc116f |
| a6a0e040-3cc8-4cc3-bedf-2aa1adc52018 | None | None | | None | 57f3fbd9-7574-4116-826f-083a1241bc0f |
| d4346b18-65b3-49a6-9763-05229e468dac | None | None | | 57f3fbd9-7574-4116-826f-083a1241bc0f | 57f3fbd9-7574-4116-826f-083a1241bc0f |
| dc9f8a32-7315-493a-b8ed-9b5919afc2c8 | None | None | | None | c242b952-8b07-4d25-b24e-ada213cc116f |
+--------------------------------------+-------------+-----------+------------+--------------------------------------+--------------------------------------+
谁能帮我解决这个问题?提前致谢
23/03/19 更新:
我可以从 neutron-gateway ping 虚拟 eth:
来自 MAAS
然后
在路由器上的 eth 上 ping 结果:
如果我尝试 ping 实例或其分配的浮动 IP,它们将无法访问
它的路线是:
2019 年 1 月 4 日更新:
将上传到 Opentstack 上的图像类型从 LXD (bionic-server-cloudimg-amd64-lxd.tar.) 更改为 IMG (bionic-server-cloudimg-amd64.img),现在 ping 工作正常。
和自己的浮动IP
Openstack 上的其余集合与开始时相同。