[jira] [Updated] (CLOUDSTACK-6881) MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity

2014-06-09 Thread Parth Jagirdar (JIRA)

 [ 
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

2014-06-09 Thread Parth Jagirdar (JIRA)

 [ 
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:IPv6: Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity

2014-06-09 Thread Parth Jagirdar (JIRA)

 [ 
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 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.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(TransactionCallbackWithExceptionNoReturn.java:21)
at com.cloud.utils.db.Transaction.execute(Transaction.java:37)

[jira] [Updated] (CLOUDSTACK-6881) MS:IPv4 Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity

2014-06-09 Thread Parth Jagirdar (JIRA)

 [ 
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] [Created] (CLOUDSTACK-6881) MS:IPv6: Incorrect IPv4 address as iptonetworklist param raises insufficient address capacity

2014-06-09 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6881:
--

 Summary: MS:IPv6: 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..

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.Transactio

[jira] [Updated] (CLOUDSTACK-6854) MS:IPv6: IP6 network address with notation differences are treated as same IP

2014-06-05 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6854:
---

Attachment: management-server.log.zip
Screen Shot 2014-06-05 at 11.42.09 AM.png

refer to following in logs

2014-06-05 11:09:58,010 DEBUG [c.c.h.x.r.CitrixResourceBase] 
(DirectAgent-339:ctx-6070913d) Executing command in VR:  
/opt/cloud/bin/router_proxy.sh edithosts.sh 169.254.2.224  -m 06:ce:60:00:00:d5 
-4 10.2.2.11 -h VM-1f17d46a-c82e-4d75-b743-b32f08b163af -d 10.2.2.1 -n 
10.2.2.10 -6 fc00:3:1373::2 -u 00:03:00:01:06:ce:60:00:00:d5

> MS:IPv6: IP6 network address with notation differences are treated as same IP
> -
>
> Key: CLOUDSTACK-6854
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6854
> 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
>Priority: Critical
> Attachments: Screen Shot 2014-06-05 at 11.42.09 AM.png, 
> management-server.log.zip
>
>
> Observed in a dual stack deployment,
> A router and a virtual machines were assigned same IP from IPv6 range.
> The only difference was the notation, so it may be the case that notation 
> differences are not being interpret by management server correctly.
> fc00:0003:1373::0002 was assigned to router and
> fc00:3:1373::2 was assigned to the guest VM.
> Please refer to the attached screen and logs.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6854) MS:IPv6: IP6 network address with notation differences are treated as same IP

2014-06-05 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6854:
--

 Summary: MS:IPv6: IP6 network address with notation differences 
are treated as same IP
 Key: CLOUDSTACK-6854
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6854
 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
Priority: Critical


Observed in a dual stack deployment,

A router and a virtual machines were assigned same IP from IPv6 range.

The only difference was the notation, so it may be the case that notation 
differences are not being interpret by management server correctly.

fc00:0003:1373::0002 was assigned to router and
fc00:3:1373::2 was assigned to the guest VM.


Please refer to the attached screen and logs.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6806) UI:API: If VM start is performed when createTemplate from Volume is in progress, user should be notified

2014-05-29 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6806:
--

 Summary: UI:API: If VM start is performed when createTemplate from 
Volume is in progress, user should be notified
 Key: CLOUDSTACK-6806
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6806
 Project: CloudStack
  Issue Type: Improvement
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, UI
Affects Versions: 4.4.0
Reporter: Parth Jagirdar


Perform following,

create a VM,
Create a Template from volume. (The pre-req is VM must be in stopped state)

Verify that the newly listed template is listed on UI.

click on template and check that ready=no. (Template creation still in progress)

While status Ready=no is true, attempt to start the VM.

Observe that upon VM start the template is no longer listed on UI and DB entry 
for this template is removed. (DB entry is entirely removed from table instead 
of marking removed field; this is by design)

Proposal is to::
Notify user upon VM start when Template creation is in progress Instead of 
removing/deleting template without notifying.

If volume is big enough createTemplate can take a while and its very likely 
that user may attempt to start VM.





--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6803) UI:QuickView: Unable to render Quick view overlay on VM snapshots

2014-05-29 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6803:
---

Priority: Critical  (was: Major)

> UI:QuickView: Unable to render Quick view overlay on VM snapshots
> -
>
> Key: CLOUDSTACK-6803
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6803
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: UI
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: qv_overlay.jpg
>
>
> Create a VM,
> Take a Snapshot,
> Click on this Snapshot,
> Hover mouse over Quick View icon,
> Observer Quick View doesn't get rendered.
> ***   Click on the snapshot, observe that user is presented with a black 
> screen. (Due to this behavior, raising bug severity to Critical, As this 
> prevents user to perform operations on VM snapshot from the UI))
> Screen attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6803) UI:QuickView: Unable to render Quick view overlay on VM snapshots

2014-05-29 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6803:
---

Description: 
Create a VM,
Take a Snapshot,
Click on this Snapshot,

Hover mouse over Quick View icon,

Observer Quick View doesn't get rendered.

***   Click on the snapshot, observe that user is presented with a black 
screen. (Due to this behavior, raising bug severity to Critical, As this 
prevents user to perform operations on VM snapshot from the UI))

Screen attached.



  was:
Create a VM,
Take a Snapshot,
Click on this Snapshot,

Hover mouse over Quick View icon,

Observer Quick View doesn't get rendered.

Screen attached.


> UI:QuickView: Unable to render Quick view overlay on VM snapshots
> -
>
> Key: CLOUDSTACK-6803
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6803
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: UI
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
> Attachments: qv_overlay.jpg
>
>
> Create a VM,
> Take a Snapshot,
> Click on this Snapshot,
> Hover mouse over Quick View icon,
> Observer Quick View doesn't get rendered.
> ***   Click on the snapshot, observe that user is presented with a black 
> screen. (Due to this behavior, raising bug severity to Critical, As this 
> prevents user to perform operations on VM snapshot from the UI))
> Screen attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6803) UI:QuickView: Unable to render Quick view overlay on VM snapshots

2014-05-29 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6803:
---

Attachment: qv_overlay.jpg

> UI:QuickView: Unable to render Quick view overlay on VM snapshots
> -
>
> Key: CLOUDSTACK-6803
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6803
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: UI
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
> Attachments: qv_overlay.jpg
>
>
> Create a VM,
> Take a Snapshot,
> Click on this Snapshot,
> Hover mouse over Quick View icon,
> Observer Quick View doesn't get rendered.
> Screen attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6803) UI:QuickView: Unable to render Quick view overlay on VM snapshots

2014-05-29 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6803:
--

 Summary: UI:QuickView: Unable to render Quick view overlay on VM 
snapshots
 Key: CLOUDSTACK-6803
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6803
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: UI
Affects Versions: 4.4.0
Reporter: Parth Jagirdar


Create a VM,
Take a Snapshot,
Click on this Snapshot,

Hover mouse over Quick View icon,

Observer Quick View doesn't get rendered.

Screen attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6696) API: createAccount under sub-domain is created with ROOT domain id

2014-05-17 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6696:
--

 Summary: API: createAccount under sub-domain is created with ROOT 
domain id
 Key: CLOUDSTACK-6696
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6696
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API
Affects Versions: 4.4.0
Reporter: Parth Jagirdar
Priority: Critical


Steps::

Create subdomains D1 under ROOT.
- Go to domains and under ROOT create a new domain D1.

Attempt to create a domain admin user under D1 through UI.
- Go to domains, expand domains and go to D1.
- Select view account from top right of the window.
- Observe there are no accounts.
- Create a new account of type Admin.


Verify this::

-- Click on accounts and you will be able to see this new account with domain 
ROOT. 


As a side effect listAccounts with a sub-domainid will return nothing as all 
the accounts are created using ROOT Domain ID.

A Screen is attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CLOUDSTACK-6696) UI: createAccount under sub-domain is created with ROOT domain id

2014-05-17 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000690#comment-14000690
 ] 

Parth Jagirdar commented on CLOUDSTACK-6696:


Related to https://issues.apache.org/jira/browse/CLOUDSTACK-6379

> UI: createAccount under sub-domain is created with ROOT domain id
> -
>
> Key: CLOUDSTACK-6696
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6696
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: Screen Shot 2014-05-16 at 10.48.49 PM.png
>
>
> Steps::
> Create subdomains D1 under ROOT.
> - Go to domains and under ROOT create a new domain D1.
> Attempt to create a domain admin user under D1 through UI.
> - Go to domains, expand domains and go to D1.
> - Select view account from top right of the window.
> - Observe there are no accounts.
> - Create a new account of type Admin.
> Verify this::
> -- Click on accounts and you will be able to see this new account with domain 
> ROOT. 
> As a side effect listAccounts with a sub-domainid will return nothing as all 
> the accounts are created using ROOT Domain ID.
> A Screen is attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Closed] (CLOUDSTACK-6379) UI:MS: Unable to create a user type Admin under a domain; No API being fired

2014-05-17 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-6379.
--


Jessica, this issue fix is verified,

However there seem to be another bug introduced with the fix.
https://issues.apache.org/jira/browse/CLOUDSTACK-6696


> UI:MS: Unable to create a user type Admin under a domain; No API being fired
> 
>
> Key: CLOUDSTACK-6379
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6379
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Management Server, UI
>Affects Versions: 4.4.0
> Environment: 4.4
>Reporter: Parth Jagirdar
>Assignee: Jessica Wang
>Priority: Critical
> Fix For: 4.4.0
>
> Attachments: domain admin.jpg
>
>
> Create a domain, then create a user under it of type Admin. Observe no API 
> being fired upon clicking OK.
> Also observe Reference Error: rootDomainId not defined.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6696) API: createAccount under sub-domain is created with ROOT domain id

2014-05-16 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6696:
---

Attachment: Screen Shot 2014-05-16 at 10.48.49 PM.png

> API: createAccount under sub-domain is created with ROOT domain id
> --
>
> Key: CLOUDSTACK-6696
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6696
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: Screen Shot 2014-05-16 at 10.48.49 PM.png
>
>
> Steps::
> Create subdomains D1 under ROOT.
> - Go to domains and under ROOT create a new domain D1.
> Attempt to create a domain admin user under D1 through UI.
> - Go to domains, expand domains and go to D1.
> - Select view account from top right of the window.
> - Observe there are no accounts.
> - Create a new account of type Admin.
> Verify this::
> -- Click on accounts and you will be able to see this new account with domain 
> ROOT. 
> As a side effect listAccounts with a sub-domainid will return nothing as all 
> the accounts are created using ROOT Domain ID.
> A Screen is attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6696) UI: createAccount under sub-domain is created with ROOT domain id

2014-05-16 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6696?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6696:
---

Summary: UI: createAccount under sub-domain is created with ROOT domain id  
(was: API: createAccount under sub-domain is created with ROOT domain id)

> UI: createAccount under sub-domain is created with ROOT domain id
> -
>
> Key: CLOUDSTACK-6696
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6696
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: Screen Shot 2014-05-16 at 10.48.49 PM.png
>
>
> Steps::
> Create subdomains D1 under ROOT.
> - Go to domains and under ROOT create a new domain D1.
> Attempt to create a domain admin user under D1 through UI.
> - Go to domains, expand domains and go to D1.
> - Select view account from top right of the window.
> - Observe there are no accounts.
> - Create a new account of type Admin.
> Verify this::
> -- Click on accounts and you will be able to see this new account with domain 
> ROOT. 
> As a side effect listAccounts with a sub-domainid will return nothing as all 
> the accounts are created using ROOT Domain ID.
> A Screen is attached.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Closed] (CLOUDSTACK-6678) API:MS: listCapacity returns; errorcode":530,"cserrorcode":9999,"errortext":"Index: 0, Size: 0"}

2014-05-16 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-6678.
--


Fix Verified,


> API:MS: listCapacity returns; 
> errorcode":530,"cserrorcode":,"errortext":"Index: 0, Size: 0"}
> 
>
> Key: CLOUDSTACK-6678
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6678
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>Assignee: Sanjay Tripathi
> Attachments: listCapacity.png
>
>
> Login to UI and observe following::
> (Screen attached)
> { "listcapacityresponse" : 
> {"uuidList":[],"errorcode":530,"cserrorcode":,"errortext":"Index: 0, 
> Size: 0"} }
> 2014-05-14 16:51:42,535 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-12:ctx-447de431) ===START===  10.215.2.19 -- GET  
> command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
> 2014-05-14 16:51:42,552 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
> 2-null-null-DomainResourceCapability from cache: false
> 2014-05-14 16:51:42,555 ERROR [c.c.a.ApiServer] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) unhandled exception executing 
> api command: [Ljava.lang.String;@7234ac72
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:635)
> at java.util.ArrayList.get(ArrayList.java:411)
> at 
> com.cloud.api.ApiResponseHelper.createCapacityResponse(ApiResponseHelper.java:1741)
> at 
> org.apache.cloudstack.api.command.admin.resource.ListCapacityCmd.execute(ListCapacityCmd.java:129)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:119)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:683)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:506)
> at 
> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
> at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> 2014-05-14 16:51:42,558 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
> 2-null-null-SystemCapability from cache: true
> 2014-05-14 16:51:42,558 DEBUG [c.c.u.AccountManagerImpl] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) Root Access granted to 
> Acct[957b761c-dbb9-11e3-98fe-ced18bec4952-admin] by 
> RoleBasedEntityAccessChecker
> 2014-05-14 16:51:42,559 DEBUG [c.c.a

[jira] [Created] (CLOUDSTACK-6678) API:MS: listCapacity returns error code 503

2014-05-15 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6678:
--

 Summary: API:MS: listCapacity returns error code 503
 Key: CLOUDSTACK-6678
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6678
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API
Affects Versions: 4.4.0
Reporter: Parth Jagirdar


Login to UI and observe following::
(Screen attached)



2014-05-14 16:51:42,535 DEBUG [c.c.a.ApiServlet] 
(catalina-exec-12:ctx-447de431) ===START===  10.215.2.19 -- GET  
command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
2014-05-14 16:51:42,552 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
(catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
2-null-null-DomainResourceCapability from cache: false
2014-05-14 16:51:42,555 ERROR [c.c.a.ApiServer] (catalina-exec-12:ctx-447de431 
ctx-86d79d2a) unhandled exception executing api command: 
[Ljava.lang.String;@7234ac72
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at 
com.cloud.api.ApiResponseHelper.createCapacityResponse(ApiResponseHelper.java:1741)
at 
org.apache.cloudstack.api.command.admin.resource.ListCapacityCmd.execute(ListCapacityCmd.java:129)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:119)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:683)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:506)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2014-05-14 16:51:42,558 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
(catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
2-null-null-SystemCapability from cache: true
2014-05-14 16:51:42,558 DEBUG [c.c.u.AccountManagerImpl] 
(catalina-exec-12:ctx-447de431 ctx-86d79d2a) Root Access granted to 
Acct[957b761c-dbb9-11e3-98fe-ced18bec4952-admin] by RoleBasedEntityAccessChecker
2014-05-14 16:51:42,559 DEBUG [c.c.a.ApiServlet] (catalina-exec-12:ctx-447de431 
ctx-86d79d2a) ===END===  10.215.2.19 -- GET  
command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
2014-05-14 16:51:44,701 DEBUG [c.c.a.ApiServlet] (catalina-exec-2:ctx-76b750ab) 
===START===  10.215.2.19 -- GET  
command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
2014-05-14 16:51:44,714 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
(catalina-exec-2:ctx-76b750ab ctx-5dcdc38e) IAM access check for 
2-null-null-DomainResourceCapability from cache: false
2014-05-14 16:51:44,717 ERROR [c.c.a.ApiServer] (catalina-exec-2:ctx-76b750ab 
ctx

[jira] [Updated] (CLOUDSTACK-6678) API:MS: listCapacity returns; errorcode":530,"cserrorcode":9999,"errortext":"Index: 0, Size: 0"}

2014-05-15 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6678:
---

Summary: API:MS: listCapacity returns; 
errorcode":530,"cserrorcode":,"errortext":"Index: 0, Size: 0"}  (was: 
API:MS: listCapacity returns error code 503)

> API:MS: listCapacity returns; 
> errorcode":530,"cserrorcode":,"errortext":"Index: 0, Size: 0"}
> 
>
> Key: CLOUDSTACK-6678
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6678
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>
> Login to UI and observe following::
> (Screen attached)
> 2014-05-14 16:51:42,535 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-12:ctx-447de431) ===START===  10.215.2.19 -- GET  
> command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
> 2014-05-14 16:51:42,552 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
> 2-null-null-DomainResourceCapability from cache: false
> 2014-05-14 16:51:42,555 ERROR [c.c.a.ApiServer] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) unhandled exception executing 
> api command: [Ljava.lang.String;@7234ac72
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:635)
> at java.util.ArrayList.get(ArrayList.java:411)
> at 
> com.cloud.api.ApiResponseHelper.createCapacityResponse(ApiResponseHelper.java:1741)
> at 
> org.apache.cloudstack.api.command.admin.resource.ListCapacityCmd.execute(ListCapacityCmd.java:129)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:119)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:683)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:506)
> at 
> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
> at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> 2014-05-14 16:51:42,558 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
> 2-null-null-SystemCapability from cache: true
> 2014-05-14 16:51:42,558 DEBUG [c.c.u.AccountManagerImpl] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) Root Access granted to 
> Acct[957b761c-dbb9-11e3-98fe-ced18bec4952-admin] by 
> RoleBasedEntityAccessChecker
> 2014-05-14 16:51:42,559 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-12:ctx-447de431 ctx-

[jira] [Updated] (CLOUDSTACK-6678) API:MS: listCapacity returns; errorcode":530,"cserrorcode":9999,"errortext":"Index: 0, Size: 0"}

2014-05-15 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6678:
---

Description: 
Login to UI and observe following::
(Screen attached)


{ "listcapacityresponse" : 
{"uuidList":[],"errorcode":530,"cserrorcode":,"errortext":"Index: 0, Size: 
0"} }

2014-05-14 16:51:42,535 DEBUG [c.c.a.ApiServlet] 
(catalina-exec-12:ctx-447de431) ===START===  10.215.2.19 -- GET  
command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
2014-05-14 16:51:42,552 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
(catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
2-null-null-DomainResourceCapability from cache: false
2014-05-14 16:51:42,555 ERROR [c.c.a.ApiServer] (catalina-exec-12:ctx-447de431 
ctx-86d79d2a) unhandled exception executing api command: 
[Ljava.lang.String;@7234ac72
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at 
com.cloud.api.ApiResponseHelper.createCapacityResponse(ApiResponseHelper.java:1741)
at 
org.apache.cloudstack.api.command.admin.resource.ListCapacityCmd.execute(ListCapacityCmd.java:129)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:119)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:683)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:506)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2014-05-14 16:51:42,558 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
(catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
2-null-null-SystemCapability from cache: true
2014-05-14 16:51:42,558 DEBUG [c.c.u.AccountManagerImpl] 
(catalina-exec-12:ctx-447de431 ctx-86d79d2a) Root Access granted to 
Acct[957b761c-dbb9-11e3-98fe-ced18bec4952-admin] by RoleBasedEntityAccessChecker
2014-05-14 16:51:42,559 DEBUG [c.c.a.ApiServlet] (catalina-exec-12:ctx-447de431 
ctx-86d79d2a) ===END===  10.215.2.19 -- GET  
command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
2014-05-14 16:51:44,701 DEBUG [c.c.a.ApiServlet] (catalina-exec-2:ctx-76b750ab) 
===START===  10.215.2.19 -- GET  
command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
2014-05-14 16:51:44,714 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
(catalina-exec-2:ctx-76b750ab ctx-5dcdc38e) IAM access check for 
2-null-null-DomainResourceCapability from cache: false
2014-05-14 16:51:44,717 ERROR [c.c.a.ApiServer] (catalina-exec-2:ctx-76b750ab 
ctx-5dcdc38e) unhandled exception executing api command: 
[Ljava.lang.String;@3c1dcc2e
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at j

[jira] [Updated] (CLOUDSTACK-6678) API:MS: listCapacity returns; errorcode":530,"cserrorcode":9999,"errortext":"Index: 0, Size: 0"}

2014-05-15 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6678:
---

Attachment: listCapacity.png

> API:MS: listCapacity returns; 
> errorcode":530,"cserrorcode":,"errortext":"Index: 0, Size: 0"}
> 
>
> Key: CLOUDSTACK-6678
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6678
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
> Attachments: listCapacity.png
>
>
> Login to UI and observe following::
> (Screen attached)
> { "listcapacityresponse" : 
> {"uuidList":[],"errorcode":530,"cserrorcode":,"errortext":"Index: 0, 
> Size: 0"} }
> 2014-05-14 16:51:42,535 DEBUG [c.c.a.ApiServlet] 
> (catalina-exec-12:ctx-447de431) ===START===  10.215.2.19 -- GET  
> command=listCapacity&response=json&sessionkey=nsbKmWhCoLVlvuVOLWzgE%2BPYe6w%3D
> 2014-05-14 16:51:42,552 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
> 2-null-null-DomainResourceCapability from cache: false
> 2014-05-14 16:51:42,555 ERROR [c.c.a.ApiServer] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) unhandled exception executing 
> api command: [Ljava.lang.String;@7234ac72
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.rangeCheck(ArrayList.java:635)
> at java.util.ArrayList.get(ArrayList.java:411)
> at 
> com.cloud.api.ApiResponseHelper.createCapacityResponse(ApiResponseHelper.java:1741)
> at 
> org.apache.cloudstack.api.command.admin.resource.ListCapacityCmd.execute(ListCapacityCmd.java:129)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:119)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:683)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:506)
> at 
> com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
> at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
> at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
> at 
> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> 2014-05-14 16:51:42,558 DEBUG [o.a.c.i.RoleBasedEntityAccessChecker] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) IAM access check for 
> 2-null-null-SystemCapability from cache: true
> 2014-05-14 16:51:42,558 DEBUG [c.c.u.AccountManagerImpl] 
> (catalina-exec-12:ctx-447de431 ctx-86d79d2a) Root Access granted to 
> Acct[957b761c-dbb9-11e3-98fe-ced18bec4952-admin] by 
> RoleBasedEntityAccessChecker
> 2014-05-14 16:51:42,559 DEBUG [c.c.a.ApiServlet] 
> (cat

[jira] [Created] (CLOUDSTACK-6613) IAM: authorizeSecurityGroupIngress fails when SG Name is passed.

2014-05-10 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6613:
--

 Summary: IAM: authorizeSecurityGroupIngress fails when SG Name is 
passed.
 Key: CLOUDSTACK-6613
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6613
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, IAM
Affects Versions: 4.4.0
Reporter: Parth Jagirdar
Priority: Critical


http://10.223.49.210:8080/client/api?command=authorizeSecurityGroupIngress&securityGroupName=root-sg&domainid=cf149abc-d640-11e3-98fe-ced18bec4952&account=admin&response=json&sessionkey=hazX8mXPD08rBk%2FkyQ2YIZkIYBE%3D
 
{ "authorizesecuritygroupingressresponse" : 
{"uuidList":[],"errorcode":530,"cserrorcode":} }
 
 
There are no required param for this API:
 
 
If I pass CIDR along with SGID; it works.
 
 
If I pass CIDR along with SGName; it fails. Account and domain were 
passed(Exception in below)
 
 
So what is SGNAME and what it expects?
 
Also can this API’s designed such that they at least throw a relevant exception?
 
 
 
2014-05-08 14:15:21,586 DEBUG [c.c.a.ApiServlet] 
(catalina-exec-25:ctx-e6705378) ===START===  10.215.2.19 -- GET  
command=authorizeSecurityGroupIngress&securityGroupName=root-sg&domainid=cf149abc-d640-11e3-98fe-ced18bec4952&account=admin&response=json&sessionkey=hazX8mXPD08rBk%2FkyQ2YIZkIYBE%3D
2014-05-08 14:15:21,598 ERROR [c.c.a.ApiServer] (catalina-exec-25:ctx-e6705378 
ctx-145967d6) unhandled exception executing api command: 
[Ljava.lang.String;@5c2c7824
java.lang.NullPointerException
at 
com.cloud.api.dispatch.ParamProcessWorker.processParameters(ParamProcessWorker.java:159)
at 
com.cloud.api.dispatch.ParamProcessWorker.handle(ParamProcessWorker.java:93)
at com.cloud.api.dispatch.DispatchChain.dispatch(DispatchChain.java:37)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:620)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:502)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
   at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
2014-05-08 14:15:21,606 DEBUG [c.c.u.AccountManagerImpl] 
(catalina-exec-25:ctx-e6705378 ctx-145967d6) Root Access granted to 
Acct[63f724e2-d641-11e3-98fe-ced18bec4952-admin] by RoleBasedEntityAccessChecker
2014-05-08 14:15:21,607 DEBUG [c.c.a.ApiServlet] (catalina-exec-25:ctx-e6705378 
ctx-145967d6) ===END===  10.215.2.19 -- GET  
command=authorizeSecurityGroupIngress&securityGroupName=root-sg&domainid=cf149abc-d640-11e3-98fe-ced18bec4952&account=admin&response=json&sessionkey=hazX8mXPD08rBk%2FkyQ2YIZkIYBE%3D
2014-05-08 14:15:22,052 DEBUG [c.c.a.m.AgentManagerImpl] 
(AgentManager-Handler-12:null) SeqA 2-12625: Processing Seq 2-12625:  { Cmd , 
MgmtId

[jira] [Updated] (CLOUDSTACK-6583) API:MS: attachVolume fails with could not find account in domain

2014-05-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6583:
---

Summary: API:MS: attachVolume fails with could not find account in domain  
(was: UI:MS:API attachVolume fails with could not find account in domain)

> API:MS: attachVolume fails with could not find account in domain
> 
>
> Key: CLOUDSTACK-6583
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6583
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Management Server
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: attachVolume.jpg
>
>
> Observed with Domains and sub-domains.
> List virtual Machine works as expected if invoked for account in the same 
> domain.
> Consider following scenario::
> If Root attempts attach disk on a volume that belongs to his domain, Eligible 
> VM's get listed.
> If Root attempts attach disk on a volume that belongs to a "sub-domain or 
> other domain", Eligible VM's "do not get listed and Error is thrown".
> Refer to screen.
> 2014-05-06 10:56:31,420 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-4:ctx-13cf7c3a ctx-6c641208) (userId=2 accountId=2 
> sessionId=79D20423CCD7FD1161C97D8DF82959B6) 10.215.2.19 -- GET 
> command=listVirtualMachines&response=json&sessionkey=bsHjDKTVOfNOzjz4%2Bv%2BoZvHKhJ0%3D&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&domainid=1782af36-9de0-484d-84ea-e525b9661646&account=d11&hypervisor=VMware&state=Running&_=1399398991208
>  431 could not find account d11 in domain 1782af36-9de0-484d-84ea-e525b9661646
> 2014-05-06 10:56:31,605 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-24:ctx-3c870648 ctx-7200acbd) (userId=2 accountId=2 
> sessionId=79D20423CCD7FD1161C97D8DF82959B6) 10.215.2.19 -- GET 
> command=listVirtualMachines&response=json&sessionkey=bsHjDKTVOfNOzjz4%2Bv%2BoZvHKhJ0%3D&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&domainid=1782af36-9de0-484d-84ea-e525b9661646&account=d11&hypervisor=VMware&state=Stopped&_=1399398991390
>  431 could not find account d11 in domain 1782af36-9de0-484d-84ea-e525b9661646



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6583) UI:MS:API attachVolume fails with could not find account in domain

2014-05-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6583:
---

Component/s: (was: UI)

> UI:MS:API attachVolume fails with could not find account in domain
> --
>
> Key: CLOUDSTACK-6583
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6583
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Management Server
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: attachVolume.jpg
>
>
> Observed with Domains and sub-domains.
> List virtual Machine works as expected if invoked for account in the same 
> domain.
> Consider following scenario::
> If Root attempts attach disk on a volume that belongs to his domain, Eligible 
> VM's get listed.
> If Root attempts attach disk on a volume that belongs to a "sub-domain or 
> other domain", Eligible VM's "do not get listed and Error is thrown".
> Refer to screen.
> 2014-05-06 10:56:31,420 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-4:ctx-13cf7c3a ctx-6c641208) (userId=2 accountId=2 
> sessionId=79D20423CCD7FD1161C97D8DF82959B6) 10.215.2.19 -- GET 
> command=listVirtualMachines&response=json&sessionkey=bsHjDKTVOfNOzjz4%2Bv%2BoZvHKhJ0%3D&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&domainid=1782af36-9de0-484d-84ea-e525b9661646&account=d11&hypervisor=VMware&state=Running&_=1399398991208
>  431 could not find account d11 in domain 1782af36-9de0-484d-84ea-e525b9661646
> 2014-05-06 10:56:31,605 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-24:ctx-3c870648 ctx-7200acbd) (userId=2 accountId=2 
> sessionId=79D20423CCD7FD1161C97D8DF82959B6) 10.215.2.19 -- GET 
> command=listVirtualMachines&response=json&sessionkey=bsHjDKTVOfNOzjz4%2Bv%2BoZvHKhJ0%3D&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&domainid=1782af36-9de0-484d-84ea-e525b9661646&account=d11&hypervisor=VMware&state=Stopped&_=1399398991390
>  431 could not find account d11 in domain 1782af36-9de0-484d-84ea-e525b9661646



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6583) UI:MS:API attachVolume fails with could not find account in domain

2014-05-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6583:
---

Attachment: attachVolume.jpg

> UI:MS:API attachVolume fails with could not find account in domain
> --
>
> Key: CLOUDSTACK-6583
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6583
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Management Server, UI
>Affects Versions: 4.4.0
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: attachVolume.jpg
>
>
> Observed with Domains and sub-domains.
> List virtual Machine works as expected if invoked for account in the same 
> domain.
> Consider following scenario::
> If Root attempts attach disk on a volume that belongs to his domain, Eligible 
> VM's get listed.
> If Root attempts attach disk on a volume that belongs to a "sub-domain or 
> other domain", Eligible VM's "do not get listed and Error is thrown".
> Refer to screen.
> 2014-05-06 10:56:31,420 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-4:ctx-13cf7c3a ctx-6c641208) (userId=2 accountId=2 
> sessionId=79D20423CCD7FD1161C97D8DF82959B6) 10.215.2.19 -- GET 
> command=listVirtualMachines&response=json&sessionkey=bsHjDKTVOfNOzjz4%2Bv%2BoZvHKhJ0%3D&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&domainid=1782af36-9de0-484d-84ea-e525b9661646&account=d11&hypervisor=VMware&state=Running&_=1399398991208
>  431 could not find account d11 in domain 1782af36-9de0-484d-84ea-e525b9661646
> 2014-05-06 10:56:31,605 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-24:ctx-3c870648 ctx-7200acbd) (userId=2 accountId=2 
> sessionId=79D20423CCD7FD1161C97D8DF82959B6) 10.215.2.19 -- GET 
> command=listVirtualMachines&response=json&sessionkey=bsHjDKTVOfNOzjz4%2Bv%2BoZvHKhJ0%3D&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&domainid=1782af36-9de0-484d-84ea-e525b9661646&account=d11&hypervisor=VMware&state=Stopped&_=1399398991390
>  431 could not find account d11 in domain 1782af36-9de0-484d-84ea-e525b9661646



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6583) UI:MS:API attachVolume fails with could not find account in domain

2014-05-06 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6583:
--

 Summary: UI:MS:API attachVolume fails with could not find account 
in domain
 Key: CLOUDSTACK-6583
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6583
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, Management Server, UI
Affects Versions: 4.4.0
Reporter: Parth Jagirdar
Priority: Critical
 Attachments: attachVolume.jpg

Observed with Domains and sub-domains.


List virtual Machine works as expected if invoked for account in the same 
domain.

Consider following scenario::

If Root attempts attach disk on a volume that belongs to his domain, Eligible 
VM's get listed.

If Root attempts attach disk on a volume that belongs to a "sub-domain or other 
domain", Eligible VM's "do not get listed and Error is thrown".

Refer to screen.



2014-05-06 10:56:31,420 INFO  [a.c.c.a.ApiServer] (catalina-exec-4:ctx-13cf7c3a 
ctx-6c641208) (userId=2 accountId=2 sessionId=79D20423CCD7FD1161C97D8DF82959B6) 
10.215.2.19 -- GET 
command=listVirtualMachines&response=json&sessionkey=bsHjDKTVOfNOzjz4%2Bv%2BoZvHKhJ0%3D&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&domainid=1782af36-9de0-484d-84ea-e525b9661646&account=d11&hypervisor=VMware&state=Running&_=1399398991208
 431 could not find account d11 in domain 1782af36-9de0-484d-84ea-e525b9661646
2014-05-06 10:56:31,605 INFO  [a.c.c.a.ApiServer] 
(catalina-exec-24:ctx-3c870648 ctx-7200acbd) (userId=2 accountId=2 
sessionId=79D20423CCD7FD1161C97D8DF82959B6) 10.215.2.19 -- GET 
command=listVirtualMachines&response=json&sessionkey=bsHjDKTVOfNOzjz4%2Bv%2BoZvHKhJ0%3D&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&domainid=1782af36-9de0-484d-84ea-e525b9661646&account=d11&hypervisor=VMware&state=Stopped&_=1399398991390
 431 could not find account d11 in domain 1782af36-9de0-484d-84ea-e525b9661646








--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6568) API:createVolume: Volume gets created with wrong domain ID

2014-05-02 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6568:
--

 Summary: API:createVolume: Volume gets created with wrong domain ID
 Key: CLOUDSTACK-6568
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6568
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, Volumes
Affects Versions: 4.3.0, 4.4.0, 4.3.1
Reporter: Parth Jagirdar
 Attachments: createVolume.jpg


http://10.223.49.210:8080/client/api?command=createVolume&name=d22-volume&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&diskofferingid=099a28b3-12d2-461e-9558-1c08e8eb5a2d&domainid=82d02e0c-4f25-42a6-9e5b-dc3fae90eb34&account=d22&response=json&sessionkey=7ChzlM0hZkWuWUIPlS%2BkV%2BwHghU%3D
 
 
2014-05-02 13:37:41,544 INFO  [a.c.c.a.ApiServer] 
(catalina-exec-22:ctx-669b420f ctx-a9da8d5c) (userId=2 a
ccountId=2 sessionId=B19BA8EED26B975AA6AAEB9E8F25EFC5) 10.215.2.19 -- GET 
command=createVolume&name=d22-vo
lume&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&diskofferingid=099a28b3-12d2-461e-9558-1c08e8eb5a2d&domai
nid=82d02e0c-4f25-42a6-9e5b-dc3fae90eb34&account=d22&response=json&sessionkey=7ChzlM0hZkWuWUIPlS%2BkV%2BwH
ghU%3D 200 { "createvolumeresponse" : 
{"id":"224bc4e6-9ecc-4ccf-bd58-09f47ca5b7a2","jobid":"d537170d-ab2b-
4880-ae35-f9846e5ef88d"} }
 
 
{ "createvolumeresponse" : 
{"id":"224bc4e6-9ecc-4ccf-bd58-09f47ca5b7a2","jobid":"d537170d-ab2b-4880-ae35-f9846e5ef88d"}
 }
 
 
   createVolume is invoked as ROOT Admin with account and Domain, (To 
create Vol for other User).
 
   Volume gets created with specified account. But domain ID is of ROOT.
 
|  2 | 1 | test|
|  2 | 1 | root-volume |
|  7 | 1 | root-volume |
|  7 | 1 | d22-volume  |
++---+-+




--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6568) API:createVolume: Volume gets created with wrong domain ID

2014-05-02 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6568:
---

Attachment: createVolume.jpg

> API:createVolume: Volume gets created with wrong domain ID
> --
>
> Key: CLOUDSTACK-6568
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6568
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Volumes
>Affects Versions: 4.3.0, 4.4.0, 4.3.1
>Reporter: Parth Jagirdar
> Attachments: createVolume.jpg
>
>
> http://10.223.49.210:8080/client/api?command=createVolume&name=d22-volume&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&diskofferingid=099a28b3-12d2-461e-9558-1c08e8eb5a2d&domainid=82d02e0c-4f25-42a6-9e5b-dc3fae90eb34&account=d22&response=json&sessionkey=7ChzlM0hZkWuWUIPlS%2BkV%2BwHghU%3D
>  
>  
> 2014-05-02 13:37:41,544 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-22:ctx-669b420f ctx-a9da8d5c) (userId=2 a
> ccountId=2 sessionId=B19BA8EED26B975AA6AAEB9E8F25EFC5) 10.215.2.19 -- GET 
> command=createVolume&name=d22-vo
> lume&zoneid=05f156b6-cf10-4891-b7d7-6421f4d87e91&diskofferingid=099a28b3-12d2-461e-9558-1c08e8eb5a2d&domai
> nid=82d02e0c-4f25-42a6-9e5b-dc3fae90eb34&account=d22&response=json&sessionkey=7ChzlM0hZkWuWUIPlS%2BkV%2BwH
> ghU%3D 200 { "createvolumeresponse" : 
> {"id":"224bc4e6-9ecc-4ccf-bd58-09f47ca5b7a2","jobid":"d537170d-ab2b-
> 4880-ae35-f9846e5ef88d"} }
>  
>  
> { "createvolumeresponse" : 
> {"id":"224bc4e6-9ecc-4ccf-bd58-09f47ca5b7a2","jobid":"d537170d-ab2b-4880-ae35-f9846e5ef88d"}
>  }
>  
>  
>  createVolume is invoked as ROOT Admin with account and Domain, (To 
> create Vol for other User).
>  
>  Volume gets created with specified account. But domain ID is of ROOT.
>  
> |  2 | 1 | test|
> |  2 | 1 | root-volume |
> |  7 | 1 | root-volume |
> |  7 | 1 | d22-volume  |
> ++---+-+



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CLOUDSTACK-6379) UI:MS: Unable to create a user type Admin under a domain; No API being fired

2014-05-02 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988009#comment-13988009
 ] 

Parth Jagirdar commented on CLOUDSTACK-6379:


ReferenceError: rootDomainId is not defined


... == "1" && args.data.domainid != rootDomainId) { //if account type is admin, 
but...

> UI:MS: Unable to create a user type Admin under a domain; No API being fired
> 
>
> Key: CLOUDSTACK-6379
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6379
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Management Server, UI
>Affects Versions: 4.4.0
> Environment: 4.4
>Reporter: Parth Jagirdar
>Assignee: Jessica Wang
>Priority: Critical
> Fix For: 4.4.0
>
> Attachments: domain admin.jpg
>
>
> Create a domain, then create a user under it of type Admin. Observe no API 
> being fired upon clicking OK.
> Also observe Reference Error: rootDomainId not defined.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6535) IAM:MS:API createVMSnapshot doesn't preserve access rights

2014-04-29 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6535:
---

Summary: IAM:MS:API createVMSnapshot doesn't preserve access rights  (was: 
IAM:MS:API createVMSnapshot fails doesn't preserve access rights)

> IAM:MS:API createVMSnapshot doesn't preserve access rights
> --
>
> Key: CLOUDSTACK-6535
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6535
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, IAM
>Affects Versions: 4.4.0
> Environment: 4.4
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: apilog.log.bz2, db_dump.sql.bz2, 
> management-server.log.bz2
>
>
> As domain Admin or as regular user; one can create a snapshot of a VM owned 
> by other users. (Create Snapshot succeeds across Domains as well).
> Please refer to API and MS logs.
> DB Dump is attached.
> 2014-04-29 15:32:38,316 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-19:ctx-baaf5fbe ctx-d89f1942) (userId=9
>  accountId=9 sessionId=13E9CF7AD4BB55EE9EDF2920D6E62915) 10.215.2.19 -- GET 
> command=createVMSnapshot&vir
> tualmachineid=219d649d-b6fc-475e-ab0f-8800a7f95235&response=json&sessionkey=p1pPn2KtylzYt92NSHuE2u4G68w%
> 3D 200 { "createvmsnapshotresponse" : 
> {"id":"8","jobid":"fa37d77f-28b0-485b-af81-834a07ed6e4e"} }
> 2014-04-29 15:32:40,306 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-25:ctx-114bb10a ctx-d396131c) (userId=2
>  accountId=2 sessionId=5EC896B528FB6DB972CE5B02A277047B) 10.215.2.19 -- GET 
> command=listVirtualMachines&
> response=json&sessionkey=e1WRj6SbsZEClPvlCdLP9f3MhYI%3D&listAll=true&page=1&pagesize=20&_=1398810759989
> 200 { "listvirtualmachinesresponse" : { "count":6 ,"virtualmachine" : [  
> {"id":"cea5fc51-6a31-4209-b26f-
> 9097c9d17011","name":"d2-vm","displayname":"d2-vm","account":"d2","domainid":"0af12b69-67f4-454a-9eb6-f2
> bef02aba0b","domain":"d2","created":"2014-04-28T10:21:08-0700","state":"Running","haenable":false,"zonei
> d":"6933ac3e-29fe-4170-8411-b1827aa2f5cf","zonename":"z","hostid":"d8fb3cb9-782e-4cdc-b0c0-3adcf65a7a15"
> ,"hostname":"10.223.58.68","templateid":"549440c8-bf4b-11e3-a56d-ced18bec4952","templatename":"CentOS
>  5.
> 3(64-bit) no GUI (vSphere)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI 
> (vSphere)","passwordenabled
> ":false,"serviceofferingid":"4c035b12-f32f-4c0c-b768-264ec02ac242","serviceofferingname":"Small
>  Instance
> ","cpunumber":1,"cpuspeed":500,"memory":512,"cpuused":"45%","networkkbsread":0,"networkkbswrite":0,"gues
> tosid":"54a23660-bf4b-11e3-a56d-ced18bec4952","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[
> ],"nic":[{"id":"cae4f3d2-1598-4aa0-98b9-669a4c7de6ae","networkid":"f417c31a-e19f-45db-9180-87f17a195bf0"
> ,"networkname":"d2-net","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.151","isolati
> onuri":"vlan://2342","broadcasturi":"vlan://2342","traffictype":"Guest","type":"Isolated","isdefault":tr
> ue,"macaddress":"02:00:41:11:00:01"}],"hypervisor":"VMware","publicipid":"a6866b38-e8dd-4deb-965f-c09931
> d183fe","publicip":"10.223.138.11","instancename":"i-10-32-VM","tags":[],"affinitygroup":[],"displayvm":
> true,"isdynamicallyscalable":false,"ostypeid":12}, 
> {"id":"e887d23a-fac0-4397-adb9-edfbf2169453","name":"
> d1-vm","displayname":"d1-vm","account":"d1","domainid":"90a8c572-3f92-420b-9176-5daafa9853da","domain":"
> d1","created":"2014-04-28T10:20:39-0700","state":"Running","haenable":false,"zoneid":"6933ac3e-29fe-4170
> -8411-b1827aa2f5cf","zonename":"z","hostid":"d8fb3cb9-782e-4cdc-b0c0-3adcf65a7a15","hostname":"10.223.58
> .68","templateid":"549440c8-bf4b-11e3-a56d-ced18bec4952","templatename":"CentOS
>  5.3(64-bit) no GUI (vSph
> ere)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI 
> (vSphere)","passwordenabled":false,"serviceofferi
> ngid":"4c035b12-f32f-4c0c-b768-264ec02ac242","serviceofferingname":"Small 
> Instance","cpunumber":1,"cpusp
> eed":500,"memory":512,"cpuused":"45%","networkkbsread":0,"networkkbswrite":0,"guestosid":"54a23660-bf4b-
> 11e3-a56d-ced18bec4952","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"5c410c
> a5-5151-48d8-8de7-4fc674bd597a","networkid":"2a7d1254-3120-42f5-b8b9-dd64485cfed4","networkname":"d1-net
> ","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.184","isolationuri":"vlan://2268","
> mysql> select * from iam_group_account_map where removed is NULL order by 
> group_id;
> ++--++-+-+
> | id | group_id | account_id | removed | created |
> ++--++-+-+
> | 43 |1 | 23 | NULL| 2014-04-14 23:18:

[jira] [Updated] (CLOUDSTACK-6535) IAM:MS:API createVMSnapshot fails doesn't preserve access rights

2014-04-29 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6535:
---

Attachment: management-server.log.bz2
db_dump.sql.bz2
apilog.log.bz2

> IAM:MS:API createVMSnapshot fails doesn't preserve access rights
> 
>
> Key: CLOUDSTACK-6535
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6535
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, IAM
>Affects Versions: 4.4.0
> Environment: 4.4
>Reporter: Parth Jagirdar
>Priority: Critical
> Attachments: apilog.log.bz2, db_dump.sql.bz2, 
> management-server.log.bz2
>
>
> As domain Admin or as regular user; one can create a snapshot of a VM owned 
> by other users. (Create Snapshot succeeds across Domains as well).
> Please refer to API and MS logs.
> DB Dump is attached.
> 2014-04-29 15:32:38,316 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-19:ctx-baaf5fbe ctx-d89f1942) (userId=9
>  accountId=9 sessionId=13E9CF7AD4BB55EE9EDF2920D6E62915) 10.215.2.19 -- GET 
> command=createVMSnapshot&vir
> tualmachineid=219d649d-b6fc-475e-ab0f-8800a7f95235&response=json&sessionkey=p1pPn2KtylzYt92NSHuE2u4G68w%
> 3D 200 { "createvmsnapshotresponse" : 
> {"id":"8","jobid":"fa37d77f-28b0-485b-af81-834a07ed6e4e"} }
> 2014-04-29 15:32:40,306 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-25:ctx-114bb10a ctx-d396131c) (userId=2
>  accountId=2 sessionId=5EC896B528FB6DB972CE5B02A277047B) 10.215.2.19 -- GET 
> command=listVirtualMachines&
> response=json&sessionkey=e1WRj6SbsZEClPvlCdLP9f3MhYI%3D&listAll=true&page=1&pagesize=20&_=1398810759989
> 200 { "listvirtualmachinesresponse" : { "count":6 ,"virtualmachine" : [  
> {"id":"cea5fc51-6a31-4209-b26f-
> 9097c9d17011","name":"d2-vm","displayname":"d2-vm","account":"d2","domainid":"0af12b69-67f4-454a-9eb6-f2
> bef02aba0b","domain":"d2","created":"2014-04-28T10:21:08-0700","state":"Running","haenable":false,"zonei
> d":"6933ac3e-29fe-4170-8411-b1827aa2f5cf","zonename":"z","hostid":"d8fb3cb9-782e-4cdc-b0c0-3adcf65a7a15"
> ,"hostname":"10.223.58.68","templateid":"549440c8-bf4b-11e3-a56d-ced18bec4952","templatename":"CentOS
>  5.
> 3(64-bit) no GUI (vSphere)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI 
> (vSphere)","passwordenabled
> ":false,"serviceofferingid":"4c035b12-f32f-4c0c-b768-264ec02ac242","serviceofferingname":"Small
>  Instance
> ","cpunumber":1,"cpuspeed":500,"memory":512,"cpuused":"45%","networkkbsread":0,"networkkbswrite":0,"gues
> tosid":"54a23660-bf4b-11e3-a56d-ced18bec4952","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[
> ],"nic":[{"id":"cae4f3d2-1598-4aa0-98b9-669a4c7de6ae","networkid":"f417c31a-e19f-45db-9180-87f17a195bf0"
> ,"networkname":"d2-net","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.151","isolati
> onuri":"vlan://2342","broadcasturi":"vlan://2342","traffictype":"Guest","type":"Isolated","isdefault":tr
> ue,"macaddress":"02:00:41:11:00:01"}],"hypervisor":"VMware","publicipid":"a6866b38-e8dd-4deb-965f-c09931
> d183fe","publicip":"10.223.138.11","instancename":"i-10-32-VM","tags":[],"affinitygroup":[],"displayvm":
> true,"isdynamicallyscalable":false,"ostypeid":12}, 
> {"id":"e887d23a-fac0-4397-adb9-edfbf2169453","name":"
> d1-vm","displayname":"d1-vm","account":"d1","domainid":"90a8c572-3f92-420b-9176-5daafa9853da","domain":"
> d1","created":"2014-04-28T10:20:39-0700","state":"Running","haenable":false,"zoneid":"6933ac3e-29fe-4170
> -8411-b1827aa2f5cf","zonename":"z","hostid":"d8fb3cb9-782e-4cdc-b0c0-3adcf65a7a15","hostname":"10.223.58
> .68","templateid":"549440c8-bf4b-11e3-a56d-ced18bec4952","templatename":"CentOS
>  5.3(64-bit) no GUI (vSph
> ere)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI 
> (vSphere)","passwordenabled":false,"serviceofferi
> ngid":"4c035b12-f32f-4c0c-b768-264ec02ac242","serviceofferingname":"Small 
> Instance","cpunumber":1,"cpusp
> eed":500,"memory":512,"cpuused":"45%","networkkbsread":0,"networkkbswrite":0,"guestosid":"54a23660-bf4b-
> 11e3-a56d-ced18bec4952","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"5c410c
> a5-5151-48d8-8de7-4fc674bd597a","networkid":"2a7d1254-3120-42f5-b8b9-dd64485cfed4","networkname":"d1-net
> ","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.184","isolationuri":"vlan://2268","
> mysql> select * from iam_group_account_map where removed is NULL order by 
> group_id;
> ++--++-+-+
> | id | group_id | account_id | removed | created |
> ++--++-+-+
> | 43 |1 | 23 | NULL| 2014-04-14 23:18:40 |
> | 45 |1 | 

[jira] [Created] (CLOUDSTACK-6535) IAM:MS:API createVMSnapshot fails doesn't preserve access rights

2014-04-29 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6535:
--

 Summary: IAM:MS:API createVMSnapshot fails doesn't preserve access 
rights
 Key: CLOUDSTACK-6535
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6535
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, IAM
Affects Versions: 4.4.0
 Environment: 4.4
Reporter: Parth Jagirdar
Priority: Critical


As domain Admin or as regular user; one can create a snapshot of a VM owned by 
other users. (Create Snapshot succeeds across Domains as well).

Please refer to API and MS logs.

DB Dump is attached.



2014-04-29 15:32:38,316 INFO  [a.c.c.a.ApiServer] 
(catalina-exec-19:ctx-baaf5fbe ctx-d89f1942) (userId=9
 accountId=9 sessionId=13E9CF7AD4BB55EE9EDF2920D6E62915) 10.215.2.19 -- GET 
command=createVMSnapshot&vir
tualmachineid=219d649d-b6fc-475e-ab0f-8800a7f95235&response=json&sessionkey=p1pPn2KtylzYt92NSHuE2u4G68w%
3D 200 { "createvmsnapshotresponse" : 
{"id":"8","jobid":"fa37d77f-28b0-485b-af81-834a07ed6e4e"} }
2014-04-29 15:32:40,306 INFO  [a.c.c.a.ApiServer] 
(catalina-exec-25:ctx-114bb10a ctx-d396131c) (userId=2
 accountId=2 sessionId=5EC896B528FB6DB972CE5B02A277047B) 10.215.2.19 -- GET 
command=listVirtualMachines&
response=json&sessionkey=e1WRj6SbsZEClPvlCdLP9f3MhYI%3D&listAll=true&page=1&pagesize=20&_=1398810759989
200 { "listvirtualmachinesresponse" : { "count":6 ,"virtualmachine" : [  
{"id":"cea5fc51-6a31-4209-b26f-
9097c9d17011","name":"d2-vm","displayname":"d2-vm","account":"d2","domainid":"0af12b69-67f4-454a-9eb6-f2
bef02aba0b","domain":"d2","created":"2014-04-28T10:21:08-0700","state":"Running","haenable":false,"zonei
d":"6933ac3e-29fe-4170-8411-b1827aa2f5cf","zonename":"z","hostid":"d8fb3cb9-782e-4cdc-b0c0-3adcf65a7a15"
,"hostname":"10.223.58.68","templateid":"549440c8-bf4b-11e3-a56d-ced18bec4952","templatename":"CentOS
 5.
3(64-bit) no GUI (vSphere)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI 
(vSphere)","passwordenabled
":false,"serviceofferingid":"4c035b12-f32f-4c0c-b768-264ec02ac242","serviceofferingname":"Small
 Instance
","cpunumber":1,"cpuspeed":500,"memory":512,"cpuused":"45%","networkkbsread":0,"networkkbswrite":0,"gues
tosid":"54a23660-bf4b-11e3-a56d-ced18bec4952","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[
],"nic":[{"id":"cae4f3d2-1598-4aa0-98b9-669a4c7de6ae","networkid":"f417c31a-e19f-45db-9180-87f17a195bf0"
,"networkname":"d2-net","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.151","isolati
onuri":"vlan://2342","broadcasturi":"vlan://2342","traffictype":"Guest","type":"Isolated","isdefault":tr
ue,"macaddress":"02:00:41:11:00:01"}],"hypervisor":"VMware","publicipid":"a6866b38-e8dd-4deb-965f-c09931
d183fe","publicip":"10.223.138.11","instancename":"i-10-32-VM","tags":[],"affinitygroup":[],"displayvm":
true,"isdynamicallyscalable":false,"ostypeid":12}, 
{"id":"e887d23a-fac0-4397-adb9-edfbf2169453","name":"
d1-vm","displayname":"d1-vm","account":"d1","domainid":"90a8c572-3f92-420b-9176-5daafa9853da","domain":"
d1","created":"2014-04-28T10:20:39-0700","state":"Running","haenable":false,"zoneid":"6933ac3e-29fe-4170
-8411-b1827aa2f5cf","zonename":"z","hostid":"d8fb3cb9-782e-4cdc-b0c0-3adcf65a7a15","hostname":"10.223.58
.68","templateid":"549440c8-bf4b-11e3-a56d-ced18bec4952","templatename":"CentOS 
5.3(64-bit) no GUI (vSph
ere)","templatedisplaytext":"CentOS 5.3(64-bit) no GUI 
(vSphere)","passwordenabled":false,"serviceofferi
ngid":"4c035b12-f32f-4c0c-b768-264ec02ac242","serviceofferingname":"Small 
Instance","cpunumber":1,"cpusp
eed":500,"memory":512,"cpuused":"45%","networkkbsread":0,"networkkbswrite":0,"guestosid":"54a23660-bf4b-
11e3-a56d-ced18bec4952","rootdeviceid":0,"rootdevicetype":"ROOT","securitygroup":[],"nic":[{"id":"5c410c
a5-5151-48d8-8de7-4fc674bd597a","networkid":"2a7d1254-3120-42f5-b8b9-dd64485cfed4","networkname":"d1-net
","netmask":"255.255.255.0","gateway":"10.1.1.1","ipaddress":"10.1.1.184","isolationuri":"vlan://2268","










mysql> select * from iam_group_account_map where removed is NULL order by 
group_id;
++--++-+-+
| id | group_id | account_id | removed | created |
++--++-+-+
| 43 |1 | 23 | NULL| 2014-04-14 23:18:40 |
| 45 |1 | 24 | NULL| 2014-04-17 22:23:41 |
| 41 |1 | 22 | NULL| 2014-04-14 23:18:24 |
| 39 |1 | 21 | NULL| 2014-04-14 23:17:59 |
| 37 |1 | 20 | NULL| 2014-04-14 23:17:40 |
|  2 |2 |  2 | NULL| 2014-04-08 18:29:34 |
|  1 |2 |  1 | NULL| 2014-04-08 18:29:34 |
| 17 |3 | 10 | NULL| 2014-04-10 21:50:18 |
| 15 |3 |  9 | NULL| 2014-04-10 21:49:18 |

[jira] [Commented] (CLOUDSTACK-6253) Optimizing VR alerts getting algorithm

2014-04-11 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13966853#comment-13966853
 ] 

Parth Jagirdar commented on CLOUDSTACK-6253:


Following was found in 4.4 MS Logs.

https://issues.apache.org/jira/browse/CLOUDSTACK-6391



> Optimizing VR alerts getting algorithm
> --
>
> Key: CLOUDSTACK-6253
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6253
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Management Server, Virtual Router
>Affects Versions: 4.4.0
>Reporter: Harikrishna Patnala
>Assignee: Harikrishna Patnala
> Fix For: 4.4.0
>
>
> Need to improve the algorithm in getRouterAlerts.sh to address the corrupted 
> logs lines and to consider the backed up files while searching for alerts. To 
> remove some unused statements. 
> To introduce rollover strategy for routerServiceMonitor.log with maxsize of 
> 10MB and backup count to 5.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6391) MS:Logs: /opt/cloud/bin/getRouterAlerts.sh No Alerts date: has an error status code in return.

2014-04-11 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6391:
--

 Summary: MS:Logs: /opt/cloud/bin/getRouterAlerts.sh No Alerts 
date: has an error status code in return.
 Key: CLOUDSTACK-6391
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6391
 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
 Environment: 4.4
Reporter: Parth Jagirdar
 Fix For: 4.4.0


Following was found in MS logs, Likely due to:

https://issues.apache.org/jira/browse/CLOUDSTACK-6253



2014-04-11 10:37:11,312 DEBUG [c.c.a.m.AgentManagerImpl] 
(RouterMonitor-1:ctx-a6d1555b) Details from executing class 
com.cloud.agent.api.NetworkUsageCommand:
2014-04-11 10:37:11,330 ERROR [c.c.u.s.SshHelper] (DirectAgent-222:ctx-8765c882 
10.223.58.67) SSH execution of command /opt/cloud/bin/getRouterAlerts.sh No 
Alerts
date: has an error status code in return. result output: date: invalid date `No'
date: invalid date `Alerts'
No Alerts
bash: line 1: date:: command not found




--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6379) UI:MS: Unable to create a user type Admin under a domain; No API being fired

2014-04-10 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6379:
--

 Summary: UI:MS: Unable to create a user type Admin under a domain; 
No API being fired
 Key: CLOUDSTACK-6379
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6379
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Management Server, UI
Affects Versions: 4.4.0
 Environment: 4.4
Reporter: Parth Jagirdar
Priority: Critical
 Fix For: 4.4.0
 Attachments: domain admin.jpg

Create a domain, then create a user under it of type Admin. Observe no API 
being fired upon clicking OK.

Also observe Reference Error: rootDomainId not defined.





--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6379) UI:MS: Unable to create a user type Admin under a domain; No API being fired

2014-04-10 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6379:
---

Attachment: domain admin.jpg

> UI:MS: Unable to create a user type Admin under a domain; No API being fired
> 
>
> Key: CLOUDSTACK-6379
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6379
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Management Server, UI
>Affects Versions: 4.4.0
> Environment: 4.4
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.4.0
>
> Attachments: domain admin.jpg
>
>
> Create a domain, then create a user under it of type Admin. Observe no API 
> being fired upon clicking OK.
> Also observe Reference Error: rootDomainId not defined.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CLOUDSTACK-6368) UI: Add Guest Network; UI shows labels.

2014-04-09 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6368:
--

 Summary: UI: Add Guest Network; UI shows labels.
 Key: CLOUDSTACK-6368
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6368
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: UI
Affects Versions: 4.4.0
 Environment: 4.4
Reporter: Parth Jagirdar
 Fix For: 4.4.0


Refer to screen,





--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Updated] (CLOUDSTACK-6368) UI: Add Guest Network; UI shows labels.

2014-04-09 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6368:
---

Attachment: UI.jpg

> UI: Add Guest Network; UI shows labels.
> ---
>
> Key: CLOUDSTACK-6368
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6368
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: UI
>Affects Versions: 4.4.0
> Environment: 4.4
>Reporter: Parth Jagirdar
> Fix For: 4.4.0
>
> Attachments: UI.jpg
>
>
> Refer to screen,



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Closed] (CLOUDSTACK-6016) MS: MS out of memory java.lang.OutOfMemoryError: PermGen space

2014-04-03 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-6016.
--

Resolution: Fixed

Not observed lately.

> MS: MS out of memory java.lang.OutOfMemoryError: PermGen space
> --
>
> Key: CLOUDSTACK-6016
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6016
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server, XenServer
>Affects Versions: 4.2.1
> Environment: Master with Contrail and Xen.
>Reporter: Parth Jagirdar
>Assignee: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
> Attachments: management-server_attachment.log.bz2
>
>
> Detailed logs are attached ..
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | id | name| uuid | pool_type | 
> port | data_center_id | pod_id | cluster_id | used_bytes| capacity_bytes 
> | host_address   | user_info | path   
> | created | removed | update_time | status | 
> storage_provider_name | scope   | hypervisor | managed | capacity_iops |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | 16 | primary | 15027b8a-bb16-3f01-b5af-e980a0060f25 | NetworkFilesystem | 
> 2049 |  1 |  1 |  1 | 4029850058752 | 11810778316800 
> | 10.223.110.232 | NULL  | 
> /export/home/parth/contrail/cloudstack_248_196/primary | 2014-01-31 20:53:34 
> | NULL| NULL| Up | DefaultPrimary| CLUSTER | NULL 
>   |   0 |  NULL |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> 1 row in set (0.01 sec)
> mysql> select * from storage_pool_view;
> ++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
> | id | uuid | name| status | path 
>   | pool_type | host_address  
>  | created | removed | capacity_bytes | capacity_iops | scope   | 
> hypervisor | storage_provider_name | cluster_id | cluster_uuid
>  | cluster_name   | cluster_type | data_center_id | data_center_uuid  
>| data_center_name | data_center_type | pod_id | pod_uuid  
>| pod_name  | tag  | disk_used_capacity | 
> disk_reserved_capacity | job_id | job_uuid | job_status | job_account_id |
> ++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
> | 16 | 15027b8a-bb16-3f01-b5af-e980a0060f25 | primary | Up | 
> /export/home/parth/contrail/cloudstack_248_196/primary | NetworkFilesystem | 
> 10.223

[jira] [Created] (CLOUDSTACK-6101) Contrail:MS: Disable NAT on acquired IP results in exception

2014-02-13 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6101:
--

 Summary: Contrail:MS: Disable NAT on acquired IP results in 
exception
 Key: CLOUDSTACK-6101
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6101
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail, Management Server
Affects Versions: 4.3.0
 Environment: Contrail
Reporter: Parth Jagirdar
 Fix For: 4.3.0


Disable NAT, rule gets removed but exception is thrown.

2014-02-13 13:53:08,389 DEBUG [c.c.n.r.RulesManagerImpl] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) Revoking all Firewallrules as a 
part of disabling static nat for public IP id=3
2014-02-13 13:53:08,400 DEBUG [c.c.n.f.FirewallManagerImpl] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) Releasing 0 firewall rules for ip 
id=3
2014-02-13 13:53:08,401 DEBUG [c.c.n.f.FirewallManagerImpl] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) There are no firewall rules to apply
2014-02-13 13:53:08,402 DEBUG [c.c.n.f.FirewallManagerImpl] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) Successfully released firewall 
rules for ip id=3 and # of rules now = 0
2014-02-13 13:53:08,408 DEBUG [c.c.n.r.RulesManagerImpl] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) Releasing 0 port forwarding rules 
for ip id=3
2014-02-13 13:53:08,410 DEBUG [c.c.n.r.RulesManagerImpl] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) Releasing 0 static nat rules for ip 
id=3
2014-02-13 13:53:08,411 DEBUG [c.c.n.r.RulesManagerImpl] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) There are no port forwarding rules 
to apply for ip id=3
2014-02-13 13:53:08,412 DEBUG [c.c.n.r.RulesManagerImpl] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) There are no static nat rules to 
apply for ip id=3
2014-02-13 13:53:08,423 INFO  [o.a.c.e.o.NetworkOrchestrator] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) Let ContrailElement handle 
StaticNat in network 206
2014-02-13 13:53:08,441 INFO  [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) >> Request: GET, 
/virtual-network/e6c067bc-bc63-4613-a7af-84d0182ff6d2
2014-02-13 13:53:08,451 INFO  [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) << Response Status: HTTP/1.1 200 OK
2014-02-13 13:53:08,455 INFO  [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) >> Request: PUT, 
/virtual-network/e6c067bc-bc63-4613-a7af-84d0182ff6d2, 
{"virtual-network":{"virtual_network_properties":{"extend_to_external_routers":false,"network_id":4},"route_target_list":{"route_target":["target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002"]},"network_ipam_refs":[{"to":["default-domain","default-project","default-network-ipam"],"attr":{"ipam_subnets":[{"subnet":{"ip_prefix":"10.223.138.64","ip_prefix_len":26},"default_gateway":"10.223.138.65"}]},"href":null,"uuid":null}],"floating_ip_pools":[{"to":["default-domain","default-project","__default_Public__","PublicIpPool"],"attr":null,"href":"http://10.223.58.3:8082/floating-ip-pool/8cf92e6e-b81a-44d6-9f6d-1472aaec7264","uuid":"8cf92e6e-b81a-44d6-9f6d-1472aaec7264"}],"routing_instances":[{"to":["default-domain","default-project","__default_Public__","__default_Public__"],"attr":null,"href":"http://10.223.58.3:8082/routing-instance/74769566-dfce-4b6d-bbb5-db772bccb2f9","uuid":"74769566-dfce-4b6d-bbb5-db772bccb2f9"}],"name":"__default_Public__","uuid":"e6c067bc-bc63-4613-a7af-84d0182ff6d2","fq_name":["default-domain","default-project","__default_Public__"],"parent_type":"project","parent_uuid":"fafebf0e-5d9c-4c99-928d-25ab65bd7ebc"}}
2014-02-13 13:53:08,492 INFO  [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) << Response Status: HTTP/1.1 200 OK
2014-02-13 13:53:08,492 INFO  [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) >> Request: GET, 
/virtual-machine-interface/07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19
2014-02-13 13:53:08,496 INFO  [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) << Response Status: HTTP/1.1 404 
Not Found
2014-02-13 13:53:08,496 INFO  [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) >> Request: POST, 
/virtual-machine-interfaces, 
{"virtual-machine-interface":{"virtual_machine_interface_mac_addresses":{"mac_address":["06:e4:2a:00:00:35"]},"virtual_network_refs":[{"to":["default-domain","default-project","__default_Public__"],"attr":null,"href":null,"uuid":null}],"name":"s-11-VM-2","uuid":"07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19","fq_name":["s-11-VM","s-11-VM-2"],"parent_type":"virtual-machine"}}
2014-02-13 13:53:08,505 INFO  [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) << Response Status: HTTP/1.1 400 
Bad Request
2014-02-13 13:53:08,505 ERROR [n.j.c.a.ApiConnector] 
(Job-Executor-77:ctx-6e8167ac ctx-152aebc9) create

[jira] [Closed] (CLOUDSTACK-5776) Contrail:MS: Reboot host remains in UP state on ACS UI.

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-5776.
--


> Contrail:MS: Reboot host remains in UP state on ACS UI.
> ---
>
> Key: CLOUDSTACK-5776
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5776
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, XenServer
>Affects Versions: 4.2.0
> Environment: Contrail.
>Reporter: Parth Jagirdar
>
> Host remains in UP state on UI. Although User VM"s and Systems VM are marked 
> in stopped state.
> Host info should be synced with ACS appropriately.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Resolved] (CLOUDSTACK-5776) Contrail:MS: Reboot host remains in UP state on ACS UI.

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar resolved CLOUDSTACK-5776.


Resolution: Fixed

Not observed in 4.3

> Contrail:MS: Reboot host remains in UP state on ACS UI.
> ---
>
> Key: CLOUDSTACK-5776
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5776
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, XenServer
>Affects Versions: 4.2.0
> Environment: Contrail.
>Reporter: Parth Jagirdar
>
> Host remains in UP state on UI. Although User VM"s and Systems VM are marked 
> in stopped state.
> Host info should be synced with ACS appropriately.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Closed] (CLOUDSTACK-5775) Contrail:MS: Stop VM fails with exception; and expunges it from the host

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-5775.
--


> Contrail:MS: Stop VM fails with exception; and expunges it from the host
> 
>
> Key: CLOUDSTACK-5775
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5775
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Blocker
>
> Stop VM fails with exception, On ACS UI VM remains stuck in stopping state.
> On host VM does gets stopped. and eventually expunged.
> 2014-01-03 14:57:27,579 DEBUG 
> [contrail.management.EventUtils$EventInterceptor] (Job-Executor-34:job-43 = [ 
> e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) interceptException
> 2014-01-03 14:57:27,579 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) 
> Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd
> java.lang.NullPointerException
> at 
> com.cloud.vm.UserVmManagerImpl.finalizeStop(UserVmManagerImpl.java:3271)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1253)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.stop(VirtualMachineManagerImpl.java:1039)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.stopvirtualmachine(VMEntityManagerImpl.java:251)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.stop(VirtualMachineEntityImpl.java:214)
> at 
> com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:3228)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd.execute(StopVMCmd.java:117)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> 2014-01-03 14:57:27,581 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) Complete 
> async job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ], jobStatus: 2, 
> resultCode: 530, result: Error Code: 530 Error text: null
> 2014-01-03 14:57:30,131 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=e893cbca-59e9-4ee1-bce3-cc918fb829f1&response=json&sessionkey=lhySlIIDUvWHZ5yKeVK55FnVmbc%3D&_=1388789861991



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Reopened] (CLOUDSTACK-5775) Contrail:MS: Stop VM fails with exception; and expunges it from the host

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar reopened CLOUDSTACK-5775:



> Contrail:MS: Stop VM fails with exception; and expunges it from the host
> 
>
> Key: CLOUDSTACK-5775
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5775
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Blocker
>
> Stop VM fails with exception, On ACS UI VM remains stuck in stopping state.
> On host VM does gets stopped. and eventually expunged.
> 2014-01-03 14:57:27,579 DEBUG 
> [contrail.management.EventUtils$EventInterceptor] (Job-Executor-34:job-43 = [ 
> e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) interceptException
> 2014-01-03 14:57:27,579 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) 
> Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd
> java.lang.NullPointerException
> at 
> com.cloud.vm.UserVmManagerImpl.finalizeStop(UserVmManagerImpl.java:3271)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1253)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.stop(VirtualMachineManagerImpl.java:1039)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.stopvirtualmachine(VMEntityManagerImpl.java:251)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.stop(VirtualMachineEntityImpl.java:214)
> at 
> com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:3228)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd.execute(StopVMCmd.java:117)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> 2014-01-03 14:57:27,581 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) Complete 
> async job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ], jobStatus: 2, 
> resultCode: 530, result: Error Code: 530 Error text: null
> 2014-01-03 14:57:30,131 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=e893cbca-59e9-4ee1-bce3-cc918fb829f1&response=json&sessionkey=lhySlIIDUvWHZ5yKeVK55FnVmbc%3D&_=1388789861991



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Resolved] (CLOUDSTACK-5775) Contrail:MS: Stop VM fails with exception; and expunges it from the host

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar resolved CLOUDSTACK-5775.


Resolution: Fixed

Fixed in 4.3

> Contrail:MS: Stop VM fails with exception; and expunges it from the host
> 
>
> Key: CLOUDSTACK-5775
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5775
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Blocker
>
> Stop VM fails with exception, On ACS UI VM remains stuck in stopping state.
> On host VM does gets stopped. and eventually expunged.
> 2014-01-03 14:57:27,579 DEBUG 
> [contrail.management.EventUtils$EventInterceptor] (Job-Executor-34:job-43 = [ 
> e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) interceptException
> 2014-01-03 14:57:27,579 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) 
> Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd
> java.lang.NullPointerException
> at 
> com.cloud.vm.UserVmManagerImpl.finalizeStop(UserVmManagerImpl.java:3271)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1253)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.stop(VirtualMachineManagerImpl.java:1039)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.stopvirtualmachine(VMEntityManagerImpl.java:251)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.stop(VirtualMachineEntityImpl.java:214)
> at 
> com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:3228)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd.execute(StopVMCmd.java:117)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> 2014-01-03 14:57:27,581 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) Complete 
> async job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ], jobStatus: 2, 
> resultCode: 530, result: Error Code: 530 Error text: null
> 2014-01-03 14:57:30,131 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=e893cbca-59e9-4ee1-bce3-cc918fb829f1&response=json&sessionkey=lhySlIIDUvWHZ5yKeVK55FnVmbc%3D&_=1388789861991



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Resolved] (CLOUDSTACK-5775) Contrail:MS: Stop VM fails with exception; and expunges it from the host

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar resolved CLOUDSTACK-5775.


Resolution: Fixed

fixed in 4.3

> Contrail:MS: Stop VM fails with exception; and expunges it from the host
> 
>
> Key: CLOUDSTACK-5775
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5775
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Blocker
>
> Stop VM fails with exception, On ACS UI VM remains stuck in stopping state.
> On host VM does gets stopped. and eventually expunged.
> 2014-01-03 14:57:27,579 DEBUG 
> [contrail.management.EventUtils$EventInterceptor] (Job-Executor-34:job-43 = [ 
> e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) interceptException
> 2014-01-03 14:57:27,579 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) 
> Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd
> java.lang.NullPointerException
> at 
> com.cloud.vm.UserVmManagerImpl.finalizeStop(UserVmManagerImpl.java:3271)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1253)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.stop(VirtualMachineManagerImpl.java:1039)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.stopvirtualmachine(VMEntityManagerImpl.java:251)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.stop(VirtualMachineEntityImpl.java:214)
> at 
> com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:3228)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd.execute(StopVMCmd.java:117)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> 2014-01-03 14:57:27,581 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) Complete 
> async job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ], jobStatus: 2, 
> resultCode: 530, result: Error Code: 530 Error text: null
> 2014-01-03 14:57:30,131 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=e893cbca-59e9-4ee1-bce3-cc918fb829f1&response=json&sessionkey=lhySlIIDUvWHZ5yKeVK55FnVmbc%3D&_=1388789861991



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Closed] (CLOUDSTACK-5777) Contrail:MS: Rebooting Xen host results in disconnected SR

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-5777.
--


> Contrail:MS: Rebooting Xen host results in disconnected SR
> --
>
> Key: CLOUDSTACK-5777
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5777
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, XenServer
>Affects Versions: 4.2.0
> Environment: Contrail, Xen 6.1
>Reporter: Parth Jagirdar
>Priority: Blocker
> Fix For: 4.3.0
>
>
> Reboot a host and SR results in disconnected state.
> This was also observed after installing Contrail RPM's on Xen host.
> Admin can manually repair SR from Xen-center.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CLOUDSTACK-5682) Contrail:MS: Sync virtual Machines fails with exception.

2014-02-13 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13900584#comment-13900584
 ] 

Parth Jagirdar commented on CLOUDSTACK-5682:


Observed in 4.3 as well

> Contrail:MS: Sync virtual Machines fails with exception.
> 
>
> Key: CLOUDSTACK-5682
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5682
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
>
> 2013-12-30 11:14:50,888 WARN  [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync virtual-machines
> java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> net.juniper.contrail.management.DBSyncGeneric.equal(DBSyncGeneric.java:136)
> at 
> net.juniper.contrail.management.DBSyncGeneric.syncCollections(DBSyncGeneric.java:237)
> at 
> net.juniper.contrail.management.DBSyncGeneric.syncGeneric(DBSyncGeneric.java:280)
> at 
> net.juniper.contrail.management.ServerDBSyncImpl.syncVirtualMachine(ServerDBSyncImpl.java:649)
> at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> net.juniper.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:95)
> at 
> net.juniper.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:123)
> at 
> net.juniper.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:456)
> at 
> net.juniper.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:473)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
> Caused by: java.lang.NullPointerException
> at 
> net.juniper.contrail.management.ServerDBSyncImpl.buildNicResources(ServerDBSyncImpl.java:766)
> at 
> net.juniper.contrail.management.ServerDBSyncImpl.equalVirtualMachine(ServerDBSyncImpl.java:789)
> at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
> ... 15 more
> 2013-12-30 11:14:50,889 INFO  [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) out of sync detected: VirtualMachine
> 2013-12-30 11:14:50,889 DEBUG [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync check finish: VirtualMachine
> 2013-12-30 11:14:50,889 DEBUG [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync check start: ServiceInstance
> 2013-12-30 11:14:50,889 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) 
> >> Request: GET, /service-instances
> 2013-12-30 11:14:50,892 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) 
> << Response Status: HTTP/1.1 200 OK
> 2013-12-30 11:14:50,892 DEBUG [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync check finish: ServiceInstance
> 2013-12-30 11:14:50,892 DEBUG [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync check start: FloatingIp
> 2013-12-30 11:14:50,903 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) 
> >> Request: POST, /fqname-to-id, {"type":"fl
> oating-ip-pool","fq_name":["default-domain","default-project","__default_Public__","PublicIpPool"]}
> 2013-12-30 11:14:50,906 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) 
> << Response Status: HTTP/1.1 404 Not Found
> 2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
> (DBSyncTimer:null) Generic db sync : FloatingIp
> 2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
> (DBSyncTimer:null) Sync state checking stats >: create: 0, delete: 0, equal: 0, diff:0
> 2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
> (DBSyncTimer:null) DB and VNC objects are in sync : Flo
> atingIp



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Resolved] (CLOUDSTACK-5777) Contrail:MS: Rebooting Xen host results in disconnected SR

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar resolved CLOUDSTACK-5777.


   Resolution: Fixed
Fix Version/s: 4.3.0

Not seen in 4.3


> Contrail:MS: Rebooting Xen host results in disconnected SR
> --
>
> Key: CLOUDSTACK-5777
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5777
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, XenServer
>Affects Versions: 4.2.0
> Environment: Contrail, Xen 6.1
>Reporter: Parth Jagirdar
>Priority: Blocker
> Fix For: 4.3.0
>
>
> Reboot a host and SR results in disconnected state.
> This was also observed after installing Contrail RPM's on Xen host.
> Admin can manually repair SR from Xen-center.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Closed] (CLOUDSTACK-5680) Contrail:MS:API: Contrail DHCP fails with exception

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-5680.
--


> Contrail:MS:API: Contrail DHCP fails with exception
> ---
>
> Key: CLOUDSTACK-5680
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5680
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
> Fix For: 4.2.1
>
>
> Instance creation succeeds but IP doesn't get assigned. 
> 2013-12-27 17:00:53,915 INFO  [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) << 
> Response Status: HTTP/1.1 503 Service Unavailable
> 2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) create 
> api request failed: Service Unavailable
> 2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Failure 
> message: Virtual-Network(default-domain:default-project:contrail) has no 
> defined subnet(s)
> 2013-12-27 17:00:53,916 WARN  [contrail.management.ContrailGuru] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
> virtual-machine update
> com.cloud.exception.InternalErrorException: Unable to create instance-ip 
> i-2-3036-VM-0
>   at 
> net.juniper.contrail.model.InstanceIpModel.update(InstanceIpModel.java:99)
>   at 
> net.juniper.contrail.model.VMInterfaceModel.update(VMInterfaceModel.java:227)
>   at 
> net.juniper.contrail.model.VirtualMachineModel.update(VirtualMachineModel.java:327)
>   at 
> net.juniper.contrail.management.ContrailGuru.reserve(ContrailGuru.java:228)
>   at 
> com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2157)
>   at 
> com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2127)
>   at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:886)
>   at 
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
>   at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227)
>   at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3406)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2966)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2952)
>   at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>   at 
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
>   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>   at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> 2013-12-27 17:00:53,920 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Changing 
> active number of nics for network id=215 on 1
> 2013-12-27 17:00:53,930 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Asking 
> ContrailElementImpl_EnhancerByCloudStack_749d004 to prepare for 
> Nic[12138-3036-c0945234-c3a2-451b-ae04-f465478eee1e-null]
> 2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
> NetworkElement prepare: contrail, traffic type: Guest
> 2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) ignore 
> network contrail
> 2013-12-27 17:00:53,936 DEBUG [cloud.network.NetworkModelImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Service 
> SecurityGroup is not supported in the network id=215
> 2013-12-27 17:00:53,937 DEBUG [contrail.management.ContrailGuru] 
> (Job-Executor-24:job-17 = [ 5316fcdb

[jira] [Resolved] (CLOUDSTACK-5680) Contrail:MS:API: Contrail DHCP fails with exception

2014-02-13 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar resolved CLOUDSTACK-5680.


   Resolution: Fixed
Fix Version/s: 4.2.1

Will be fixed when CLOUDSTACK-5681. gets addressed.

Manually edit DB as workaround.

> Contrail:MS:API: Contrail DHCP fails with exception
> ---
>
> Key: CLOUDSTACK-5680
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5680
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
> Fix For: 4.2.1
>
>
> Instance creation succeeds but IP doesn't get assigned. 
> 2013-12-27 17:00:53,915 INFO  [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) << 
> Response Status: HTTP/1.1 503 Service Unavailable
> 2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) create 
> api request failed: Service Unavailable
> 2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Failure 
> message: Virtual-Network(default-domain:default-project:contrail) has no 
> defined subnet(s)
> 2013-12-27 17:00:53,916 WARN  [contrail.management.ContrailGuru] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
> virtual-machine update
> com.cloud.exception.InternalErrorException: Unable to create instance-ip 
> i-2-3036-VM-0
>   at 
> net.juniper.contrail.model.InstanceIpModel.update(InstanceIpModel.java:99)
>   at 
> net.juniper.contrail.model.VMInterfaceModel.update(VMInterfaceModel.java:227)
>   at 
> net.juniper.contrail.model.VirtualMachineModel.update(VirtualMachineModel.java:327)
>   at 
> net.juniper.contrail.management.ContrailGuru.reserve(ContrailGuru.java:228)
>   at 
> com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2157)
>   at 
> com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2127)
>   at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:886)
>   at 
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
>   at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227)
>   at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3406)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2966)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2952)
>   at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>   at 
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
>   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>   at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> 2013-12-27 17:00:53,920 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Changing 
> active number of nics for network id=215 on 1
> 2013-12-27 17:00:53,930 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Asking 
> ContrailElementImpl_EnhancerByCloudStack_749d004 to prepare for 
> Nic[12138-3036-c0945234-c3a2-451b-ae04-f465478eee1e-null]
> 2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
> NetworkElement prepare: contrail, traffic type: Guest
> 2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) ignore 
> network contrail
> 2013-12-27 17:00:53,936 DEBUG [cloud.network.NetworkModelImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Service 
> SecurityGroup is no

[jira] [Updated] (CLOUDSTACK-5777) Contrail:MS: Rebooting Xen host results in disconnected SR

2014-02-10 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-5777:
---

Priority: Blocker  (was: Major)

While SR does not gets disconnected,

Pushing severity to blocker due to following observations.


1) It takes multiple connect attempts before xenserver host joins the pool 
again.

2) Starting VM's on that Xenserver hosts migrates them to another host in pool.

3) Upon migration VM fails to start.



2014-02-10 14:28:56,633 WARN  [c.c.h.x.r.CitrixResourceBase] 
(DirectAgent-427:ctx-8d999b63) Error while collecting disk stats from :
You gave an invalid object reference.  The object may have recently been 
deleted.  The class parameter gives the type of reference given, and the handle 
parameter echoes the bad value given.
at com.xensource.xenapi.Types.checkResponse(Types.java:209)
at com.xensource.xenapi.Connection.dispatch(Connection.java:368)
at 
com.cloud.hypervisor.xen.resource.XenServerConnectionPool$XenServerConnection.dispatch(XenServerConnectionPool.java:909)
at com.xensource.xenapi.VBDMetrics.getIoReadKbs(VBDMetrics.java:210)
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.getVmStats(CitrixResourceBase.java:2841)
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.execute(CitrixResourceBase.java:2741)
at 
com.cloud.hypervisor.xen.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:493)
at 
com.cloud.hypervisor.xen.resource.XenServer56Resource.executeRequest(XenServer56Resource.java:59)
at 
com.cloud.hypervisor.xen.resource.XenServer610Resource.executeRequest(XenServer610Resource.java:106)
at 
com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:216)
at 
org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at 
org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at 
org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
2014-02-10 14:28:56,635 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-427:ctx-8d999b63) Seq 2-1390027689: Response Received:
2014-02-10 14:28:56,635 DEBUG [c.c.a.t.Request] (StatsCollector-3:ctx-c97c67c1) 
Seq 2-1390027689: Received:  { Ans: , MgmtId: 214151488957798, via: 2, Ver: v1, 
Flags: 10, { GetVmStatsAnswer } }
2014-02-10 14:28:56,992 DEBUG [c.c.s.StatsCollector] 
(StatsCollector-2:ctx-4810db50) HostStatsCollector is running...
2014-02-10 14:28:57,002 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-19:ctx-25a37896) Seq 1-1759117329: Executing request
2014-02-10 14:28:57,231 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-19:ctx-25a37896) Seq 1-1759117329: Response Received:
2014-02-10 14:28:57,231 DEBUG [c.c.a.t.Request] (StatsCollector-2:ctx-4810db50) 
Seq 1-1759117329: Received:  { Ans: , MgmtId: 214151488957798, via: 1, Ver: v1, 
Flags: 10, { GetHostStatsAnswer } }
2014-02-10 14:28:57,240 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-55:ctx-06ca3a2c) Seq 2-1390027690: Executing request
2014-02-10 14:28:57,420 DEBUG [c.c.a.m.DirectAgentAttache] 
(DirectAgent-55:ctx-06ca3a2c) Seq 2-1390027690: Response Received:
2014-02-10 14:28:57,421 DEBUG [c.c.a.t.Request] (StatsCollector-2:ctx-4810db50) 
Seq 2-1390027690: Received:  { Ans: , MgmtId: 214151488957798, via: 2, Ver: v1, 
Flags: 10, { GetHostStatsAnswer } }
2014-02-10 14:28:58,757 DEBUG [c.c.a.ApiServlet] (catalina-exec-9:ctx-381be003) 
===START===  10.215.2.19 -- GET  
command=listZones&id=cce32d06-91d9-47f0-90b5-766416d6add2&response=json&sessionkey=gJbfxiFXGjIJTBqBPlcyevZSM1g%3D&_=1392076043914



> Contrail:MS: Rebooting Xen host results in disconnected SR
> --
>
> Key: CLOUDSTACK-5777
> URL: https://issues.apache.org/jira/browse/CLOUDST

[jira] [Commented] (CLOUDSTACK-5773) Contrail:MS: Restart network fails with Unable to restart a running SDN network

2014-02-10 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897280#comment-13897280
 ] 

Parth Jagirdar commented on CLOUDSTACK-5773:


still observed.

> Contrail:MS: Restart network fails with Unable to restart a running SDN 
> network
> ---
>
> Key: CLOUDSTACK-5773
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5773
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
>
> Restart network fails with Unable to restart a running SDN network
> 2014-01-03 14:48:11,907 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-27:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) job 
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd for job-39 = 
> [ 4e217deb-844a-45f2-9e2a-183a3344de2e ] was queued, processing the queue.
> 2014-01-03 14:48:11,913 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-27:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Executing 
> sync queue item: SyncQueueItemVO {id:19, queueId: 9, contentType: AsyncJob, 
> contentId: 39, lastProcessMsid: 86780043846508, lastprocessNumber: 5, 
> lastProcessTime: Fri Jan 03 14:48:11 PST 2014, created: Fri Jan 03 14:48:11 
> PST 2014}
> 2014-01-03 14:48:11,915 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-27:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Schedule 
> queued job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]
> 2014-01-03 14:48:11,921 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Executing 
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd for job-39 = 
> [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]
> 2014-01-03 14:48:11,921 DEBUG [cloud.async.SyncQueueManagerImpl] 
> (Job-Executor-27:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) There is 
> a pending process in sync queue(id: 9)
> 2014-01-03 14:48:11,954 DEBUG 
> [contrail.management.EventUtils$EventInterceptor] (Job-Executor-28:job-39 = [ 
> 4e217deb-844a-45f2-9e2a-183a3344de2e ]) interceptException
> 2014-01-03 14:48:11,954 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) 
> Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd
> java.security.InvalidParameterException: Unable to restart a running SDN 
> network.
> at 
> com.cloud.network.NetworkServiceImpl.restartNetwork(NetworkServiceImpl.java:1799)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.network.RestartNetworkCmd.execute(RestartNetworkCmd.java:92)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> 2014-01-03 14:48:11,956 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Complete 
> async job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ], jobStatus: 2, 
> resultCode: 530, result: Error Code: 530 Error text: Unable to restart a 
> running SDN network.
> 2014-01-03 14:48:11,968 DEBUG [cloud.async.SyncQueueManagerImpl] 
> (Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Sync 
> queue (9) is currently empty
> 2014-01-03 14:48:11,969 WARN  [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Unable to 
> unregister active job [ 39 ] = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ] from 
> JMX monitoring
> 2014-01-03 14:48:13,297 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-12:null) SeqA 2-83810: Processing Seq 2-83810:  { Cmd , 
> MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2014-01-03 14:48:13,301 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handle

[jira] [Commented] (CLOUDSTACK-6071) Contrail:MS:DB: DBSync exceptions in MS log

2014-02-10 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897087#comment-13897087
 ] 

Parth Jagirdar commented on CLOUDSTACK-6071:


This was observed after a addNic attempt was made, (Which failed due to PV 
Drivers not available).



> Contrail:MS:DB: DBSync exceptions in MS log
> ---
>
> Key: CLOUDSTACK-6071
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6071
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server
>Affects Versions: 4.2.1
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
>
> MS Log,
> 2014-02-10 12:23:31,122 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
> Response Status: HTTP/1.1 200 OK
> 2014-02-10 12:23:31,122 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
> Request: GET, /floating-ip-pool/33b357b3-4f88-4ae6-af86-fb86afa3
> 2014-02-10 12:23:31,125 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
> Response Status: HTTP/1.1 200 OK
> 2014-02-10 12:23:31,126 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
> Request: GET, /floating-ip/6a6fa311-e5a0-4dfb-b289-cbad2122a756
> 2014-02-10 12:23:31,129 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
> Response Status: HTTP/1.1 200 OK
> 2014-02-10 12:23:31,130 DEBUG [o.a.c.n.c.m.DBSyncGeneric] (DBSyncTimer:null) 
> Generic db sync : FloatingIp
> 2014-02-10 12:23:31,141 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
> Request: GET, /virtual-network/e6c067bc-bc63-4613-a7af-84d0182ff6d2
> 2014-02-10 12:23:31,150 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
> Response Status: HTTP/1.1 200 OK
> 2014-02-10 12:23:31,155 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
> Request: PUT, /virtual-network/e6c067bc-bc63-4613-a7af-84d0182ff6d2, 
> {"virtual-network":{"virtual_network_properties":{"extend_to_external_routers":false,"network_id":4},"route_target_list":{"route_target":["target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002"]},"network_ipam_refs":[{"to":["default-domain","default-project","default-network-ipam"],"attr":{"ipam_subnets":[{"subnet":{"ip_prefix":"10.223.138.64","ip_prefix_len":26},"default_gateway":"10.223.138.65"}]},"href":null,"uuid":null}],"floating_ip_pools":[{"to":["default-domain","default-project","__default_Public__","PublicIpPool"],"attr":null,"href":"http://10.223.58.3:8082/floating-ip-pool/33b357b3-4f88-4ae6-af86-fb86afa3","uuid":"33b357b3-4f88-4ae6-af86-fb86afa3"}],"routing_instances":[{"to":["default-domain","default-project","__default_Public__","__default_Public__"],"attr":null,"href":"http://10.223.58.3:8082/routing-instance/74769566-dfce-4b6d-bbb5-db772bccb2f9","uuid":"74769566-dfce-4b6d-bbb5-db772bccb2f9"}],"name":"__default_Public__","uuid":"e6c067bc-bc63-4613-a7af-84d0182ff6d2","fq_name":["default-domain","default-project","__default_Public__"],"parent_type":"project","parent_uuid":"fafebf0e-5d9c-4c99-928d-25ab65bd7ebc"}}
> 2014-02-10 12:23:31,193 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
> Response Status: HTTP/1.1 200 OK
> 2014-02-10 12:23:31,194 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
> Request: GET, /virtual-machine-interface/07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19
> 2014-02-10 12:23:31,198 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
> Response Status: HTTP/1.1 404 Not Found
> 2014-02-10 12:23:31,199 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
> Request: POST, /virtual-machine-interfaces, 
> {"virtual-machine-interface":{"virtual_machine_interface_mac_addresses":{"mac_address":["06:e4:2a:00:00:35"]},"virtual_network_refs":[{"to":["default-domain","default-project","__default_Public__"],"attr":null,"href":null,"uuid":null}],"name":"s-11-VM-2","uuid":"07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19","fq_name":["s-11-VM","s-11-VM-2"],"parent_type":"virtual-machine"}}
> 2014-02-10 12:23:31,205 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
> Response Status: HTTP/1.1 400 Bad Request
> 2014-02-10 12:23:31,205 ERROR [n.j.c.a.ApiConnector] (DBSyncTimer:null) 
> create api request failed: Bad Request
> 2014-02-10 12:23:31,206 ERROR [n.j.c.a.ApiConnector] (DBSyncTimer:null) 
> Failure message:
> 
> 
> 
> Error: 400 Bad Request
> 
>   html {background-color: #eee; font-family: sans;}
>   body {background-color: #fff; border: 1px solid #ddd;
> padding: 15px; margin: 15px;}
>   pre {background-color: #eee; border: 1px solid #ddd; padding: 
> 5px;}
> 
> 
> 
> Error: 400 Bad Request
>

[jira] [Created] (CLOUDSTACK-6071) Contrail:MS:DB: DBSync exceptions in MS log

2014-02-10 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6071:
--

 Summary: Contrail:MS:DB: DBSync exceptions in MS log
 Key: CLOUDSTACK-6071
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6071
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail, Management Server
Affects Versions: 4.2.1
 Environment: Contrail

Reporter: Parth Jagirdar
Priority: Critical
 Fix For: 4.2.1


MS Log,

2014-02-10 12:23:31,122 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 200 OK
2014-02-10 12:23:31,122 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
Request: GET, /floating-ip-pool/33b357b3-4f88-4ae6-af86-fb86afa3
2014-02-10 12:23:31,125 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 200 OK
2014-02-10 12:23:31,126 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
Request: GET, /floating-ip/6a6fa311-e5a0-4dfb-b289-cbad2122a756
2014-02-10 12:23:31,129 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 200 OK
2014-02-10 12:23:31,130 DEBUG [o.a.c.n.c.m.DBSyncGeneric] (DBSyncTimer:null) 
Generic db sync : FloatingIp
2014-02-10 12:23:31,141 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
Request: GET, /virtual-network/e6c067bc-bc63-4613-a7af-84d0182ff6d2
2014-02-10 12:23:31,150 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 200 OK
2014-02-10 12:23:31,155 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
Request: PUT, /virtual-network/e6c067bc-bc63-4613-a7af-84d0182ff6d2, 
{"virtual-network":{"virtual_network_properties":{"extend_to_external_routers":false,"network_id":4},"route_target_list":{"route_target":["target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002","target:64512:1002"]},"network_ipam_refs":[{"to":["default-domain","default-project","default-network-ipam"],"attr":{"ipam_subnets":[{"subnet":{"ip_prefix":"10.223.138.64","ip_prefix_len":26},"default_gateway":"10.223.138.65"}]},"href":null,"uuid":null}],"floating_ip_pools":[{"to":["default-domain","default-project","__default_Public__","PublicIpPool"],"attr":null,"href":"http://10.223.58.3:8082/floating-ip-pool/33b357b3-4f88-4ae6-af86-fb86afa3","uuid":"33b357b3-4f88-4ae6-af86-fb86afa3"}],"routing_instances":[{"to":["default-domain","default-project","__default_Public__","__default_Public__"],"attr":null,"href":"http://10.223.58.3:8082/routing-instance/74769566-dfce-4b6d-bbb5-db772bccb2f9","uuid":"74769566-dfce-4b6d-bbb5-db772bccb2f9"}],"name":"__default_Public__","uuid":"e6c067bc-bc63-4613-a7af-84d0182ff6d2","fq_name":["default-domain","default-project","__default_Public__"],"parent_type":"project","parent_uuid":"fafebf0e-5d9c-4c99-928d-25ab65bd7ebc"}}
2014-02-10 12:23:31,193 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 200 OK
2014-02-10 12:23:31,194 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
Request: GET, /virtual-machine-interface/07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19
2014-02-10 12:23:31,198 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 404 Not Found
2014-02-10 12:23:31,199 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) >> 
Request: POST, /virtual-machine-interfaces, 
{"virtual-machine-interface":{"virtual_machine_interface_mac_addresses":{"mac_address":["06:e4:2a:00:00:35"]},"virtual_network_refs":[{"to":["default-domain","default-project","__default_Public__"],"attr":null,"href":null,"uuid":null}],"name":"s-11-VM-2","uuid":"07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19","fq_name":["s-11-VM","s-11-VM-2"],"parent_type":"virtual-machine"}}
2014-02-10 12:23:31,205 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 400 Bad Request
2014-02-10 12:23:31,205 ERROR [n.j.c.a.ApiConnector] (DBSyncTimer:null) create 
api request failed: Bad Request
2014-02-10 12:23:31,206 ERROR [n.j.c.a.ApiConnector] (DBSyncTimer:null) Failure 
message:



Error: 400 Bad Request

  html {background-color: #eee; font-family: sans;}
  body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
  pre {background-color: #eee; border: 1px solid #ddd; padding: 
5px;}



Error: 400 Bad Request
Sorry, the requested URL 
'http://10.223.58.3:8082/virtual-machine-interfaces';
   caused an error:
Parent [u's-11-VM'] type virtual-machine does not 
exist



2014-02-10 12:23:31,206 WARN  [o.a.c.n.c.m.ContrailManager] (DBSyncTimer:null) 
virtual-network update:
com.cloud.exception.InternalErrorException: Unable to create 
virtual-machine-interface 07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19
  

[jira] [Created] (CLOUDSTACK-6070) Contrail:Static NAT: Unable to create virtual-machine-interface

2014-02-10 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6070:
--

 Summary: Contrail:Static NAT: Unable to create 
virtual-machine-interface
 Key: CLOUDSTACK-6070
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6070
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, Contrail
Affects Versions: 4.2.1
 Environment: Contrail, Xen
Reporter: Parth Jagirdar
Priority: Critical
 Fix For: 4.2.1


Acquire IP, Enable Static NAT,

Choose a VM and following exception is raised. Although NAt does get enabled.


2014-02-10 10:20:21,975 INFO  [n.j.c.a.ApiConnector] 
(catalina-exec-11:ctx-8730afff ctx-f70574dc) >> Request: POST, 
/virtual-machine-interfaces, 
{"virtual-machine-interface":{"virtual_machine_interface_mac_addresses":{"mac_address":["06:e4:2a:00:00:35"]},"virtual_network_refs":[{"to":["default-domain","default-project","__default_Public__"],"attr":null,"href":null,"uuid":null}],"name":"s-11-VM-2","uuid":"07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19","fq_name":["s-11-VM","s-11-VM-2"],"parent_type":"virtual-machine"}}
2014-02-10 10:20:21,997 INFO  [n.j.c.a.ApiConnector] 
(catalina-exec-11:ctx-8730afff ctx-f70574dc) << Response Status: HTTP/1.1 400 
Bad Request
2014-02-10 10:20:21,997 ERROR [n.j.c.a.ApiConnector] 
(catalina-exec-11:ctx-8730afff ctx-f70574dc) create api request failed: Bad 
Request
2014-02-10 10:20:21,998 ERROR [n.j.c.a.ApiConnector] 
(catalina-exec-11:ctx-8730afff ctx-f70574dc) Failure message:



Error: 400 Bad Request

  html {background-color: #eee; font-family: sans;}
  body {background-color: #fff; border: 1px solid #ddd;
padding: 15px; margin: 15px;}
  pre {background-color: #eee; border: 1px solid #ddd; padding: 
5px;}



Error: 400 Bad Request
Sorry, the requested URL 
'http://10.223.58.3:8082/virtual-machine-interfaces';
   caused an error:
Parent [u's-11-VM'] type virtual-machine does not 
exist



2014-02-10 10:20:21,998 WARN  [o.a.c.n.c.m.ContrailManager] 
(catalina-exec-11:ctx-8730afff ctx-f70574dc) virtual-network update:
com.cloud.exception.InternalErrorException: Unable to create 
virtual-machine-interface 07c6bdac-7be4-4d88-83ef-6f5ffe2f8b19
at 
org.apache.cloudstack.network.contrail.model.VMInterfaceModel.update(VMInterfaceModel.java:229)
at 
org.apache.cloudstack.network.contrail.model.VirtualNetworkModel.update(VirtualNetworkModel.java:305)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl.lookupPublicNetworkModel(ContrailManagerImpl.java:781)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl.createFloatingIp(ContrailManagerImpl.java:791)
at 
org.apache.cloudstack.network.contrail.management.ContrailElementImpl.applyIps(ContrailElementImpl.java:345)
at 
com.cloud.network.IpAddressManagerImpl.applyIpAssociations(IpAddressManagerImpl.java:976)
at 
com.cloud.network.IpAddressManagerImpl.applyStaticNats(IpAddressManagerImpl.java:1756)
at 
com.cloud.network.rules.RulesManagerImpl.applyStaticNatForIp(RulesManagerImpl.java:1324)
at 
com.cloud.network.rules.RulesManagerImpl.enableStaticNat(RulesManagerImpl.java:602)
at 
com.cloud.network.rules.RulesManagerImpl.enableStaticNat(RulesManagerImpl.java:446)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at 
org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:109)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at 
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:50)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop

[jira] [Closed] (CLOUDSTACK-5686) Contrail:CPVM: Console proxy view of guest VM's being timed out

2014-02-07 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-5686.
--

   Resolution: Fixed
Fix Version/s: 4.2.1

Verified,

> Contrail:CPVM: Console proxy view of guest VM's being timed out
> ---
>
> Key: CLOUDSTACK-5686
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5686
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, SystemVM
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
>
> CPVM is up and in running state.
> 2013-12-30 17:23:12,050 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 2-43172: Processing Seq 2-43172:  { Cmd , 
> MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-12-30 17:23:12,054 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 2-43172: Sending Seq 2-43172:  { Ans: , 
> MgmtId: 86780043846508, via: 2, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-12-30 17:23:13,024 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Sending  { Cmd , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 100011, 
> [{"com.cloud.agent.api.GetVncPortCommand":{"id":3039,"name":"i-2-3039-VM","wait":0}}]
>  }
> 2013-12-30 17:23:13,024 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Executing:  { Cmd , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 100011, 
> [{"com.cloud.agent.api.GetVncPortCommand":{"id":3039,"name":"i-2-3039-VM","wait":0}}]
>  }
> 2013-12-30 17:23:13,024 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-219:null) Seq 1-712654670: Executing request
> 2013-12-30 17:23:13,165 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-219:null) Seq 1-712654670: Response Received:
> 2013-12-30 17:23:13,166 DEBUG [agent.transport.Request] 
> (DirectAgent-219:null) Seq 1-712654670: Processing:  { Ans: , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 10, 
> [{"com.cloud.agent.api.GetVncPortAnswer":{"address":"consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c","port":-1,"result":true,"wait":0}}]
>  }
> 2013-12-30 17:23:13,166 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Received:  { Ans: , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 10, { GetVncPortAnswer } }
> 2013-12-30 17:23:13,166 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Port info 
> consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c
> 2013-12-30 17:23:13,166 INFO  [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Parse host info returned from executing 
> GetVNCPortCommand. host info: 
> consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c
> 2013-12-30 17:23:13,168 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Compose console url: 
> https://10-223-138-3.realhostip.com/ajax?token=jbfEZBHaxjTQJndV5T1HMf5zgIrBE7IEyfI-8Tmi428dLW1rwxGG7nAe0h3ys_-uhPylt2tSO6vaTstQzKEb8-WyCEhDt_YMnGHqTRgvAOBc64cz8cw9EAqdxH9JWZRi3o-uUrazsGIV2nd4y5zzut_FtEOeWdkCNbWQcSHUJcQeK6CaF-BIgZL8CMzJiu4i0JKrZ-0NZWep4YDG9F8wGIIFRkHjLMQC5h0Qso9nJcLCvodUF0tpwRyS6M-DT-XyUPnU-Q7BCEat5DnU44FXN-ZNzBaJkLGOW4DpI5spApUXab8VRlp5DZBkzdoH_Mk1Ht38hQ48XKhD7BVYUp_xCFTJdzvsc-185eQuTmy1GN5UKth2tV2Ly6uzuQowFnN95rijJkVUyhFu7Wvpy8dLqI5ZNNM-xYaG4YXzsSIJTomNDfTa__24bqLyOZzSMVbyZUixmgMZ_K0lDHdXgTgUtAnJ-ygBIDvfxmh-cga4JwU
> 2013-12-30 17:23:13,168 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) the console url is :: 
> scapegoat src="https://10-223-138-3.realhostip.com/ajax?token=jbfEZBHaxjTQJndV5T1HMf5zgIrBE7IEyfI-8Tmi428dLW1rwxGG7nAe0h3ys_-uhPylt2tSO6vaTstQzKEb8-WyCEhDt_YMnGHqTRgvAOBc64cz8cw9EAqdxH9JWZRi3o-uUrazsGIV2nd4y5zzut_FtEOeWdkCNbWQcSHUJcQeK6CaF-BIgZL8CMzJiu4i0JKrZ-0NZWep4YDG9F8wGIIFRkHjLMQC5h0Qso9nJcLCvodUF0tpwRyS6M-DT-XyUPnU-Q7BCEat5DnU44FXN-ZNzBaJkLGOW4DpI5spApUXab8VRlp5DZBkzdoH_Mk1Ht38hQ48XKhD7BVYUp_xCFTJdzvsc-185eQuTmy1GN5UKth2tV2Ly6uzuQowFnN95rijJkVUyhFu7Wvpy8dLqI5ZNNM-xYaG4YXzsSIJTomNDfTa__24bqLyOZzSMVbyZUixmgMZ_K0lDHdXgTgUtAnJ-ygBIDvfxmh-cga4JwU";>
> 2013-12-30 17:23:18,907 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
> (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
> 2013-12-30 17:23:19,093 D

[jira] [Resolved] (CLOUDSTACK-5768) Contrail:MS: No public network access

2014-02-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar resolved CLOUDSTACK-5768.


   Resolution: Fixed
Fix Version/s: 4.2.1

Use devstack to decapsulate traffic.



> Contrail:MS: No public network access
> -
>
> Key: CLOUDSTACK-5768
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5768
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
>
> Guest VM's, System VM's have no public network access. Need a workaround to 
> be able to reach public network without a physical router running BGP/GRE.
> No public network access results in failure while registering templates and 
> ISO. (Assuming following exception is due to connectivity)
> 2014-01-03 11:34:41,708 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
> ===START===  10.215.2.19 -- GET  
> command=registerIso&response=json&sessionkey=6NRmRzTiABw%2Fcqv6%2FfkDDI7HWjg%3D&name=CentOS-6.4-x86_64-minimal&displayText=CentOS-6.4-x86_64-minimal&url=http%3A%2F%2Fnfs1.lab.vmops.com%2Fparth%2FCentOS-6.4-x86_64-minimal.iso&zoneid=-1&isextractable=false&bootable=true&osTypeId=90a6b632-677a-11e3-b51d-4eed0dafe36c&ispublic=true&isfeatured=true&_=1388777693620
> 2014-01-03 11:34:41,797 DEBUG [storage.image.TemplateDataFactoryImpl] 
> (catalina-exec-24:null) template 201 is already in store:1, type:Image
> 2014-01-03 11:34:41,810 DEBUG [storage.image.TemplateDataFactoryImpl] 
> (catalina-exec-24:null) template 201 is already in store:1, type:Image
> 2014-01-03 11:34:41,822 DEBUG [storage.image.BaseImageStoreDriverImpl] 
> (catalina-exec-24:null) Downloading template to data store 1
> 2014-01-03 11:34:41,828 INFO  [storage.download.DownloadMonitorImpl] 
> (catalina-exec-24:null) Template download is already in progress or already 
> downloaded
> 2014-01-03 11:34:41,828 DEBUG [storage.image.BaseImageStoreDriverImpl] 
> (catalina-exec-24:null) Performing image store createTemplate async callback
> 2014-01-03 11:34:41,851 DEBUG 
> [contrail.management.EventUtils$EventInterceptor] (catalina-exec-24:null) 
> interceptException
> 2014-01-03 11:34:41,851 ERROR [cloud.api.ApiServer] (catalina-exec-24:null) 
> unhandled exception executing api command: registerIso
> java.lang.RuntimeException: InvocationTargetException when invoking RPC 
> callback for command: createTemplateAsyncCallback
> at 
> org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.dispatch(AsyncCallbackDispatcher.java:148)
> at 
> org.apache.cloudstack.framework.async.InplaceAsyncCallbackDriver.performCompletionCallback(InplaceAsyncCallbackDriver.java:26)
> at 
> org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.complete(AsyncCallbackDispatcher.java:120)
> at 
> com.cloud.storage.download.DownloadMonitorImpl.downloadTemplateToStorage(DownloadMonitorImpl.java:214)
> at 
> org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.createAsync(BaseImageStoreDriverImpl.java:120)
> at 
> org.apache.cloudstack.storage.image.TemplateServiceImpl.createTemplateAsync(TemplateServiceImpl.java:175)
> at 
> com.cloud.template.HypervisorTemplateAdapter.create(HypervisorTemplateAdapter.java:213)
> at 
> com.cloud.template.TemplateManagerImpl.registerIso(TemplateManagerImpl.java:322)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.iso.RegisterIsoCmd.execute(RegisterIsoCmd.java:180)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>   

[jira] [Resolved] (CLOUDSTACK-5686) Contrail:CPVM: Console proxy view of guest VM's being timed out

2014-02-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar resolved CLOUDSTACK-5686.


Resolution: Fixed

Fixed with public connectivity using devstack gateway.

> Contrail:CPVM: Console proxy view of guest VM's being timed out
> ---
>
> Key: CLOUDSTACK-5686
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5686
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, SystemVM
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
>
> CPVM is up and in running state.
> 2013-12-30 17:23:12,050 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 2-43172: Processing Seq 2-43172:  { Cmd , 
> MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-12-30 17:23:12,054 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 2-43172: Sending Seq 2-43172:  { Ans: , 
> MgmtId: 86780043846508, via: 2, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-12-30 17:23:13,024 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Sending  { Cmd , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 100011, 
> [{"com.cloud.agent.api.GetVncPortCommand":{"id":3039,"name":"i-2-3039-VM","wait":0}}]
>  }
> 2013-12-30 17:23:13,024 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Executing:  { Cmd , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 100011, 
> [{"com.cloud.agent.api.GetVncPortCommand":{"id":3039,"name":"i-2-3039-VM","wait":0}}]
>  }
> 2013-12-30 17:23:13,024 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-219:null) Seq 1-712654670: Executing request
> 2013-12-30 17:23:13,165 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-219:null) Seq 1-712654670: Response Received:
> 2013-12-30 17:23:13,166 DEBUG [agent.transport.Request] 
> (DirectAgent-219:null) Seq 1-712654670: Processing:  { Ans: , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 10, 
> [{"com.cloud.agent.api.GetVncPortAnswer":{"address":"consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c","port":-1,"result":true,"wait":0}}]
>  }
> 2013-12-30 17:23:13,166 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Received:  { Ans: , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 10, { GetVncPortAnswer } }
> 2013-12-30 17:23:13,166 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Port info 
> consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c
> 2013-12-30 17:23:13,166 INFO  [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Parse host info returned from executing 
> GetVNCPortCommand. host info: 
> consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c
> 2013-12-30 17:23:13,168 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Compose console url: 
> https://10-223-138-3.realhostip.com/ajax?token=jbfEZBHaxjTQJndV5T1HMf5zgIrBE7IEyfI-8Tmi428dLW1rwxGG7nAe0h3ys_-uhPylt2tSO6vaTstQzKEb8-WyCEhDt_YMnGHqTRgvAOBc64cz8cw9EAqdxH9JWZRi3o-uUrazsGIV2nd4y5zzut_FtEOeWdkCNbWQcSHUJcQeK6CaF-BIgZL8CMzJiu4i0JKrZ-0NZWep4YDG9F8wGIIFRkHjLMQC5h0Qso9nJcLCvodUF0tpwRyS6M-DT-XyUPnU-Q7BCEat5DnU44FXN-ZNzBaJkLGOW4DpI5spApUXab8VRlp5DZBkzdoH_Mk1Ht38hQ48XKhD7BVYUp_xCFTJdzvsc-185eQuTmy1GN5UKth2tV2Ly6uzuQowFnN95rijJkVUyhFu7Wvpy8dLqI5ZNNM-xYaG4YXzsSIJTomNDfTa__24bqLyOZzSMVbyZUixmgMZ_K0lDHdXgTgUtAnJ-ygBIDvfxmh-cga4JwU
> 2013-12-30 17:23:13,168 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) the console url is :: 
> scapegoat src="https://10-223-138-3.realhostip.com/ajax?token=jbfEZBHaxjTQJndV5T1HMf5zgIrBE7IEyfI-8Tmi428dLW1rwxGG7nAe0h3ys_-uhPylt2tSO6vaTstQzKEb8-WyCEhDt_YMnGHqTRgvAOBc64cz8cw9EAqdxH9JWZRi3o-uUrazsGIV2nd4y5zzut_FtEOeWdkCNbWQcSHUJcQeK6CaF-BIgZL8CMzJiu4i0JKrZ-0NZWep4YDG9F8wGIIFRkHjLMQC5h0Qso9nJcLCvodUF0tpwRyS6M-DT-XyUPnU-Q7BCEat5DnU44FXN-ZNzBaJkLGOW4DpI5spApUXab8VRlp5DZBkzdoH_Mk1Ht38hQ48XKhD7BVYUp_xCFTJdzvsc-185eQuTmy1GN5UKth2tV2Ly6uzuQowFnN95rijJkVUyhFu7Wvpy8dLqI5ZNNM-xYaG4YXzsSIJTomNDfTa__24bqLyOZzSMVbyZUixmgMZ_K0lDHdXgTgUtAnJ-ygBIDvfxmh-cga4JwU";>
> 2013-12-30 17:23:18,907 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
> (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
> 2013-12-30 17:23:19,093 DEBUG [clou

[jira] [Reopened] (CLOUDSTACK-5686) Contrail:CPVM: Console proxy view of guest VM's being timed out

2014-02-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar reopened CLOUDSTACK-5686:



Verified using devstack.

> Contrail:CPVM: Console proxy view of guest VM's being timed out
> ---
>
> Key: CLOUDSTACK-5686
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5686
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, SystemVM
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
>
> CPVM is up and in running state.
> 2013-12-30 17:23:12,050 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 2-43172: Processing Seq 2-43172:  { Cmd , 
> MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-12-30 17:23:12,054 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 2-43172: Sending Seq 2-43172:  { Ans: , 
> MgmtId: 86780043846508, via: 2, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-12-30 17:23:13,024 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Sending  { Cmd , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 100011, 
> [{"com.cloud.agent.api.GetVncPortCommand":{"id":3039,"name":"i-2-3039-VM","wait":0}}]
>  }
> 2013-12-30 17:23:13,024 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Executing:  { Cmd , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 100011, 
> [{"com.cloud.agent.api.GetVncPortCommand":{"id":3039,"name":"i-2-3039-VM","wait":0}}]
>  }
> 2013-12-30 17:23:13,024 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-219:null) Seq 1-712654670: Executing request
> 2013-12-30 17:23:13,165 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-219:null) Seq 1-712654670: Response Received:
> 2013-12-30 17:23:13,166 DEBUG [agent.transport.Request] 
> (DirectAgent-219:null) Seq 1-712654670: Processing:  { Ans: , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 10, 
> [{"com.cloud.agent.api.GetVncPortAnswer":{"address":"consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c","port":-1,"result":true,"wait":0}}]
>  }
> 2013-12-30 17:23:13,166 DEBUG [agent.transport.Request] 
> (catalina-exec-23:null) Seq 1-712654670: Received:  { Ans: , MgmtId: 
> 86780043846508, via: 1, Ver: v1, Flags: 10, { GetVncPortAnswer } }
> 2013-12-30 17:23:13,166 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Port info 
> consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c
> 2013-12-30 17:23:13,166 INFO  [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Parse host info returned from executing 
> GetVNCPortCommand. host info: 
> consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c
> 2013-12-30 17:23:13,168 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) Compose console url: 
> https://10-223-138-3.realhostip.com/ajax?token=jbfEZBHaxjTQJndV5T1HMf5zgIrBE7IEyfI-8Tmi428dLW1rwxGG7nAe0h3ys_-uhPylt2tSO6vaTstQzKEb8-WyCEhDt_YMnGHqTRgvAOBc64cz8cw9EAqdxH9JWZRi3o-uUrazsGIV2nd4y5zzut_FtEOeWdkCNbWQcSHUJcQeK6CaF-BIgZL8CMzJiu4i0JKrZ-0NZWep4YDG9F8wGIIFRkHjLMQC5h0Qso9nJcLCvodUF0tpwRyS6M-DT-XyUPnU-Q7BCEat5DnU44FXN-ZNzBaJkLGOW4DpI5spApUXab8VRlp5DZBkzdoH_Mk1Ht38hQ48XKhD7BVYUp_xCFTJdzvsc-185eQuTmy1GN5UKth2tV2Ly6uzuQowFnN95rijJkVUyhFu7Wvpy8dLqI5ZNNM-xYaG4YXzsSIJTomNDfTa__24bqLyOZzSMVbyZUixmgMZ_K0lDHdXgTgUtAnJ-ygBIDvfxmh-cga4JwU
> 2013-12-30 17:23:13,168 DEBUG [cloud.servlet.ConsoleProxyServlet] 
> (catalina-exec-23:null) the console url is :: 
> scapegoat src="https://10-223-138-3.realhostip.com/ajax?token=jbfEZBHaxjTQJndV5T1HMf5zgIrBE7IEyfI-8Tmi428dLW1rwxGG7nAe0h3ys_-uhPylt2tSO6vaTstQzKEb8-WyCEhDt_YMnGHqTRgvAOBc64cz8cw9EAqdxH9JWZRi3o-uUrazsGIV2nd4y5zzut_FtEOeWdkCNbWQcSHUJcQeK6CaF-BIgZL8CMzJiu4i0JKrZ-0NZWep4YDG9F8wGIIFRkHjLMQC5h0Qso9nJcLCvodUF0tpwRyS6M-DT-XyUPnU-Q7BCEat5DnU44FXN-ZNzBaJkLGOW4DpI5spApUXab8VRlp5DZBkzdoH_Mk1Ht38hQ48XKhD7BVYUp_xCFTJdzvsc-185eQuTmy1GN5UKth2tV2Ly6uzuQowFnN95rijJkVUyhFu7Wvpy8dLqI5ZNNM-xYaG4YXzsSIJTomNDfTa__24bqLyOZzSMVbyZUixmgMZ_K0lDHdXgTgUtAnJ-ygBIDvfxmh-cga4JwU";>
> 2013-12-30 17:23:18,907 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
> (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
> 2013-12-30 17:23:19,093 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
> (consolep

[jira] [Closed] (CLOUDSTACK-5768) Contrail:MS: No public network access

2014-02-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-5768.
--


Workaround available using devstack.

> Contrail:MS: No public network access
> -
>
> Key: CLOUDSTACK-5768
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5768
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
>
> Guest VM's, System VM's have no public network access. Need a workaround to 
> be able to reach public network without a physical router running BGP/GRE.
> No public network access results in failure while registering templates and 
> ISO. (Assuming following exception is due to connectivity)
> 2014-01-03 11:34:41,708 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
> ===START===  10.215.2.19 -- GET  
> command=registerIso&response=json&sessionkey=6NRmRzTiABw%2Fcqv6%2FfkDDI7HWjg%3D&name=CentOS-6.4-x86_64-minimal&displayText=CentOS-6.4-x86_64-minimal&url=http%3A%2F%2Fnfs1.lab.vmops.com%2Fparth%2FCentOS-6.4-x86_64-minimal.iso&zoneid=-1&isextractable=false&bootable=true&osTypeId=90a6b632-677a-11e3-b51d-4eed0dafe36c&ispublic=true&isfeatured=true&_=1388777693620
> 2014-01-03 11:34:41,797 DEBUG [storage.image.TemplateDataFactoryImpl] 
> (catalina-exec-24:null) template 201 is already in store:1, type:Image
> 2014-01-03 11:34:41,810 DEBUG [storage.image.TemplateDataFactoryImpl] 
> (catalina-exec-24:null) template 201 is already in store:1, type:Image
> 2014-01-03 11:34:41,822 DEBUG [storage.image.BaseImageStoreDriverImpl] 
> (catalina-exec-24:null) Downloading template to data store 1
> 2014-01-03 11:34:41,828 INFO  [storage.download.DownloadMonitorImpl] 
> (catalina-exec-24:null) Template download is already in progress or already 
> downloaded
> 2014-01-03 11:34:41,828 DEBUG [storage.image.BaseImageStoreDriverImpl] 
> (catalina-exec-24:null) Performing image store createTemplate async callback
> 2014-01-03 11:34:41,851 DEBUG 
> [contrail.management.EventUtils$EventInterceptor] (catalina-exec-24:null) 
> interceptException
> 2014-01-03 11:34:41,851 ERROR [cloud.api.ApiServer] (catalina-exec-24:null) 
> unhandled exception executing api command: registerIso
> java.lang.RuntimeException: InvocationTargetException when invoking RPC 
> callback for command: createTemplateAsyncCallback
> at 
> org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.dispatch(AsyncCallbackDispatcher.java:148)
> at 
> org.apache.cloudstack.framework.async.InplaceAsyncCallbackDriver.performCompletionCallback(InplaceAsyncCallbackDriver.java:26)
> at 
> org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.complete(AsyncCallbackDispatcher.java:120)
> at 
> com.cloud.storage.download.DownloadMonitorImpl.downloadTemplateToStorage(DownloadMonitorImpl.java:214)
> at 
> org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.createAsync(BaseImageStoreDriverImpl.java:120)
> at 
> org.apache.cloudstack.storage.image.TemplateServiceImpl.createTemplateAsync(TemplateServiceImpl.java:175)
> at 
> com.cloud.template.HypervisorTemplateAdapter.create(HypervisorTemplateAdapter.java:213)
> at 
> com.cloud.template.TemplateManagerImpl.registerIso(TemplateManagerImpl.java:322)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.iso.RegisterIsoCmd.execute(RegisterIsoCmd.java:180)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invo

[jira] [Comment Edited] (CLOUDSTACK-6016) MS: MS out of memory java.lang.OutOfMemoryError: PermGen space

2014-02-03 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889912#comment-13889912
 ] 

Parth Jagirdar edited comment on CLOUDSTACK-6016 at 2/3/14 9:12 PM:


[root@localhost mnt]# service cloudstack-management restart
Stopping cloudstack-management:[FAILED]
Starting cloudstack-management:[  OK  ]

Log continues to throw OOM after starting the service.

Java needs to be killing manually to recover from this state.


was (Author: parth):
[root@localhost mnt]# service cloudstack-management restart
Stopping cloudstack-management:[FAILED]
Starting cloudstack-management:[  OK  ]


Log continues to throw OOM after starting the service.


> MS: MS out of memory java.lang.OutOfMemoryError: PermGen space
> --
>
> Key: CLOUDSTACK-6016
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6016
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server, XenServer
>Affects Versions: 4.2.1
> Environment: Master with Contrail and Xen.
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
> Attachments: management-server_attachment.log.bz2
>
>
> Detailed logs are attached ..
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | id | name| uuid | pool_type | 
> port | data_center_id | pod_id | cluster_id | used_bytes| capacity_bytes 
> | host_address   | user_info | path   
> | created | removed | update_time | status | 
> storage_provider_name | scope   | hypervisor | managed | capacity_iops |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | 16 | primary | 15027b8a-bb16-3f01-b5af-e980a0060f25 | NetworkFilesystem | 
> 2049 |  1 |  1 |  1 | 4029850058752 | 11810778316800 
> | 10.223.110.232 | NULL  | 
> /export/home/parth/contrail/cloudstack_248_196/primary | 2014-01-31 20:53:34 
> | NULL| NULL| Up | DefaultPrimary| CLUSTER | NULL 
>   |   0 |  NULL |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> 1 row in set (0.01 sec)
> mysql> select * from storage_pool_view;
> ++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
> | id | uuid | name| status | path 
>   | pool_type | host_address  
>  | created | removed | capacity_bytes | capacity_iops | scope   | 
> hypervisor | storage_provider_name | cluster_id | cluster_uuid
>  | cluster_name   | cluster_type | data_center_id | data_center_uuid  
>| data_center_name | data_center_type | pod_id | pod_uuid  
>| pod_name  | tag  | disk_used_capacity | 
> disk_reserved_capacity | job_id | job_uuid | job_status | job_account_id |
> ++--+-+++---+---

[jira] [Comment Edited] (CLOUDSTACK-6016) MS: MS out of memory java.lang.OutOfMemoryError: PermGen space

2014-02-03 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889912#comment-13889912
 ] 

Parth Jagirdar edited comment on CLOUDSTACK-6016 at 2/3/14 9:08 PM:


[root@localhost mnt]# service cloudstack-management restart
Stopping cloudstack-management:[FAILED]
Starting cloudstack-management:[  OK  ]


Log continues to throw OOM after starting the service.



was (Author: parth):
[root@localhost mnt]# service cloudstack-management restart
Stopping cloudstack-management:[FAILED]
Starting cloudstack-management:[  OK  ]


Log continues to throw OOM after stopping the service.


> MS: MS out of memory java.lang.OutOfMemoryError: PermGen space
> --
>
> Key: CLOUDSTACK-6016
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6016
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server, XenServer
>Affects Versions: 4.2.1
> Environment: Master with Contrail and Xen.
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
> Attachments: management-server_attachment.log.bz2
>
>
> Detailed logs are attached ..
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | id | name| uuid | pool_type | 
> port | data_center_id | pod_id | cluster_id | used_bytes| capacity_bytes 
> | host_address   | user_info | path   
> | created | removed | update_time | status | 
> storage_provider_name | scope   | hypervisor | managed | capacity_iops |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | 16 | primary | 15027b8a-bb16-3f01-b5af-e980a0060f25 | NetworkFilesystem | 
> 2049 |  1 |  1 |  1 | 4029850058752 | 11810778316800 
> | 10.223.110.232 | NULL  | 
> /export/home/parth/contrail/cloudstack_248_196/primary | 2014-01-31 20:53:34 
> | NULL| NULL| Up | DefaultPrimary| CLUSTER | NULL 
>   |   0 |  NULL |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> 1 row in set (0.01 sec)
> mysql> select * from storage_pool_view;
> ++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
> | id | uuid | name| status | path 
>   | pool_type | host_address  
>  | created | removed | capacity_bytes | capacity_iops | scope   | 
> hypervisor | storage_provider_name | cluster_id | cluster_uuid
>  | cluster_name   | cluster_type | data_center_id | data_center_uuid  
>| data_center_name | data_center_type | pod_id | pod_uuid  
>| pod_name  | tag  | disk_used_capacity | 
> disk_reserved_capacity | job_id | job_uuid | job_status | job_account_id |
> ++--+-+++---++-+-++--

[jira] [Commented] (CLOUDSTACK-6016) MS: MS out of memory java.lang.OutOfMemoryError: PermGen space

2014-02-03 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13889912#comment-13889912
 ] 

Parth Jagirdar commented on CLOUDSTACK-6016:


[root@localhost mnt]# service cloudstack-management restart
Stopping cloudstack-management:[FAILED]
Starting cloudstack-management:[  OK  ]


Log continues to throw OOM after stopping the service.


> MS: MS out of memory java.lang.OutOfMemoryError: PermGen space
> --
>
> Key: CLOUDSTACK-6016
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6016
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server, XenServer
>Affects Versions: 4.2.1
> Environment: Master with Contrail and Xen.
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
> Attachments: management-server_attachment.log.bz2
>
>
> Detailed logs are attached ..
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | id | name| uuid | pool_type | 
> port | data_center_id | pod_id | cluster_id | used_bytes| capacity_bytes 
> | host_address   | user_info | path   
> | created | removed | update_time | status | 
> storage_provider_name | scope   | hypervisor | managed | capacity_iops |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | 16 | primary | 15027b8a-bb16-3f01-b5af-e980a0060f25 | NetworkFilesystem | 
> 2049 |  1 |  1 |  1 | 4029850058752 | 11810778316800 
> | 10.223.110.232 | NULL  | 
> /export/home/parth/contrail/cloudstack_248_196/primary | 2014-01-31 20:53:34 
> | NULL| NULL| Up | DefaultPrimary| CLUSTER | NULL 
>   |   0 |  NULL |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> 1 row in set (0.01 sec)
> mysql> select * from storage_pool_view;
> ++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
> | id | uuid | name| status | path 
>   | pool_type | host_address  
>  | created | removed | capacity_bytes | capacity_iops | scope   | 
> hypervisor | storage_provider_name | cluster_id | cluster_uuid
>  | cluster_name   | cluster_type | data_center_id | data_center_uuid  
>| data_center_name | data_center_type | pod_id | pod_uuid  
>| pod_name  | tag  | disk_used_capacity | 
> disk_reserved_capacity | job_id | job_uuid | job_status | job_account_id |
> ++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++-

[jira] [Updated] (CLOUDSTACK-6016) MS: MS out of memory java.lang.OutOfMemoryError: PermGen space

2014-02-03 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-6016:
---

Attachment: management-server_attachment.log.bz2

> MS: MS out of memory java.lang.OutOfMemoryError: PermGen space
> --
>
> Key: CLOUDSTACK-6016
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6016
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server, XenServer
>Affects Versions: 4.2.1
> Environment: Master with Contrail and Xen.
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
> Attachments: management-server_attachment.log.bz2
>
>
> Detailed logs are attached ..
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | id | name| uuid | pool_type | 
> port | data_center_id | pod_id | cluster_id | used_bytes| capacity_bytes 
> | host_address   | user_info | path   
> | created | removed | update_time | status | 
> storage_provider_name | scope   | hypervisor | managed | capacity_iops |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> | 16 | primary | 15027b8a-bb16-3f01-b5af-e980a0060f25 | NetworkFilesystem | 
> 2049 |  1 |  1 |  1 | 4029850058752 | 11810778316800 
> | 10.223.110.232 | NULL  | 
> /export/home/parth/contrail/cloudstack_248_196/primary | 2014-01-31 20:53:34 
> | NULL| NULL| Up | DefaultPrimary| CLUSTER | NULL 
>   |   0 |  NULL |
> ++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
> 1 row in set (0.01 sec)
> mysql> select * from storage_pool_view;
> ++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
> | id | uuid | name| status | path 
>   | pool_type | host_address  
>  | created | removed | capacity_bytes | capacity_iops | scope   | 
> hypervisor | storage_provider_name | cluster_id | cluster_uuid
>  | cluster_name   | cluster_type | data_center_id | data_center_uuid  
>| data_center_name | data_center_type | pod_id | pod_uuid  
>| pod_name  | tag  | disk_used_capacity | 
> disk_reserved_capacity | job_id | job_uuid | job_status | job_account_id |
> ++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
> | 16 | 15027b8a-bb16-3f01-b5af-e980a0060f25 | primary | Up | 
> /export/home/parth/contrail/cloudstack_248_196/primary | NetworkFilesystem | 
> 10.223.110.232 | 2014-01-31 20:53

[jira] [Created] (CLOUDSTACK-6016) MS: MS out of memory java.lang.OutOfMemoryError: PermGen space

2014-02-03 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6016:
--

 Summary: MS: MS out of memory java.lang.OutOfMemoryError: PermGen 
space
 Key: CLOUDSTACK-6016
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6016
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail, Management Server, XenServer
Affects Versions: 4.2.1
 Environment: Master with Contrail and Xen.
Reporter: Parth Jagirdar
Priority: Critical
 Fix For: 4.2.1


Detailed logs are attached ..


++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
| id | name| uuid | pool_type | 
port | data_center_id | pod_id | cluster_id | used_bytes| capacity_bytes | 
host_address   | user_info | path   
| created | removed | update_time | status | 
storage_provider_name | scope   | hypervisor | managed | capacity_iops |
++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
| 16 | primary | 15027b8a-bb16-3f01-b5af-e980a0060f25 | NetworkFilesystem | 
2049 |  1 |  1 |  1 | 4029850058752 | 11810778316800 | 
10.223.110.232 | NULL  | 
/export/home/parth/contrail/cloudstack_248_196/primary | 2014-01-31 20:53:34 | 
NULL| NULL| Up | DefaultPrimary| CLUSTER | NULL   | 
  0 |  NULL |
++-+--+---+--++++---+++---++-+-+-++---+-++-+---+
1 row in set (0.01 sec)




mysql> select * from storage_pool_view;
++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
| id | uuid | name| status | path   
| pool_type | host_address   | 
created | removed | capacity_bytes | capacity_iops | scope   | 
hypervisor | storage_provider_name | cluster_id | cluster_uuid  
   | cluster_name   | cluster_type | data_center_id | data_center_uuid  
   | data_center_name | data_center_type | pod_id | pod_uuid
 | pod_name  | tag  | disk_used_capacity | 
disk_reserved_capacity | job_id | job_uuid | job_status | job_account_id |
++--+-+++---++-+-++---+-++---++--++--++--+--+--++--+---+--++++--+++
| 16 | 15027b8a-bb16-3f01-b5af-e980a0060f25 | primary | Up | 
/export/home/parth/contrail/cloudstack_248_196/primary | NetworkFilesystem | 
10.223.110.232 | 2014-01-31 20:53:34 | NULL| 11810778316800 |  NULL 
| CLUSTER | NULL   | DefaultPrimary|  1 | 
878b925d-9373-4dc5-88f2-9a83d6d924b2 | demo-pod2-xen1 | CloudManaged |  
1 | 8d2fe185-7f85-45e0-b523-cf318c66e799 | default  | Advanced  
   |  1 | fdd9ed6b-3618-4f9f-afe1-191eb290da22 | demo-pod2 | NULL | 

[jira] [Created] (CLOUDSTACK-6014) Contrail:MS:syncDomain java.net.ConnectException: Connection refused

2014-02-03 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-6014:
--

 Summary: Contrail:MS:syncDomain java.net.ConnectException: 
Connection refused
 Key: CLOUDSTACK-6014
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6014
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, Contrail, Management Server
Affects Versions: 4.2.1
 Environment: Master with Contrail and Xen
Reporter: Parth Jagirdar
Priority: Critical
 Fix For: 4.2.1


On a fresh install, Following in seen in MS logs.



2014-01-31 11:35:32,986 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(RouterMonitor-1:ctx-8103e482) Found 0 running routers.
2014-01-31 11:35:32,989 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:ctx-34cc0ed0) Found 0 routers to update status.
2014-01-31 11:35:32,992 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:ctx-34cc0ed0) Found 0 networks to update RvR status.
2014-01-31 11:35:33,877 DEBUG [o.a.c.n.c.m.ContrailManager] (DBSyncTimer:null) 
DB Sync task is running
2014-01-31 11:35:33,877 DEBUG [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:null) 
syncing cloudstack db with vnc
2014-01-31 11:35:33,877 DEBUG [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:null) 
sync start: Domain
2014-01-31 11:35:33,881 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) http 
connection  does not exit
2014-01-31 11:35:33,890 WARN  [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:null) 
syncDomain
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at 
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at 
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at 
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at java.net.Socket.connect(Socket.java:495)
at java.net.Socket.(Socket.java:392)
at java.net.Socket.(Socket.java:206)
at 
net.juniper.contrail.api.ApiConnectorImpl.checkConnection(ApiConnectorImpl.java:127)
at 
net.juniper.contrail.api.ApiConnectorImpl.execute(ApiConnectorImpl.java:156)
at 
net.juniper.contrail.api.ApiConnectorImpl.list(ApiConnectorImpl.java:433)
at 
org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncDomain(ServerDBSyncImpl.java:231)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.cloudstack.network.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:112)
at 
org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:139)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:429)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:446)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
2014-01-31 11:35:33,891 WARN  [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:null) DB 
Synchronization
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.cloudstack.network.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:112)
at 
org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:139)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:429)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:446)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at 
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at 
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at 
java.net.AbstractPlainSocketImpl.connect(AbstractPlain

[jira] [Commented] (CLOUDSTACK-4875) VMWARE: vCenter 5.5 - SYSTEM VM: Unable to create deployment for VM

2014-01-21 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13877933#comment-13877933
 ] 

Parth Jagirdar commented on CLOUDSTACK-4875:


I am currently OoO, Returning on 27th Jan 2014.

Please contact Sudha Ponnaganti 
(sudha.ponnaga...@citrix.com), if anything 
requires urgent attention.

Thanks,
Parth Jagirdar



> VMWARE: vCenter 5.5 - SYSTEM VM: Unable to create deployment for VM
> ---
>
> Key: CLOUDSTACK-4875
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4875
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: SystemVM, VMware
>Affects Versions: 4.2.1
> Environment: Master with vCenter 5.5 / ESXi 5.5
>Reporter: Parth Jagirdar
>Assignee: Likitha Shetty
>Priority: Blocker
> Fix For: 4.3.0
>
> Attachments: VC5.5.jpg, catalina.out, management-server.log
>
>
> Unable to launch system VM's
> See attached logs
> 2013-10-15 13:31:40,061 DEBUG [cloud.storage.VolumeManagerImpl] 
> (consoleproxy-1:null) Unable to create 
> Vol[2|vm=2|ROOT]:java.lang.RuntimeException: File 
> [803eb6157bb83df98d96c4da27252fa8] ROOT-2/ROOT-2.vmdk was not found
> 2013-10-15 13:31:40,061 INFO  [cloud.vm.VirtualMachineManagerImpl] 
> (consoleproxy-1:null) Unable to contact resource.
> com.cloud.exception.StorageUnavailableException: Resource [StoragePool:1] is 
> unreachable: Unable to create Vol[2|vm=2|ROOT]:java.lang.RuntimeException: 
> File [803eb6157bb83df98d96c4da27252fa8] ROOT-2/ROOT-2.vmdk was not found
> at 
> com.cloud.storage.VolumeManagerImpl.recreateVolume(VolumeManagerImpl.java:2566)
> at 
> com.cloud.storage.VolumeManagerImpl.prepare(VolumeManagerImpl.java:2617)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:889)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:571)
> at 
> com.cloud.consoleproxy.ConsoleProxyManagerImpl.startProxy(ConsoleProxyManagerImpl.java:556)
> at 
> com.cloud.consoleproxy.ConsoleProxyManagerImpl.allocCapacity(ConsoleProxyManagerImpl.java:928)
> at 
> com.cloud.consoleproxy.ConsoleProxyManagerImpl.expandPool(ConsoleProxyManagerImpl.java:1672)
> at 
> com.cloud.consoleproxy.ConsoleProxyManagerImpl.expandPool(ConsoleProxyManagerImpl.java:157)
> at 
> com.cloud.vm.SystemVmLoadScanner.loadScan(SystemVmLoadScanner.java:111)
> at 
> com.cloud.vm.SystemVmLoadScanner.access$100(SystemVmLoadScanner.java:33)
> at 
> com.cloud.vm.SystemVmLoadScanner$1.reallyRun(SystemVmLoadScanner.java:81)
> at com.cloud.vm.SystemVmLoadScanner$1.run(SystemVmLoadScanner.java:72)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at 
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165)
> at 
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267)
> 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:679)
> 2013-10-15 13:31:40,068 DEBUG [cloud.vm.VirtualMachineManagerImpl] 
> (consoleproxy-1:null) Cleaning up resources for the vm 
> VM[ConsoleProxy|v-2-VM] in Starting state
>  type TEMPLATE copyAsync inspecting dest type VOLUME
> 2013-10-15 13:33:00,630 DEBUG [agent.transport.Request] (secstorage-1:null) 
> Seq 1-401276957: Waiting for Seq 401276956 Scheduling:  { Cmd , MgmtId: 
> 15929225863658, via: 1, Ver: v1, Flags: 100111, 
> [{"org.apache.cloudstack.storage.command.CopyCommand":{"srcTO":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"b8766e32c0c838539a8f75c2cc62a30b","origUrl":"http://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova","uuid":"e1eb1bf2-35c3-11e3-a10c-0e7ccfd961ea","id":8,"format":"OVA","accountId":1,"checksum":"8fde62b1089e5844a9cd3b9b953f9596","hvm":false,"displayText":"SystemVM
>  Template 
> (vSphere)","imageDataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"803eb615-7bb8-3df9-8d96-c4da27252fa8","id":1,"poolType":"NetworkFilesystem","host":"10.223.110.232","path":"/export/home/parth/49.211/primary","port":2049}},"

[jira] [Created] (CLOUDSTACK-5899) Contrail:MS: Exceptions in MS logs on a fresh install, syncDomain java.lang.NullPointerException

2014-01-17 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5899:
--

 Summary: Contrail:MS: Exceptions in MS logs on a fresh install,  
syncDomain java.lang.NullPointerException
 Key: CLOUDSTACK-5899
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5899
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail, Management Server
Affects Versions: 4.3.0
 Environment: Master with Contrail.
Reporter: Parth Jagirdar
Priority: Critical
 Fix For: 4.3.0


2014-01-17 09:30:25,880 INFO  [c.c.a.ApiServer] (ApiServer-2:ctx-ce22ce43 
ctx-78615dc8) Invalid request, no command sent
2014-01-17 09:30:25,882 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 432 Invalid request, no command sent
2014-01-17 09:30:25,882 WARN  [n.j.c.a.ApiConnector] (DBSyncTimer:null) list 
failed with :Invalid request, no command sent
2014-01-17 09:30:25,882 DEBUG [o.a.c.n.c.m.DBSyncGeneric] (DBSyncTimer:null) 
Generic db sync : Domain
2014-01-17 09:30:25,883 WARN  [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:null) 
syncDomain
java.lang.NullPointerException
at java.util.Collections.sort(Collections.java:175)
at 
org.apache.cloudstack.network.contrail.management.DBSyncGeneric.syncGeneric(DBSyncGeneric.java:295)
at 
org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncDomain(ServerDBSyncImpl.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.cloudstack.network.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:112)
at 
org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:139)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:429)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:446)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
2014-01-17 09:30:25,884 WARN  [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:null) DB 
Synchronization
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at 
org.apache.cloudstack.network.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:112)
at 
org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:139)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:429)
at 
org.apache.cloudstack.network.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:446)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
Caused by: java.lang.NullPointerException
at java.util.Collections.sort(Collections.java:175)
at 
org.apache.cloudstack.network.contrail.management.DBSyncGeneric.syncGeneric(DBSyncGeneric.java:295)
at 
org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncDomain(ServerDBSyncImpl.java:232)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
... 9 more
2014-01-17 09:30:25,886 DEBUG [o.a.c.n.c.m.ContrailManager] (DBSyncTimer:null) 
java.lang.reflect.InvocationTargetException
2014-01-17 09:30:25,886 INFO  [o.a.c.n.c.m.ContrailManager] (DBSyncTimer:null) 
Unable to sync network db
2014-01-17 09:30:35,083 DEBUG [c.c.n.l.LBHealthCheckManagerImpl] 
(LBHealthCheck-1:ctx-06243a77) LB HealthCheck Manager is running and getting 
the updates from LB providers and updating service status
2014-01-17 09:30:35,087 DEBUG [c.c.n.l.LBHealthCheckManagerImpl] 
(LBHealthCheck-1:ctx-06243a77) LB HealthCheck Manager is running and getting 
the updates from LB providers and updating service status
2014-01-17 09:30:39,106 DEBUG [c.c.s.StatsCollector] 
(StatsCollector-1:ctx-2b681e72) HostStatsCollector is running...
2014-01-17 09:30:39,109 DEBUG [c.c.s.StatsCollector] 
(StatsCollector-3:ctx-dd91a373) VmStatsCollector is running...
2014-01-17 09:30:39,119 DEBUG [c.c.s.StatsCollector] 
(StatsCollector-2:ctx-8d6fcd99) StorageCollector is running...


2014-01-17 09:15:32,334 DEBUG [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:

[jira] [Commented] (CLOUDSTACK-5899) Contrail:MS: Exceptions in MS logs on a fresh install, syncDomain java.lang.NullPointerException

2014-01-17 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13875346#comment-13875346
 ] 

Parth Jagirdar commented on CLOUDSTACK-5899:


No Zones were created yet.


> Contrail:MS: Exceptions in MS logs on a fresh install,  syncDomain 
> java.lang.NullPointerException
> -
>
> Key: CLOUDSTACK-5899
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5899
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server
>Affects Versions: 4.3.0
> Environment: Master with Contrail.
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.3.0
>
>
> 2014-01-17 09:30:25,880 INFO  [c.c.a.ApiServer] (ApiServer-2:ctx-ce22ce43 
> ctx-78615dc8) Invalid request, no command sent
> 2014-01-17 09:30:25,882 INFO  [n.j.c.a.ApiConnector] (DBSyncTimer:null) << 
> Response Status: HTTP/1.1 432 Invalid request, no command sent
> 2014-01-17 09:30:25,882 WARN  [n.j.c.a.ApiConnector] (DBSyncTimer:null) list 
> failed with :Invalid request, no command sent
> 2014-01-17 09:30:25,882 DEBUG [o.a.c.n.c.m.DBSyncGeneric] (DBSyncTimer:null) 
> Generic db sync : Domain
> 2014-01-17 09:30:25,883 WARN  [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:null) 
> syncDomain
> java.lang.NullPointerException
> at java.util.Collections.sort(Collections.java:175)
> at 
> org.apache.cloudstack.network.contrail.management.DBSyncGeneric.syncGeneric(DBSyncGeneric.java:295)
> at 
> org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncDomain(ServerDBSyncImpl.java:232)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at 
> org.apache.cloudstack.network.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:112)
> at 
> org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:139)
> at 
> org.apache.cloudstack.network.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:429)
> at 
> org.apache.cloudstack.network.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:446)
> at java.util.TimerThread.mainLoop(Timer.java:534)
> at java.util.TimerThread.run(Timer.java:484)
> 2014-01-17 09:30:25,884 WARN  [o.a.c.n.c.m.ServerDBSync] (DBSyncTimer:null) 
> DB Synchronization
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at 
> org.apache.cloudstack.network.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:112)
> at 
> org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:139)
> at 
> org.apache.cloudstack.network.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:429)
> at 
> org.apache.cloudstack.network.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:446)
> at java.util.TimerThread.mainLoop(Timer.java:534)
> at java.util.TimerThread.run(Timer.java:484)
> Caused by: java.lang.NullPointerException
> at java.util.Collections.sort(Collections.java:175)
> at 
> org.apache.cloudstack.network.contrail.management.DBSyncGeneric.syncGeneric(DBSyncGeneric.java:295)
> at 
> org.apache.cloudstack.network.contrail.management.ServerDBSyncImpl.syncDomain(ServerDBSyncImpl.java:232)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ... 9 more
> 2014-01-17 09:30:25,886 DEBUG [o.a.c.n.c.m.ContrailManager] 
> (DBSyncTimer:null) java.lang.reflect.InvocationTargetException
> 2014-01-17 09:30:25,886 INFO  [o.a.c.n.c.m.ContrailManager] 
> (DBSyncTimer:null) Unable to sync network db
> 2014-01-17 09:30:35,083 DEBUG [c.c.n.l.LBHealthCheckManagerImpl] 
> (LBHealthCheck-1:ctx-06243a77) LB HealthCheck Manager is running and getting 
> the updates from LB providers and updating service status
> 2014-01-17 09:30:35,087 DEBUG [c.c.n.l.LBHealthCheckManagerImpl] 
> (LBHealthCheck-1:ctx-06243a77) LB HealthCheck Manager is running and getting 
> the updates from LB providers

[jira] [Closed] (CLOUDSTACK-4577) VMWare:Volumes: Unexpected exception while executing org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd java.lang.NullPointerException

2014-01-08 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-4577.
--


Not observed yet.

Closing the bug.

> VMWare:Volumes: Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd 
> java.lang.NullPointerException
> -
>
> Key: CLOUDSTACK-4577
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4577
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: VMware, Volumes
>Affects Versions: 4.2.1
> Environment: VMWare,
> 5 Primary; 2 Zone wide and Rest Cluster.
> Attach Data Disk and attempt a Re-size.
>Reporter: Parth Jagirdar
>Assignee: Damodar Reddy T
>Priority: Critical
> Fix For: 4.3.0
>
>
> Logs attached.
> 2013-08-30 16:12:14,513 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 9-1571: Processing Seq 9-1571:  { Cmd , 
> MgmtId: -1, via: 9, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":30,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-08-30 16:12:14,520 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 9-1571: Sending Seq 9-1571:  { Ans: , 
> MgmtId: 7471666038533, via: 9, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-08-30 16:12:18,099 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-10:null) Ping from 10
> 2013-08-30 16:12:24,514 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-11:null) SeqA 9-1572: Processing Seq 9-1572:  { Cmd , 
> MgmtId: -1, via: 9, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":30,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-08-30 16:12:24,523 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-11:null) SeqA 9-1572: Sending Seq 9-1572:  { Ans: , 
> MgmtId: 7471666038533, via: 9, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-08-30 16:12:34,514 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-12:null) SeqA 9-1573: Processing Seq 9-1573:  { Cmd , 
> MgmtId: -1, via: 9, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":30,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-08-30 16:12:34,520 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-12:null) SeqA 9-1573: Sending Seq 9-1573:  { Ans: , 
> MgmtId: 7471666038533, via: 9, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-08-30 16:12:34,839 DEBUG [cloud.server.StatsCollector] 
> (StatsCollector-1:null) HostStatsCollector is running...
> 2013-08-30 16:12:34,849 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-492:null) Seq 1-1168048937: Executing request
> 2013-08-30 16:12:34,877 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-492:null) Seq 1-1168048937: Response Received:
> 2013-08-30 16:12:34,877 DEBUG [agent.transport.Request] 
> (StatsCollector-1:null) Seq 1-1168048937: Received:  { Ans: , MgmtId: 
> 7471666038533, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
> 2013-08-30 16:12:34,918 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-493:null) Seq 6-580518619: Executing request
> 2013-08-30 16:12:34,940 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-493:null) Seq 6-580518619: Response Received:
> 2013-08-30 16:12:34,940 DEBUG [agent.transport.Request] 
> (StatsCollector-1:null) Seq 6-580518619: Received:  { Ans: , MgmtId: 
> 7471666038533, via: 6, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
> 2013-08-30 16:12:34,957 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-494:null) Seq 8-2005992046: Executing request
> 2013-08-30 16:12:34,974 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-494:null) Seq 8-2005992046: Response Received:
> 2013-08-30 16:12:34,975 DEBUG [agent.transport.Request] 
> (StatsCollector-1:null) Seq 8-2005992046: Received:  { Ans: , MgmtId: 
> 7471666038533, via: 8, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
> 2013-08-30 16:12:35,099 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
> (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
> 2013-08-30 16:12:35,261 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-08-30 16:12:36,129 DEBUG 
> [network.router.VirtualNetworkApplianceManagerImpl] 
> (RouterStatusMonitor-1:null) Found 2 routers to update status

[jira] [Commented] (CLOUDSTACK-5681) Contrail:MS:API: Create network fails with NPE due to missing CIDR

2014-01-07 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13864515#comment-13864515
 ] 

Parth Jagirdar commented on CLOUDSTACK-5681:


Santhosh,

Yes network can be created through UI.

Can you do following to try and reproduce?

Go to DB and change the CIDR field in networks to NULL.

Then try to view networks in UI. (listNetworks).

Exception should be thrown there.

This issue was encountered while performing validation in a case where networks 
are created though scripts. (Now for API CIDR is not a required param).

And for networks without CIDR, listNetworks and createNetwork(Thorugh Instance 
creation wizard) will throw exception.

So to repro you will need to CIDR to NULL in DB.


> Contrail:MS:API: Create network fails with NPE due to missing CIDR
> --
>
> Key: CLOUDSTACK-5681
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5681
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Assignee: Santhosh Kumar Edukulla
>Priority: Critical
>
> CIDR is not required param in API, but without CIDR exceptions are thrown.
> 2013-12-27 16:44:14,088 ERROR [cloud.api.ApiServer] (catalina-exec-3:null) 
> unhandled exception executing api command: createNetwork
> java.lang.NullPointerException
>   at 
> com.cloud.network.NetworkModelImpl.getAvailableIps(NetworkModelImpl.java:1694)
>   at 
> com.cloud.network.NetworkModelImpl.canUseForDeploy(NetworkModelImpl.java:585)
>   at com.cloud.api.ApiDBUtils.canUseForDeploy(ApiDBUtils.java:1147)
>   at 
> com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:2259)
>   at 
> org.apache.cloudstack.api.command.user.network.CreateNetworkCmd.execute(CreateNetworkCmd.java:288)
>   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>   at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>   at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>   at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>   at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>   at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>   at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>   at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>   at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
>   at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2266)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> 2013-12-27 16:44:14,093 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) 
> ===END===  10.215.2.19 -- GET  
> command=createNetwork&response=json&sessionkey=ijYX%2B4fZ2EjdBMgdrTgGLJU2e60%3D&networkOfferingId=c9298387-30ec-40be-a0b7-cf54829fa5f8&name=temp&displayText=temp&zoneId=37b6d96d-5b66-429b-8e8e-b7bd6d12ae96&_=1388191455496
> 2013-12-27 16:44:18,776 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-2:null) SeqA 2-11511: Processing Seq 2-11511:  { Cmd , 
> MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-12-27 16:44:18,780 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-2:null) SeqA 2-11511: Sending Seq 2-11511:  { Ans: , 
> MgmtId: 86780043846508, via: 2, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"res

[jira] [Created] (CLOUDSTACK-5777) Contrail:MS: Rebooting Xen host results in disconnected SR

2014-01-03 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5777:
--

 Summary: Contrail:MS: Rebooting Xen host results in disconnected SR
 Key: CLOUDSTACK-5777
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5777
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail, XenServer
Affects Versions: 4.2.0
 Environment: Contrail, Xen 6.1
Reporter: Parth Jagirdar


Reboot a host and SR results in disconnected state.
This was also observed after installing Contrail RPM's on Xen host.

Admin can manually repair SR from Xen-center.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Created] (CLOUDSTACK-5776) Contrail:MS: Reboot host remains in UP state on ACS UI.

2014-01-03 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5776:
--

 Summary: Contrail:MS: Reboot host remains in UP state on ACS UI.
 Key: CLOUDSTACK-5776
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5776
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail, XenServer
Affects Versions: 4.2.0
 Environment: Contrail.
Reporter: Parth Jagirdar


Host remains in UP state on UI. Although User VM"s and Systems VM are marked in 
stopped state.

Host info should be synced with ACS appropriately.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CLOUDSTACK-5775) Contrail:MS: Stop VM fails with exception; and expunges it from the host

2014-01-03 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13862000#comment-13862000
 ] 

Parth Jagirdar commented on CLOUDSTACK-5775:


Reboot instance works as expected. And VM restarts successfully.

> Contrail:MS: Stop VM fails with exception; and expunges it from the host
> 
>
> Key: CLOUDSTACK-5775
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5775
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Blocker
>
> Stop VM fails with exception, On ACS UI VM remains stuck in stopping state.
> On host VM does gets stopped. and eventually expunged.
> 2014-01-03 14:57:27,579 DEBUG 
> [contrail.management.EventUtils$EventInterceptor] (Job-Executor-34:job-43 = [ 
> e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) interceptException
> 2014-01-03 14:57:27,579 ERROR [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) 
> Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd
> java.lang.NullPointerException
> at 
> com.cloud.vm.UserVmManagerImpl.finalizeStop(UserVmManagerImpl.java:3271)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1253)
> at 
> com.cloud.vm.VirtualMachineManagerImpl.stop(VirtualMachineManagerImpl.java:1039)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.stopvirtualmachine(VMEntityManagerImpl.java:251)
> at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.stop(VirtualMachineEntityImpl.java:214)
> at 
> com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:3228)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.vm.StopVMCmd.execute(StopVMCmd.java:117)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> 2014-01-03 14:57:27,581 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) Complete 
> async job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ], jobStatus: 2, 
> resultCode: 530, result: Error Code: 530 Error text: null
> 2014-01-03 14:57:30,131 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=e893cbca-59e9-4ee1-bce3-cc918fb829f1&response=json&sessionkey=lhySlIIDUvWHZ5yKeVK55FnVmbc%3D&_=1388789861991



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Created] (CLOUDSTACK-5775) Contrail:MS: Stop VM fails with exception; and expunges it from the host

2014-01-03 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5775:
--

 Summary: Contrail:MS: Stop VM fails with exception; and expunges 
it from the host
 Key: CLOUDSTACK-5775
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5775
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, Contrail, Management Server
Affects Versions: 4.2.0
 Environment: Contrail
Reporter: Parth Jagirdar
Priority: Blocker


Stop VM fails with exception, On ACS UI VM remains stuck in stopping state.

On host VM does gets stopped. and eventually expunged.

2014-01-03 14:57:27,579 DEBUG [contrail.management.EventUtils$EventInterceptor] 
(Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) 
interceptException
2014-01-03 14:57:27,579 ERROR [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) Unexpected 
exception while executing org.apache.cloudstack.api.command.user.vm.StopVMCmd
java.lang.NullPointerException
at 
com.cloud.vm.UserVmManagerImpl.finalizeStop(UserVmManagerImpl.java:3271)
at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStop(VirtualMachineManagerImpl.java:1253)
at 
com.cloud.vm.VirtualMachineManagerImpl.stop(VirtualMachineManagerImpl.java:1039)
at 
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.stopvirtualmachine(VMEntityManagerImpl.java:251)
at 
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.stop(VirtualMachineEntityImpl.java:214)
at 
com.cloud.vm.UserVmManagerImpl.stopVirtualMachine(UserVmManagerImpl.java:3228)
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at 
org.apache.cloudstack.api.command.user.vm.StopVMCmd.execute(StopVMCmd.java:117)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at 
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
2014-01-03 14:57:27,581 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-34:job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ]) Complete 
async job-43 = [ e893cbca-59e9-4ee1-bce3-cc918fb829f1 ], jobStatus: 2, 
resultCode: 530, result: Error Code: 530 Error text: null
2014-01-03 14:57:30,131 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) 
===START===  10.215.2.19 -- GET  
command=queryAsyncJobResult&jobId=e893cbca-59e9-4ee1-bce3-cc918fb829f1&response=json&sessionkey=lhySlIIDUvWHZ5yKeVK55FnVmbc%3D&_=1388789861991




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Created] (CLOUDSTACK-5773) Contrail:MS: Restart network fails with Unable to restart a running SDN network

2014-01-03 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5773:
--

 Summary: Contrail:MS: Restart network fails with Unable to restart 
a running SDN network
 Key: CLOUDSTACK-5773
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5773
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail, Management Server
Affects Versions: 4.2.0
 Environment: Contrail
Reporter: Parth Jagirdar
Priority: Critical


Restart network fails with Unable to restart a running SDN network


2014-01-03 14:48:11,907 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-27:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) job 
org.apache.cloudstack.api.command.user.network.RestartNetworkCmd for job-39 = [ 
4e217deb-844a-45f2-9e2a-183a3344de2e ] was queued, processing the queue.
2014-01-03 14:48:11,913 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-27:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Executing 
sync queue item: SyncQueueItemVO {id:19, queueId: 9, contentType: AsyncJob, 
contentId: 39, lastProcessMsid: 86780043846508, lastprocessNumber: 5, 
lastProcessTime: Fri Jan 03 14:48:11 PST 2014, created: Fri Jan 03 14:48:11 PST 
2014}
2014-01-03 14:48:11,915 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-27:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Schedule 
queued job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]
2014-01-03 14:48:11,921 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Executing 
org.apache.cloudstack.api.command.user.network.RestartNetworkCmd for job-39 = [ 
4e217deb-844a-45f2-9e2a-183a3344de2e ]
2014-01-03 14:48:11,921 DEBUG [cloud.async.SyncQueueManagerImpl] 
(Job-Executor-27:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) There is a 
pending process in sync queue(id: 9)
2014-01-03 14:48:11,954 DEBUG [contrail.management.EventUtils$EventInterceptor] 
(Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) 
interceptException
2014-01-03 14:48:11,954 ERROR [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Unexpected 
exception while executing 
org.apache.cloudstack.api.command.user.network.RestartNetworkCmd
java.security.InvalidParameterException: Unable to restart a running SDN 
network.
at 
com.cloud.network.NetworkServiceImpl.restartNetwork(NetworkServiceImpl.java:1799)
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at 
org.apache.cloudstack.api.command.user.network.RestartNetworkCmd.execute(RestartNetworkCmd.java:92)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at 
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
2014-01-03 14:48:11,956 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Complete 
async job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ], jobStatus: 2, 
resultCode: 530, result: Error Code: 530 Error text: Unable to restart a 
running SDN network.
2014-01-03 14:48:11,968 DEBUG [cloud.async.SyncQueueManagerImpl] 
(Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Sync queue 
(9) is currently empty
2014-01-03 14:48:11,969 WARN  [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-28:job-39 = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ]) Unable to 
unregister active job [ 39 ] = [ 4e217deb-844a-45f2-9e2a-183a3344de2e ] from 
JMX monitoring
2014-01-03 14:48:13,297 DEBUG [agent.manager.AgentManagerImpl] 
(AgentManager-Handler-12:null) SeqA 2-83810: Processing Seq 2-83810:  { Cmd , 
MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
  \"connections\": []\n}","wait":0}}] }
2014-01-03 14:48:13,301 DEBUG [agent.manager.AgentManagerImpl] 
(AgentManager-Handler-12:null) SeqA 2-83810: Sending Seq 2-83810:  { Ans: , 
MgmtId: 86780043846508, via: 2, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2014-01-03 14:48:14,916 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) 
===START===  10.215.2.19 -- GET  
command=queryAsyncJobResult&jobId=4e217deb-844a-45f2-9e2a-183a3344de2e&response=json&sessionkey=lhySlIIDUvWHZ5yKeVK55

[jira] [Created] (CLOUDSTACK-5768) Contrail:MS: No public network access

2014-01-03 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5768:
--

 Summary: Contrail:MS: No public network access
 Key: CLOUDSTACK-5768
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5768
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail
Affects Versions: 4.2.0
 Environment: Contrail
Reporter: Parth Jagirdar
Priority: Critical


Guest VM's, System VM's have no public network access. Need a workaround to be 
able to reach public network without a physical router running BGP/GRE.

No public network access results in failure while registering templates and 
ISO. (Assuming following exception is due to connectivity)



2014-01-03 11:34:41,708 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
===START===  10.215.2.19 -- GET  
command=registerIso&response=json&sessionkey=6NRmRzTiABw%2Fcqv6%2FfkDDI7HWjg%3D&name=CentOS-6.4-x86_64-minimal&displayText=CentOS-6.4-x86_64-minimal&url=http%3A%2F%2Fnfs1.lab.vmops.com%2Fparth%2FCentOS-6.4-x86_64-minimal.iso&zoneid=-1&isextractable=false&bootable=true&osTypeId=90a6b632-677a-11e3-b51d-4eed0dafe36c&ispublic=true&isfeatured=true&_=1388777693620
2014-01-03 11:34:41,797 DEBUG [storage.image.TemplateDataFactoryImpl] 
(catalina-exec-24:null) template 201 is already in store:1, type:Image
2014-01-03 11:34:41,810 DEBUG [storage.image.TemplateDataFactoryImpl] 
(catalina-exec-24:null) template 201 is already in store:1, type:Image
2014-01-03 11:34:41,822 DEBUG [storage.image.BaseImageStoreDriverImpl] 
(catalina-exec-24:null) Downloading template to data store 1
2014-01-03 11:34:41,828 INFO  [storage.download.DownloadMonitorImpl] 
(catalina-exec-24:null) Template download is already in progress or already 
downloaded
2014-01-03 11:34:41,828 DEBUG [storage.image.BaseImageStoreDriverImpl] 
(catalina-exec-24:null) Performing image store createTemplate async callback
2014-01-03 11:34:41,851 DEBUG [contrail.management.EventUtils$EventInterceptor] 
(catalina-exec-24:null) interceptException
2014-01-03 11:34:41,851 ERROR [cloud.api.ApiServer] (catalina-exec-24:null) 
unhandled exception executing api command: registerIso
java.lang.RuntimeException: InvocationTargetException when invoking RPC 
callback for command: createTemplateAsyncCallback
at 
org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.dispatch(AsyncCallbackDispatcher.java:148)
at 
org.apache.cloudstack.framework.async.InplaceAsyncCallbackDriver.performCompletionCallback(InplaceAsyncCallbackDriver.java:26)
at 
org.apache.cloudstack.framework.async.AsyncCallbackDispatcher.complete(AsyncCallbackDispatcher.java:120)
at 
com.cloud.storage.download.DownloadMonitorImpl.downloadTemplateToStorage(DownloadMonitorImpl.java:214)
at 
org.apache.cloudstack.storage.image.BaseImageStoreDriverImpl.createAsync(BaseImageStoreDriverImpl.java:120)
at 
org.apache.cloudstack.storage.image.TemplateServiceImpl.createTemplateAsync(TemplateServiceImpl.java:175)
at 
com.cloud.template.HypervisorTemplateAdapter.create(HypervisorTemplateAdapter.java:213)
at 
com.cloud.template.TemplateManagerImpl.registerIso(TemplateManagerImpl.java:322)
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at 
org.apache.cloudstack.api.command.user.iso.RegisterIsoCmd.execute(RegisterIsoCmd.java:180)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11NioProcessor.proc

[jira] [Created] (CLOUDSTACK-5686) Contrail:CPVM: Console proxy view of guest VM's being timed out

2013-12-30 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5686:
--

 Summary: Contrail:CPVM: Console proxy view of guest VM's being 
timed out
 Key: CLOUDSTACK-5686
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5686
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Contrail, SystemVM
Affects Versions: 4.2.0
 Environment: Contrail
Reporter: Parth Jagirdar
Priority: Critical


CPVM is up and in running state.


2013-12-30 17:23:12,050 DEBUG [agent.manager.AgentManagerImpl] 
(AgentManager-Handler-8:null) SeqA 2-43172: Processing Seq 2-43172:  { Cmd , 
MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
  \"connections\": []\n}","wait":0}}] }
2013-12-30 17:23:12,054 DEBUG [agent.manager.AgentManagerImpl] 
(AgentManager-Handler-8:null) SeqA 2-43172: Sending Seq 2-43172:  { Ans: , 
MgmtId: 86780043846508, via: 2, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-12-30 17:23:13,024 DEBUG [agent.transport.Request] (catalina-exec-23:null) 
Seq 1-712654670: Sending  { Cmd , MgmtId: 86780043846508, via: 1, Ver: v1, 
Flags: 100011, 
[{"com.cloud.agent.api.GetVncPortCommand":{"id":3039,"name":"i-2-3039-VM","wait":0}}]
 }
2013-12-30 17:23:13,024 DEBUG [agent.transport.Request] (catalina-exec-23:null) 
Seq 1-712654670: Executing:  { Cmd , MgmtId: 86780043846508, via: 1, Ver: v1, 
Flags: 100011, 
[{"com.cloud.agent.api.GetVncPortCommand":{"id":3039,"name":"i-2-3039-VM","wait":0}}]
 }
2013-12-30 17:23:13,024 DEBUG [agent.manager.DirectAgentAttache] 
(DirectAgent-219:null) Seq 1-712654670: Executing request
2013-12-30 17:23:13,165 DEBUG [agent.manager.DirectAgentAttache] 
(DirectAgent-219:null) Seq 1-712654670: Response Received:
2013-12-30 17:23:13,166 DEBUG [agent.transport.Request] (DirectAgent-219:null) 
Seq 1-712654670: Processing:  { Ans: , MgmtId: 86780043846508, via: 1, Ver: v1, 
Flags: 10, 
[{"com.cloud.agent.api.GetVncPortAnswer":{"address":"consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c","port":-1,"result":true,"wait":0}}]
 }
2013-12-30 17:23:13,166 DEBUG [agent.transport.Request] (catalina-exec-23:null) 
Seq 1-712654670: Received:  { Ans: , MgmtId: 86780043846508, via: 1, Ver: v1, 
Flags: 10, { GetVncPortAnswer } }
2013-12-30 17:23:13,166 DEBUG [cloud.servlet.ConsoleProxyServlet] 
(catalina-exec-23:null) Port info 
consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c
2013-12-30 17:23:13,166 INFO  [cloud.servlet.ConsoleProxyServlet] 
(catalina-exec-23:null) Parse host info returned from executing 
GetVNCPortCommand. host info: 
consoleurl=https://10.223.58.68/console?uuid=97f7d540-63a4-fbce-71e2-2c2035b7fe24&sessionref=OpaqueRef:5a258d6f-6549-f894-d740-1f4dd3e40e0c
2013-12-30 17:23:13,168 DEBUG [cloud.servlet.ConsoleProxyServlet] 
(catalina-exec-23:null) Compose console url: 
https://10-223-138-3.realhostip.com/ajax?token=jbfEZBHaxjTQJndV5T1HMf5zgIrBE7IEyfI-8Tmi428dLW1rwxGG7nAe0h3ys_-uhPylt2tSO6vaTstQzKEb8-WyCEhDt_YMnGHqTRgvAOBc64cz8cw9EAqdxH9JWZRi3o-uUrazsGIV2nd4y5zzut_FtEOeWdkCNbWQcSHUJcQeK6CaF-BIgZL8CMzJiu4i0JKrZ-0NZWep4YDG9F8wGIIFRkHjLMQC5h0Qso9nJcLCvodUF0tpwRyS6M-DT-XyUPnU-Q7BCEat5DnU44FXN-ZNzBaJkLGOW4DpI5spApUXab8VRlp5DZBkzdoH_Mk1Ht38hQ48XKhD7BVYUp_xCFTJdzvsc-185eQuTmy1GN5UKth2tV2Ly6uzuQowFnN95rijJkVUyhFu7Wvpy8dLqI5ZNNM-xYaG4YXzsSIJTomNDfTa__24bqLyOZzSMVbyZUixmgMZ_K0lDHdXgTgUtAnJ-ygBIDvfxmh-cga4JwU
2013-12-30 17:23:13,168 DEBUG [cloud.servlet.ConsoleProxyServlet] 
(catalina-exec-23:null) the console url is :: 
scapegoathttps://10-223-138-3.realhostip.com/ajax?token=jbfEZBHaxjTQJndV5T1HMf5zgIrBE7IEyfI-8Tmi428dLW1rwxGG7nAe0h3ys_-uhPylt2tSO6vaTstQzKEb8-WyCEhDt_YMnGHqTRgvAOBc64cz8cw9EAqdxH9JWZRi3o-uUrazsGIV2nd4y5zzut_FtEOeWdkCNbWQcSHUJcQeK6CaF-BIgZL8CMzJiu4i0JKrZ-0NZWep4YDG9F8wGIIFRkHjLMQC5h0Qso9nJcLCvodUF0tpwRyS6M-DT-XyUPnU-Q7BCEat5DnU44FXN-ZNzBaJkLGOW4DpI5spApUXab8VRlp5DZBkzdoH_Mk1Ht38hQ48XKhD7BVYUp_xCFTJdzvsc-185eQuTmy1GN5UKth2tV2Ly6uzuQowFnN95rijJkVUyhFu7Wvpy8dLqI5ZNNM-xYaG4YXzsSIJTomNDfTa__24bqLyOZzSMVbyZUixmgMZ_K0lDHdXgTgUtAnJ-ygBIDvfxmh-cga4JwU";>
2013-12-30 17:23:18,907 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Zone 1 is ready to launch secondary storage VM
2013-12-30 17:23:19,093 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Zone 1 is ready to launch console proxy
2013-12-30 17:23:20,476 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:null) Found 0 routers to update status.
2013-12-30 17:23:20,477 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:null) Found 0 

[jira] [Updated] (CLOUDSTACK-5680) Contrail:MS:API: Contrail DHCP fails with exception

2013-12-30 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-5680:
---

Priority: Major  (was: Blocker)

Issue is not seen when a new network is being created.

May be CIDR being NULL is causing it to happen.

As a valid workaround is available; bringing the severity down to Major.

> Contrail:MS:API: Contrail DHCP fails with exception
> ---
>
> Key: CLOUDSTACK-5680
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5680
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>
> Instance creation succeeds but IP doesn't get assigned. 
> 2013-12-27 17:00:53,915 INFO  [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) << 
> Response Status: HTTP/1.1 503 Service Unavailable
> 2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) create 
> api request failed: Service Unavailable
> 2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Failure 
> message: Virtual-Network(default-domain:default-project:contrail) has no 
> defined subnet(s)
> 2013-12-27 17:00:53,916 WARN  [contrail.management.ContrailGuru] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
> virtual-machine update
> com.cloud.exception.InternalErrorException: Unable to create instance-ip 
> i-2-3036-VM-0
>   at 
> net.juniper.contrail.model.InstanceIpModel.update(InstanceIpModel.java:99)
>   at 
> net.juniper.contrail.model.VMInterfaceModel.update(VMInterfaceModel.java:227)
>   at 
> net.juniper.contrail.model.VirtualMachineModel.update(VirtualMachineModel.java:327)
>   at 
> net.juniper.contrail.management.ContrailGuru.reserve(ContrailGuru.java:228)
>   at 
> com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2157)
>   at 
> com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2127)
>   at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:886)
>   at 
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
>   at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227)
>   at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3406)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2966)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2952)
>   at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>   at 
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
>   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>   at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> 2013-12-27 17:00:53,920 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Changing 
> active number of nics for network id=215 on 1
> 2013-12-27 17:00:53,930 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Asking 
> ContrailElementImpl_EnhancerByCloudStack_749d004 to prepare for 
> Nic[12138-3036-c0945234-c3a2-451b-ae04-f465478eee1e-null]
> 2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
> NetworkElement prepare: contrail, traffic type: Guest
> 2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) ignore 
> network contrail
> 2013-12-27 17:00:53,936 DEBUG [cloud.network.NetworkModelImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-

[jira] [Updated] (CLOUDSTACK-5681) Contrail:MS:API: Create network fails with NPE due to missing CIDR

2013-12-30 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-5681:
---

Component/s: Contrail

> Contrail:MS:API: Create network fails with NPE due to missing CIDR
> --
>
> Key: CLOUDSTACK-5681
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5681
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
>
> CIDR is not required param in API, but without CIDR exceptions are thrown.
> 2013-12-27 16:44:14,088 ERROR [cloud.api.ApiServer] (catalina-exec-3:null) 
> unhandled exception executing api command: createNetwork
> java.lang.NullPointerException
>   at 
> com.cloud.network.NetworkModelImpl.getAvailableIps(NetworkModelImpl.java:1694)
>   at 
> com.cloud.network.NetworkModelImpl.canUseForDeploy(NetworkModelImpl.java:585)
>   at com.cloud.api.ApiDBUtils.canUseForDeploy(ApiDBUtils.java:1147)
>   at 
> com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:2259)
>   at 
> org.apache.cloudstack.api.command.user.network.CreateNetworkCmd.execute(CreateNetworkCmd.java:288)
>   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>   at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
>   at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
>   at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
>   at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>   at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>   at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>   at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>   at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>   at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>   at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>   at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>   at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>   at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>   at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
>   at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2266)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> 2013-12-27 16:44:14,093 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) 
> ===END===  10.215.2.19 -- GET  
> command=createNetwork&response=json&sessionkey=ijYX%2B4fZ2EjdBMgdrTgGLJU2e60%3D&networkOfferingId=c9298387-30ec-40be-a0b7-cf54829fa5f8&name=temp&displayText=temp&zoneId=37b6d96d-5b66-429b-8e8e-b7bd6d12ae96&_=1388191455496
> 2013-12-27 16:44:18,776 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-2:null) SeqA 2-11511: Processing Seq 2-11511:  { Cmd , 
> MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-12-27 16:44:18,780 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-2:null) SeqA 2-11511: Sending Seq 2-11511:  { Ans: , 
> MgmtId: 86780043846508, via: 2, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-12-27 16:44:18,909 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
> (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
> 2013-12-27 16:44:19,091 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-12-27 16:44:20,476 DEBUG 
> [network.router.VirtualNetworkApplianceManagerImpl] 
> (RouterStatusMonitor-1:null) Found 0 routers to update status. 
> 2013-12-27 16:44:20,478 DEBUG 
> [network.router.VirtualNetworkApplianceManagerImpl] 
> (RouterStatusMonitor-1:null) Found 0 networks to update RvR status. 
> 2013-12-

[jira] [Updated] (CLOUDSTACK-5682) Contrail:MS: Sync virtual Machines fails with exception.

2013-12-30 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-5682:
---

Component/s: Contrail

> Contrail:MS: Sync virtual Machines fails with exception.
> 
>
> Key: CLOUDSTACK-5682
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5682
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Critical
>
> 2013-12-30 11:14:50,888 WARN  [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync virtual-machines
> java.lang.reflect.InvocationTargetException
> at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> net.juniper.contrail.management.DBSyncGeneric.equal(DBSyncGeneric.java:136)
> at 
> net.juniper.contrail.management.DBSyncGeneric.syncCollections(DBSyncGeneric.java:237)
> at 
> net.juniper.contrail.management.DBSyncGeneric.syncGeneric(DBSyncGeneric.java:280)
> at 
> net.juniper.contrail.management.ServerDBSyncImpl.syncVirtualMachine(ServerDBSyncImpl.java:649)
> at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at 
> net.juniper.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:95)
> at 
> net.juniper.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:123)
> at 
> net.juniper.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:456)
> at 
> net.juniper.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:473)
> at java.util.TimerThread.mainLoop(Timer.java:555)
> at java.util.TimerThread.run(Timer.java:505)
> Caused by: java.lang.NullPointerException
> at 
> net.juniper.contrail.management.ServerDBSyncImpl.buildNicResources(ServerDBSyncImpl.java:766)
> at 
> net.juniper.contrail.management.ServerDBSyncImpl.equalVirtualMachine(ServerDBSyncImpl.java:789)
> at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
> ... 15 more
> 2013-12-30 11:14:50,889 INFO  [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) out of sync detected: VirtualMachine
> 2013-12-30 11:14:50,889 DEBUG [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync check finish: VirtualMachine
> 2013-12-30 11:14:50,889 DEBUG [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync check start: ServiceInstance
> 2013-12-30 11:14:50,889 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) 
> >> Request: GET, /service-instances
> 2013-12-30 11:14:50,892 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) 
> << Response Status: HTTP/1.1 200 OK
> 2013-12-30 11:14:50,892 DEBUG [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync check finish: ServiceInstance
> 2013-12-30 11:14:50,892 DEBUG [contrail.management.ServerDBSync] 
> (DBSyncTimer:null) sync check start: FloatingIp
> 2013-12-30 11:14:50,903 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) 
> >> Request: POST, /fqname-to-id, {"type":"fl
> oating-ip-pool","fq_name":["default-domain","default-project","__default_Public__","PublicIpPool"]}
> 2013-12-30 11:14:50,906 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) 
> << Response Status: HTTP/1.1 404 Not Found
> 2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
> (DBSyncTimer:null) Generic db sync : FloatingIp
> 2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
> (DBSyncTimer:null) Sync state checking stats >: create: 0, delete: 0, equal: 0, diff:0
> 2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
> (DBSyncTimer:null) DB and VNC objects are in sync : Flo
> atingIp



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (CLOUDSTACK-5680) Contrail:MS:API: Contrail DHCP fails with exception

2013-12-30 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-5680:
---

Component/s: Contrail

> Contrail:MS:API: Contrail DHCP fails with exception
> ---
>
> Key: CLOUDSTACK-5680
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5680
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Contrail, Management Server
>Affects Versions: 4.2.0
> Environment: Contrail
>Reporter: Parth Jagirdar
>Priority: Blocker
>
> Instance creation succeeds but IP doesn't get assigned. 
> 2013-12-27 17:00:53,915 INFO  [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) << 
> Response Status: HTTP/1.1 503 Service Unavailable
> 2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) create 
> api request failed: Service Unavailable
> 2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Failure 
> message: Virtual-Network(default-domain:default-project:contrail) has no 
> defined subnet(s)
> 2013-12-27 17:00:53,916 WARN  [contrail.management.ContrailGuru] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
> virtual-machine update
> com.cloud.exception.InternalErrorException: Unable to create instance-ip 
> i-2-3036-VM-0
>   at 
> net.juniper.contrail.model.InstanceIpModel.update(InstanceIpModel.java:99)
>   at 
> net.juniper.contrail.model.VMInterfaceModel.update(VMInterfaceModel.java:227)
>   at 
> net.juniper.contrail.model.VirtualMachineModel.update(VirtualMachineModel.java:327)
>   at 
> net.juniper.contrail.management.ContrailGuru.reserve(ContrailGuru.java:228)
>   at 
> com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2157)
>   at 
> com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2127)
>   at 
> com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:886)
>   at 
> com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
>   at 
> org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227)
>   at 
> org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3406)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2966)
>   at 
> com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2952)
>   at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>   at 
> org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
>   at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
>   at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
>   at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>   at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>   at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>   at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>   at java.lang.Thread.run(Thread.java:724)
> 2013-12-27 17:00:53,920 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Changing 
> active number of nics for network id=215 on 1
> 2013-12-27 17:00:53,930 DEBUG [cloud.network.NetworkManagerImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Asking 
> ContrailElementImpl_EnhancerByCloudStack_749d004 to prepare for 
> Nic[12138-3036-c0945234-c3a2-451b-ae04-f465478eee1e-null]
> 2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
> NetworkElement prepare: contrail, traffic type: Guest
> 2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) ignore 
> network contrail
> 2013-12-27 17:00:53,936 DEBUG [cloud.network.NetworkModelImpl] 
> (Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Service 
> SecurityGroup is not supported in the network id=215
> 2013-12-27 17:00:53,937 DEBUG [contrail.management.ContrailGuru] 
> (Job-Exe

[jira] [Created] (CLOUDSTACK-5682) Contrail:MS: Sync virtual Machines fails with exception.

2013-12-30 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5682:
--

 Summary: Contrail:MS: Sync virtual Machines fails with exception.
 Key: CLOUDSTACK-5682
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5682
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Management Server
Affects Versions: 4.2.0
 Environment: Contrail
Reporter: Parth Jagirdar
Priority: Critical


2013-12-30 11:14:50,888 WARN  [contrail.management.ServerDBSync] 
(DBSyncTimer:null) sync virtual-machines
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
net.juniper.contrail.management.DBSyncGeneric.equal(DBSyncGeneric.java:136)
at 
net.juniper.contrail.management.DBSyncGeneric.syncCollections(DBSyncGeneric.java:237)
at 
net.juniper.contrail.management.DBSyncGeneric.syncGeneric(DBSyncGeneric.java:280)
at 
net.juniper.contrail.management.ServerDBSyncImpl.syncVirtualMachine(ServerDBSyncImpl.java:649)
at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
net.juniper.contrail.management.DBSyncGeneric.sync(DBSyncGeneric.java:95)
at 
net.juniper.contrail.management.ServerDBSyncImpl.syncAll(ServerDBSyncImpl.java:123)
at 
net.juniper.contrail.management.ContrailManagerImpl.syncNetworkDB(ContrailManagerImpl.java:456)
at 
net.juniper.contrail.management.ContrailManagerImpl$DBSyncTask.run(ContrailManagerImpl.java:473)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.NullPointerException
at 
net.juniper.contrail.management.ServerDBSyncImpl.buildNicResources(ServerDBSyncImpl.java:766)
at 
net.juniper.contrail.management.ServerDBSyncImpl.equalVirtualMachine(ServerDBSyncImpl.java:789)
at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
... 15 more
2013-12-30 11:14:50,889 INFO  [contrail.management.ServerDBSync] 
(DBSyncTimer:null) out of sync detected: VirtualMachine
2013-12-30 11:14:50,889 DEBUG [contrail.management.ServerDBSync] 
(DBSyncTimer:null) sync check finish: VirtualMachine
2013-12-30 11:14:50,889 DEBUG [contrail.management.ServerDBSync] 
(DBSyncTimer:null) sync check start: ServiceInstance
2013-12-30 11:14:50,889 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) >> 
Request: GET, /service-instances
2013-12-30 11:14:50,892 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 200 OK
2013-12-30 11:14:50,892 DEBUG [contrail.management.ServerDBSync] 
(DBSyncTimer:null) sync check finish: ServiceInstance
2013-12-30 11:14:50,892 DEBUG [contrail.management.ServerDBSync] 
(DBSyncTimer:null) sync check start: FloatingIp
2013-12-30 11:14:50,903 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) >> 
Request: POST, /fqname-to-id, {"type":"fl
oating-ip-pool","fq_name":["default-domain","default-project","__default_Public__","PublicIpPool"]}
2013-12-30 11:14:50,906 INFO  [contrail.api.ApiConnector] (DBSyncTimer:null) << 
Response Status: HTTP/1.1 404 Not Found
2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
(DBSyncTimer:null) Generic db sync : FloatingIp
2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
(DBSyncTimer:null) Sync state checking stats: create: 0, delete: 0, equal: 0, diff:0
2013-12-30 11:14:50,906 DEBUG [contrail.management.DBSyncGeneric] 
(DBSyncTimer:null) DB and VNC objects are in sync : Flo
atingIp




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Created] (CLOUDSTACK-5681) Contrail:MS:API: Create network fails with NPE due to missing CIDR

2013-12-30 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5681:
--

 Summary: Contrail:MS:API: Create network fails with NPE due to 
missing CIDR
 Key: CLOUDSTACK-5681
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5681
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, Management Server
Affects Versions: 4.2.0
 Environment: Contrail
Reporter: Parth Jagirdar
Priority: Critical


CIDR is not required param in API, but without CIDR exceptions are thrown.


2013-12-27 16:44:14,088 ERROR [cloud.api.ApiServer] (catalina-exec-3:null) 
unhandled exception executing api command: createNetwork
java.lang.NullPointerException
at 
com.cloud.network.NetworkModelImpl.getAvailableIps(NetworkModelImpl.java:1694)
at 
com.cloud.network.NetworkModelImpl.canUseForDeploy(NetworkModelImpl.java:585)
at com.cloud.api.ApiDBUtils.canUseForDeploy(ApiDBUtils.java:1147)
at 
com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:2259)
at 
org.apache.cloudstack.api.command.user.network.CreateNetworkCmd.execute(CreateNetworkCmd.java:288)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
2013-12-27 16:44:14,093 DEBUG [cloud.api.ApiServlet] (catalina-exec-3:null) 
===END===  10.215.2.19 -- GET  
command=createNetwork&response=json&sessionkey=ijYX%2B4fZ2EjdBMgdrTgGLJU2e60%3D&networkOfferingId=c9298387-30ec-40be-a0b7-cf54829fa5f8&name=temp&displayText=temp&zoneId=37b6d96d-5b66-429b-8e8e-b7bd6d12ae96&_=1388191455496
2013-12-27 16:44:18,776 DEBUG [agent.manager.AgentManagerImpl] 
(AgentManager-Handler-2:null) SeqA 2-11511: Processing Seq 2-11511:  { Cmd , 
MgmtId: -1, via: 2, Ver: v1, Flags: 11, 
[{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":2,"_loadInfo":"{\n
  \"connections\": []\n}","wait":0}}] }
2013-12-27 16:44:18,780 DEBUG [agent.manager.AgentManagerImpl] 
(AgentManager-Handler-2:null) SeqA 2-11511: Sending Seq 2-11511:  { Ans: , 
MgmtId: 86780043846508, via: 2, Ver: v1, Flags: 100010, 
[{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
2013-12-27 16:44:18,909 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
(secstorage-1:null) Zone 1 is ready to launch secondary storage VM
2013-12-27 16:44:19,091 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
(consoleproxy-1:null) Zone 1 is ready to launch console proxy
2013-12-27 16:44:20,476 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:null) Found 0 routers to update status. 
2013-12-27 16:44:20,478 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:null) Found 0 networks to update RvR status. 
2013-12-27 16:44:20,510 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:null) Found 0 routers to update status. 
2013-12-27 16:44:20,511 DEBUG 
[network.router.VirtualNetworkApplianceManagerImpl] 
(RouterStatusMonitor-1:null) Found 0 networks to update RvR status. 



--
This message was se

[jira] [Created] (CLOUDSTACK-5680) Contrail:MS:API: Contrail DHCP fails with exception

2013-12-30 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5680:
--

 Summary: Contrail:MS:API: Contrail DHCP fails with exception
 Key: CLOUDSTACK-5680
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5680
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, Management Server
Affects Versions: 4.2.0
 Environment: Contrail
Reporter: Parth Jagirdar
Priority: Blocker


Instance creation succeeds but IP doesn't get assigned. 

2013-12-27 17:00:53,915 INFO  [contrail.api.ApiConnector] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) << Response 
Status: HTTP/1.1 503 Service Unavailable
2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) create api 
request failed: Service Unavailable
2013-12-27 17:00:53,915 ERROR [contrail.api.ApiConnector] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Failure 
message: Virtual-Network(default-domain:default-project:contrail) has no 
defined subnet(s)
2013-12-27 17:00:53,916 WARN  [contrail.management.ContrailGuru] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
virtual-machine update
com.cloud.exception.InternalErrorException: Unable to create instance-ip 
i-2-3036-VM-0
at 
net.juniper.contrail.model.InstanceIpModel.update(InstanceIpModel.java:99)
at 
net.juniper.contrail.model.VMInterfaceModel.update(VMInterfaceModel.java:227)
at 
net.juniper.contrail.model.VirtualMachineModel.update(VirtualMachineModel.java:327)
at 
net.juniper.contrail.management.ContrailGuru.reserve(ContrailGuru.java:228)
at 
com.cloud.network.NetworkManagerImpl.prepareNic(NetworkManagerImpl.java:2157)
at 
com.cloud.network.NetworkManagerImpl.prepare(NetworkManagerImpl.java:2127)
at 
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:886)
at 
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:578)
at 
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:227)
at 
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3406)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2966)
at 
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2952)
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at 
org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at 
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
2013-12-27 17:00:53,920 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Changing 
active number of nics for network id=215 on 1
2013-12-27 17:00:53,930 DEBUG [cloud.network.NetworkManagerImpl] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Asking 
ContrailElementImpl_EnhancerByCloudStack_749d004 to prepare for 
Nic[12138-3036-c0945234-c3a2-451b-ae04-f465478eee1e-null]
2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) 
NetworkElement prepare: contrail, traffic type: Guest
2013-12-27 17:00:53,930 DEBUG [contrail.management.ContrailElement] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) ignore 
network contrail
2013-12-27 17:00:53,936 DEBUG [cloud.network.NetworkModelImpl] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Service 
SecurityGroup is not supported in the network id=215
2013-12-27 17:00:53,937 DEBUG [contrail.management.ContrailGuru] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) update 
NicProfile 12138 on contrail
2013-12-27 17:00:53,939 DEBUG [cloud.storage.VolumeManagerImpl] 
(Job-Executor-24:job-17 = [ 5316fcdb-7550-41ea-94eb-7718d0c80ab9 ]) Checking if 
we need to prepare 1 volumes for VM[User|test-vm]
2013-12-27 17:00:53,958 DEBU

[jira] [Created] (CLOUDSTACK-5663) API:MS: Network with NULL CIDR raises NPE for createNetwork and listNetwork

2013-12-27 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5663:
--

 Summary: API:MS: Network with NULL CIDR raises NPE for 
createNetwork and listNetwork
 Key: CLOUDSTACK-5663
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5663
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: API, Management Server
Affects Versions: 4.2.0
 Environment: NA
Reporter: Parth Jagirdar
Priority: Critical


A Zone creation without CIDR is allowed for Shared networks.
And CIDR is not a required param for Create Network API.

In such a case listNetworks and createNetworks will raise NPE.



ERROR [cloud.api.ApiServer] (catalina-exec-13:null) unhandled exception 
executing api command: listNetworks
java.lang.NullPointerException
at 
com.cloud.network.NetworkModelImpl.getAvailableIps(NetworkModelImpl.java:1694)
at 
com.cloud.network.NetworkModelImpl.canUseForDeploy(NetworkModelImpl.java:585)
at com.cloud.api.ApiDBUtils.canUseForDeploy(ApiDBUtils.java:1147)
at 
com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:2259)
at 
org.apache.cloudstack.api.command.user.network.ListNetworksCmd.execute(ListNetworksCmd.java:157)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at 
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at 
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
2013-12-26 14:50:05,336 DEBUG [cloud.api.ApiServlet] (catalina-exec-13:null) 
===END===  10.215.2.19 -- GET  
command=listNetworks&response=json&sessionkey=umV%2F%2Fe90IumPgdOknf1aBRF0kLE%3D&listAll=true&page=1&pagesize=20&_=1388098205177









--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CLOUDSTACK-5663) API:MS: Network with NULL CIDR raises NPE for createNetwork and listNetwork

2013-12-27 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13857808#comment-13857808
 ] 

Parth Jagirdar commented on CLOUDSTACK-5663:


Workaround..
Select * from networks;
Look for the network that has cidr as null and update the cidr
update networks SET cidr="10.24.1.0/24" where id=217;
Since workaround is available moving Severity to Critical.

> API:MS: Network with NULL CIDR raises NPE for createNetwork and listNetwork
> ---
>
> Key: CLOUDSTACK-5663
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5663
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Management Server
>Affects Versions: 4.2.0
> Environment: NA
>Reporter: Parth Jagirdar
>Priority: Critical
>
> A Zone creation without CIDR is allowed for Shared networks.
> And CIDR is not a required param for Create Network API.
> In such a case listNetworks and createNetworks will raise NPE.
> ERROR [cloud.api.ApiServer] (catalina-exec-13:null) unhandled exception 
> executing api command: listNetworks
> java.lang.NullPointerException
> at 
> com.cloud.network.NetworkModelImpl.getAvailableIps(NetworkModelImpl.java:1694)
> at 
> com.cloud.network.NetworkModelImpl.canUseForDeploy(NetworkModelImpl.java:585)
> at com.cloud.api.ApiDBUtils.canUseForDeploy(ApiDBUtils.java:1147)
> at 
> com.cloud.api.ApiResponseHelper.createNetworkResponse(ApiResponseHelper.java:2259)
> at 
> org.apache.cloudstack.api.command.user.network.ListNetworksCmd.execute(ListNetworksCmd.java:157)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2266)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:724)
> 2013-12-26 14:50:05,336 DEBUG [cloud.api.ApiServlet] (catalina-exec-13:null) 
> ===END===  10.215.2.19 -- GET  
> command=listNetworks&response=json&sessionkey=umV%2F%2Fe90IumPgdOknf1aBRF0kLE%3D&listAll=true&page=1&pagesize=20&_=1388098205177



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CLOUDSTACK-4577) VMWare:Volumes: Unexpected exception while executing org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd java.lang.NullPointerException

2013-12-13 Thread Parth Jagirdar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13847747#comment-13847747
 ] 

Parth Jagirdar commented on CLOUDSTACK-4577:


OK,
I will monitor this during 4.3.

.. Parth


> VMWare:Volumes: Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd 
> java.lang.NullPointerException
> -
>
> Key: CLOUDSTACK-4577
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4577
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: VMware, Volumes
>Affects Versions: 4.2.1
> Environment: VMWare,
> 5 Primary; 2 Zone wide and Rest Cluster.
> Attach Data Disk and attempt a Re-size.
>Reporter: Parth Jagirdar
>Assignee: Damodar Reddy T
>Priority: Critical
> Fix For: 4.3.0
>
>
> Logs attached.
> 2013-08-30 16:12:14,513 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 9-1571: Processing Seq 9-1571:  { Cmd , 
> MgmtId: -1, via: 9, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":30,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-08-30 16:12:14,520 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-8:null) SeqA 9-1571: Sending Seq 9-1571:  { Ans: , 
> MgmtId: 7471666038533, via: 9, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-08-30 16:12:18,099 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-10:null) Ping from 10
> 2013-08-30 16:12:24,514 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-11:null) SeqA 9-1572: Processing Seq 9-1572:  { Cmd , 
> MgmtId: -1, via: 9, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":30,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-08-30 16:12:24,523 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-11:null) SeqA 9-1572: Sending Seq 9-1572:  { Ans: , 
> MgmtId: 7471666038533, via: 9, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-08-30 16:12:34,514 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-12:null) SeqA 9-1573: Processing Seq 9-1573:  { Cmd , 
> MgmtId: -1, via: 9, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{"_proxyVmId":30,"_loadInfo":"{\n
>   \"connections\": []\n}","wait":0}}] }
> 2013-08-30 16:12:34,520 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-12:null) SeqA 9-1573: Sending Seq 9-1573:  { Ans: , 
> MgmtId: 7471666038533, via: 9, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer":{"result":true,"wait":0}}] }
> 2013-08-30 16:12:34,839 DEBUG [cloud.server.StatsCollector] 
> (StatsCollector-1:null) HostStatsCollector is running...
> 2013-08-30 16:12:34,849 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-492:null) Seq 1-1168048937: Executing request
> 2013-08-30 16:12:34,877 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-492:null) Seq 1-1168048937: Response Received:
> 2013-08-30 16:12:34,877 DEBUG [agent.transport.Request] 
> (StatsCollector-1:null) Seq 1-1168048937: Received:  { Ans: , MgmtId: 
> 7471666038533, via: 1, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
> 2013-08-30 16:12:34,918 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-493:null) Seq 6-580518619: Executing request
> 2013-08-30 16:12:34,940 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-493:null) Seq 6-580518619: Response Received:
> 2013-08-30 16:12:34,940 DEBUG [agent.transport.Request] 
> (StatsCollector-1:null) Seq 6-580518619: Received:  { Ans: , MgmtId: 
> 7471666038533, via: 6, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
> 2013-08-30 16:12:34,957 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-494:null) Seq 8-2005992046: Executing request
> 2013-08-30 16:12:34,974 DEBUG [agent.manager.DirectAgentAttache] 
> (DirectAgent-494:null) Seq 8-2005992046: Response Received:
> 2013-08-30 16:12:34,975 DEBUG [agent.transport.Request] 
> (StatsCollector-1:null) Seq 8-2005992046: Received:  { Ans: , MgmtId: 
> 7471666038533, via: 8, Ver: v1, Flags: 10, { GetHostStatsAnswer } }
> 2013-08-30 16:12:35,099 DEBUG [storage.secondary.SecondaryStorageManagerImpl] 
> (secstorage-1:null) Zone 1 is ready to launch secondary storage VM
> 2013-08-30 16:12:35,261 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl] 
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-08-30 16:12:36,129 DEBUG 
> [network.router.VirtualNetworkApplianceManagerI

[jira] [Resolved] (CLOUDSTACK-5223) [Automation] test_vpc_vm_life_cycle.py does not create service offering with HOST tag

2013-11-26 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar resolved CLOUDSTACK-5223.


Resolution: Fixed

> [Automation] test_vpc_vm_life_cycle.py does not create service offering with 
> HOST tag
> -
>
> Key: CLOUDSTACK-5223
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5223
> Project: CloudStack
>  Issue Type: Test
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Automation
>Affects Versions: 4.3.0
> Environment: Automation
>Reporter: Rayees Namathponnan
>Assignee: Parth Jagirdar
> Fix For: 4.3.0
>
>
> As per the test case description test case trying to create service offering 
> with host tag;   
> But  actually test cases not created service offering with host tag; please 
> see the log 
> 2013-11-20 02:43:08,528 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-17:ctx-6bd44815 ctx-056435a1 ctx-bc3feb2c) (userId=2 
> accountId=2 sessionId=null) 10.223.240.194 -- GET 
> apiKey=a8WrP3KUsp4G9e4xsseUEgqRJF0hoZ8uZwtIL5tM7fnSNgZ-uez5ht7x0GvH8fnVzI59gjnq93VRZzazazy8dQ&name=Tiny+Instance-+tagged+host+2&cpuspeed=100&signature=B9w228yOPWTmc0ggibrr6drXuhY%3D&command=createServiceOffering&memory=128&displaytext=Tiny+off-tagged+host2&cpunumber=1&response=json
>  200 { "createserviceofferingresponse" :  { "serviceoffering" : 
> {"id":"f6a80b1f-0acf-4364-bde8-c246316ec58d","name":"Tiny Instance- tagged 
> host 2","displaytext":"Tiny off-tagged 
> host2","cpunumber":1,"cpuspeed":100,"memory":128,"created":"2013-11-20T02:43:08-0800","storagetype":"shared","offerha":false,"limitcpuuse":false,"isvolatile":false,"issystem":false,"defaultuse":false}
>  } 
> Please refer the API doc 
> xmldoc/html/root_admin/createServiceOffering.html
> Also we need to verify , that vm is create based on  host tag or nor, this is 
> missing now 



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (CLOUDSTACK-5223) [Automation] test_vpc_vm_life_cycle.py does not create service offering with HOST tag

2013-11-26 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar updated CLOUDSTACK-5223:
---

Summary: [Automation] test_vpc_vm_life_cycle.py does not create service 
offering with HOST tag  (was: [Automation] test_vpc_vm_life_cycle.py not 
created service offering with HOST tag)

> [Automation] test_vpc_vm_life_cycle.py does not create service offering with 
> HOST tag
> -
>
> Key: CLOUDSTACK-5223
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5223
> Project: CloudStack
>  Issue Type: Test
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Automation
>Affects Versions: 4.3.0
> Environment: Automation
>Reporter: Rayees Namathponnan
>Assignee: Parth Jagirdar
> Fix For: 4.3.0
>
>
> As per the test case description test case trying to create service offering 
> with host tag;   
> But  actually test cases not created service offering with host tag; please 
> see the log 
> 2013-11-20 02:43:08,528 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-17:ctx-6bd44815 ctx-056435a1 ctx-bc3feb2c) (userId=2 
> accountId=2 sessionId=null) 10.223.240.194 -- GET 
> apiKey=a8WrP3KUsp4G9e4xsseUEgqRJF0hoZ8uZwtIL5tM7fnSNgZ-uez5ht7x0GvH8fnVzI59gjnq93VRZzazazy8dQ&name=Tiny+Instance-+tagged+host+2&cpuspeed=100&signature=B9w228yOPWTmc0ggibrr6drXuhY%3D&command=createServiceOffering&memory=128&displaytext=Tiny+off-tagged+host2&cpunumber=1&response=json
>  200 { "createserviceofferingresponse" :  { "serviceoffering" : 
> {"id":"f6a80b1f-0acf-4364-bde8-c246316ec58d","name":"Tiny Instance- tagged 
> host 2","displaytext":"Tiny off-tagged 
> host2","cpunumber":1,"cpuspeed":100,"memory":128,"created":"2013-11-20T02:43:08-0800","storagetype":"shared","offerha":false,"limitcpuuse":false,"isvolatile":false,"issystem":false,"defaultuse":false}
>  } 
> Please refer the API doc 
> xmldoc/html/root_admin/createServiceOffering.html
> Also we need to verify , that vm is create based on  host tag or nor, this is 
> missing now 



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Assigned] (CLOUDSTACK-5223) [Automation] test_vpc_vm_life_cycle.py not created service offering with HOST tag

2013-11-20 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-5223?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar reassigned CLOUDSTACK-5223:
--

Assignee: Parth Jagirdar

> [Automation] test_vpc_vm_life_cycle.py not created service offering with HOST 
> tag
> -
>
> Key: CLOUDSTACK-5223
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5223
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: Automation
>Affects Versions: 4.3.0
> Environment: Automation
>Reporter: Rayees Namathponnan
>Assignee: Parth Jagirdar
> Fix For: 4.3.0
>
>
> As per the test case description test case trying to create service offering 
> with host tag;   
> But  actually test cases not created service offering with host tag; please 
> see the log 
> 2013-11-20 02:43:08,528 INFO  [a.c.c.a.ApiServer] 
> (catalina-exec-17:ctx-6bd44815 ctx-056435a1 ctx-bc3feb2c) (userId=2 
> accountId=2 sessionId=null) 10.223.240.194 -- GET 
> apiKey=a8WrP3KUsp4G9e4xsseUEgqRJF0hoZ8uZwtIL5tM7fnSNgZ-uez5ht7x0GvH8fnVzI59gjnq93VRZzazazy8dQ&name=Tiny+Instance-+tagged+host+2&cpuspeed=100&signature=B9w228yOPWTmc0ggibrr6drXuhY%3D&command=createServiceOffering&memory=128&displaytext=Tiny+off-tagged+host2&cpunumber=1&response=json
>  200 { "createserviceofferingresponse" :  { "serviceoffering" : 
> {"id":"f6a80b1f-0acf-4364-bde8-c246316ec58d","name":"Tiny Instance- tagged 
> host 2","displaytext":"Tiny off-tagged 
> host2","cpunumber":1,"cpuspeed":100,"memory":128,"created":"2013-11-20T02:43:08-0800","storagetype":"shared","offerha":false,"limitcpuuse":false,"isvolatile":false,"issystem":false,"defaultuse":false}
>  } 
> Please refer the API doc 
> xmldoc/html/root_admin/createServiceOffering.html
> Also we need to verify , that vm is create based on  host tag or nor, this is 
> missing now 



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Created] (CLOUDSTACK-5222) UI:Sockets: Sockets feature does not report data correctly

2013-11-20 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5222:
--

 Summary: UI:Sockets: Sockets feature does not report data correctly
 Key: CLOUDSTACK-5222
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5222
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: UI
Affects Versions: 4.3.0
 Environment: 4.3.0
Reporter: Parth Jagirdar
Priority: Critical
 Fix For: 4.3.0


Hosts listed on UI for each hyper visor type is not correct.

also Sockets are listed as unknown.
listHosts API is fired 7 times.

Please refer to screen.


http://10.223.49.195:8080/client/api?command=listHosts&response=json&sessionkey=lT1Ho7%2FPALRbpGLmZIAPvJsT05M%3D&hypervisortype=LXC&page=1&pagesize=20&_=1384985524749

{ "listhostsresponse" : { "count":7 ,"host" : [  
{"id":"3374c430-0369-4711-b668-f83c8a4ae1ef","name":"v-83-QA","state":"Up","type":"ConsoleProxy","ipaddress":"10.223.50.96","zoneid":"98a9e393-508c-497b-bbad-e62acfaebecd","zonename":"Adv-KVM-Zone1","podid":"7e31616e-beb8-430b-a7ef-180f7205eb33","podname":"POD01","version":"4.3.0-SNAPSHOT","lastpinged":"1970-01-16T07:41:17-0800","managementserverid":29066118877352,"islocalstorageactive":false,"created":"2013-11-19T23:37:24-0800","events":"StartAgentRebalance;
 AgentConnected; ShutdownRequested; Remove; Ping; AgentDisconnected; 
PingTimeout; ManagementServerDown; HostDown","resourcestate":"Enabled"}, 
{"id":"28db1c98-fe41-4c24-add7-083f31784918","name":"s-82-QA","state":"Up","type":"SecondaryStorageVM","ipaddress":"10.223.50.92","zoneid":"98a9e393-508c-497b-bbad-e62acfaebecd","zonename":"Adv-KVM-Zone1","podid":"7e31616e-beb8-430b-a7ef-180f7205eb33","podname":"POD01","version":"4.3.0-SNAPSHOT","lastpinged":"1970-01-16T07:41:41-0800","managementserverid":29066118877352,"islocalstorageactive":false,"created":"2013-11-19T23:34:35-0800","events":"StartAgentRebalance;
 AgentConnected; ShutdownRequested; Remove; Ping; AgentDisconnected; 
PingTimeout; ManagementServerDown; HostDown","resourcestate":"Enabled"}, 
{"id":"11825ddb-b469-4e83-a12a-4f395b479f5b","name":"s-4-VM","state":"Up","disconnected":"2013-11-19T22:37:23-0800","type":"SecondaryStorageVM","ipaddress":"10.223.49.140","zoneid":"53fec071-f7f0-4fd0-ae2f-4c86b7d751ce","zonename":"Adv-KVM-Zone2","podid":"e57ed7ec-4df0-4a64-86bd-5456fd93b7bc","podname":"POD02","version":"4.3.0-SNAPSHOT","lastpinged":"1970-01-16T07:41:10-0800","managementserverid":29066118877352,"islocalstorageactive":false,"created":"2013-11-19T22:31:41-0800","events":"StartAgentRebalance;
 AgentConnected; ShutdownRequested; Remove; Ping; AgentDisconnected; 
PingTimeout; ManagementServerDown; HostDown","resourcestate":"Enabled"}, 
{"id":"4d44a45b-f1db-4e57-bdce-abc469b55bba","name":"v-3-VM","state":"Up","disconnected":"2013-11-19T22:37:23-0800","type":"ConsoleProxy","ipaddress":"10.223.49.178","zoneid":"53fec071-f7f0-4fd0-ae2f-4c86b7d751ce","zonename":"Adv-KVM-Zone2","podid":"e57ed7ec-4df0-4a64-86bd-5456fd93b7bc","podname":"POD02","version":"4.3.0-SNAPSHOT","lastpinged":"1970-01-16T07:41:10-0800","managementserverid":29066118877352,"islocalstorageactive":false,"created":"2013-11-19T22:31:31-0800","events":"StartAgentRebalance;
 AgentConnected; ShutdownRequested; Remove; Ping; AgentDisconnected; 
PingTimeout; ManagementServerDown; HostDown","resourcestate":"Enabled"}, 
{"id":"eb6895a1-f255-41ed-94d6-12c0bf4b8dca","name":"Rack2Host7.lab.vmops.com","state":"Up","disconnected":"2013-11-19T22:37:23-0800","type":"Routing","ipaddress":"10.223.49.130","zoneid":"53fec071-f7f0-4fd0-ae2f-4c86b7d751ce","zonename":"Adv-KVM-Zone2","podid":"e57ed7ec-4df0-4a64-86bd-5456fd93b7bc","podname":"POD02","version":"4.3.0-SNAPSHOT","hypervisor":"KVM","cpusockets":1,"cpunumber":4,"cpuspeed":2261,"cpuallocated":"0%","cpuused":"0.5%","cpuwithoverprovisioning":"9044.0","networkkbsread":632234,"networkkbswrite":828621,"memorytotal":16713302016,"memoryallocated":1342177280,"memoryused":1210920,"capabilities":"hvm,snapshot","lastpinged":"1970-01-16T07:41:10-0800","managementserverid":29066118877352,"clusterid":"8a9bff62-4f8e-42c8-a4d4-ee65ffafe4dd","clustername":"KVM_Cluster2","clustertype":"CloudManaged","islocalstorageactive":false,"created":"2013-11-19T22:28:48-0800","events":"StartAgentRebalance;
 AgentConnected; ShutdownRequested; Remove; Ping; AgentDisconnected; 
PingTimeout; ManagementServerDown; 
HostDown","resourcestate":"Enabled","hahost":false}, 
{"id":"a9830098-1cbc-4873-858d-c23b1ca1f823","name":"Rack2Host12.lab.vmops.com","state":"Up","disconnected":"2013-11-19T22:37:23-0800","type":"Routing","ipaddress":"10.223.50.67","zoneid":"98a9e393-508c-497b-bbad-e62acfaebecd","zonename":"Adv-KVM-Zone1","podid":"7e31616e-beb8-430b-a7ef-180f7205eb33","podname":"POD01","version":"4.3.0-SNAPSHOT","hypervisor":"KVM","cpusockets":1,"cpunumber":4,"cpuspeed":2260,"cpualloc

[jira] [Closed] (CLOUDSTACK-4888) API:UCS:NPE Refresh blades on a decommissioned chassis results in NPE

2013-11-18 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-4888.
--


Verified.

> API:UCS:NPE Refresh blades on a decommissioned chassis results in NPE
> -
>
> Key: CLOUDSTACK-4888
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4888
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, UCS
>Affects Versions: 4.2.0
> Environment: UCS
>Reporter: Parth Jagirdar
>Assignee: frank zhang
>Priority: Critical
> Fix For: 4.2.1
>
>
> Expecting an appropriate error.
> When refresh blades is issues on a decommissioned chassis.
> 2013-10-17 13:52:26,432 DEBUG [cloud.api.ApiServlet] (catalina-exec-6:null) 
> ===START===  10.215.2.19 -- GET  
> command=refreshUcsBlades&response=json&sessionkey=e0Kgb2hcBQPMXSe5O%2FDeRH8v2%2B8%3D&ucsmanagerid=f185ae78-08cb-4a06-a3c8-47c3d2afa896&_=1382043146927
> 2013-10-17 13:52:26,451 DEBUG [ucs.manager.UcsHttpClient] 
> (catalina-exec-6:null) UCS call:  cookie="1382042998/2e94d89b-026b-4fbd-be82-489759483570" 
> inHierarchical="false" classId="computeBlade" />
> 2013-10-17 13:52:26,458 WARN  [ucs.manager.UcsManagerImpl] 
> (catalina-exec-6:null) null
> java.lang.NullPointerException
> at 
> com.cloud.ucs.structure.ComputeBlade.fromXmlObject(ComputeBlade.java:62)
> at 
> com.cloud.ucs.structure.ComputeBlade.fromXmString(ComputeBlade.java:55)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.listBlades(UcsManagerImpl.java:285)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.access$100(UcsManagerImpl.java:65)
> at 
> com.cloud.ucs.manager.UcsManagerImpl$SyncBladesThread.syncBlades(UcsManagerImpl.java:141)
> at 
> com.cloud.ucs.manager.UcsManagerImpl$SyncBladesThread.run(UcsManagerImpl.java:156)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.refreshBlades(UcsManagerImpl.java:624)
> at 
> org.apache.cloudstack.api.RefreshUcsBladesCmd.execute(RefreshUcsBladesCmd.java:42)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:514)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:372)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:305)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2274)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:679)
> 2013-10-17 13:52:26,468 DEBUG [ucs.manager.UcsHttpClient] 
> (catalina-exec-6:null) UCS call:  cookie="1382042998/2e94d89b-026b-4fbd-be82-489759483570" 
> inHierarchical="false" classId="computeBlade" />
> 2013-10-17 13:52:26,471 WARN  [cloudstack.api.RefreshUcsBladesCmd] 
> (catalina-exec-6:null) unhandled exception:
> java.lang.NullPointerException
> at 
> com.cloud.ucs.structure.ComputeBlade.fromXmlObject(ComputeBlade.java:62)
> at 
> com.cloud.ucs.structure.ComputeBlade.fromXmString(ComputeBlade.java:55)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.listBlades(UcsManagerImpl.java:285)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.refreshBlades(UcsManagerImpl.java:627)
> at 
> org.apache.cloudstack.

[jira] [Created] (CLOUDSTACK-5175) DOC:UCS: Update DOC;s to reflect recent UCS changes.

2013-11-14 Thread Parth Jagirdar (JIRA)
Parth Jagirdar created CLOUDSTACK-5175:
--

 Summary: DOC:UCS: Update DOC;s to reflect recent UCS changes.
 Key: CLOUDSTACK-5175
 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5175
 Project: CloudStack
  Issue Type: Bug
  Security Level: Public (Anyone can view this level - this is the default.)
  Components: Doc, UCS
Affects Versions: 4.2.1
 Environment: N/A
Reporter: Parth Jagirdar
Priority: Critical
 Fix For: 4.2.1


Entire UCS admin section and UCS Specific Events needs changes.




--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Closed] (CLOUDSTACK-4711) UCS:API: Premature API response prevent CS from syncing association status

2013-11-08 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-4711.
--


Fixed. Closing.

> UCS:API: Premature API response prevent CS from syncing association status
> --
>
> Key: CLOUDSTACK-4711
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4711
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, UCS
>Affects Versions: 4.2.0
> Environment: UCS
>Reporter: Parth Jagirdar
>Assignee: frank zhang
>Priority: Critical
> Fix For: 4.2.1
>
>
> We rely on association tag from UCS manager to determine the association 
> success.
> association="none" 
> However UCS sometimes send this response prematurely in which case CS fails 
> the API and association is unsuccessful.
> Eventually UCS finishes association and CS and UCS are now out of sync.
> Now if admin attempts to re-associate this blade then it will error out 
> saying the "Object already exists" 
> We need to device another strategy for this to work flawlessly.
> 2013-09-19 14:35:08,554 WARN  
> [commons.httpclient.SimpleHttpConnectionManager] (Job-Executor-19:job-19 = [ 
> 561e963d-be42-418b-be73-dcb7abf98e08 ]) SimpleHttpConnectionManager being 
> used incorrectly.  Be sure that HttpMethod.releaseConnection() is always 
> called and that only one thread and/or method is using this connection 
> manager at a time.
> 2013-09-19 14:35:08,563 DEBUG [ucs.manager.UcsManagerImpl] 
> (Job-Executor-19:job-19 = [ 561e963d-be42-418b-be73-dcb7abf98e08 ]) 
> association response is   cookie="1379626356/ce72a30f-c52f-4772-a546-b2620243" response="yes"> 
>   assignedToDn="" association="none" availability="available" 
> availableMemory="65536" chassisId="1" checkPoint="discovered"  connPath="A" 
> connStatus="A" descr="" discovery="complete" dn="sys/chassis-1/blade-1" 
> fltAggr="0" fsmDescr="" fsmFlags="" fsmPrev="DisassociateSuccess" 
> fsmProgr="100" fsmRmtInvErrCode="none" fsmRmtInvErrDescr="" fsmRmtInvRslt="" 
> fsmStageDescr="" fsmStamp="2013-09-19T14:35:06.906" fsmStatus="nop" 
> fsmTry="0" intId="36071" lc="discovered" lcTs="1969-12-31T16:00:00.000" 
> lowVoltageMemory="low-voltage" managingInst="A" memorySpeed="1333" 
> mfgTime="2012-10-14T01:00:00.000" model="UCSB-B200-M3" name="" 
> numOfAdaptors="1" numOfCores="12" numOfCoresEnabled="12" numOfCpus="2" 
> numOfEthHostIfs="0" numOfFcHostIfs="0" numOfThreads="24" operPower="off" 
> operQualifier="" operState="unassociated" operability="operable" 
> originalUuid="78eb1a7d-7665-4cdb-a995-e4953a63d1d7" partNumber="73-13217-08" 
> presence="equipped" revision="0"  serial="FCH16407N8A" serverId="1/1" 
> slotId="1"  totalMemory="65536" usrLbl="" 
> uuid="78eb1a7d-7665-4cdb-a995-e4953a63d1d7" vendor="Cisco Systems Inc" 
> vid="V03"/>  
> 2013-09-19 14:35:08,563 WARN  [cloudstack.api.AssociateUcsProfileToBladeCmd] 
> (Job-Executor-19:job-19 = [ 561e963d-be42-418b-be73-dcb7abf98e08 ]) Exception:
> com.cloud.utils.exception.CloudRuntimeException: cannot associated a profile 
> to blade[dn:sys/chassis-1/blade-1]. please check your UCS manasger for 
> detailed error information
> at 
> com.cloud.ucs.manager.UcsManagerImpl.isBladeAssociated(UcsManagerImpl.java:351)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.associateProfileToBlade(UcsManagerImpl.java:380)
> at 
> org.apache.cloudstack.api.AssociateUcsProfileToBladeCmd.execute(AssociateUcsProfileToBladeCmd.java:58)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 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:679)
> 2013-09-19 14:35:08,565 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-19:job-19 = [ 561e963d-be42-418b-be73-dcb7abf98e08 ]) Complete 
> async job-19 = [ 561e963d-be42-418b-be73-dcb7abf98e08 ], jobStatus: 2, 
> resultCode: 530, result: Error Code: 530 Error text: cannot associated a 
> profile to blade[dn:sys/chassis-1/blade-1]. please check your UCS manasger 
> for detailed error information
> 2013-09-19 14:35:09,006 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) 
> ===START===  10.252.113.141 -- GET  
> command=queryAsyncJobResult&jobId=561e963d-be42-418b-be73

[jira] [Closed] (CLOUDSTACK-3285) UCS: Need support for HTTP redirects and HTTPS Certificate handling

2013-11-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-3285.
--

Assignee: (was: Amogh Vasekar)

Verified.

> UCS: Need support for HTTP redirects and HTTPS Certificate handling
> ---
>
> Key: CLOUDSTACK-3285
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3285
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: UCS
>Affects Versions: 4.2.0
> Environment: Master; Basic Bare-metal and UCS
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.1
>
>
> By default UCS has HTTP to HTTPs redirect enabled.
> At which point, addUcsManager fails with following error.
> 2013-06-28 14:19:57,020 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null) 
> ===START===  10.217.252.127 -- GET  
> command=addUcsManager&zoneid=d92cc843-8c50-4f57-9c07-1041bf859f8d&name=ucsmanager&url=10.223.184.2&username=admin&response=json&sessionkey=NiAtOI4sZHTkTJ37Y4jz0ntaeYg%3D&_=1372454390205
> 2013-06-28 14:19:57,256 WARN  [cloudstack.api.AddUcsManagerCmd] 
> (catalina-exec-20:null) Exception:
> com.cloud.utils.exception.CloudRuntimeException: Cannot get cookie
> at 
> com.cloud.ucs.manager.UcsManagerImpl.getCookie(UcsManagerImpl.java:174)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.listBlades(UcsManagerImpl.java:179)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.discoverBlades(UcsManagerImpl.java:123)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.addUcsManager(UcsManagerImpl.java:154)
> at 
> org.apache.cloudstack.api.AddUcsManagerCmd.execute(AddUcsManagerCmd.java:68)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
> at com.cloud.api.ApiServer.queueCommand(ApiServer.java:528)
> at com.cloud.api.ApiServer.handleRequest(ApiServer.java:371)
> at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
> at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
> at 
> org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
> at 
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
> at 
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
> 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:679)
> Caused by: com.cloud.utils.exception.CloudRuntimeException: Call failed: 
> 
> 
> 302 Found
> 
> Found
> The document has moved https://10.223.184.2/nuova";>here.
> 
> at com.cloud.ucs.manager.UcsHttpClient.call(UcsHttpClient.java:50)
> at 
> com.cloud.ucs.manager.UcsManagerImpl.getCookie(UcsManagerImpl.java:166)
> ... 26 more
> Caused by: com.cloud.utils.exception.CloudRuntimeException: Call failed: 
> 
> 
> 302 Found
> 
> Found
> The document has moved https://10.223.184.2/nuova";>here.
> 
> at com.cloud.ucs.manager.UcsHttpClient.call(UcsHttpClient.java:41)
> ... 27 more
> 2013-06-28 14:19:57,257 INFO  [cloud.api.ApiServer] (catalina-exec-20:null) 
> Cannot get cookie
> 2013-06-28 14:19:57,258 DEBUG [cloud.api.ApiServlet] (catalina-exec-20:null) 
> ===END===  10.217.252.127 -- GET  
> command=addUcsManager&zoneid=d92cc843-8c50-4f57-9c07-1041bf859f8d&name=ucsmanager&url=10.223.184.2&username=admin&response=json&sessionkey=NiAtOI4sZHTkTJ37Y4jz0ntaeYg%3D&_=1372454390205
> 2013-06-28 14:20:02,479 DEBUG [cloud.server.StatsCollector] 
> (StatsCollector-2:null) HostStat

[jira] [Closed] (CLOUDSTACK-4688) UCS:UI: queryAsyncJobResult keeps getting fired upon an unsuccessfull profile association

2013-11-06 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-4688.
--


Verified.

> UCS:UI: queryAsyncJobResult keeps getting fired upon an unsuccessfull profile 
> association
> -
>
> Key: CLOUDSTACK-4688
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4688
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: UCS, UI
>Affects Versions: 4.2.1
>Reporter: Parth Jagirdar
>Assignee: frank zhang
> Attachments: UCS-UI_Query.png
>
>
> 2013-09-16 14:33:04,801 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%
> 3D&_=1379368164145
> 2013-09-16 14:33:04,811 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-15:null) Async job-13 = [ cb17e5c3-64a4-4c37-bdf7-e03cdadeb618 
> ] completed
> 2013-09-16 14:33:04,815 DEBUG [cloud.api.ApiServlet] (catalina-exec-15:null) 
> ===END===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%3D
> &_=1379368164145
> 2013-09-16 14:33:07,174 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-15:null) SeqA 3-1252: Processing Seq 3-1252:  { Cmd , 
> MgmtId: -1, via: 3, Ver: v1, Flags: 11, 
> [{"com.cloud.agent.api.ConsoleProxyLoadReportCommand":{
> "_proxyVmId":2,"_loadInfo":"{\n  \"connections\": []\n}","wait":0}}] }
> 2013-09-16 14:33:07,179 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-15:null) SeqA 3-1252: Sending Seq 3-1252:  { Ans: , 
> MgmtId: 6788531356733, via: 3, Ver: v1, Flags: 100010, 
> [{"com.cloud.agent.api.AgentControlAnswer"
> :{"result":true,"wait":0}}] }
> 2013-09-16 14:33:07,876 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%
> 3D&_=1379368167154
> 2013-09-16 14:33:07,885 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-24:null) Async job-13 = [ cb17e5c3-64a4-4c37-bdf7-e03cdadeb618 
> ] completed
> 2013-09-16 14:33:07,888 DEBUG [cloud.api.ApiServlet] (catalina-exec-24:null) 
> ===END===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%3D
> &_=1379368167154
> 2013-09-16 14:33:10,834 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%
> 3D&_=1379368170178
> 2013-09-16 14:33:10,844 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-17:null) Async job-13 = [ cb17e5c3-64a4-4c37-bdf7-e03cdadeb618 
> ] completed
> 2013-09-16 14:33:10,848 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) 
> ===END===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%3D
> &_=1379368170178
> 2013-09-16 14:33:13,952 DEBUG [cloud.api.ApiServlet] (catalina-exec-5:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%3
> D&_=1379368173208
> 2013-09-16 14:33:13,961 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-5:null) Async job-13 = [ cb17e5c3-64a4-4c37-bdf7-e03cdadeb618 
> ] completed
> 2013-09-16 14:33:13,964 DEBUG [cloud.api.ApiServlet] (catalina-exec-5:null) 
> ===END===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%3D&
> _=1379368173208
> 2013-09-16 14:33:15,862 DEBUG [agent.manager.AgentManagerImpl] 
> (AgentManager-Handler-2:null) Ping from 4
> 2013-09-16 14:33:16,921 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%3
> D&_=1379368176233
> 2013-09-16 14:33:16,930 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-1:null) Async job-13 = [ cb17e5c3-64a4-4c37-bdf7-e03cdadeb618 
> ] completed
> 2013-09-16 14:33:16,933 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) 
> ===END===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=cb17e5c3-64a4-4c37-bdf7-e03cdadeb618&response=json&sessionkey=K1TUaBBWENJHygmfpHhm0sdUeSo%3D&
> _=1379368176233
> 2013

[jira] [Closed] (CLOUDSTACK-4983) VMWare:MS: Dynamic scaling doesnt work with vCenter 5.1

2013-10-28 Thread Parth Jagirdar (JIRA)

 [ 
https://issues.apache.org/jira/browse/CLOUDSTACK-4983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Parth Jagirdar closed CLOUDSTACK-4983.
--

   Resolution: Not A Problem
Fix Version/s: 4.2.0

We do not poll for VMware tools status on VM's. So given that fact we 
introduced a check box that Admin's must check before attempting a dynamic 
scaling. ( A Trust feature that VMWare tools is now installed).

Subsequent tests revealed that scaling can be successful with this flag set and 
VMWare tools not installed at all.

However it is still recommended that we install the VMWare tools and then set 
the Flag (Which acts as a way of telling CS that VMWare tools is now 
successfully installed).

Then perform a dynamic scaling.

Closing as not a problem, But would certainly wish for a cleaner implementation 
that doesn't  rely on Trust. There are high  chances that we could pull VMWare 
tools status from vCenter instead of relying on manual flag. Would raise a 
separate enhancement request for this.

> VMWare:MS: Dynamic scaling doesnt work with vCenter 5.1
> ---
>
> Key: CLOUDSTACK-4983
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-4983
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API, Management Server, VMware
>Affects Versions: 4.2.0
> Environment: VCenter 5.1 with ESX 5.1
>Reporter: Parth Jagirdar
>Priority: Critical
> Fix For: 4.2.0
>
>
> Dynamic scaling complains about VMWare tools not installed although its 
> installed on VM and vCenter reports it as installed.
> Is VMWare-tools detection not happening correctly on vCenter 5.1/ESXi 5.1?
> -487b-9226-cba948735665 ]) Unexpected exception while executing 
> org.apache.cloudstack.api.command.user.vm.ScaleVMCmd
> com.cloud.utils.exception.CloudRuntimeException: Unable to Scale the vm: 
> 7c70a918-d6c1-4a23-91ff-524cafe9613d as vm does not have tools to support 
> dynamic scaling
> at 
> com.cloud.vm.UserVmManagerImpl.upgradeRunningVirtualMachine(UserVmManagerImpl.java:1281)
> at 
> com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1226)
> at 
> com.cloud.vm.UserVmManagerImpl.upgradeVirtualMachine(UserVmManagerImpl.java:1160)
> at 
> com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
> at 
> org.apache.cloudstack.api.command.user.vm.ScaleVMCmd.execute(ScaleVMCmd.java:102)
> at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
> at 
> com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
> at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> 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:679)
> 2013-10-28 17:09:22,721 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (Job-Executor-30:job-50 = [ 984aac12-7908-487b-9226-cba948735665 ]) Complete 
> async job-50 = [ 984aac12-7908-487b-9226-cba948735665 ], jobStatus: 2, 
> resultCode: 530, result: Error Code: 530 Error text: Unable to Scale the vm: 
> 7c70a918-d6c1-4a23-91ff-524cafe9613d as vm does not have tools to support 
> dynamic scaling
> 2013-10-28 17:09:25,730 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) 
> ===START===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=984aac12-7908-487b-9226-cba948735665&response=json&sessionkey=uH7v1HeDZJF1y9NFekMzJzhwF78%3D&_=1383005365709
> 2013-10-28 17:09:25,741 DEBUG [cloud.async.AsyncJobManagerImpl] 
> (catalina-exec-2:null) Async job-50 = [ 984aac12-7908-487b-9226-cba948735665 
> ] completed
> 2013-10-28 17:09:25,748 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null) 
> ===END===  10.215.2.19 -- GET  
> command=queryAsyncJobResult&jobId=984aac12-7908-487b-9226-cba948735665&response=json&sessionkey=uH7v1HeDZJF1y9NFekMzJzhwF78%3D&_=1383005365709



--
This message was sent by Atlassian JIRA
(v6.1#6144)


  1   2   3   4   >