不同计算机上的 Openstack VM 无法通过网络进行通信

不同计算机上的 Openstack VM 无法通过网络进行通信

我已经按照以下文档通过 charms 部署了 OpenStackhttps://docs.openstack.org/project-deploy-guide/charm-deployment-guide/latest/。我已经在 vCloud 系统上进行了此部署。部署看起来不错,没有明显问题:

$ juju status
Model      Controller       Cloud/Region      Version  SLA          Timestamp
openstack  maas-controller  maas-one/default  2.9.43   unsupported  15:29:01+03:00

App                       Version  Status  Scale  Charm                   Channel        Rev  Exposed  Message
ceph-mon                  17.2.5   active      3  ceph-mon                quincy/stable  170  no       Unit is ready and clustered
ceph-osd                  17.2.5   active      4  ceph-osd                quincy/stable  559  no       Unit is ready (2 OSD)
ceph-radosgw              17.2.5   active      1  ceph-radosgw            quincy/stable  548  no       Unit is ready
cinder                    22.0.0   active      1  cinder                  2023.1/stable  625  no       Unit is ready
cinder-ceph               22.0.0   active      1  cinder-ceph             2023.1/stable  524  no       Unit is ready
cinder-mysql-router       8.0.33   active      1  mysql-router            8.0/stable      35  no       Unit is ready
dashboard-mysql-router    8.0.33   active      1  mysql-router            8.0/stable      35  no       Unit is ready
glance                    26.0.0   active      1  glance                  2023.1/stable  572  no       Unit is ready
glance-mysql-router       8.0.33   active      1  mysql-router            8.0/stable      35  no       Unit is ready
keystone                  23.0.0   active      1  keystone                2023.1/stable  645  no       Application Ready
keystone-mysql-router     8.0.33   active      1  mysql-router            8.0/stable      35  no       Unit is ready
mysql-innodb-cluster      8.0.33   active      3  mysql-innodb-cluster    8.0/stable      56  no       Unit is ready: Mode: R/O, Cluster is ONLINE and can tolerate up to ONE failure.
ncc-mysql-router          8.0.33   active      1  mysql-router            8.0/stable      35  no       Unit is ready
neutron-api               22.0.0   active      1  neutron-api             2023.1/stable  552  no       Unit is ready
neutron-api-mysql-router  8.0.33   active      1  mysql-router            8.0/stable      35  no       Unit is ready
neutron-api-plugin-ovn    22.0.0   active      1  neutron-api-plugin-ovn  2023.1/stable   73  no       Unit is ready
nova-cloud-controller     27.0.0   active      1  nova-cloud-controller   2023.1/stable  665  no       PO: Unit is ready
nova-compute              27.0.0   active      3  nova-compute            2023.1/stable  662  no       Unit is ready
openstack-dashboard       23.1.0   active      1  openstack-dashboard     2023.1/stable  578  no       Unit is ready
ovn-central               23.03.0  active      3  ovn-central             23.03/stable    99  no       Unit is ready (leader: ovnnb_db, ovnsb_db northd: active)
ovn-chassis               23.03.0  active      3  ovn-chassis             23.03/stable   134  no       Unit is ready
placement                 9.0.0    active      1  placement               2023.1/stable   87  no       Unit is ready
placement-mysql-router    8.0.33   active      1  mysql-router            8.0/stable      35  no       Unit is ready
rabbitmq-server           3.9.13   active      1  rabbitmq-server         3.9/stable     177  no       Unit is ready
vault                     1.8.8    active      1  vault                   1.8/stable     108  no       Unit is ready (active: true, mlock: disabled)
vault-mysql-router        8.0.33   active      1  mysql-router            8.0/stable      35  no       Unit is ready

Unit                           Workload  Agent  Machine  Public address  Ports               Message
ceph-mon/0*                    active    idle   0/lxd/3  172.30.171.102                      Unit is ready and clustered
ceph-mon/1                     active    idle   1/lxd/3  172.30.171.38                       Unit is ready and clustered
ceph-mon/2                     active    idle   2/lxd/4  172.30.171.41                       Unit is ready and clustered
ceph-osd/0*                    active    idle   0        172.30.171.108                      Unit is ready (2 OSD)
ceph-osd/1                     active    idle   1        172.30.171.109                      Unit is ready (2 OSD)
ceph-osd/2                     active    idle   2        172.30.171.111                      Unit is ready (2 OSD)
ceph-osd/3                     active    idle   3        172.30.171.112                      Unit is ready (2 OSD)
ceph-radosgw/0*                active    idle   0/lxd/4  172.30.171.104  80/tcp              Unit is ready
cinder/0*                      active    idle   1/lxd/4  172.30.171.36   8776/tcp            Unit is ready
  cinder-ceph/0*               active    idle            172.30.171.36                       Unit is ready
  cinder-mysql-router/0*       active    idle            172.30.171.36                       Unit is ready
glance/0*                      active    idle   3/lxd/3  172.30.171.33   9292/tcp            Unit is ready
  glance-mysql-router/0*       active    idle            172.30.171.33                       Unit is ready
keystone/0*                    active    idle   0/lxd/2  172.30.171.30   5000/tcp            Unit is ready
  keystone-mysql-router/0*     active    idle            172.30.171.30                       Unit is ready
mysql-innodb-cluster/0         active    idle   0/lxd/0  172.30.171.101                      Unit is ready: Mode: R/O, Cluster is ONLINE and can tolerate up to ONE failure.
mysql-innodb-cluster/2*        active    idle   2/lxd/0  172.30.171.40                       Unit is ready: Mode: R/W, Cluster is ONLINE and can tolerate up to ONE failure.
mysql-innodb-cluster/3         active    idle   1/lxd/5  172.30.171.45                       Unit is ready: Mode: R/O, Cluster is ONLINE and can tolerate up to ONE failure.
neutron-api/0*                 active    idle   1/lxd/2  172.30.171.43   9696/tcp            Unit is ready
  neutron-api-mysql-router/0*  active    idle            172.30.171.43                       Unit is ready
  neutron-api-plugin-ovn/0*    active    idle            172.30.171.43                       Unit is ready
nova-cloud-controller/0*       active    idle   3/lxd/1  172.30.171.32   8774/tcp,8775/tcp   PO: Unit is ready
  ncc-mysql-router/0*          active    idle            172.30.171.32                       Unit is ready
nova-compute/0                 active    idle   1        172.30.171.109                      Unit is ready
  ovn-chassis/1                active    idle            172.30.171.109                      Unit is ready
nova-compute/1                 active    idle   2        172.30.171.111                      Unit is ready
  ovn-chassis/2                active    idle            172.30.171.111                      Unit is ready
nova-compute/2*                active    idle   3        172.30.171.112                      Unit is ready
  ovn-chassis/0*               active    idle            172.30.171.112                      Unit is ready
openstack-dashboard/0*         active    idle   2/lxd/3  172.30.171.39   80/tcp,443/tcp      Unit is ready
  dashboard-mysql-router/0*    active    idle            172.30.171.39                       Unit is ready
ovn-central/0*                 active    idle   0/lxd/1  172.30.171.103  6641/tcp,6642/tcp   Unit is ready (leader: ovnnb_db, ovnsb_db northd: active)
ovn-central/1                  active    idle   1/lxd/1  172.30.171.37   6641/tcp,6642/tcp   Unit is ready
ovn-central/2                  active    idle   2/lxd/1  172.30.171.42   6641/tcp,6642/tcp   Unit is ready
placement/0*                   active    idle   3/lxd/2  172.30.171.31   8778/tcp            Unit is ready
  placement-mysql-router/0*    active    idle            172.30.171.31                       Unit is ready
rabbitmq-server/0*             active    idle   2/lxd/2  172.30.171.44   5672/tcp,15672/tcp  Unit is ready
vault/0*                       active    idle   3/lxd/0  172.30.171.34   8200/tcp            Unit is ready (active: true, mlock: disabled)
  vault-mysql-router/0*        active    idle            172.30.171.34                       Unit is ready

Machine  State    Address         Inst id              Series  AZ       Message
0        started  172.30.171.108  cloud1               jammy   default  Deployed
0/lxd/0  started  172.30.171.101  juju-02f86d-0-lxd-0  jammy   default  Container started
0/lxd/1  started  172.30.171.103  juju-02f86d-0-lxd-1  jammy   default  Container started
0/lxd/2  started  172.30.171.30   juju-02f86d-0-lxd-2  jammy   default  Container started
0/lxd/3  started  172.30.171.102  juju-02f86d-0-lxd-3  jammy   default  Container started
0/lxd/4  started  172.30.171.104  juju-02f86d-0-lxd-4  jammy   default  Container started
1        started  172.30.171.109  cloud2               jammy   default  Deployed
1/lxd/1  started  172.30.171.37   juju-02f86d-1-lxd-1  jammy   default  Container started
1/lxd/2  started  172.30.171.43   juju-02f86d-1-lxd-2  jammy   default  Container started
1/lxd/3  started  172.30.171.38   juju-02f86d-1-lxd-3  jammy   default  Container started
1/lxd/4  started  172.30.171.36   juju-02f86d-1-lxd-4  jammy   default  Container started
1/lxd/5  started  172.30.171.45   juju-02f86d-1-lxd-5  jammy   default  Container started
2        started  172.30.171.111  cloud4               jammy   default  Deployed
2/lxd/0  started  172.30.171.40   juju-02f86d-2-lxd-0  jammy   default  Container started
2/lxd/1  started  172.30.171.42   juju-02f86d-2-lxd-1  jammy   default  Container started
2/lxd/2  started  172.30.171.44   juju-02f86d-2-lxd-2  jammy   default  Container started
2/lxd/3  started  172.30.171.39   juju-02f86d-2-lxd-3  jammy   default  Container started
2/lxd/4  started  172.30.171.41   juju-02f86d-2-lxd-4  jammy   default  Container started
3        started  172.30.171.112  cloud3               jammy   default  Deployed
3/lxd/0  started  172.30.171.34   juju-02f86d-3-lxd-0  jammy   default  Container started
3/lxd/1  started  172.30.171.32   juju-02f86d-3-lxd-1  jammy   default  Container started
3/lxd/2  started  172.30.171.31   juju-02f86d-3-lxd-2  jammy   default  Container started
3/lxd/3  started  172.30.171.33   juju-02f86d-3-lxd-3  jammy   default  Container started

似乎当我在不同的计算机上创建虚拟机时,它们无法通过 TCP 或 UDP 协议进行通信。只有 ICMP 可以工作。如果虚拟机位于同一台计算机上,则网络通信正常。

让我们进行以下设置:VM1(192.168.0.79)托管在 Compute1 上 VM2(192.168.0.39)托管在 Compute2 上

如果我连接到 VM1 的控制台并 ping VM2,它会正常工作。如果我尝试访问任何其他端口,我会每隔约 1 分钟收到一个数据包。我在 VM1 上安装了一个 apache2 Web 服务器,并在这 4 个元素的网络接口上设置了 tcpdump:VM1、VM2、Compute1、Compute2,我注意到以下行为:

我从 VM2 使用以下命令访问 VM1 上的 Web 服务器:

while true; do nc -zvw3 192.168.0.79 80; done

第一个数据包或前 2 个数据包收到响应,然后只存在 TCP 预传输数据包。

Wireshark 数据包捕获图像

我相信某些 OVN 配置阻碍了计算接口和 VM 接口之间的流动,但我不知道如何调查这个问题。

有人遇到过这种情况吗?或者有人可以帮我调查一下 OVN 系统吗?

非常感谢你的支持,Alex

相关内容