家里还有最老一版本centos搭建的openstack,vm一直是error

早过忘川 提交于 2020-10-29 16:56:07

image.png家里还有最老一版本centos搭建的openstack,vm一直是error

我查了10.0.0.11的 ifconfig是正常的。brqxxx占用10.0.0.11地址!

但是10.0.0.31的 ifconfig是不正常的。brqxxx没占用10.0.0.31地址!


百度查:openstack ifconfig brq无ip

看到俩文章https://blog.csdn.net/wangjinruifly/article/details/79765198?utm_source=blogxgwz8

image.png

文章2

https://www.cnblogs.com/linuxk/p/9455420.html


image.png



知道一些查询命令


因为openstack组件配置文件我大概查过了。

我觉得现在就要查为什么10.0.0.31的 ifconfig是不正常的。brqxxx没占用10.0.0.31地址!是不是libvirtd.service 问题,或者是

多出一个网桥brqxxxxx,并且之前物理网卡enoxxxx的IP地址等配置分配给了网桥。通过brctl 查看网桥信息:

$ brctl show brqxxxx查看信息和10.0.0.11正确的有明显差异!!!造成的

image.png

image.png



[root@compute1 ~]# ifconfig

brq7a72ae73-18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::f81f:a0ff:fec4:756c  prefixlen 64  scopeid 0x20<link>

        ether fa:1f:a0:c4:75:6c  txqueuelen 0  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 8  bytes 648 (648.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


brqe61c94f3-df: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::d0fb:9fff:fee8:e18b  prefixlen 64  scopeid 0x20<link>

        ether d2:fb:9f:e8:e1:8b  txqueuelen 0  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 8  bytes 648 (648.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


eno16777736: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 10.0.0.31  netmask 255.255.255.0  broadcast 10.0.0.255

        inet6 fe80::20c:29ff:febb:476e  prefixlen 64  scopeid 0x20<link>

        ether 00:0c:29:bb:47:6e  txqueuelen 1000  (Ethernet)

        RX packets 6984  bytes 1389212 (1.3 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 7968  bytes 5947314 (5.6 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 0  (Local Loopback)

        RX packets 10135  bytes 535279 (522.7 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 10135  bytes 535279 (522.7 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500

        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255

        ether 52:54:00:0c:58:76  txqueuelen 0  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# brctl show ^C

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# brctl show brq7a72ae73-18

bridge name     bridge id               STP enabled     interfaces

brq7a72ae73-18          8000.000000000000       no

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# brctl show brqe61c94f3-df

bridge name     bridge id               STP enabled     interfaces

brqe61c94f3-df          8000.000000000000       no

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# brctl show brq7a72ae73-18

bridge name     bridge id               STP enabled     interfaces

brq7a72ae73-18          8000.000000000000       no

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# virsh list --all

 Id    鍚嶇О                         鐘舵€

----------------------------------------------------


[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# systemctl status libvirt

Unit libvirt.service could not be found.

[root@compute1 ~]# systemctl status libvirt

libvirtd.service        libvirt-guests.service  

[root@compute1 ~]# systemctl status libvirt

libvirtd.service        libvirt-guests.service  

[root@compute1 ~]# systemctl status libvirt

libvirtd.service        libvirt-guests.service  

[root@compute1 ~]# systemctl status libvirt

libvirtd.service        libvirt-guests.service  

[root@compute1 ~]# systemctl status libvirt

libvirtd.service        libvirt-guests.service  

[root@compute1 ~]# systemctl status libvirt

libvirtd.service        libvirt-guests.service  

[root@compute1 ~]# systemctl status libvirt

Unit libvirt.service could not be found.

[root@compute1 ~]# 

[root@compute1 ~]# systemctl status libvirtd.service 

鈼[0m libvirtd.service - Virtualization daemon

   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)

   Active: active (running) since 浜2020-10-27 22:00:41 CST; 29min ago

     Docs: man:libvirtd(8)

           https://libvirt.org

 Main PID: 1304 (libvirtd)

   CGroup: /system.slice/libvirtd.service

           鈹溾攢1304 /usr/sbin/libvirtd

           鈹溾攢2540 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelpe...

           鈹斺攢2542 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelpe...


10鏈27 22:17:22 compute1 libvirtd[1304]: 2020-10-27 14:17:22.296+0000: 2348: error : virNetSocketNewConnectUNIX:712 : 灏嗘彃妲借繛鎺ュ埌 '/var/鈥 鎷掔粷杩炴帴

10鏈27 22:17:22 compute1 libvirtd[1304]: 2020-10-27 14:17:22.297+0000: 2348: error : virNetSocketNewConnectUNIX:712 : 灏嗘彃妲借繛鎺ュ埌 '/var/鈥 鎷掔粷杩炴帴

10鏈27 22:19:18 compute1 dnsmasq[2540]: no servers found in /etc/resolv.conf, will retry

10鏈27 22:19:18 compute1 dnsmasq[2540]: reading /etc/resolv.conf

10鏈27 22:19:18 compute1 dnsmasq[2540]: using nameserver 223.5.5.5#53

10鏈27 22:19:29 compute1 dnsmasq[2540]: no servers found in /etc/resolv.conf, will retry

10鏈27 22:19:29 compute1 dnsmasq[2540]: reading /etc/resolv.conf

10鏈27 22:19:29 compute1 dnsmasq[2540]: using nameserver 223.5.5.5#53

10鏈27 22:21:21 compute1 libvirtd[1304]: 2020-10-27 14:21:21.645+0000: 2350: error : virNetSocketNewConnectUNIX:712 : 灏嗘彃妲借繛鎺ュ埌 '/var/鈥 鎷掔粷杩炴帴

10鏈27 22:21:21 compute1 libvirtd[1304]: 2020-10-27 14:21:21.646+0000: 2350: error : virNetSocketNewConnectUNIX:712 : 灏嗘彃妲借繛鎺ュ埌 '/var/鈥 鎷掔粷杩炴帴

Hint: Some lines were ellipsized, use -l to show in full.

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# systemctl restart libvirtd

[root@compute1 ~]# systemctl status libvirtd.service 

鈼[0m libvirtd.service - Virtualization daemon

   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)

   Active: active (running) since 浜2020-10-27 22:31:13 CST; 1s ago

     Docs: man:libvirtd(8)

           https://libvirt.org

 Main PID: 6280 (libvirtd)

   CGroup: /system.slice/libvirtd.service

           鈹溾攢2540 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelpe...

           鈹溾攢2542 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelpe...

           鈹斺攢6280 /usr/sbin/libvirtd


10鏈27 22:31:13 compute1 dnsmasq[2540]: read /etc/hosts - 4 addresses

10鏈27 22:31:13 compute1 dnsmasq[2540]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses

10鏈27 22:31:13 compute1 dnsmasq-dhcp[2540]: read /var/lib/libvirt/dnsmasq/default.hostsfile

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.043+0000: 6296: info : libvirt version: 4.5.0, package: 33.el7_8.1 (CentOS B...tos.org)

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.043+0000: 6296: info : hostname: compute1

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.043+0000: 6296: warning : virGetUserIDByName:1005 : User record for user 'ts鈥︽枃浠舵垨鐩綍

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.043+0000: 6296: error : virGetUserID:1043 : 鏃犳晥鍙傛暟锛氳В鏋愮敤鎴'tss' 澶辫触

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.044+0000: 6296: warning : virGetGroupIDByName:1085 : Group record for user '鈥︽枃浠舵垨鐩綍

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.044+0000: 6296: error : virGetGroupID:1123 : 鏃犳晥鍙傛暟锛氳В鏋愮粍 'tss' 澶辫触

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.105+0000: 6296: warning : virQEMUCapsInit:955 : Failed to get host CPU cache info

Hint: Some lines were ellipsized, use -l to show in full.

[root@compute1 ~]# systemctl status libvirtd.service 

鈼[0m libvirtd.service - Virtualization daemon

   Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)

   Active: active (running) since 浜2020-10-27 22:31:13 CST; 7s ago

     Docs: man:libvirtd(8)

           https://libvirt.org

 Main PID: 6280 (libvirtd)

   CGroup: /system.slice/libvirtd.service

           鈹溾攢2540 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelpe...

           鈹溾攢2542 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/libexec/libvirt_leaseshelpe...

           鈹斺攢6280 /usr/sbin/libvirtd


10鏈27 22:31:13 compute1 dnsmasq[2540]: read /etc/hosts - 4 addresses

10鏈27 22:31:13 compute1 dnsmasq[2540]: read /var/lib/libvirt/dnsmasq/default.addnhosts - 0 addresses

10鏈27 22:31:13 compute1 dnsmasq-dhcp[2540]: read /var/lib/libvirt/dnsmasq/default.hostsfile

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.043+0000: 6296: info : libvirt version: 4.5.0, package: 33.el7_8.1 (CentOS B...tos.org)

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.043+0000: 6296: info : hostname: compute1

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.043+0000: 6296: warning : virGetUserIDByName:1005 : User record for user 'ts鈥︽枃浠舵垨鐩綍

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.043+0000: 6296: error : virGetUserID:1043 : 鏃犳晥鍙傛暟锛氳В鏋愮敤鎴'tss' 澶辫触

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.044+0000: 6296: warning : virGetGroupIDByName:1085 : Group record for user '鈥︽枃浠舵垨鐩綍

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.044+0000: 6296: error : virGetGroupID:1123 : 鏃犳晥鍙傛暟锛氳В鏋愮粍 'tss' 澶辫触

10鏈27 22:31:14 compute1 libvirtd[6280]: 2020-10-27 14:31:14.105+0000: 6296: warning : virQEMUCapsInit:955 : Failed to get host CPU cache info

Hint: Some lines were ellipsized, use -l to show in full.

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 

[root@compute1 ~]# 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!