-
Notifications
You must be signed in to change notification settings - Fork 5
Add plumbing for interface types network and bridge + tests
#106
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
Add plumbing for interface types network and bridge + tests
#106
Conversation
9fc3c9a to
9bdfb26
Compare
network and bridge + tests
9bdfb26 to
cce7fef
Compare
Not use anyway as we prefer static IPs in the guest for much quicker boots. Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
9af363c to
2d88976
Compare
506239e to
a928928
Compare
This refactors the hotplug test in a way that it ssh's into the VM
via the hotplugged interface. As a prerequisite, we have to assign
the tap device that libvirt creates into an existing bridge with a
valid IP range. I decided to reuse bridge br0 for that.
To better identify test networks, I also streamlined the MAC
addresses. Now, they match the test IP net:
IP: 192.168.X.0/24 => MAC: ...::0X
192.168.1.0/24 => MAC: ...::01
192.168.2.0/24 => MAC: ...::02
...
A document summarizing all guest/test networks follows in a
subsequent commit.
Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
a928928 to
86b5cd4
Compare
|
Very very nit, feel free to ignore, but the message of commit "tests: hotplug interface connected to libvirt managed network" contains odd whitespace (double space). From the commit's message: |
This is relevant for interfaces that use the type 'network' in their XML definition. Although not used by OpenStack (they use type 'bridge' which follows later in this PR), it is good to test this. Co-authored-by: Pascal Scholz <[email protected]> Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
86b5cd4 to
248db89
Compare
Adding a network interface of type 'network' that can be hotplugged. Also, using it in the hotplug test. Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Adding a network interface of type 'bridge' that can be hotplugged. Also, using it in the hotplug test. This is the technology that OpenStack uses for setting up networking. Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
Signed-off-by: Philipp Schuster <[email protected]> On-behalf-of: SAP [email protected]
248db89 to
ed8b899
Compare
hertrste
left a comment
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.
Looks very nice and concise now :)
scholzp
left a comment
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.
Nicely done! I especially like that you took the time to write proper documentation of the network setup! :)
bridge(what OpenStack uses)network(libvirt managed networks)Hints for Reviewers
The table in the last commit (in the markdown document) will help you a lot reviewing this!