SKS-1804: Improve reconcileNetwork() to speed up fetching VM IP #144
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
问题
[SKS-1804] 优化ECP CNI场景下,ELFMachine Network Ready的等待时间 - Jira http://jira.smartx.com/browse/SKS-1804
ECP CNI场景下,VM携带有双网卡,一张网卡为静态IP,一张网卡需要DHCP,当前已有的处理无法覆盖该场景。
修复
getK8sNodeIP
方法里面,判断ControlPlaneInitializedCondition的逻辑。当第一个KCP VM获取IP慢时,ControlPlaneInitialized也会在较长时间后才会变成true(经过调查很可能是CAPI的bug)测试
ECP CNI KSC集群
k8s node创建时间
ELFMachine VMProvisioned时间为
2023-08-31T05:31:42Z
vmtools采集上报时间为 13:32:22
ELFMachine VMProvisioned时间 先于vmtools数据上报时间,符合预期
单DHCP网卡集群
k8s node创建时间
ELFMachine VMProvisioned时间为
2023-08-31T05:47:55Z
vmtools采集上报时间为 13:48:59
ELFMachine VMProvisioned时间 先于vmtools数据上报时间,符合预期
双DHCP网卡集群
k8s node创建时间
ELFMachine VMProvisioned时间为2023-08-31T05:50:35Z
vmtools采集数据上报时间
ELFMachine VMProvisioned时间 晚于vmtools数据上报时间,符合预期
单静态IP网卡集群
k8s node创建时间
ELF Machine VMProvisioned 时间为 2023-08-31T06:33:19Z
vmtools采集数据时间
ELF Machine VMProvisioned 在k8s node创建之后,符合预期
双静态IP网卡集群
k8s node创建时间
ELFMachine VMProvisioned时间为2023-08-31T06:54:52Z
vmtools采集数据上报时间
ELF Machine VMProvisioned 在k8s node创建之后,符合预期