这是我第一次尝试容器,所以请耐心等待。我尝试使用 MAAS2.0 部署 openstack。
我设置了所需的机器(4 个节点 + Juju 控制器),并按照此博客上的说明操作,非常详尽
使用 Juju 在 MAAS 1.9+ 上部署 OpenStack
现在 Juju 2.0 和当前可用的 Openstack 软件包以及博客中的软件包存在一些差异,但总体而言,在 nova-compute 配置之前一切似乎都很好。我总是卡在这里。在 juju gui 中,它只要求桥接网络和 os-internal-network。我知道 os-internal-network 是内部 api 子网,但我不确定该如何构造桥接
Machine State DNS Inst id Series AZ
0 started 10.100.0.111 t66637 xenial default
0/lxd/0 down pending xenial
0/lxd/1 down pending xenial
0/lxd/2 down pending xenial
1 started 10.100.0.114 ctf87e xenial default
1/lxd/0 down pending xenial
1/lxd/1 down pending xenial
1/lxd/2 down pending xenial
2 started 10.100.0.112 a4medb xenial default
2/lxd/0 down pending xenial
2/lxd/1 down pending xenial
2/lxd/2 down pending xenial
3 started 10.100.0.113 fa3xwa xenial default
3/lxd/0 down pending xenial
3/lxd/1 down pending xenial
3/lxd/2 down pending xenial
这是 juju show-machine 的输出
model: openstack-base
machines:
"0":
juju-status:
current: started
since: 14 Apr 2017 01:12:02Z
version: 2.1.2
dns-name: 10.100.0.111
ip-addresses:
- 10.100.0.111
- 10.14.0.111
- 10.150.0.111
- 10.200.0.111
- 10.250.0.111
- 10.50.0.111
instance-id: t66637
machine-status:
current: running
message: Deployed
since: 14 Apr 2017 01:11:13Z
series: xenial
containers:
0/lxd/0:
juju-status:
current: down
message: agent is not communicating with the server
since: 14 Apr 2017 01:12:49Z
instance-id: pending
machine-status:
current: provisioning error
message: 'unable to setup network: no obvious space for container "0/lxd/0",
host machine has spaces: "admin-api", "compute-data", "internal-api",
"maas-mgmt", "public-api", "storage-data"'
since: 14 Apr 2017 01:12:49Z
series: xenial
0/lxd/1:
juju-status:
current: down
message: agent is not communicating with the server
since: 14 Apr 2017 01:13:25Z
instance-id: pending
machine-status:
current: provisioning error
message: 'unable to setup network: no obvious space for container "0/lxd/1",
host machine has spaces: "admin-api", "compute-data", "internal-api",
"maas-mgmt", "public-api", "storage-data"'
since: 14 Apr 2017 01:13:25Z
series: xenial
0/lxd/2:
juju-status:
current: down
message: agent is not communicating with the server
since: 14 Apr 2017 01:14:01Z
instance-id: pending
machine-status:
current: provisioning error
message: 'unable to setup network: no obvious space for container "0/lxd/2",
host machine has spaces: "admin-api", "compute-data", "internal-api",
"maas-mgmt", "public-api", "storage-data"'
since: 14 Apr 2017 01:14:01Z
series: xenial
hardware: arch=amd64 cores=12 mem=12288M tags=virtual availability-zone=default
其他 3 台物理机的输出相同。
最后一点(我确信这不相关,但为了完整性)整个设置不在实际机器上,它们是 vSphere 中的 5 个虚拟机,全部使用单个 NIC 连接到 vSwitch(全部 4096 个),因此它转发所有 VLAN。每个虚拟机在 MAAS 中都静态分配了其 ips。
多谢
$juju spaces
Space Subnets
admin-api 10.150.0.0/20
compute-data 10.250.0.0/20
compute-external 10.99.0.0/20
internal-api 10.100.0.0/20
maas-mgmt 10.14.0.0/20
192.168.122.0/24
public-api 10.50.0.0/20
storage-cluster 10.30.0.0/20
storage-data 10.200.0.0/20
unused 192.168.140.0/24