ustcweizhou 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_r265562123
##########
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:
@rhtyd We have destroyed the default network and did not see any issue in
our production.
it seems to break packaging/debian/cloudstack-agent.init, however, as
/etc/init.d/cloudstack-agent is not in use any more after systemd changes, it
should not be a problem.
----------------------------------------------------------------
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