Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LXD not handling nic removal from openvswitch bridges #3097

Merged
merged 6 commits into from
Mar 25, 2019

Conversation

dann1
Copy link
Contributor

@dann1 dann1 commented Mar 19, 2019

Unlike libvirt which handles the ports removal on nic detach action nad powerofss, LXD just handles nic port creation on start and nic attach. The drivers have been updated to remove ports on unhandled actions if nic matches ovswitch driver.

Fixes #3058

@dann1 dann1 requested a review from rsmontero March 19, 2019 18:50
@dann1
Copy link
Contributor Author

dann1 commented Mar 19, 2019

Applies to master as well

@@ -177,6 +177,11 @@ def start(options = {})

def stop(options = { :timeout => 120 })
change_state(__method__, options)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be called through the pre/post/clean scripts. This code should be moved to the owsirch network drivers

@rsmontero rsmontero merged commit 31a1cb9 into OpenNebula:one-5.8 Mar 25, 2019
rsmontero pushed a commit that referenced this pull request Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants