Commit fb3143c
committed
net: fix race condition in get_ip_from_vm_or_virt_handler_pod
The function read vm.vmi.interfaces[0]["ipAddresses"] once without
waiting. With Fedora 43 the guest agent reports IPs slower than
Fedora 41, so ipAddresses is still None right after AgentConnected
becomes True, causing TypeError on iteration.
Delegate the VM branch to lookup_iface_status_ip which polls the VMI
with a watcher until IPs are reported.
Signed-off-by: Sergei Volkov <sevolkov@redhat.com>
Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0e936a9 commit fb3143c
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
756 | | - | |
757 | | - | |
758 | | - | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
759 | 763 | | |
| 764 | + | |
760 | 765 | | |
761 | 766 | | |
762 | 767 | | |
| |||
0 commit comments