System is the owner of the first elastic ip address for the vm

This commit is contained in:
Alena Prokharchyk 2012-01-13 11:01:28 -08:00
parent d5752eca61
commit 359185f567
1 changed files with 1 additions and 1 deletions

View File

@ -3622,7 +3622,7 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
}
s_logger.debug("Allocating elastic ip and enabling static nat for it for the vm " + vm + " in guest network " + guestNetwork);
IpAddress ip = _networkMgr.assignElasticIp(guestNetwork.getId(), vmOwner, false, true);
IpAddress ip = _networkMgr.assignElasticIp(guestNetwork.getId(), _accountMgr.getAccount(Account.ACCOUNT_ID_SYSTEM), false, true);
if (ip == null) {
s_logger.warn("Failed to allocate elastic ip as a part of vm deployment for vm " + vm);
return false;