[
https://issues.apache.org/jira/browse/CLOUDSTACK-8192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653062#comment-14653062
]
Jayapal Reddy commented on CLOUDSTACK-8192:
-------------------------------------------
{noformat}
(local) > create egressfirewallrule protocol=tcp
networkid=a0d4fd97-5fbf-49d1-b13b-b2a99bd52d6b
accountid = 29d38ad8-3691-11e5-b067-a0b29efe21a6
cmd =
org.apache.cloudstack.api.command.user.firewall.CreateEgressFirewallRuleCmd
created = 2015-08-04T10:31:30+0530
jobid = 1b984c4e-c99c-4221-b4bd-cf167fc49e16
jobinstanceid = 34bef100-9c44-483f-ab61-96f943a79537
jobinstancetype = FirewallRule
jobprocstatus = 0
jobresult:
firewallrule:
id = 34bef100-9c44-483f-ab61-96f943a79537
cidrlist = 10.1.1.0/24
fordisplay = True
networkid = a0d4fd97-5fbf-49d1-b13b-b2a99bd52d6b
protocol = tcp
state = Active
tags:
jobresultcode = 0
jobresulttype = object
jobstatus = 1
userid = 29d3b9fe-3691-11e5-b067-a0b29efe21a6
(local) >
(local) > list egressfirewallrules
networkid=a0d4fd97-5fbf-49d1-b13b-b2a99bd52d6b listall=true
count = 2
firewallrule:
id = 34bef100-9c44-483f-ab61-96f943a79537
cidrlist = 10.1.1.0/24
fordisplay = True
networkid = a0d4fd97-5fbf-49d1-b13b-b2a99bd52d6b
protocol = tcp
state = Active
tags:
================================================================================
id = 90898bea-7c5f-4db9-bb33-e984b8918a67
cidrlist = 10.1.1.0/24
fordisplay = True
networkid = a0d4fd97-5fbf-49d1-b13b-b2a99bd52d6b
protocol = all
state = Active
tags:
================================================================================
(local) >
{noformat}
> Wrong ID being returned in the createEgressFirewallRule end-point response
> --------------------------------------------------------------------------
>
> Key: CLOUDSTACK-8192
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8192
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Environment: Issue was found on cloudstack version 4.2.1
> Reporter: Diogo Monteiro
> Assignee: Maneesha
> Priority: Critical
> Fix For: 4.6.0
>
>
> Instead of returning the rule UUID, the endpoint is returning the database
> primary key. This causes an issue since most third party applications expect
> async endpoints to return the asyncJobId and the resource UUID as part of the
> response
> Steps to reproduce:
> #1 Make a request to the createEgressFirewallRule endPoint
> http://cs42.dev.cloud:8096?action=ALLOW&apiKey=j-DKJIkURhA2G4H0vg3Tba-a75SasolsL8sRZbEAxKlq-AihyVElV7dhaAMjf-jOTOwzu8zEoKb-2krJjr8r3Q&cidrlist=0.0.0.0%2F0&command=createEgressFirewallRule&endport=81&networkid=e5a1cb87-b6da-4e41-b6c2-2bc686713d0f&number=1003&protocol=TCP&response=json&startport=81&traffictype=INGRESS&signature=aT8dtBE%2FTb34205sfKHckXXPGcQ%3D
> Results
> Response object return primary key instead of UUID:
> "createegressfirewallruleresponse": {
> "id": "78",
> "jobid": "05626600-fb64-4558-b5ce-675294e9f48f"
> }
> Expected Results:
> createegressfirewallruleresponse object should contain the rule UUID
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)