In 4.4, Can somebody explain, why use "OVSTunnelxxx" for GRE tunnel device, and 
not "cloudbr1" ?
When create VM,  this will result an exception:

2014-07-23 21:03:35,886 WARN  [kvm.resource.LibvirtComputingResource] 
(agentRequest-Handler-5:null) LibvirtException 
org.libvirt.LibvirtException: Cannot get interface MTU on 'OVSTunnel460': no 
such device                               
        at org.libvirt.ErrorHandler.processError(Unknown Source)                
                                     
        at org.libvirt.Connect.processError(Unknown Source)                     
                                     
        at org.libvirt.Connect.processError(Unknown Source)                     
                                     
        at org.libvirt.Connect.domainCreateXML(Unknown Source)                  
                                     
        at 
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.startVM(LibvirtComputingResource.java:1239)
    
        at 
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:3798)
    
        at 
com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:133
3)                                                                              
                                     
        at com.cloud.agent.Agent.processRequest(Agent.java:501)                 
                                     
        at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:808)     
                                     
        at com.cloud.utils.nio.Task.run(Task.java:84)                           
                                     
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 
                          
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 
                          
        at java.lang.Thread.run(Thread.java:722)  

I found code as below:
public InterfaceDef plug(NicTO nic, String guestOsType)
} else if (nic.getBroadcastType() == Networks.BroadcastDomainType.Vswitch) {    
            String vnetId = 
Networks.BroadcastDomainType.getValue(nic.getBroadcastUri());
                String brName = "OVSTunnel" + vnetId;

Reply via email to