MAC address recycling causes trouble
Bug Report
Version of OpenNebula
- [X] 5.2.2
- [ ] 5.4.0
- [ ] 5.4.1
- [X] 5.4.2
- [ ] 5.4.3
- [ ] Development build
Component
- [ ] Authorization (LDAP, x509 certs...)
- [ ] Command Line Interface (CLI)
- [ ] Contextualization
- [ ] Documentation
- [ ] KVM
- [X] Networking
- [ ] Orchestration (OpenNebula Flow)
- [ ] Sunstone
- [ ] Storage
- [ ] Scheduler
- [ ] vCenter
Description
When a VM is destroyed, its NICs MAC will be given to the next VM which somewhen will be created. This causes sometimes trouble when a previously used MAC address still is registered in some kind of DHCP server, which will handle out a sometimes inappropriate IP address to a newly created VM.
Expected Behavior
Every new VM should get a new MAC which did not exist yet, counting up in the boundaries of the defined range.
Actual Behavior
A new VM gets a probably old MAC.
How to reproduce
Create a VM, delete it, create a new one - both will have the same MAC address.
https://forum.opennebula.io/t/zombie-polling-interval-and-mismatch/12440 and https://forum.opennebula.io/t/network-do-not-reuse-mac-until-range-is-used-up/2914 related?
Thanks, it has been merged together with a new global MAC addressing mode.