[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14116803#comment-14116803
 ] 

Murali Reddy commented on CLOUDSTACK-6749:
------------------------------------------

Problem;
-----------
A XE param named 'is-ovs-vpc-distributed-vr-network' for the bridge is set to 
true for the VPC's that are configured for using distributed routing. While 
this check works in case when there is a parameter, results in exception when 
no such param is there i.e) for the bridges not configured for VPC.

Root Cause Analysis:
--------------------------

Exception is not handled, which ends up in the logs.

Proposed Solution:
------------------------

Handle the exception, as it can be handled gracefully, and not really exception 
but a condition check.

QA steps:
-------------

In the logs, there should not be any reported exception messages


There is not test case for this bug, and no need for one either.

> [OVS] xe network-param-get with param-key=is-ovs-vpc-distributed-vr-network 
> alway returns error
> -----------------------------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6749
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6749
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server, Network Controller
>    Affects Versions: 4.4.0
>         Environment: Latest build from 4.4 with commit 
> e6961fd21bb6d793302c234d0f409f66dc498072
>            Reporter: Sanjeev N
>            Assignee: Murali Reddy
>            Priority: Critical
>              Labels: ovs
>             Fix For: 4.4.0
>
>
> [OVS] xe network-param-get with param-key=is-ovs-vpc-distributed-vr-network 
> alway returns error
> Steps to reproduce:
> ================
> 1.Bring up CS in advanced zone with xen cluster
> 2.Create physical network with GRE isolation
> 3.Create isolated network with virtual networking and ovs as the service 
> provider
> 4.Deploy few vms in the above network
> 5.Observe /var/log/cloud/ovstunnel.log file on the xen hosts
> Result:
> ======
> Everytime when the "xe network-param-get" commnad is executed with 
> param-key=is-ovs-vpc-distributed-vr-network we see the errors.
> Following is the log snippet from xen server ovstunnel.log file:
> 2014-05-22 17:07:43    DEBUG [root] Executing:['cat', 
> '/etc/xensource/network.conf']
> 2014-05-22 17:07:43    DEBUG [root] Executing:['/usr/bin/ovs-vsctl', 
> 'iface-to-br', 'vif29.1']
> 2014-05-22 17:07:43    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-list', 'bridge=xapi0', '--minimal']
> 2014-05-22 17:07:43    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-param-get', 'uuid=a49d187f-edaa-f7f1-965c-5573f3530c50', 
> 'param-name=other-config', 'param-key=is-ovs-tun-network', '--minimal']
> 2014-05-22 17:07:43    DEBUG [root] The command exited with the error code: 1 
> (stderr output:Error: Key is-ovs-tun-network not found in map
> )
> 2014-05-22 17:07:43    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-param-get', 'uuid=a49d187f-edaa-f7f1-965c-5573f3530c50', 
> 'param-name=other-config', 'param-key=is-ovs-vpc-distributed-vr-network', 
> '--minimal']
> 2014-05-22 17:07:43    DEBUG [root] The command exited with the error code: 1 
> (stderr output:Error: Key is-ovs-vpc-distributed-vr-network not found in map
> )
> 2014-05-22 17:07:43    DEBUG [root] Executing:['cat', 
> '/etc/xensource/network.conf']
> 2014-05-22 17:07:43    DEBUG [root] Executing:['/usr/bin/ovs-vsctl', 
> 'iface-to-br', 'vif29.2']
> 2014-05-22 17:07:43    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-list', 'bridge=xapi1', '--minimal']
> 2014-05-22 17:07:43    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-param-get', 'uuid=19b0e655-55aa-4937-daa7-603c289ad1d6', 
> 'param-name=other-config', 'param-key=is-ovs-tun-network', '--minimal']
> 2014-05-22 17:07:43    DEBUG [root] The command exited with the error code: 1 
> (stderr output:Error: Key is-ovs-tun-network not found in map
> )
> 2014-05-22 17:07:43    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-param-get', 'uuid=19b0e655-55aa-4937-daa7-603c289ad1d6', 
> 'param-name=other-config', 'param-key=is-ovs-vpc-distributed-vr-network', 
> '--minimal']
> 2014-05-22 17:07:43    DEBUG [root] The command exited with the error code: 1 
> (stderr output:Error: Key is-ovs-vpc-distributed-vr-network not found in map
> )
> 2014-05-22 17:08:14    DEBUG [root] Executing:['cat', 
> '/etc/xensource/network.conf']
> 2014-05-22 17:08:14    DEBUG [root] Executing:['/usr/bin/ovs-vsctl', 
> 'iface-to-br', 'vif30.0']
> 2014-05-22 17:08:14    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-list', 'bridge=xapi9', '--minimal']
> 2014-05-22 17:08:14    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-param-get', 'uuid=46d8e2b2-1b2f-319e-7b64-8554aacb44e5', 
> 'param-name=other-config', 'param-key=is-ovs-tun-network', '--minimal']
> 2014-05-22 17:08:14    DEBUG [root] Executing:['/opt/xensource/bin/xe', 
> 'network-param-get', 'uuid=46d8e2b2-1b2f-319e-7b64-8554aacb44e5', 
> 'param-name=other-config', 'param-key=is-ovs-vpc-distributed-vr-network', 
> '--minimal']
> 2014-05-22 17:08:14    DEBUG [root] The command exited with the error code: 1 
> (stderr output:Error: Key is-ovs-vpc-distributed-vr-network not found in map



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

Reply via email to