Skip to content
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

[DualToR] Handle race condition between tunnel_decap and mux orchestr… #2113

Closed
wants to merge 1 commit into from

Conversation

devpatha
Copy link
Contributor

What I did
Change orch list to make sure mux_orch and mux_cb_orch are placed after tunnel_decap_orch

Why I did it
handlePeerSwitch returns false because mux tunnel not yet created, and that results in create_nh_tunnel failure.
This moves ports into error state.

How I verified it
Verified that after changing the order ports don't move to error state.

Details if related

@prsunny
Copy link
Collaborator

prsunny commented Jan 18, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Jan 19, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Jan 24, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Jan 25, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Jan 26, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Feb 1, 2022

@devpatha , it seems the test is consistently failing.. can you check if the failure is due to the code change by any chance?

@prsunny
Copy link
Collaborator

prsunny commented Feb 1, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@devpatha
Copy link
Contributor Author

devpatha commented Feb 1, 2022

@devpatha , it seems the test is consistently failing.. can you check if the failure is due to the code change by any chance?

Looked at the failure. It is in TestCopp.test_disabled_feature_always_enabled_trap.
It is not able to find LLDP trap. I don't see any intersection with changes in this PR.

            trap_found = False
            trap_type = traps_to_trap_type["lldp"]
            for key in trap_keys:
                (status, fvs) = self.trap_atbl.get(key)
                assert status == True
                for fv in fvs:
                    if fv[0] == "SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE":
                        if fv[1] == trap_type:
                            trap_found = True
                if trap_found:
                    self.validate_trap_group(key,trap_group)
                    break
            assert trap_found == True

2022-01-27T04:49:08.7992702Z >           assert trap_found == True
2022-01-27T04:49:08.7992947Z E           assert False == True
2022-01-27T04:49:08.7994098Z E             -False
2022-01-27T04:49:08.7994317Z E             +True
2022-01-27T04:49:08.7994434Z 

@prsunny
Copy link
Collaborator

prsunny commented Jul 25, 2022

@devpatha , seems like this got missed from merge to master. Can you please create a new PR?

@devpatha
Copy link
Contributor Author

@devpatha , seems like this got missed from merge to master. Can you please create a new PR?

@prsunny created PR #2397

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants