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
Support multiple networks in OpenStack driver #376
Conversation
Hi guys, Can you PTAL at these changes on OpenStack? @afritzler @mandelsoft @MartinWeindel |
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.
/lgtm & thanks a lot for this PR
@zuzzas can you elaborate a little bin on your use case for this PR. As we are not using multiple networks for our VMs it would be interesting to learn how you guys are using the MCM.
go.mod
Outdated
@@ -26,7 +26,7 @@ require ( | |||
github.com/google/go-cmp v0.2.0 // indirect | |||
github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf // indirect | |||
github.com/googleapis/gnostic v0.2.0 // indirect | |||
github.com/gophercloud/gophercloud v0.0.0-20190212181753-892256c46858 | |||
github.com/gophercloud/gophercloud v0.4.0 |
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.
Can we bump this to a newer version?
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.
e.g v0.7.0
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.
It is done.
ed00bc4
to
cc6ea33
Compare
@afritzler Here are two common use cases:
By having a list of networks to attach to a VM, each with options, we can satisfy those cases and so much more. |
There are lint checks failing. Can you please fix them?
|
Signed-off-by: Andrey Klimentyev <andrey.klimentyev@flant.com>
cc6ea33
to
f5f2a03
Compare
@prashanth26 |
@zuzzas thanks for the PR. CI seems to be flaking, I have re-triggered it, once tests are passing I shall merge it. |
|
||
nwClient, err := d.createNeutronClient() | ||
if err != nil { | ||
return "", "", d.deleteOnFail(err) |
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.
It must not be used here, since d.MachineID
is not set here.
/cc @hardikdr
What this PR does / why we need it:
This PR introduces a new field to the OpenstackMachineClassSpec, which allows an operator to define multiple networks to be attached to a VM. New implementation coexists with the previous one and does not require an API version bump.
Release note: