Skip to content

Fixed set admin_status for deleted subintf due to late notification#2659

Merged
prsunny merged 3 commits intosonic-net:masterfrom
EdenGri:fixed_set_admin_status_for_deleted_subintf_due_to_late_notification
Mar 14, 2023
Merged

Fixed set admin_status for deleted subintf due to late notification#2659
prsunny merged 3 commits intosonic-net:masterfrom
EdenGri:fixed_set_admin_status_for_deleted_subintf_due_to_late_notification

Conversation

@EdenGri
Copy link
Copy Markdown
Contributor

@EdenGri EdenGri commented Feb 8, 2023

What I did
Handled a race condition in intfmgrd which tries to immediately apply an admin_status SET notif after a DEL causing it to crash

Why I did it
Ignores errors on the set admin_status command for subinterface when the subinterface state is not OK.

How I verified it

Details if related
This PR reference to older PR that fix the same issue in portmgr: #2431

@EdenGri EdenGri requested a review from prsunny as a code owner February 8, 2023 09:55
dprital
dprital previously approved these changes Feb 8, 2023
@EdenGri
Copy link
Copy Markdown
Contributor Author

EdenGri commented Mar 8, 2023

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@EdenGri EdenGri marked this pull request as draft March 9, 2023 13:54
Copy link
Copy Markdown
Collaborator

@dprital dprital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check why I don't see in the PR delete of add_ipv6_prefix_ut.cpp

@EdenGri
Copy link
Copy Markdown
Contributor Author

EdenGri commented Mar 13, 2023

Please check why I don't see in the PR delete of add_ipv6_prefix_ut.cpp

GitHub handles it like rename of the file

@EdenGri EdenGri marked this pull request as ready for review March 13, 2023 16:03
@dprital
Copy link
Copy Markdown
Collaborator

dprital commented Mar 14, 2023

@prsunny , Can you please review ?

@prsunny prsunny merged commit b44692c into sonic-net:master Mar 14, 2023
@yxieca
Copy link
Copy Markdown
Contributor

yxieca commented Mar 15, 2023

@EdenGri please help create separate PR for 202205 branch.

@EdenGri
Copy link
Copy Markdown
Contributor Author

EdenGri commented Mar 16, 2023

This PR reference to older PR that fix the same issue in portmgr: #2431

NP: #2704

StormLiangMS pushed a commit that referenced this pull request Mar 19, 2023
…2659)

* Fixed set admin_status for deleted subintf due to late notification
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…onic-net#2659)

* Fixed set admin_status for deleted subintf due to late notification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants