You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens during the #5635 issue and has the same steps to reproduce.
The issue was found due to the failed test "Unable to swap endpoints for two flows when one of them is inactive", please see its code for additional details.
Steps to reproduce:
Repeating the steps of "Unable to swap endpoints for two flows when one of them is inactive":
Select 2 pairs of neighboring switches with the same destination switch (e.g. (Switch_1, Switch_2) and (Switch_3, Switch_2)).
Create 2 flows with the same dst switch (e.g. Flow1 with Switch_1 -> Switch_2, and Flow2 with Switch_3 -> Switch_2).
Break all ISLs of the Flow1 source switch (in our example it is Switch_1).
Try to swap endpoints for these 2 flows.
Catch the expected HttpServerErrorException exception because the flows cannot be swapped due to the Flow1 source switch having links down.
Validate the involved switches.
Expected result:
If one of the switches (Switch_3) in our case has some discrepancies, it should be shown in the response of the switch validation operation. If the user repeats the switch validation, the result should be the same if the system is not changed.
Actual result:
Please see #5635 actual result to see what happens with the flows and its rules. Finally, Switch_3 will have the missing rule.
However, when the user does switch_3 validation multiple times, sometimes it shows the missing rule 4611686018427471716 which is valid because flow1 has the rule hex 0x4000000000014764 (dec 4611686018427471716) only on Switch_2, so it is missing on Switch_3:
^ But we are not sure what is this rule about, it is absent on all switches, and Kibana logs have only 3 mentions of it - only in the context of switch validation:
This happens during the #5635 issue and has the same steps to reproduce.
The issue was found due to the failed test "Unable to swap endpoints for two flows when one of them is inactive", please see its code for additional details.
Steps to reproduce:
Repeating the steps of "Unable to swap endpoints for two flows when one of them is inactive":
Expected result:
If one of the switches (Switch_3) in our case has some discrepancies, it should be shown in the response of the switch validation operation. If the user repeats the switch validation, the result should be the same if the system is not changed.
Actual result:
Please see #5635 actual result to see what happens with the flows and its rules. Finally, Switch_3 will have the missing rule.
However, when the user does switch_3 validation multiple times, sometimes it shows the missing rule
4611686018427471716
which is valid because flow1 has the rule hex0x4000000000014764
(dec4611686018427471716
) only on Switch_2, so it is missing on Switch_3:But sometimes the switch validation request shows the missing rule
4665729213955917668
(hex40C0000000014764
):^ But we are not sure what is this rule about, it is absent on all switches, and Kibana logs have only 3 mentions of it - only in the context of switch validation:
Attaching my investigation wit the real case, its ids, time, logs.
Investigation_with_ids_and_time.pdf
When execute the test several times:
In other executions sometimes happens that the Switch Validation gives some missing rules, and sometimes an empty list of missing/misconfigured rules:
Validate the same switch more times:
Validate more times, and you will see 2 missing rules again, validate more times, and you will see an empty list of missing rules again.
The text was updated successfully, but these errors were encountered: