Re: Can't add shared network with public IPs

2013-10-22 Thread Denis Finko
Hello Sanjeev,

Thank you for your reply! But when I created that API call:

http://cs-manage41.ourdomain.com:8080/client/api?
command=createNetwork
gateway=xx.xxx.xxx.1
netmask=255.255.255.0
displaytext=CS_Default_network
name=CS
networkofferingid=eedfa08e-c2a2-4392-b561-45b1a7dd9968
zoneid=ddefc1dd-187a-4849-94d6-ac0466b905bd
cidr=xx.xxx.xxx.0/24
vlan=3
apiKey=i1HtdAADSs4P5fMyGmPTPdpmtcHUtXRNnDdCaxepBm9n3URrpdYWehzXO85qI5l3MMcG_9UW8MkWgU6vn39UdA
sessionkey=4ruxkWEF6PSRaxrrUVoGBq0bH1M%3D_=1382752053469

I have used apiKey which I took from UI for admin user:
UI -- Accounts -- clicked on 'admin' user -- View Users -- admin --
and took API Key

And 'sessionkey' I took from browser JavaScript console when was logged
as 'admin' user on UI.

On 10/22/2013 08:20 AM, Sanjeev Neelarapu wrote:
 Its because the API uses system as the user and for UI you might have used 
 default admin user.
 So while creating network pass account as admin to createNetwork API.

 -Sanjeev

 -Original Message-
 From: Denis Finko [mailto:denis.fi...@ecommerce.com] 
 Sent: Tuesday, October 22, 2013 1:05 AM
 To: dev@cloudstack.apache.org
 Subject: Can't add shared network with public IPs

 Hello CloudStack community,

 Could you please help me investigate following issue. I am tring to add new 
 network in CloudStack4.1 with vmware via API call.
 For doing this I have use:

 - DefaultSharedNetworkOffering
 - public IP address range
 - api call

 http://cs-manage41.ourdomain.com:8080/client/api?
 command=createNetwork
 gateway=xx.xxx.xxx.1
 netmask=255.255.255.0
 displaytext=CS_Default_network
 name=CS
 networkofferingid=eedfa08e-c2a2-4392-b561-45b1a7dd9968
 zoneid=ddefc1dd-187a-4849-94d6-ac0466b905bd
 cidr=xx.xxx.xxx.0/24
 vlan=3
 apiKey=i1HtdAADSs4P5fMyGmPTPdpmtcHUtXRNnDdCaxepBm9n3URrpdYWehzXO85qI5l3MMcG_9UW8MkWgU6vn39UdA
 sessionkey=4ruxkWEF6PSRaxrrUVoGBq0bH1M%3D_=1382752053469

 Network was successfully added. But when I go to: CloudStack GI -- Network 
 --  click on created network -- View IP Addresses -- Acquire New IP I get 
 error: The owner of the network is not the same as owner of the IP

 2013-10-21 15:26:05,824 ERROR [cloud.async.AsyncJobManagerImpl]
 (Job-Executor-4:job-30) Unexpected exception while executing 
 org.apache.cloudstack.api.command.user.address.AssociateIPAddrCmd
 com.cloud.exception.InvalidParameterValueException: The owner of the network 
 is not the same as owner of the IP
 at
 com.cloud.network.NetworkManagerImpl.associateIPToGuestNetwork(NetworkManagerImpl.java:744)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 com.cloud.network.NetworkServiceImpl.associateIPToNetwork(NetworkServiceImpl.java:2852)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 org.apache.cloudstack.api.command.user.address.AssociateIPAddrCmd.execute(AssociateIPAddrCmd.java:244)
 at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
 at
 com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
 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:1146)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:679)

 Thank you!



RE: Can't add shared network with public IPs

2013-10-22 Thread Sanjeev Neelarapu
Please open a ticket in Jira.

-Original Message-
From: Denis Finko [mailto:denis.fi...@ecommerce.com] 
Sent: Tuesday, October 22, 2013 12:34 PM
To: dev@cloudstack.apache.org; Sanjeev Neelarapu
Subject: Re: Can't add shared network with public IPs

Hello Sanjeev,

Thank you for your reply! But when I created that API call:

http://cs-manage41.ourdomain.com:8080/client/api?
command=createNetwork
gateway=xx.xxx.xxx.1
netmask=255.255.255.0
displaytext=CS_Default_network
name=CS
networkofferingid=eedfa08e-c2a2-4392-b561-45b1a7dd9968
zoneid=ddefc1dd-187a-4849-94d6-ac0466b905bd
cidr=xx.xxx.xxx.0/24
vlan=3
apiKey=i1HtdAADSs4P5fMyGmPTPdpmtcHUtXRNnDdCaxepBm9n3URrpdYWehzXO85qI5l3MMcG_9UW8MkWgU6vn39UdA
sessionkey=4ruxkWEF6PSRaxrrUVoGBq0bH1M%3D_=1382752053469

I have used apiKey which I took from UI for admin user:
UI -- Accounts -- clicked on 'admin' user -- View Users -- admin -- and 
took API Key

And 'sessionkey' I took from browser JavaScript console when was logged as 
'admin' user on UI.

On 10/22/2013 08:20 AM, Sanjeev Neelarapu wrote:
 Its because the API uses system as the user and for UI you might have used 
 default admin user.
 So while creating network pass account as admin to createNetwork API.

 -Sanjeev

 -Original Message-
 From: Denis Finko [mailto:denis.fi...@ecommerce.com]
 Sent: Tuesday, October 22, 2013 1:05 AM
 To: dev@cloudstack.apache.org
 Subject: Can't add shared network with public IPs

 Hello CloudStack community,

 Could you please help me investigate following issue. I am tring to add new 
 network in CloudStack4.1 with vmware via API call.
 For doing this I have use:

 - DefaultSharedNetworkOffering
 - public IP address range
 - api call

 http://cs-manage41.ourdomain.com:8080/client/api?
 command=createNetwork
 gateway=xx.xxx.xxx.1
 netmask=255.255.255.0
 displaytext=CS_Default_network
 name=CS
 networkofferingid=eedfa08e-c2a2-4392-b561-45b1a7dd9968
 zoneid=ddefc1dd-187a-4849-94d6-ac0466b905bd
 cidr=xx.xxx.xxx.0/24
 vlan=3
 apiKey=i1HtdAADSs4P5fMyGmPTPdpmtcHUtXRNnDdCaxepBm9n3URrpdYWehzXO85qI5
 l3MMcG_9UW8MkWgU6vn39UdA
 sessionkey=4ruxkWEF6PSRaxrrUVoGBq0bH1M%3D_=1382752053469

 Network was successfully added. But when I go to: CloudStack GI -- 
 Network --  click on created network -- View IP Addresses -- 
 Acquire New IP I get error: The owner of the network is not the same 
 as owner of the IP

 2013-10-21 15:26:05,824 ERROR [cloud.async.AsyncJobManagerImpl]
 (Job-Executor-4:job-30) Unexpected exception while executing 
 org.apache.cloudstack.api.command.user.address.AssociateIPAddrCmd
 com.cloud.exception.InvalidParameterValueException: The owner of the network 
 is not the same as owner of the IP
 at
 com.cloud.network.NetworkManagerImpl.associateIPToGuestNetwork(NetworkManagerImpl.java:744)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 com.cloud.network.NetworkServiceImpl.associateIPToNetwork(NetworkServiceImpl.java:2852)
 at
 com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 at
 org.apache.cloudstack.api.command.user.address.AssociateIPAddrCmd.execute(AssociateIPAddrCmd.java:244)
 at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
 at
 com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
 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:1146)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:679)

 Thank you!



RE: Can't add shared network with public IPs

2013-10-21 Thread Sanjeev Neelarapu
Its because the API uses system as the user and for UI you might have used 
default admin user.
So while creating network pass account as admin to createNetwork API.

-Sanjeev

-Original Message-
From: Denis Finko [mailto:denis.fi...@ecommerce.com] 
Sent: Tuesday, October 22, 2013 1:05 AM
To: dev@cloudstack.apache.org
Subject: Can't add shared network with public IPs

Hello CloudStack community,

Could you please help me investigate following issue. I am tring to add new 
network in CloudStack4.1 with vmware via API call.
For doing this I have use:

- DefaultSharedNetworkOffering
- public IP address range
- api call

http://cs-manage41.ourdomain.com:8080/client/api?
command=createNetwork
gateway=xx.xxx.xxx.1
netmask=255.255.255.0
displaytext=CS_Default_network
name=CS
networkofferingid=eedfa08e-c2a2-4392-b561-45b1a7dd9968
zoneid=ddefc1dd-187a-4849-94d6-ac0466b905bd
cidr=xx.xxx.xxx.0/24
vlan=3
apiKey=i1HtdAADSs4P5fMyGmPTPdpmtcHUtXRNnDdCaxepBm9n3URrpdYWehzXO85qI5l3MMcG_9UW8MkWgU6vn39UdA
sessionkey=4ruxkWEF6PSRaxrrUVoGBq0bH1M%3D_=1382752053469

Network was successfully added. But when I go to: CloudStack GI -- Network -- 
 click on created network -- View IP Addresses -- Acquire New IP I get 
error: The owner of the network is not the same as owner of the IP

2013-10-21 15:26:05,824 ERROR [cloud.async.AsyncJobManagerImpl]
(Job-Executor-4:job-30) Unexpected exception while executing 
org.apache.cloudstack.api.command.user.address.AssociateIPAddrCmd
com.cloud.exception.InvalidParameterValueException: The owner of the network is 
not the same as owner of the IP
at
com.cloud.network.NetworkManagerImpl.associateIPToGuestNetwork(NetworkManagerImpl.java:744)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.network.NetworkServiceImpl.associateIPToNetwork(NetworkServiceImpl.java:2852)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.user.address.AssociateIPAddrCmd.execute(AssociateIPAddrCmd.java:244)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
at
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
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:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:679)

Thank you!

--
Best regards,

Denis Finko
System Administrator, SA
Ecommerce corporation
www.ecommerce.com