-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Skip CMIS manager #10907
Skip CMIS manager #10907
Conversation
@@ -96,9 +96,9 @@ dependent_startup_wait_for=rsyslogd:running | |||
{% if not skip_xcvrd %} | |||
[program:xcvrd] | |||
{% if delay_xcvrd %} | |||
command=bash -c "sleep 30 && {% if API_VERSION == 3 and 'xcvrd' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/xcvrd" | |||
command={% if skip_cmis_mgr %} bash -c "sleep 30 && python3 /usr/local/bin/xcvrd --skip_cmis_mgr" {% else %} bash -c "sleep 30 && python3 /usr/local/bin/xcvrd" {% endif % } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the code refactor seems not having same criteria as previous one. can you explain why skip_cmis_mgr can replace python3 check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lguohan platform-common and platform-daemon has moved to using python3. We no longer support python2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to skip cmis_mgr for sn2700? we are not going to support cmis for sn2700 in the future?
@keboliu can you review? |
/azp run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
btw: in the design (https://github.com/sonic-net/SONiC/pull/971/files), the name of the flag is: skip_xcvrd_cmis_mgr, can you please align the name with the design? |
@keboliu please check |
@shyam77git @jaganbal-a could you review? |
Unit test log: supervisord.conf file snippet in pmon docker [program:xcvrd] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unit test log added as comment
@@ -96,9 +96,11 @@ dependent_startup_wait_for=rsyslogd:running | |||
{% if not skip_xcvrd %} | |||
[program:xcvrd] | |||
{% if delay_xcvrd %} | |||
command=bash -c "sleep 30 && {% if API_VERSION == 3 and 'xcvrd' not in python2_daemons %}python3 {% else %} python2 {% endif %}/usr/local/bin/xcvrd" | |||
command={% if skip_xcvrd_cmis_mgr %} bash -c "sleep 30 && python3 /usr/local/bin/xcvrd --skip_cmis_mgr" {% else %} bash -c "sleep 30 && python3 /usr/local/bin/xcvrd" {% endif %} | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prgeor
skip_xcvrd_cmis_mgr is set in platform_daemon_control.json file and in turn used by supervisord to spawn xcvrd with --skip_cmis_mgr as an arg.
So, better to make the variable name same at both places (producer/setter and consumer)
* Removed unwanted changes * Fix j2 compilation error * Address review comment * Add newline
* Removed unwanted changes * Fix j2 compilation error * Address review comment * Add newline
Why I did it
CMIS manager needs to be skipped if a platform wants to. The changes are as per the HLD:-
sonic-net/SONiC#971
How I did it
Platform provides input to supervisord via pmon_daemon_control.json to pass "skip_cmis_mgr" argument to Xcvrd while launching it
How to verify it
Use SN2700 platform to verify and ensure CMIS manager is not running.
Which release branch to backport (provide reason below if selected)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)