cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
408 stars 149 forks source link

windows server2022 create bond success but set_static_network_config failed #122

Open sheepcat opened 10 months ago

sheepcat commented 10 months ago

cloudbase-init 1.1.5dev win server2022 H1 rpc and wmi service is running firewall is disabled

i want to create bond lacp and set a static ip address, bond is created successfully ,but ip config is failed

when i execute the network plugin in cloudbase-init.conf raise: RPC se'rservice is unavailable

image

i think the error is raised by the conn.MSFT_NetIPAddress.create() function
which is in cloudbase-init/cloudbaseinit/osutils/windows.py def _set_static_network_config()

image

any idea? with great appreciated

ader1990 commented 9 months ago

Hello,

@sheepcat if you use the PowerShell cmdlets, does this issue reproduce? would be interesting to share the equivalent PowerShell cmdlets to see if it is a problem of maybe concurency -- the netlbfo API is implemented in such a way that it needs some retries. For example, if a bond is created, and the netlbfo returns true / created, it takes some time until an IP on that bond can be configured.

Thank you, Adrian Vladu