[jira] [Updated] (CLOUDSTACK-6881) MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Animesh Chaturvedi updated CLOUDSTACK-6881: --- Fix Version/s: (was: 4.5.0) Future > MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient > address capacity > > > Key: CLOUDSTACK-6881 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6881 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server >Affects Versions: 4.4.0 >Reporter: Parth Jagirdar > Fix For: Future > > > We need a mechanism to validate 0's followed by a number in IPv4 addressing. > To reproduce, deploy a VM with static IPv4 where there is a single digit > number followed by a 0. > Example, 10.2.2.02 > API should return an appropriate error, This validation can be performed > using JS as a preventive method. > Refer to following.. Observed in dual stack. > 2014-06-09 11:44:47,608 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-SystemCapability from cache: true > 2014-06-09 11:44:47,608 DEBUG [c.c.u.AccountManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Root Access granted to > Acct[298be2e2-df9d-11e3-98fe-ced18bec4952-admin] by > RoleBasedEntityAccessChecker > 2014-06-09 11:44:47,609 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-DomainCapability from cache: false > 2014-06-09 11:44:47,610 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-DomainResourceCapability from cache: false > 2014-06-09 11:44:47,611 DEBUG [c.c.n.NetworkModelImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Service SecurityGroup is not > supported in the network id=222 > 2014-06-09 11:44:47,626 DEBUG [c.c.v.UserVmManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating in the DB for vm > 2014-06-09 11:44:47,636 DEBUG [c.c.v.VirtualMachineManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating entries for VM: > VM[User|i-2-143-VM] > 2014-06-09 11:44:47,637 DEBUG [c.c.v.VirtualMachineManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nics for > VM[User|i-2-143-VM] > 2014-06-09 11:44:47,638 DEBUG [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nic for vm > VM[User|i-2-143-VM] in network > Ntwk[6c04eff1-972d-4119-bd97-e26c39d2bc0c|Guest|7] with requested profile > NicProfile[0-0-null-null-null > 2014-06-09 11:44:47,640 WARN [c.c.n.IpAddressManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Unable to get ip adress in zone > id=1, vlanId id=[1, 21], network id=222: requested ip 10.2.2.09 is not > available > 2014-06-09 11:44:47,641 DEBUG [c.c.u.d.T.Transaction] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Rolling back the transaction: > Time = 21 Name = catalina-exec-7; called by > -TransactionLegacy.rollback:903-TransactionLegacy.removeUpTo:846-TransactionLegacy.close:670-Transaction.execute:41-IpAddressManagerImpl.fetchNewPublicIp:661-IpAddressManagerImpl.assignPublicIpAddress:648-IpAddressManagerImpl$11.doInTransactionWithoutResult:1853-TransactionCallbackWithExceptionNoReturn.doInTransaction:25-TransactionCallbackWithExceptionNoReturn.doInTransaction:21-Transaction.execute:37-IpAddressManagerImpl.allocateDirectIp:1831-DirectNetworkGuru$1.doInTransactionWithoutResult:246 > 2014-06-09 11:44:47,650 INFO [o.a.c.a.c.u.v.DeployVMCmd] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) > com.cloud.exception.InsufficientAddressCapacityException: Insufficient > address capacityScope=interface com.cloud.dc.DataCenter; id=1 > 2014-06-09 11:44:47,650 TRACE [o.a.c.a.c.u.v.DeployVMCmd] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Insufficient address capacity > com.cloud.exception.InsufficientAddressCapacityException: Insufficient > address capacityScope=interface com.cloud.dc.DataCenter; id=1 > at > com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:750) > at > com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:661) > at com.cloud.utils.db.Transaction.execute(Transaction.java:37) > at > com.cloud.network.IpAddressManagerImpl.fetchNewPublicIp(IpAddressManagerImpl.java:661) > at > com.cloud.network.IpAddressManagerImpl.assignPublicIpAddress(IpAddressManagerImpl.java:648) > at > com.cloud.network.IpAddressManagerImpl$11.doInTransactionWithoutResult(IpAddressManagerImpl.java:1853) > at > com.clo
[jira] [Updated] (CLOUDSTACK-6881) MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Parth Jagirdar updated CLOUDSTACK-6881: --- Summary: MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity (was: MS:IPv6: Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity) > MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient > address capacity > > > Key: CLOUDSTACK-6881 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6881 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server >Affects Versions: 4.4.0 >Reporter: Parth Jagirdar > > We need a mechanism to remove 0's followed by a number in IPv4 addressing. > To reproduce, deploy a VM with static IPv4 where there is a single digit > number followed by a 0. > Example, 10.2.2.02 > Refer to following.. Observed in dual stack. > 2014-06-09 11:44:47,608 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-SystemCapability from cache: true > 2014-06-09 11:44:47,608 DEBUG [c.c.u.AccountManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Root Access granted to > Acct[298be2e2-df9d-11e3-98fe-ced18bec4952-admin] by > RoleBasedEntityAccessChecker > 2014-06-09 11:44:47,609 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-DomainCapability from cache: false > 2014-06-09 11:44:47,610 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-DomainResourceCapability from cache: false > 2014-06-09 11:44:47,611 DEBUG [c.c.n.NetworkModelImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Service SecurityGroup is not > supported in the network id=222 > 2014-06-09 11:44:47,626 DEBUG [c.c.v.UserVmManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating in the DB for vm > 2014-06-09 11:44:47,636 DEBUG [c.c.v.VirtualMachineManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating entries for VM: > VM[User|i-2-143-VM] > 2014-06-09 11:44:47,637 DEBUG [c.c.v.VirtualMachineManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nics for > VM[User|i-2-143-VM] > 2014-06-09 11:44:47,638 DEBUG [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nic for vm > VM[User|i-2-143-VM] in network > Ntwk[6c04eff1-972d-4119-bd97-e26c39d2bc0c|Guest|7] with requested profile > NicProfile[0-0-null-null-null > 2014-06-09 11:44:47,640 WARN [c.c.n.IpAddressManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Unable to get ip adress in zone > id=1, vlanId id=[1, 21], network id=222: requested ip 10.2.2.09 is not > available > 2014-06-09 11:44:47,641 DEBUG [c.c.u.d.T.Transaction] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Rolling back the transaction: > Time = 21 Name = catalina-exec-7; called by > -TransactionLegacy.rollback:903-TransactionLegacy.removeUpTo:846-TransactionLegacy.close:670-Transaction.execute:41-IpAddressManagerImpl.fetchNewPublicIp:661-IpAddressManagerImpl.assignPublicIpAddress:648-IpAddressManagerImpl$11.doInTransactionWithoutResult:1853-TransactionCallbackWithExceptionNoReturn.doInTransaction:25-TransactionCallbackWithExceptionNoReturn.doInTransaction:21-Transaction.execute:37-IpAddressManagerImpl.allocateDirectIp:1831-DirectNetworkGuru$1.doInTransactionWithoutResult:246 > 2014-06-09 11:44:47,650 INFO [o.a.c.a.c.u.v.DeployVMCmd] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) > com.cloud.exception.InsufficientAddressCapacityException: Insufficient > address capacityScope=interface com.cloud.dc.DataCenter; id=1 > 2014-06-09 11:44:47,650 TRACE [o.a.c.a.c.u.v.DeployVMCmd] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Insufficient address capacity > com.cloud.exception.InsufficientAddressCapacityException: Insufficient > address capacityScope=interface com.cloud.dc.DataCenter; id=1 > at > com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:750) > at > com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:661) > at com.cloud.utils.db.Transaction.execute(Transaction.java:37) > at > com.cloud.network.IpAddressManagerImpl.fetchNewPublicIp(IpAddressManagerImpl.java:661) > at > com.cloud.network.IpAddressManagerImpl.assignPublicIpAddress(IpAddressManagerImpl.java:648) > at > com.cloud.network.IpAddressManagerImpl$11.doInTransactionWithoutResult(IpAddressManagerImpl.java:1853) > at > com.cloud.u
[jira] [Updated] (CLOUDSTACK-6881) MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Parth Jagirdar updated CLOUDSTACK-6881: --- Description: We need a mechanism to validate 0's followed by a number in IPv4 addressing. To reproduce, deploy a VM with static IPv4 where there is a single digit number followed by a 0. Example, 10.2.2.02 API should return an appropriate error, Alternatively this validation can be performed using JS. Refer to following.. Observed in dual stack. 2014-06-09 11:44:47,608 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for 2-null-null-SystemCapability from cache: true 2014-06-09 11:44:47,608 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Root Access granted to Acct[298be2e2-df9d-11e3-98fe-ced18bec4952-admin] by RoleBasedEntityAccessChecker 2014-06-09 11:44:47,609 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for 2-null-null-DomainCapability from cache: false 2014-06-09 11:44:47,610 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for 2-null-null-DomainResourceCapability from cache: false 2014-06-09 11:44:47,611 DEBUG [c.c.n.NetworkModelImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Service SecurityGroup is not supported in the network id=222 2014-06-09 11:44:47,626 DEBUG [c.c.v.UserVmManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating in the DB for vm 2014-06-09 11:44:47,636 DEBUG [c.c.v.VirtualMachineManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating entries for VM: VM[User|i-2-143-VM] 2014-06-09 11:44:47,637 DEBUG [c.c.v.VirtualMachineManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nics for VM[User|i-2-143-VM] 2014-06-09 11:44:47,638 DEBUG [o.a.c.e.o.NetworkOrchestrator] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nic for vm VM[User|i-2-143-VM] in network Ntwk[6c04eff1-972d-4119-bd97-e26c39d2bc0c|Guest|7] with requested profile NicProfile[0-0-null-null-null 2014-06-09 11:44:47,640 WARN [c.c.n.IpAddressManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Unable to get ip adress in zone id=1, vlanId id=[1, 21], network id=222: requested ip 10.2.2.09 is not available 2014-06-09 11:44:47,641 DEBUG [c.c.u.d.T.Transaction] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Rolling back the transaction: Time = 21 Name = catalina-exec-7; called by -TransactionLegacy.rollback:903-TransactionLegacy.removeUpTo:846-TransactionLegacy.close:670-Transaction.execute:41-IpAddressManagerImpl.fetchNewPublicIp:661-IpAddressManagerImpl.assignPublicIpAddress:648-IpAddressManagerImpl$11.doInTransactionWithoutResult:1853-TransactionCallbackWithExceptionNoReturn.doInTransaction:25-TransactionCallbackWithExceptionNoReturn.doInTransaction:21-Transaction.execute:37-IpAddressManagerImpl.allocateDirectIp:1831-DirectNetworkGuru$1.doInTransactionWithoutResult:246 2014-06-09 11:44:47,650 INFO [o.a.c.a.c.u.v.DeployVMCmd] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) com.cloud.exception.InsufficientAddressCapacityException: Insufficient address capacityScope=interface com.cloud.dc.DataCenter; id=1 2014-06-09 11:44:47,650 TRACE [o.a.c.a.c.u.v.DeployVMCmd] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Insufficient address capacity com.cloud.exception.InsufficientAddressCapacityException: Insufficient address capacityScope=interface com.cloud.dc.DataCenter; id=1 at com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:750) at com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:661) at com.cloud.utils.db.Transaction.execute(Transaction.java:37) at com.cloud.network.IpAddressManagerImpl.fetchNewPublicIp(IpAddressManagerImpl.java:661) at com.cloud.network.IpAddressManagerImpl.assignPublicIpAddress(IpAddressManagerImpl.java:648) at com.cloud.network.IpAddressManagerImpl$11.doInTransactionWithoutResult(IpAddressManagerImpl.java:1853) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(TransactionCallbackWithExceptionNoReturn.java:25) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(TransactionCallbackWithExceptionNoReturn.java:21) at com.cloud.utils.db.Transaction.execute(Transaction.java:37) at com.cloud.network.IpAddressManagerImpl.allocateDirectIp(IpAddressManagerImpl.java:1831) at com.cloud.network.guru.DirectNetworkGuru$1.doInTransactionWithoutResult(DirectNetworkGuru.java:246) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(TransactionCallbackWithExceptionNoReturn.java:25) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(TransactionCallbackWi
[jira] [Updated] (CLOUDSTACK-6881) MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Parth Jagirdar updated CLOUDSTACK-6881: --- Description: We need a mechanism to validate 0's followed by a number in IPv4 addressing. To reproduce, deploy a VM with static IPv4 where there is a single digit number followed by a 0. Example, 10.2.2.02 API should return an appropriate error, This validation can be performed using JS as a preventive method. Refer to following.. Observed in dual stack. 2014-06-09 11:44:47,608 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for 2-null-null-SystemCapability from cache: true 2014-06-09 11:44:47,608 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Root Access granted to Acct[298be2e2-df9d-11e3-98fe-ced18bec4952-admin] by RoleBasedEntityAccessChecker 2014-06-09 11:44:47,609 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for 2-null-null-DomainCapability from cache: false 2014-06-09 11:44:47,610 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for 2-null-null-DomainResourceCapability from cache: false 2014-06-09 11:44:47,611 DEBUG [c.c.n.NetworkModelImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Service SecurityGroup is not supported in the network id=222 2014-06-09 11:44:47,626 DEBUG [c.c.v.UserVmManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating in the DB for vm 2014-06-09 11:44:47,636 DEBUG [c.c.v.VirtualMachineManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating entries for VM: VM[User|i-2-143-VM] 2014-06-09 11:44:47,637 DEBUG [c.c.v.VirtualMachineManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nics for VM[User|i-2-143-VM] 2014-06-09 11:44:47,638 DEBUG [o.a.c.e.o.NetworkOrchestrator] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nic for vm VM[User|i-2-143-VM] in network Ntwk[6c04eff1-972d-4119-bd97-e26c39d2bc0c|Guest|7] with requested profile NicProfile[0-0-null-null-null 2014-06-09 11:44:47,640 WARN [c.c.n.IpAddressManagerImpl] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Unable to get ip adress in zone id=1, vlanId id=[1, 21], network id=222: requested ip 10.2.2.09 is not available 2014-06-09 11:44:47,641 DEBUG [c.c.u.d.T.Transaction] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Rolling back the transaction: Time = 21 Name = catalina-exec-7; called by -TransactionLegacy.rollback:903-TransactionLegacy.removeUpTo:846-TransactionLegacy.close:670-Transaction.execute:41-IpAddressManagerImpl.fetchNewPublicIp:661-IpAddressManagerImpl.assignPublicIpAddress:648-IpAddressManagerImpl$11.doInTransactionWithoutResult:1853-TransactionCallbackWithExceptionNoReturn.doInTransaction:25-TransactionCallbackWithExceptionNoReturn.doInTransaction:21-Transaction.execute:37-IpAddressManagerImpl.allocateDirectIp:1831-DirectNetworkGuru$1.doInTransactionWithoutResult:246 2014-06-09 11:44:47,650 INFO [o.a.c.a.c.u.v.DeployVMCmd] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) com.cloud.exception.InsufficientAddressCapacityException: Insufficient address capacityScope=interface com.cloud.dc.DataCenter; id=1 2014-06-09 11:44:47,650 TRACE [o.a.c.a.c.u.v.DeployVMCmd] (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Insufficient address capacity com.cloud.exception.InsufficientAddressCapacityException: Insufficient address capacityScope=interface com.cloud.dc.DataCenter; id=1 at com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:750) at com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:661) at com.cloud.utils.db.Transaction.execute(Transaction.java:37) at com.cloud.network.IpAddressManagerImpl.fetchNewPublicIp(IpAddressManagerImpl.java:661) at com.cloud.network.IpAddressManagerImpl.assignPublicIpAddress(IpAddressManagerImpl.java:648) at com.cloud.network.IpAddressManagerImpl$11.doInTransactionWithoutResult(IpAddressManagerImpl.java:1853) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(TransactionCallbackWithExceptionNoReturn.java:25) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(TransactionCallbackWithExceptionNoReturn.java:21) at com.cloud.utils.db.Transaction.execute(Transaction.java:37) at com.cloud.network.IpAddressManagerImpl.allocateDirectIp(IpAddressManagerImpl.java:1831) at com.cloud.network.guru.DirectNetworkGuru$1.doInTransactionWithoutResult(DirectNetworkGuru.java:246) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(TransactionCallbackWithExceptionNoReturn.java:25) at com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(TransactionC
[jira] [Updated] (CLOUDSTACK-6881) MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity
[ https://issues.apache.org/jira/browse/CLOUDSTACK-6881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sheng Yang updated CLOUDSTACK-6881: --- Assignee: (was: Sheng Yang) > MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient > address capacity > > > Key: CLOUDSTACK-6881 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6881 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: Management Server >Affects Versions: 4.4.0 >Reporter: Parth Jagirdar > > We need a mechanism to validate 0's followed by a number in IPv4 addressing. > To reproduce, deploy a VM with static IPv4 where there is a single digit > number followed by a 0. > Example, 10.2.2.02 > API should return an appropriate error, This validation can be performed > using JS as a preventive method. > Refer to following.. Observed in dual stack. > 2014-06-09 11:44:47,608 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-SystemCapability from cache: true > 2014-06-09 11:44:47,608 DEBUG [c.c.u.AccountManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Root Access granted to > Acct[298be2e2-df9d-11e3-98fe-ced18bec4952-admin] by > RoleBasedEntityAccessChecker > 2014-06-09 11:44:47,609 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-DomainCapability from cache: false > 2014-06-09 11:44:47,610 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) IAM access check for > 2-null-null-DomainResourceCapability from cache: false > 2014-06-09 11:44:47,611 DEBUG [c.c.n.NetworkModelImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Service SecurityGroup is not > supported in the network id=222 > 2014-06-09 11:44:47,626 DEBUG [c.c.v.UserVmManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating in the DB for vm > 2014-06-09 11:44:47,636 DEBUG [c.c.v.VirtualMachineManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating entries for VM: > VM[User|i-2-143-VM] > 2014-06-09 11:44:47,637 DEBUG [c.c.v.VirtualMachineManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nics for > VM[User|i-2-143-VM] > 2014-06-09 11:44:47,638 DEBUG [o.a.c.e.o.NetworkOrchestrator] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Allocating nic for vm > VM[User|i-2-143-VM] in network > Ntwk[6c04eff1-972d-4119-bd97-e26c39d2bc0c|Guest|7] with requested profile > NicProfile[0-0-null-null-null > 2014-06-09 11:44:47,640 WARN [c.c.n.IpAddressManagerImpl] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Unable to get ip adress in zone > id=1, vlanId id=[1, 21], network id=222: requested ip 10.2.2.09 is not > available > 2014-06-09 11:44:47,641 DEBUG [c.c.u.d.T.Transaction] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Rolling back the transaction: > Time = 21 Name = catalina-exec-7; called by > -TransactionLegacy.rollback:903-TransactionLegacy.removeUpTo:846-TransactionLegacy.close:670-Transaction.execute:41-IpAddressManagerImpl.fetchNewPublicIp:661-IpAddressManagerImpl.assignPublicIpAddress:648-IpAddressManagerImpl$11.doInTransactionWithoutResult:1853-TransactionCallbackWithExceptionNoReturn.doInTransaction:25-TransactionCallbackWithExceptionNoReturn.doInTransaction:21-Transaction.execute:37-IpAddressManagerImpl.allocateDirectIp:1831-DirectNetworkGuru$1.doInTransactionWithoutResult:246 > 2014-06-09 11:44:47,650 INFO [o.a.c.a.c.u.v.DeployVMCmd] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) > com.cloud.exception.InsufficientAddressCapacityException: Insufficient > address capacityScope=interface com.cloud.dc.DataCenter; id=1 > 2014-06-09 11:44:47,650 TRACE [o.a.c.a.c.u.v.DeployVMCmd] > (catalina-exec-7:ctx-8d87d71b ctx-fc6ae1da) Insufficient address capacity > com.cloud.exception.InsufficientAddressCapacityException: Insufficient > address capacityScope=interface com.cloud.dc.DataCenter; id=1 > at > com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:750) > at > com.cloud.network.IpAddressManagerImpl$2.doInTransaction(IpAddressManagerImpl.java:661) > at com.cloud.utils.db.Transaction.execute(Transaction.java:37) > at > com.cloud.network.IpAddressManagerImpl.fetchNewPublicIp(IpAddressManagerImpl.java:661) > at > com.cloud.network.IpAddressManagerImpl.assignPublicIpAddress(IpAddressManagerImpl.java:648) > at > com.cloud.network.IpAddressManagerImpl$11.doInTransactionWithoutResult(IpAddressManagerImpl.java:1853) > at > com.cloud.utils.db.TransactionCallbackWithExceptionNoReturn.doInTransaction(Tran