cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jessica Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-5656) UI shows PF,LB,firewall,static NAT rule operations success on non upgraded VR but logs show VR requires upgrade.
Date Tue, 31 Dec 2013 22:08:50 GMT

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

Jessica Wang updated CLOUDSTACK-5656:
-------------------------------------


manasaveloori,

This is an API bug, NOT an UI bug.

UI just shows whatever API returns.
When API returns success, UI shows success.
When API returns error, UI shows error.

In this case, UI shows success because API returns success.

so, createFirewallRule API has to be fixed to return error instead of success in this scenario.

I'll change component from UI to API.

Jessica

> UI shows PF,LB,firewall,static NAT rule operations success on non upgraded VR but logs
show VR requires upgrade.
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-5656
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-5656
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: 4.3.0
>         Environment: 2.2.14 to 4.3 upgrade
>            Reporter: manasaveloori
>            Assignee: Jessica Wang
>            Priority: Critical
>             Fix For: 4.3.0
>
>
> 1. Have CS 2.2.14 with xen 5.6sp2.
> 2.Deploy some VRS.
> 3. Upgrade to 4.3.
> 4. Perform any operation which sends commands to non upgraded VR like applying static
nat,firewall rules,PF etc.
> Observation:
> UI shows all the operations as success but in logs we can see the messages as 
> 2013-12-27 15:04:31,326 DEBUG [c.c.a.ApiServlet] (catalina-exec-12:ctx-c0ac9a16 ctx-ed5f06a6)
===END===  10.252.192.34 -- GET  command=createFirewallRule&response=json&sessionkey=DE4U5L%2FWnxa60eF2LoJPuY6FVHw%3D&cidrlist=0.0.0.0%2F0&protocol=tcp&startport=1&endport=65535&ipaddressid=4&_=1388136871014
> 2013-12-27 15:04:31,354 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (Job-Executor-18:ctx-0bb79ed5
ctx-ed5f06a6) Applying ip association in network Ntwk[205|Guest|6]
> 2013-12-27 15:04:31,354 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (Job-Executor-18:ctx-0bb79ed5
ctx-ed5f06a6) Router r-6-VM requires upgrade, so not sending apply ip association commands
to the backend
> 2013-12-27 15:04:31,362 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (Job-Executor-18:ctx-0bb79ed5
ctx-ed5f06a6) Applying firewall rules in network Ntwk[205|Guest|6]
> 2013-12-27 15:04:31,363 DEBUG [c.c.n.r.VirtualNetworkApplianceManagerImpl] (Job-Executor-18:ctx-0bb79ed5
ctx-ed5f06a6) Router r-6-VM requires upgrade, so not sending apply firewall rules commands
to the backend
> 2013-12-27 15:04:31,430 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-18:ctx-0bb79ed5
ctx-ed5f06a6) Complete async job-24, jobStatus: SUCCEEDED, resultCode: 0, result: org.apache.cloudstack.api.response.FirewallResponse/firewallrule/{"id":"b772c804-09cc-4eaa-96a3-61adcf1cb242","protocol":"tcp","startport":"1","endport":"65535","ipaddressid":"4","networkid":"205","ipaddress":"10.147.47.6","state":"Active","cidrlist":"","tags":[]}
> 2013-12-27 15:04:31,483 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] (Job-Executor-18:ctx-0bb79ed5)
Done executing org.apache.cloudstack.api.command.user.firewall.CreateFirewallRuleCmd for job-24
> UI shoul aslo show the message as " Router requires upgrade" and the action should fail.



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

Mime
View raw message