mirror of https://github.com/apache/cloudstack.git
bug 11583: it's a timing issue, if you hot plug a nic to domR, need to make sure the device is shown up in the domr, then you can programming ipassoc rules. Wait 20s after hot plug the nic, then programming the ipassoc rules
status 11583: resolved fixed
This commit is contained in:
parent
dce06146af
commit
45b7e13529
|
|
@ -1105,8 +1105,14 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||
InterfaceDef nic = createVif(conn, nicTO, InterfaceDef.nicModel.VIRTIO);
|
||||
Domain vm = getDomain(conn, vmName);
|
||||
vm.attachDevice(nic.toString());
|
||||
|
||||
try {
|
||||
Thread.sleep(10000);
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public Answer execute(IpAssocCommand cmd) {
|
||||
String routerName = cmd.getAccessDetail(NetworkElementCommand.ROUTER_NAME);
|
||||
String routerIp = cmd.getAccessDetail(NetworkElementCommand.ROUTER_IP);
|
||||
|
|
|
|||
Loading…
Reference in New Issue