rhtyd commented on a change in pull request #3227: ubuntu16: fix three issues
with ubuntu 16.04 hosts
URL: https://github.com/apache/cloudstack/pull/3227#discussion_r265523654
##########
File path:
plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
##########
@@ -914,6 +915,20 @@ public boolean configure(final String name, final
Map<String, Object> params) th
throw new CloudRuntimeException(e.getMessage());
}
+ // destroy default network, see
https://libvirt.org/sources/java/javadoc/org/libvirt/Network.html
+ try {
+ Network network = conn.networkLookupByName("default");
+ s_logger.debug("Found libvirt default network, destroying it and
setting autostart to false");
+ if (network.isActive() == 1) {
+ network.destroy();
+ }
+ if (network.getAutostart()) {
Review comment:
If we destroy the network and set autostart to false, would that cause an
issue?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services