You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Sanjeev N (JIRA)" <ji...@apache.org> on 2014/05/26 13:18:02 UTC

[jira] [Created] (CLOUDSTACK-6763) [OVS] Deleting one ovs bridge deletes flow table entries for other bridge as well

Sanjeev N created CLOUDSTACK-6763:
-------------------------------------

             Summary: [OVS] Deleting one ovs bridge deletes flow table entries for other bridge as well
                 Key: CLOUDSTACK-6763
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6763
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: Management Server, Network Controller, XenServer
    Affects Versions: 4.4.0
         Environment: Latest build from 4.4 with commit d130530bd3e1cd6d8249d5045e00e4e4e2201521
            Reporter: Sanjeev N
            Assignee: Murali Reddy
            Priority: Critical
             Fix For: 4.4.0


[OVS] Deleting one ovs bridge deletes flow table entries for other bridge as well

Steps to Reproduce:
=================
1.Bring up CS in advanced zone with two hosts in a xen cluster
2.Create physical network with GRE isolation
3.Create network offering with connectivity service and OVS as the provider
4.Create a user account and deploy few vms with above network offering (make sure vms are spanned across the hosts)
5.Create another user account and repeat step4
6.Destroy all vms in account2
7.Verify flow table rules for the ovs bridge created for account1 network

Result:
=======
After deleting account2 vms ovs bridge for this network was destroyed from both the hosts and also the flow table rules for account1 network were also deleted from both the hosts

Observations:
===========
xapi3 is the bridge created for account2 network and xapi2 is for account1 network.

xapi3 is for network: OVSTunnel983
xapi2 is for network: OVSTunnel984

Following is the log snippet from MS log file for deleting OVS Bridge:

2014-05-26 12:08:59,334 DEBUG [o.a.c.e.o.NetworkOrchestrator] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Asking Ovs to release NicProfile[15-8-038ca005-deeb-4146-addf-5f8f96436e68-10.1.1.11-null
2014-05-26 12:08:59,335 DEBUG [c.c.n.e.OvsElement] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Checking if OvsElement can handle service Connectivity on network test2-ovs
2014-05-26 12:08:59,344 DEBUG [c.c.n.o.OvsTunnelManagerImpl] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Destroying bridge for network 206 on host:1
2014-05-26 12:08:59,350 DEBUG [c.c.a.t.Request] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Seq 1-8670555182595048072: Sending  { Cmd , MgmtId: 7332683579487, via: 1(Rack1Pod1Host13), Ver: v1, Flags: 100111, [{"com.cloud.agent.api.OvsDestroyBridgeCommand":{"networkId":206,"name":"OVSTunnel983","hostId":1,"wait":0}}] }
2014-05-26 12:08:59,350 DEBUG [c.c.a.t.Request] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Seq 1-8670555182595048072: Executing:  { Cmd , MgmtId: 7332683579487, via: 1(Rack1Pod1Host13), Ver: v1, Flags: 100111, [{"com.cloud.agent.api.OvsDestroyBridgeCommand":{"networkId":206,"name":"OVSTunnel983","hostId":1,"wait":0}}] }
2014-05-26 12:08:59,350 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-183:ctx-51a7921b) Seq 1-8670555182595048072: Executing request
2014-05-26 12:08:59,395 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-183:ctx-51a7921b) A VIF for dom0 has already been found - No need to create one
2014-05-26 12:08:59,414 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-183:ctx-51a7921b) Xen Server network for tunnels found:OVSTunnel983
2014-05-26 12:08:59,451 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-183:ctx-51a7921b) A VIF in dom0 for the network is found - so destroy the vif
2014-05-26 12:08:59,455 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-183:ctx-51a7921b) Destroy temp dom0 vifOVSTunnel983 success
2014-05-26 12:08:59,816 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-183:ctx-51a7921b) OVS Bridge destroyed
2014-05-26 12:08:59,828 DEBUG [c.c.n.o.OvsTunnelManagerImpl] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Destroy bridge fornetwork 206 successful
2014-05-26 12:08:59,830 DEBUG [c.c.n.o.OvsTunnelManagerImpl] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Destroying tunnel to 1 from 4
2014-05-26 12:08:59,835 DEBUG [c.c.a.t.Request] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Seq 4-1333065489701667402: Sending  { Cmd , MgmtId: 7332683579487, via: 4(Rack1Pod1Host14), Ver: v1, Flags: 100111, [{"com.cloud.agent.api.OvsDestroyTunnelCommand":{"networkId":206,"networkName":"OVSTunnel983","inPortName":"t983-4-1","wait":0}}] }
2014-05-26 12:08:59,835 DEBUG [c.c.a.t.Request] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Seq 4-1333065489701667402: Executing:  { Cmd , MgmtId: 7332683579487, via: 4(Rack1Pod1Host14), Ver: v1, Flags: 100111, [{"com.cloud.agent.api.OvsDestroyTunnelCommand":{"networkId":206,"networkName":"OVSTunnel983","inPortName":"t983-4-1","wait":0}}] }
2014-05-26 12:08:59,836 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-366:ctx-9fccde26) Seq 4-1333065489701667402: Executing request
2014-05-26 12:08:59,869 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-366:ctx-9fccde26) A VIF for dom0 has already been found - No need to create one
2014-05-26 12:08:59,888 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-366:ctx-9fccde26) Xen Server network for tunnels found:OVSTunnel983
2014-05-26 12:09:00,034 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-366:ctx-9fccde26) Seq 4-1333065489701667402: Response Received:
2014-05-26 12:09:00,035 DEBUG [c.c.a.t.Request] (DirectAgent-366:ctx-9fccde26) Seq 4-1333065489701667402: Processing:  { Ans: , MgmtId: 7332683579487, via: 4, Ver: v1, Flags: 110, [{"com.cloud.agent.api.Answer":{"result":true,"details":"SUCCESS","wait":0}}] }
2014-05-26 12:09:00,035 DEBUG [c.c.a.t.Request] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Seq 4-1333065489701667402: Received:  { Ans: , MgmtId: 7332683579487, via: 4, Ver: v1, Flags: 110, { Answer } }
2014-05-26 12:09:00,039 DEBUG [c.c.a.m.AgentAttache] (DirectAgent-366:ctx-9fccde26) Seq 4-1333065489701667402: No more commands found
2014-05-26 12:09:00,044 DEBUG [c.c.n.o.OvsTunnelManagerImpl] (Work-Job-Executor-11:ctx-4073a866 job-41/job-42 ctx-e591f82f) Destroy tunnel(account:206,from:4, to:1) successful

Flow table entries for xapi2 after deleting xapi3:

[root@Rack1Pod1Host14 ~]# ovs-ofctl dump-flows xapi2
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=1445.526s, table=0, n_packets=0, n_bytes=0, priority=0 actions=NORMAL
[root@Rack1Pod1Host14 ~]#
[root@Rack1Pod1Host13 ~]# ovs-ofctl dump-flows xapi2
NXST_FLOW reply (xid=0x4):
 cookie=0x0, duration=2276.347s, table=0, n_packets=84, n_bytes=7670, priority=0 actions=NORMAL
[root@Rack1Pod1Host13 ~]#

Attaching MS log file and ovstunnel log file from both the hosts




--
This message was sent by Atlassian JIRA
(v6.2#6252)