question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing delete_vlan_dev function on bridge driver

See original GitHub issue

Description 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dann1commented, Dec 15, 2019

The bug happens when virtual network is using VNM_MAD = fw/bridge and keep_empty_bridge isn’t true. When this PR got merged it didn’t add the extracted function to the NoVLANDriver child class and the deactivate action triggered the dummy VLANDriver function which throws an error.

0reactions
feldsamcommented, Dec 13, 2019

Nice to hear this, I don’t have time to prove it is a bug.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found