Skip to content

Conversation

rrajendran17
Copy link
Contributor

Problem:

Users are unaware of why IP address is missing in Harvester UI sometimes

Solution:

Troubleshooting and workaround for ip address missing and flapping in Harvester UI

Related Issue(s):

harvester/harvester#3990
harvester/harvester#6955

Test plan:

To reproduce:

case 1:
1.Create a VM using alma linux 9 or rocky linux 9
2.Wait for VM to move into running state
3.Login to the guest os and check ip a (this will display a v4 address acquired from DHCP or configure it statically)
4.Check if Harvester UI displays the ipv4 address in the UI (flaps intermittently)

case 2:
1.Create a VM using any guest OS
2.Wait for VM to move into running state
3.Login to the guest os and check ip a (this will display a v4 address acquired from DHCP or configure it statically)
4.Login to the pod of the VM and check using "ip a".The pod will have v6 link local address obtained using slaac.
4.Check if Harvester UI displays the ipv4 address in the UI (displays nothing)

Additional documentation or context

Copy link

Name Link
🔨 Latest commit dffd804
😎 Deploy Preview https://68af51f62121a79a0d8b4fc6--harvester-preview.netlify.app

Copy link
Member

@starbops starbops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically LGTM, just one nit. Thank you.

Comment on lines +509 to +514
Check the ip address on the pod interface of the VM created using the following command which matches the ipv6 address updated in the Virtual Machine Instance.

```shell
$ kubectl exec -it -n <PODNAMESPACE> <PODNAME> -- /bin/bash
$ ip a
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be more user-friendly if we could instruct them to look at which pod interface.

Copy link
Member

@w13915984028 w13915984028 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks.

BTW: if issue also exists on v1.5.x, please copy the changes to versioned_docs/version-v1.5/ branch.


Qemu guest agent is responsible for notifying the interface details and guest os info from the vm guest os to the Virtual Machine Instance which is displayed by the Harvester UI.
During the issue, qemu guest agent is able to get the network information and update the status to the Virtual Machine Instance but sometimes domain Info holding the network interface details becomes empty during the updates.
This problem is due to an upstream kubevirt issue occuring spcifically on alma linux 9 and rocky linux 9 guest os version.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spcifically -> specifically

```

### Workaround

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the VM's IP is still useable for e.g. ssh/curl, please add an info section to cease user's potential worry.


### Issue Description

The IP address field of the Virtual Machines screen on the Harvester UI flaps for a newly created Virtual Machine.
Copy link
Contributor

@ihcsim ihcsim Aug 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we clarify what "flapping" means? Also, other than it being an UI issue, what operational impact does this have on the virtual machine? Will the IP address eventually re-appear as described here? More importantly, does that mean the virtual machine is fully unreachable? Would restarting the virtual machine help? User can still access it via the serial console for debugging?


The IP address field of the Virtual Machines screen on the Harvester UI flaps for a newly created Virtual Machine.

## Issue Analysis
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Issue Analysis
### Issue Analysis


https://github.com/kubevirt/kubevirt/issues/12698

## Virtual Machine IP Address not displayed when VM Pod Interface has IPv6 address
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like these two issues have very similar symptoms. In the first case, the IP address "flapped", which I assume it eventually re-appears. For the second case, it seems like the effect is more permanent?

I suggest combining the two issues into one section titled "Missing Virtual Machine IP Address In Harvester UI". Then provide details on the different debugging steps and a set of possible mitigation/recovery actions. Depending on the actual cause, some recovery actions may be more relevant than others. The goal is to help user confirm whether if the IP is flapping, caused by IPv6, or other guest OS level issues. E.g., with Ubuntu Noble cloud image, I see the IP address disappearing issue more often when the guest runs with only 1 CPU on my KVM setup. Should the user try restarting the virtual machine, how does the user check if the virtual machine is still reachable? If not reachable, then the virtual machine is officially down. Can the user still access it via serial console, to run dmesg etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants