mirror of https://github.com/apache/cloudstack.git
bug 9879: throw insufficient address capacity exception with pod information in it when fail to allocate public ip address in specific pod
status 9879: resolved fixed
This commit is contained in:
parent
a69ea1f90d
commit
308cbf91fc
|
|
@ -58,6 +58,7 @@ import com.cloud.dc.Vlan.VlanType;
|
|||
import com.cloud.dc.VlanVO;
|
||||
import com.cloud.dc.dao.AccountVlanMapDao;
|
||||
import com.cloud.dc.dao.DataCenterDao;
|
||||
import com.cloud.dc.dao.HostPodDao;
|
||||
import com.cloud.dc.dao.PodVlanMapDao;
|
||||
import com.cloud.dc.dao.VlanDao;
|
||||
import com.cloud.deploy.DataCenterDeployment;
|
||||
|
|
@ -261,6 +262,9 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
|
|||
List<IPAddressVO> addrs = _ipAddressDao.lockRows(sc, filter, true);
|
||||
|
||||
if (addrs.size() == 0) {
|
||||
if (podId != null) {
|
||||
throw new InsufficientAddressCapacityException("Insufficient address capacity", HostPodDao.class, podId);
|
||||
}
|
||||
throw new InsufficientAddressCapacityException("Insufficient address capacity", DataCenter.class, dcId);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue