Skip to content

Fix the Orchagent Qos error messages reported in Issue #16787#2947

Merged
prsunny merged 6 commits intosonic-net:masterfrom
saksarav-nokia:saksarav-nokia-qos
Nov 21, 2023
Merged

Fix the Orchagent Qos error messages reported in Issue #16787#2947
prsunny merged 6 commits intosonic-net:masterfrom
saksarav-nokia:saksarav-nokia-qos

Conversation

@saksarav-nokia
Copy link
Copy Markdown
Contributor

What I did
Added a Asic name check in addition to Host name check to determine if the system port is local system port or remote system port to fix the errors reported in Issue #16787 which were introduced by sonic-swss PR #2855

Why I did it
Error messages were seen with sonic-swss PR #2855 and added this fix to address the error messages and to apply the Qos config correctly.
How I verified it
Loaded the image in the Chassis and verified that the error messages are not seen in the syslog message.
Details if related

Signed-off-by: saksarav <sakthivadivu.saravanaraj@nokia.com>
@saksarav-nokia
Copy link
Copy Markdown
Contributor Author

@vmittal-msft , please review this

}

if(tokens[0] == gMyHostName)
if((tokens[0] == gMyHostName) & (tokens[1] == gMyAsicName))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be -
if((tokens[0] == gMyHostName) && (tokens[1] == gMyAsicName))

}

if(tokens[0] == gMyHostName)
if((tokens[0] == gMyHostName) & (tokens[1] == gMyAsicName))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be -
if((tokens[0] == gMyHostName) && (tokens[1] == gMyAsicName))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It was typo and fixed it now.

@vmittal-msft
Copy link
Copy Markdown
Contributor

We don't need this PR for 202205/202305 as this is already part of 202205 via #2945 and will be part of 202305 soon as i am verifying the porting of changes #2945 to 202305.

Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
…net#2947)

* Fix the Orchagent Qos error messages reported in Issue #16787
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.

5 participants