cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cloudstack] rhtyd commented on a change in pull request #3227: ubuntu16: fix three issues with ubuntu 16.04 hosts
Date Mon, 08 Apr 2019 11:18:43 GMT
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_r272995896
 
 

 ##########
 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:
   We still do support initd with centos6 packages.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message