Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]宿主机管理口使用非1的VLAN ID,对应default-host-xxx的配置解析异常 #17913

Closed
SlyChen opened this issue Sep 4, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@SlyChen
Copy link

SlyChen commented Sep 4, 2023

问题描述/What happened:
一、官网手册如图:
image

二、我用的是team,实际配置如下

  1. 网卡配置
    image

  2. /etc/yunion/host.conf配置
    image

  3. 配置完成后,重启default-host-xxx日志如下
    image

环境/Environment:

  • OS (e.g. cat /etc/os-release): centos7.9
  • Kernel (e.g. uname -a): Linux szbwx-ops-phy-test02 5.4.130-1.yn20221208.el7.x86_64 scheduler: fix specified network not enough still pass. #1 SMP Thu Dec 8 12:09:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
  • Host: (e.g. dmidecode | egrep -i 'manufacturer|product' |sort -u)
    Manufacturer: 002C069D002C
    Manufacturer: DELL
    Manufacturer: Dell Inc.
    Manufacturer: Intel
    Memory Subsystem Controller Manufacturer ID: Unknown
    Memory Subsystem Controller Product ID: Unknown
    Module Manufacturer ID: Unknown
    Module Product ID: Unknown
    Product Name: 06WXJT
    Product Name: PowerEdge R740xd
  • Service Version (e.g. kubectl exec -n onecloud $(kubectl get pods -n onecloud | grep climc | awk '{print $1}') -- climc version-list):
    image
@SlyChen SlyChen added the bug Something isn't working label Sep 4, 2023
@swordqiu
Copy link
Member

swordqiu commented Sep 5, 2023

我看你的bond0桥接到br0,归属二层网络bcast0,这种情况,bond0上不应该配置IP地址。

如果宿主机上还没有br0,则可以在host启动前设置 ifconfig bond0 0,然后再启动host。

如果br0已经创建,请执行 ovs-vsctl show 确保 br0 下的物理网口只有 bond0,并且确认 br0 的IP地址是类似 169.254.x.x 的地址。如果不是,可以把 br0 删除 (ovs-vsctl del-br br0),再重启 host (确保 bond0 上没有IP,即 ifconfig bond0 0)。重启后,host会创建 br0,并且设置 169.254.x.x 的IP。

@SlyChen

@swordqiu swordqiu self-assigned this Sep 5, 2023
@SlyChen
Copy link
Author

SlyChen commented Sep 14, 2023

感谢,是我看文档不够仔细。按下图模式,把host.conf的网络配置指向team0,而不是team0.3020就可以了。
image

@SlyChen SlyChen closed this as completed Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants