cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Girish Shilamkar <gir...@clogeny.com>
Subject Re: CreateVPCOffering API without SourceNat service
Date Wed, 08 Jan 2014 06:29:30 GMT
Thanks a lot Alena !

Regards,
Girish

On 07-Jan-2014, at 10:58 PM, Alena Prokharchyk <Alena.Prokharchyk@citrix.com> wrote:

> Yes, it does as sourceNat is required service for VPC
> 
> -Alena.
> 
> From: Girish Shilamkar <girish@clogeny.com>
> Reply-To: "dev@cloudstack.apache.org" <dev@cloudstack.apache.org>
> Date: Tuesday, January 7, 2014 at 6:46 AM
> To: "dev@cloudstack.apache.org" <dev@cloudstack.apache.org>
> Cc: Raja Pullela <raja.pullela@citrix.com>
> Subject: CreateVPCOffering API without SourceNat service
> 
> Hello,
> 
> Does createVPCOffering API by default creates VPC with SourceNat service even if it is
not specified in API ?
> 
> I tried this out where Services  = {DHPC, DNS, PF, VPN, LB, UserData and StaticNat} and
called createVPCOffering API. But the API created VPC with SourceNat service even though it
was not specified.
> Is this a bug or expected API behavior ?
> 
> Logs:
> 
> 2014-01-08 01:18:52,824 INFO  [a.c.c.a.ApiServer] (catalina-exec-21:ctx-50e32635 ctx-3b71a430
ctx-ae6f3edd) (userId=2 accountId=2 sessionId=null) 10.223.240.194 -- GET apiKey=svFCdVAu2l5qBJhfBQJzXkUX6JNuJeBx7T67DB2IZDogKUi_OdvZ7v2ZwhXcJko7hJyGxrkxPNiUhWCmJmg1Ag&name=VPC+off-MHYR1D&supportedServices=Dhcp%2CDns%2CPortForwarding%2CVpn%2CLb%2CUserData%2CStaticNat&command=createVPCOffering&signature=N8CjFtdIFO2Fngfzwk74jxX3fXU%3D&displaytext=VPC+off&response=json

> 
> 200 { "createvpcofferingresponse" : {"id":"1b88100a-6cf0-4e95-8c61-3ea2e4880e05","jobid":"eb33e44d-6847-4ed0-b725-58538433783b"}
}
> 2014-01-08 01:18:52,885 INFO  [a.c.c.a.ApiServer] (catalina-exec-11:ctx-136618c3 ctx-13ae2495
ctx-4457331f) (userId=2 accountId=2 sessionId=null) 10.147.38.149 -- GET signature=ByWt6epU4CCyD4weC0%2FsMYZvhRk%3D&apiKey=svFCdVAu2l5qBJhfBQJzXkUX6JNuJeBx7T67DB2IZDogKUi_OdvZ7v2ZwhXcJko7hJyGxrkxPNiUhWCmJmg1Ag&command=queryAsyncJobResult&response=json&jobid=d3ab731e-44f1-488a-afe8-4a7bbaa5a307
200 { "queryasyncjobresultresponse" : {"accountid":"b0aa9908-77c9-11e3-907e-06080800001f","userid":"b0aae336-77c9-11e3-907e-06080800001f","cmd":"org.apache.cloudstack.api.command.user.vm.DeployVMCmd","jobstatus":0,"jobprocstatus":0,"jobresultcode":0,"jobinstancetype":"VirtualMachine","jobinstanceid":"1833f505-5d81-4966-bce9-6877d1bc6575","created":"2014-01-08T01:16:16+0530","jobid":"d3ab731e-44f1-488a-afe8-4a7bbaa5a307"}
}
> 
> 2014-01-08 01:18:53,319 INFO  [a.c.c.a.ApiServer] (catalina-exec-6:ctx-daf0d2ef ctx-40e18e42
ctx-e9a34e6d) (userId=2 accountId=2 sessionId=null) 10.223.240.194 -- GET signature=mOM86TZeLh7KoTAWrvyzioEjHLE%3D&apiKey=svFCdVAu2l5qBJhfBQJzXkUX6JNuJeBx7T67DB2IZDogKUi_OdvZ7v2ZwhXcJko7hJyGxrkxPNiUhWCmJmg1Ag&command=queryAsyncJobResult&response=json&jobid=eb33e44d-6847-4ed0-b725-58538433783b
200 { "queryasyncjobresultresponse" : {"accountid":"b0aa9908-77c9-11e3-907e-06080800001f","userid":"b0aae336-77c9-11e3-907e-06080800001f","cmd":"org.apache.cloudstack.api.command.admin.vpc.CreateVPCOfferingCmd","jobstatus":1,"jobprocstatus":0,"jobresultcode":0,"jobresulttype":"object","jobresult":{"vpcoffering":{"id":"1b88100a-6cf0-4e95-8c61-3ea2e4880e05","name":"VPC
off-MHYR1D","displaytext":"VPC off","isdefault":false,"state":"Disabled","service":[{"name":"SourceNat","provider":[{"name":"VpcVirtualRouter"}]},{"name":"NetworkACL","provider":[{"name":"VpcVirtualRouter"}]},{"name":"StaticNat","provider":[{"name":"VpcVirtualRouter"}]},{"name":"Lb","provider":[{"name":"VpcVirtualRouter"}]},{"name":"Dns","provider":[{"name":"VpcVirtualRouter"}]},{"name":"UserData","provider":[{"name":"VpcVirtualRouter"}]},{"name":"PortForwarding","provider":[{"name":"VpcVirtualRouter"}]},{"name":"Vpn","provider":[{"name":"VpcVirtualRouter"}]},{"name":"Dhcp","provider":[{"name":"VpcVirtualRouter"}]}]}},"created":"2014-01-08T01:18:52+0530","jobid":"eb33e44d-6847-4ed0-b725-58538433783b"}
}
> 
> When I try to create VPC from UI with same services it fails but here it calls createNetworkOffering
> 
> <screenshot.png>
> 
> 
> 
> Regards,
> Girish
> 
> <screenshot.png>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message