lxd vms using OVN networks get different IPs on mass reboot

Bug #2069143 reported by Nishant Dash
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
microovn
Invalid
Undecided
Unassigned

Bug Description

This is an extension of
- https://github.com/canonical/lxd/issues/11658

I have a scenario where I am using juju deployed on LXD vms in a microcloud setup and rebooting a single vm mutliple times does not result in an ip change but rebooting a physical host results in almost every vm on that host getting a new ip, even with volatile.eth0.last_state.ip_addresses being set.

Versions:

    lxd: 5.21.1-10f4115
    microovn: 22.03.3+snap0e23a0e4f5
    microceph: 0+git.4a608fc
    microcloud: 1.1-04a1c49

Other related:
- https://bugs.launchpad.net/juju/+bug/2007595

Revision history for this message
Peter Jose De Sousa (pjds) wrote :

subscribing field high as a workaround exists.

Revision history for this message
Nishant Dash (dash3) wrote :

Subscribed field high since we can workaround with lxd device overrides (in terraform as well).

Revision history for this message
Martin Kalcok (martin-kalcok) wrote :

As discussed further in the github issue[0], this behavior occurs due to the way LXD handles starting and stopping of guest instances (note that this does not affect rebooting guests, just stopping/starting via LXC cli). When the guest is stopped, LXD removes its ports from the OVN via Northbound API, therefore addresses previously assigned to these ports become freely available, and can be assigned to other guests. If new guest instances are brought up while existing instances are stopped, it can lead IP re-shuffle.

From the point of view of OVN/MicroOVN, everything works as expected.

[0] https://github.com/canonical/lxd/issues/11658

Changed in microovn:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.