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
Lxd fixes #5164
Conversation
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
@@ -27,6 +27,8 @@ const ( | |||
StatusCancelled = "Canceled" | |||
StatusSuccess = "Success" | |||
StatusFailure = "Failure" | |||
|
|||
DefaultLXDBridge = "lxdbr0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alignment; go fmt?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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>
This is against the wrong branch. |
(Review request: http://reviews.vapour.ws/r/4598/)