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

Lxd fixes #5164

Closed
wants to merge 3 commits into from
Closed

Lxd fixes #5164

wants to merge 3 commits into from

Conversation

tych0
Copy link
Contributor

@tych0 tych0 commented Apr 14, 2016

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
@@ -27,6 +27,8 @@ const (
StatusCancelled = "Canceled"
StatusSuccess = "Success"
StatusFailure = "Failure"

DefaultLXDBridge = "lxdbr0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Alignment; go fmt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't need it because of the \n.

The fallback was buggy: lxdbr0 no longer starts automatically any more, so
we can't assume that statting the file exists.

This code is all mostly useless anyway as it was mostly for the transition
from lxcbr0 to lxdbr0. Let's just get rid of any concept of falling back
and just do what we did before.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
@@ -54,13 +54,9 @@ func (broker *lxdBroker) StartInstance(args environs.StartInstanceParams) (*envi
return nil, errors.New("starting lxd containers with networks is not supported yet")
}
machineId := args.InstanceConfig.MachineId
bridgeDevice := broker.agentConfig.Value(agent.LxcBridge)
bridgeDevice := broker.agentConfig.Value(agent.LxdBridge)

Choose a reason for hiding this comment

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

FWIW, as discussed on IRC - agent.LxcBridge is always empty, as it's not getting populated by providercommon.Bootstrap() used by most providers. So the if below is always going to succeed.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
@tych0
Copy link
Contributor Author

tych0 commented Apr 14, 2016

This is against the wrong branch.

@tych0 tych0 closed this Apr 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants