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

私有云, 虚拟机创建成功后,VPC 网络 一直获取不到正确获取IP [BUG] #20145

Closed
khw934 opened this issue Apr 26, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@khw934
Copy link

khw934 commented Apr 26, 2024

问题描述/What happened:
私有云, 虚拟机创建成功后,一直获取不到正确获取IP
环境/Environment:
centos7

OS (e.g. cat /etc/os-release):
[root@centosbase ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

Kernel (e.g. uname -a):
[root@centosbase ~]# uname -a
Linux centosbase 5.4.130-1.yn20230805.el7.x86_64 #1 SMP Wed Oct 11 03:26:01 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@centosbase ~]#

Host: (e.g. dmidecode | egrep -i 'manufacturer|product' |sort -u)
[root@centosbase ~]# dmidecode | egrep -i 'manufacturer|product' |sort -u
Manufacturer: QEMU
Product Name: Standard PC (i440FX + PIIX, 1996)
[root@centosbase ~]#

Service Version (e.g. kubectl exec -n onecloud $(kubectl get pods -n onecloud | grep climc | awk '{print $1}') -- climc version-list):
[root@centosbase ~]# climc version-list
Get "192.168.1.1/version": unsupported protocol scheme ""
Get "https://192.168.1.150:30898/version": dial tcp 192.168.1.150:30898: connect: connection refused
Get "https://192.168.1.150:30443/version": dial tcp 192.168.1.150:30443: connect: connection refused
+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field | Value |
+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ansible | release/3.11(3eed5b59c424031912) |
| apimap | release/3.11(3eed5b59c424031913) |
| cloudevent | release/3.11(3eed5b59c424031913) |
| cloudid | release/3.11(3eed5b59c424031913) |
| cloudmon | release/3.11(3eed5b59c424031912) |
| cloudproxy | release/3.11(3eed5b59c424031913) |
| compute_v2 | release/3.11(3eed5b59c424031913) |
| devtool | release/3.11(3eed5b59c424031913) |
| dns | {"error":{"class":"ClientError","code":499,"details":"Get "192.168.1.1/version": unsupported protocol scheme ""","request":{"headers":{"User-Agent":"yunioncloud-go/201708","X-Aut |
| | h-Token":"*"},"method":"GET","url":"192.168.1.1/version"}}} |
| identity | release/3.11(3eed5b59c424031913) |
| image | release/3.11(3eed5b59c424031913) |
| k8s | heads/v3.11.2-20240318.1(e6c3e48724031912) |
| log | release/3.11(3eed5b59c424031913) |
| monitor | release/3.11(3eed5b59c424031913) |
| notify | release/3.11(3eed5b59c424031913) |
| scheduledtask | release/3.11(3eed5b59c424031912) |
| scheduler | release/3.11(3eed5b59c424031912) |
| vpcagent | release/3.11(3eed5b59c424031913) |
| webconsole | release/3.11(3eed5b59c424031912) |
| yunionconf | release/3.11(3eed5b59c424031913) |
+---------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
[root@centosbase ~]#

私有云,使用的是 VPC 网络, 虚拟机创建成功后,一直获取不到正确获取IP
虚拟机创建成功后, 这个界面等待时间毕竟长
image

系统成功进入后, 获取到的ip 不对
image

image

@khw934 khw934 added the bug Something isn't working label Apr 26, 2024
@khw934 khw934 changed the title 私有云, 虚拟机创建成功后,一直获取不到正确获取IP [BUG] 私有云, 虚拟机创建成功后,VPC 网络 一直获取不到正确获取IP [BUG] Apr 26, 2024
@zexi
Copy link
Member

zexi commented Apr 26, 2024

@khw934 麻烦把 vpcagent 这个 pod 的日志导出来看下

@khw934
Copy link
Author

khw934 commented Apr 26, 2024

@khw934 麻烦把 vpcagent 这个 pod 的日志导出来看下

隔离很长时间, 才正确获取了IP
image

vpcagent-240426.log.tar.gz

@ioito
Copy link
Collaborator

ioito commented Apr 26, 2024

将vpcagent升级到3.11.3试下

@ioito
Copy link
Collaborator

ioito commented Apr 26, 2024

@khw934
Copy link
Author

khw934 commented Apr 26, 2024

将vpcagent升级到3.11.3试下
升级后,一样的 问题

image
vpcagent-24-04-26-2.log

@ioito
Copy link
Collaborator

ioito commented Apr 26, 2024

你稍等一段时间后再重启下vpcagent试下,我看日志里面清理了不少无用的信息

@khw934
Copy link
Author

khw934 commented Apr 26, 2024

你稍等一段时间后再重启下vpcagent试下,我看日志里面清理了不少无用的信息

过段时间, 就才能获取到正确的ip ,
image
vpcagent-24-04-26-3.log

@khw934
Copy link
Author

khw934 commented Apr 27, 2024

整体升级到 3.11.3 , 问题解决。

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

3 participants