[KVM] Enable PVLAN support on L2 networks#4040
Conversation
9251cf5 to
c14dbf6
Compare
| s_logger.info("Programmed pvlan for vm with mac " + vmMac); | ||
| } | ||
| } catch (final LibvirtException e) { | ||
| } catch (final Exception e) { |
There was a problem hiding this comment.
no pokemon catch-um-all
3ebb743 to
83ac172
Compare
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
DaanHoogland
left a comment
There was a problem hiding this comment.
good code! some questions : why is a test removed and why do we need a separate hypervisor specific script . Can't the script determine the host type and run based on that?
|
|
||
| @SuppressWarnings("unchecked") | ||
| @Test | ||
| public void testPvlanSetupCommandDhcpException() { |
There was a problem hiding this comment.
why is this test no longer sensible?
There was a problem hiding this comment.
Since the old way used to call the libvirt library, it could potentially throw a LibvirtException. Now that it doesn't, theres no need to catch or test whether the exception has occoured
| exit 2 | ||
| } | ||
|
|
||
| echo "/usr/share/cloudstack-common/scripts/vm/network/ovs-pvlan-kvm-dhcp-host.sh $@ " >> /tmp/pvlan |
There was a problem hiding this comment.
or `echo "$0 $@ " >>/tmp/pvlan' ?
There was a problem hiding this comment.
Removed! Was there just for logging
| exit 2 | ||
| } | ||
|
|
||
| echo "/usr/share/cloudstack-common/scripts/vm/network/ovs-pvlan-kvm-vm.sh $@ " >> /tmp/pvlan |
There was a problem hiding this comment.
And the reason we need hypervisor-specific code is that on KVM, we need OVS > 2.9.2 whereas, on Xen, it comes bundled with 2.6. I've left the existing functionality on Xen but enhanced KVM to support community pvlans also which uses features only available in OVS > 2.9.2. Having two separate codes makes it easier to separate out and debug any issues
83ac172 to
076d2d7
Compare
|
Trillian test result (tid-1504)
|
d7cec39 to
2cc200d
Compare
|
Packaging result: ✔centos7 ✔debian. JID-1768 |
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔debian. JID-1771 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2479)
|
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-1789 |
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-1790 |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-2518)
|
Description
This is an extention of #3732 for kvm.
This is restricted to ovs > 2.9.2
Since Xen uses ovs 2.6, pvlan is unsupported.
This also fixes issues of vms on the same pvlan unable to communicate if they're on the same host
Types of changes
How Has This Been Tested?