-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flows created outside Kytos should be removed by consistency check #113
Comments
Additional information reported by Antonio: The inconsistency has been detected (a warning is shown on the console), but the flow has not been removed from the switch. |
I can't reproduce this bug, in my tests the outside flow is removed from the switch. If you can please provide more information how to reproduce this bug. Steps :
for i in 1 2 3; do
echo "switch: $i"
curl -X POST "http://127.0.0.1:8181/api/kytos/topology/v3/switches/00:00:00:00:00:00:00:0$i/enable"
done
for i in 1 2 3; do
echo "switch: $i"
curl -X POST "http://127.0.0.1:8181/api/kytos/topology/v3/interfaces/switch/00:00:00:00:00:00:00:0$i/enable"
done
When the consistency check is performed the inconsistency warning is not shown:
Additional information:
|
@ajoaoff is this issue the same that generated this error in the end-to-end tests?
|
Yes, @hdiogenes, I opened the issue because of that test. |
@cmagnobarbosa I teste with the same flow you used and it was really removed by the consistency check, but with the flow I had used, it wasn't. The flow I used was |
Hello @ajoaoff, in my first tests using the flow Command used to add the flow:
kytos bug-report:PlatformRelease informationDistributor ID: Ubuntu System InformationLinux carlosmagno-Lenovo-ideapad-330S-15IKB 5.8.0-25-generic #26-Ubuntu SMP Thu Oct 15 10:30:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Pythonpath=/home/carlosmagno/workspace/kytos/Teste_Coverage/env_issue_113/bin/python Pippath=/home/carlosmagno/workspace/kytos/Teste_Coverage/env_issue_113/bin/pip Python Packageskytos | github.com:cmagnobarbosa/kytos | 35e3868d Kytos environmentKytosdpath=/home/carlosmagno/workspace/kytos/Teste_Coverage/env_issue_113/bin/kytosd Kytospath=/home/carlosmagno/workspace/kytos/Teste_Coverage/env_issue_113/bin/kytos Installed nappsStatus | NApp ID | Description |
I did 2 tests. In the first one I did not enabled interfaces and switches but I installed the alien flow. The consistency check did not work. The second test I followed the exactly steps described by @cmagnobarbosa (enabling switches and interfaces) and the consistency check worked, the alien flow was removed. I used this command to install the alien flow:
|
Solving problem #114 can solve that problem. This problem may be related to the way the flows are compared. Also, Italo reported that this problem only occurs after kytos is restarted. |
If a flow is created outside Kytos, it should be removed by the consistency check, but that is not happening.
Steps to reproduce:
ovs-ofctl add-flow s1 "<flow>"
);The text was updated successfully, but these errors were encountered: