Missing delete_vlan_dev function on bridge driver
See original GitHub issueDescription When LXD VM is stopped, VNM driver clean opration failed
To Reproduce Start LXD VM using Netowork with VN_MAD == bridge, then shutdown VM
Expected behavior VNM clean operation should success
Details
- Affected Component: VNM
- Hypervisor: LXD
- Version: 5.10
Additional context
Fri Nov 29 09:17:56 2019 [Z0][VM][I]: New LCM state is SHUTDOWN_POWEROFF
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: shutdown: --- Stopping container ---
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: shutdown: Processing disk 0
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: shutdown: Using raw filesystem mapper for /var/lib/one/datastores/105/77/disk.0
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: shutdown: Unmapping disk at /var/lib/lxd/storage-pools/default/containers/one-77/rootfs
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: shutdown: Umounting disk mapped at /dev/loop4
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: shutdown: Unmapping disk at /var/lib/one/datastores/105/77/mapper/disk.1
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: shutdown: Umounting disk mapped at /dev/loop5
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: ExitCode: 0
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: Successfully execute virtualization driver operation: shutdown.
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vnm/bridge/clean
Fri Nov 29 09:17:59 2019 [Z0][VMM][E]: clean: delete_vlan_dev function not implemented.
Fri Nov 29 09:17:59 2019 [Z0][VMM][E]: clean: exit
Fri Nov 29 09:17:59 2019 [Z0][VMM][E]: clean: ["/var/tmp/one/vnm/vlan.rb:83:in `exit'", "/var/tmp/one/vnm/vlan.rb:83:in `delete_vlan_dev'", "/var/tmp/one/vnm/vlan.rb:120:in `block in deactivate'", "/var/tmp/one/vnm/vnm_driver.rb:81:in `block in process'", "/var/tmp/one/vnm/vm.rb:64:in `block in each_nic'", "/var/tmp/one/vnm/vm.rb:63:in `each'", "/var/tmp/one/vnm/vm.rb:63:in `each_nic'", "/var/tmp/one/vnm/vnm_driver.rb:84:in `process'", "/var/tmp/one/vnm/vlan.rb:95:in `deactivate'", "/var/tmp/one/vnm/bridge/clean:30:in `<main>'"]
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: ExitCode: 1
Fri Nov 29 09:17:59 2019 [Z0][VMM][I]: Failed to execute network driver operation: clean.
Fri Nov 29 09:17:59 2019 [Z0][VMM][E]: Error shutting down VM: bridge: -
Fri Nov 29 09:17:59 2019 [Z0][VM][I]: New LCM state is RUNNING
Progress Status
- Branch created
- Code committed to development branch
- Testing - QA
- Documentation
- Release notes - resolved issues, compatibility, known issues
- Code committed to upstream release/hotfix branches
- Documentation committed to upstream release/hotfix branches
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Best practices for half-bridge gate drivers for HEV/EV
Traditional half-bridge driver architecture vs. new UCC2792x. • Using half-bridge driver for high side switch control ... Missing pulse. Partial pulse.
Read more >TLE986x/TLE987x Bridge Driver Application Note
The bridge driver sequencer functionality is able to adjust the current sources to modulate the switching behavior of the connected MOSFET. The ...
Read more >Design Fundamentals of Implementing an Isolated Half-Bridge ...
The typical approach to implementing the isolated half-bridge gate drive function is to use an optocoupler for isolation, followed by a high voltage...
Read more >Driver dies after GPS leads him to bridge washed out years ...
Troopers: Man dies after car plunges off washed-out bridge with barricades removed in North Carolina.
Read more >Father of 2 killed in crash on 'bridge to nowhere,' troopers say
The driver of the Jeep, identified as Philip John Paxson, was found dead inside the vehicle. Troopers believe Paxson crashed around 11 p.m. ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The bug happens when virtual network is using
VNM_MAD = fw/bridge
andkeep_empty_bridge
isn’ttrue
. When this PR got merged it didn’t add the extracted function to theNoVLANDriver
child class and the deactivate action triggered the dummyVLANDriver
function which throws an error.Nice to hear this, I don’t have time to prove it is a bug.