Hi Manuel,
I am able to run the usecase ‘sfc_two_chains_SSH_and_HTTP.py’. The issue is 
with the sequence of executing commands.
First SFC Classifier flows are not adding in Compute Node, if we have two 
active Service Function Chains. So, I created SFC1 and added required 
classifiers with that chain. And then, I created another chain SFC2, and added 
classifiers with SFC2. I don’t know whether that’s a BUG in ODL/tacker or not. 
With that sequence, I am able to run the usecase successfully.

Thanks for all the help.

Regards,
Srikanth.



From: Manuel Buil [mailto:[email protected]]
Sent: Monday, September 25, 2017 1:25 PM
To: Srikanth Lingala <[email protected]>; 
[email protected]; [email protected]; 
[email protected]
Cc: Gorja Gorja <[email protected]>
Subject: Re: [opnfv-tech-discuss] OPNFV Danube 3.0: Issue with two SFC's

Hey Srikanth,

You are not getting any classification rule because it can't find an RSP, which 
means it was not able to create the chain. There is something fishy going on 
and it should not be there if you do a complete restart of ODL. To completely 
restart ODL, you must stop it, remove the directories: snapshot, instances and 
journal. Then, you should restart the OVSs (removing their conf.db database). 
If you are using neutron v2, you must also restart neutron completely (database 
included) because it keeps a journal and what breaks ODL, will again be 
executed as soon as neutron detects that ODL is up.

Regards,
Manuel

On Fri, 2017-09-22 at 12:57 +0000, Srikanth Lingala wrote:
Hi Manuel,
I started ODL cleanly. But, I observe the same issue. SFC Classifier flows are 
adding, only when we have single Chain.
I wonder how functests are passing with the SFC usecase 
‘sfc_two_chains_SSH_and_HTTP.py’ in different OPNFV labs.

And also, now after cleaning up ODL, SFC flows are NOT adding with table id 150 
– 158. Those SFC flows are adding to table id 10.
I observe no ERROR logs in ODL, but few WARNING logs.

Following are the ODL logs:
While creating first chain ‘mychain1’: tacker sfc-create --name mychain1 
--chain testVNF1
https://pastebin.com/JXDgitXD

While creating second chain ‘mychain2’: tacker sfc-create --name mychain2 
--chain testVNF2
https://pastebin.com/CYaxYvtZ

While creating first classifier ‘myclass1’: tacker sfc-classifier-create --name 
myclass1 --chain mychain1 --match source_port=0,dest_port=80,protocol=6
https://pastebin.com/Ly4Y2aSb
Here, Classifier flow is NOT adding with tcp and dest_port=80.

While creating first classifier ‘myclass2’: tacker sfc-classifier-create --name 
myclass2 --chain mychain2 --match source_port=0,dest_port=22,protocol=6
https://pastebin.com/iJJ2me1Y
Here, Classifier flow is adding with tcp and dest_port=22.

Regards,
Srikanth.

From: Manuel Buil [mailto:[email protected]]
Sent: Friday, September 22, 2017 4:50 PM
To: Srikanth Lingala 
<[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Cc: Gorja Gorja <[email protected]<mailto:[email protected]>>
Subject: Re: [opnfv-tech-discuss] OPNFV Danube 3.0: Issue with two SFC's

Yes. You need to stop it, remove instances/ journal/ and snapshots/ and start 
it with bin/start clean. If I remember well, ODL Boron had an issue when 
restarting it and connecting old OVS, so you might need to restart also the OVS 
switches before starting ODL again.

Regards,
Manuel

On Fri, 2017-09-22 at 10:30 +0000, Srikanth Lingala wrote:
Hi Manuel,
So, If I restart the ODL and then add SFC and SFC Classifiers may fix this 
issue?

Regards,
Srikanth.

From: Manuel Buil [mailto:[email protected]]
Sent: Friday, September 22, 2017 3:52 PM
To: Srikanth Lingala 
<[email protected]<mailto:[email protected]>>; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>; 
[email protected]<mailto:[email protected]>
Subject: Re: [opnfv-tech-discuss] OPNFV Danube 3.0: Issue with two SFC's

Hello Srikanth,

Danube is using ODL Boron which had some issues when removing the 
classification rules. Unfortunately, those rules are not correctly removed and 
that creates a small mess which results in problems when creating new rules. 
You should not see this problem if you have a clean ODL but if you have created 
several classifiers and tried to remove them, you might see it.

Do you see any error in ODL logs when creating the classifier

Regards,
Manuel

On Fri, 2017-09-22 at 07:28 +0000, Srikanth Lingala wrote:
Hi,
I am using OPNFV Danube 3.0. I deployed one Openstack Controller with ODL & 
Tacker and Openstack Compute through Fuel.
I am trying to execute the usecase: sfc_two_chains_SSH_and_HTTP
When I create two chains, Classifier flow is missing in the compute node.
I executed below commands:

#> tacker vnfd-create --vnfd-file test-vnfd-1.yaml
#> tacker vnfd-create --vnfd-file test-vnfd-2.yaml
#> tacker vnf-create --name testVNF1 --vnfd-name test-vnfd-1
#> tacker vnf-create --name testVNF2 --vnfd-name test-vnfd-2
#> tacker sfc-create --name mychain1 --chain testVNF1
#> tacker sfc-create --name mychain2 --chain testVNF2
#> tacker sfc-classifier-create --name myclass1 --chain mychain1 --match 
source_port=0,dest_port=80,protocol=6

When I execute the above command, I am not able to see classifier flow in the 
compute node. The flow should be something similar to below:
# ovs-ofctl dump-flows br-int -O Openflow13 | grep tcp
cookie=0x1110010005970255, duration=121.077s, table=11, n_packets=0, n_bytes=0, 
tcp,reg0=0x1,tp_dst=80 
actions=move:NXM_NX_TUN_ID[0..31]->NXM_NX_NSH_C2[],push_nsh,load:0x1->NXM_NX_NSH_MDTYPE[],load:0x3->NXM_NX_NSH_NP[],load:0xc0a8001a->NXM_NX_NSH_C1[],load:0x255->NXM_NX_NSP[0..23],load:0xff->NXM_NX_NSI[],load:0x7b7b7b05->NXM_NX_TUN_IPV4_DST[],load:0x255->NXM_NX_TUN_ID[0..31],resubmit(,0)

The above flow is not adding. But, when I tried the same with single Chain, I 
am able to see the above flow.

Is there any issue with two chains?

Regards,
Srikanth.

_______________________________________________

opnfv-tech-discuss mailing list

[email protected]<mailto:[email protected]>

https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss
_______________________________________________
sfc-dev mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/sfc-dev

Reply via email to