Comments (2)
Iterating over all the host interfaces to try to clean up potential conflicts shouldn't be needed and may actually be dangerous as it's perfectly valid in some environments to have the same MAC on multiple interfaces and starting to arbitrarily delete them may just cause a whole bunch of issues.
I spent around 30min trying to reproduce the issue you're describing, both by killing QEMU to simulate a hard crash and by triggering reboots from within a VM as seems to be the trigger for you, but I never managed to get the issue to happen here, so we're going to need some kind of somewhat reliable reproducer.
Looking at the macvlan nic cleanup logic, I'm not seeing anything wrong in there. As soon as the VM comes down, it triggers the onStop
action which then iterates over all the devices on the instance and calls their Stop
command. In the macvlan case, this will return a function that will delete the host device. I also did a test build here to make sure that code path is properly being hit during an instance initiated reboot and it did hit.
from lxd.
If you can reproduce this somewhat reliably with a VM, it'd be good to run incus monitor --pretty
on the system it's running, then reboot the VM and see it hit the issue. That should show us a better trace of all the calls being made.
Having the full incus config show --expanded
output for an affected VM would also help as it's certainly possible that other devices or configuration are impacting this.
from lxd.
Related Issues (20)
- Configurable Infiniband port_guid/node_guid HOT 1
- Root filesystem with nodev mounted may case SRIOV device configure problem. HOT 2
- Unprivileged Incus adds its own interface default route on void-linux? HOT 4
- Don't return filesystem metrics for filesystems that can't report instance-specific usage
- CLI configuration option for default table layout HOT 2
- incus ls, does not show Number of Processes HOT 6
- Creating user network fails with long uids HOT 3
- Cosmetic: Enhance error message for "profile rename" command
- Feature: Add storage pools isolation per project HOT 1
- Not able to start vm: qemu-system-aarch64: device requires x bytes, block backend provides x bytes HOT 2
- Implement per cluster group baseline CPU definitions for VMs
- Memory hotplug support for VMs HOT 2
- cluster member evacuation via web UI fails, but works via CLI HOT 2
- Allow passing sub-directories of custom volumes
- incus-simplestreams remove does not remove combined images HOT 1
- Archlinux - 6.9.9-arch1-1 - Unable to locate a UEFI firmware HOT 3
- Errors encountered when upgrading incus with sudo apt upgrade HOT 6
- Don't block cluster upgrades on API additions only
- [regression] BSD VM not starting after upgrade to 6.3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lxd.