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

Adding custom create switch timeout for Cisco platforms #20522

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maunnikr-cisco
Copy link

@maunnikr-cisco maunnikr-cisco commented Oct 16, 2024

Why I did it

Certain cisco platforms require longer / different orchagent switch create timeout values.
These timeout values will be specified in the platform specific sai.profile file.

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@@ -76,6 +76,12 @@ elif [ "$platform" == "marvell" ]; then
if [[ ! -z $CREATE_SWITCH_TIMEOUT ]]; then
ORCHAGENT_ARGS+=" -t $CREATE_SWITCH_TIMEOUT"
fi
elif [ "$platform" == "cisco-8000" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
CREATE_SWITCH_TIMEOUT=`cat $HWSKU_DIR/sai.profile | grep "createSwitchTimeout" | cut -d'=' -f 2`
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add a comment to limit the hwsku to 8111?

Copy link
Author

@maunnikr-cisco maunnikr-cisco Oct 18, 2024

Choose a reason for hiding this comment

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

Hi Kevin, we will specify the new timeout only in the sai.profile of the 8111 hwsku in our internal platform code, so there's no need to specify that here. If ever there is a need for a higher timeout for any other hwsku, we can just add the new timeout to the sai.profile specific to that hwsku, and this code will work for that too. Specifying 8111 hwsku here will prevent that.

Copy link
Contributor

Choose a reason for hiding this comment

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

@maunnikr-cisco What is the range of new timeout value? Could you provide the reason for the delay.

Copy link
Author

Choose a reason for hiding this comment

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

The required timeout value seems to be around 75 seconds. With a buffer, 90s seems to be the appropriate time. We will be specifying this timeout in the sai.profile specific to the hwsku that needs this new timeout (8111). We don't think it's a good use of time to investigate this delay for the short term, and prefer to increase the delay for the hwsku instead, since there is no other functional impact.

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