Remi Bergsma created CLOUDSTACK-7935:
----------------------------------------

             Summary: keep colons in the request to ACS
                 Key: CLOUDSTACK-7935
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7935
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Cloudmonkey
            Reporter: Remi Bergsma
            Priority: Minor


We run into an interesting issue with CloudMonkey today. Before 5.3 this 
worked, now it doesn't any more.

Creating a private gateway on our SDN platform (lswitch instead of vlan id):

(mccp_admin)  > create privategateway 
vpcid=da18a1a9-66da-427a-b2e6-bee31f08419e 
networkofferingid=222a66eb-626b-46e7-8ea0-1e2a1b80cff4 
vlan=lswitch:d3b79b6a-eb65-47f6-982f-e78f18f8b7b1 gateway=10.71.25.3 
ipaddress=10.71.25.12 netmask=255.255.255.192

Returns:
Error Error: string 'lswitch%3Ad3b79b6a-eb65-47f6-982f-e78f18f8b7b1' has an 
unknown BroadcastDomainType.

In the CloudStack logs:

s=10.71.25.12&netmask=255.255.255.192&networkofferingid=222a66eb-626b-46e7-8ea0-1e2a1b80cff4&response=json&signatureversion=3&vlan=lswitch%253Ad3b79b6a-eb65-47f6-982f-e78f18f8b7b1&vpcid=da18a1a9-66da-427a-b2e6-bee31f08419e&signature=TuyC3d900X%2B88P6zJwz4NcN1RxY%3D
2014-11-17 14:32:26,178 DEBUG [c.c.n.v.VpcManagerImpl] 
(catalina-exec-10:ctx-b5bcc469 ctx-279b581f ctx-115c60e7) Creating Private 
gateway for VPC [VPC [483-SBP_VPC_MDMS]
2014-11-17 14:32:26,185 ERROR [c.c.a.ApiServer] (catalina-exec-10:ctx-b5bcc469 
ctx-279b581f ctx-115c60e7) unhandled exception executing api command: 
createPrivateGateway
com.cloud.utils.exception.CloudRuntimeException: string 
'lswitch%3Ad3b79b6a-eb65-47f6-982f-e78f18f8b7b1' has an unknown 
BroadcastDomainType.

It seems CloudMonkey replaces the ":" with "%3A" resulting in an invalid 
request.

See this pull request for a solution that works:
https://github.com/apache/cloudstack-cloudmonkey/pull/1



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to