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

Make pmon feature delayed flag as jinja template #19657

Merged
merged 33 commits into from
Jul 26, 2024

Conversation

yejianquan
Copy link
Contributor

@yejianquan yejianquan commented Jul 23, 2024

What I did:

To fix: #19126
Depends on: sonic-net/sonic-host-services#135 and it's submodule update.

ps: this is an enhancement/fix of #19482 since Abhishek is in OOF

Why I did it

PMON was delayed originally for faster uptime of data plane related services in case of fast/warm reboot.
This is not needed for T2/SpineRouter . Infact we need PMON to be up asap because of:

pmon need to enable asap to detect ASIC's on Supervisor.
pmon need to enable asap for bring-up of 400G ports on LC's fast because of CMIS state machine present in PMON.

Work item tracking
  • Microsoft ADO (number only):

How to verify it

Manual Verification and UT has been added in sonic-net/sonic-host-services#135

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)

abdosi and others added 30 commits August 3, 2023 04:47
peer device's

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
higher value so that BGP learnt default route is higher priority.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
save as `slice_type` as part of DEVICE_METADATA

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
 save as `slice_type` as part of DEVICE_METADATA for Chassis Device type

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
pmon need to enable asap to detect ASIC's on Supervisor.
pmonm need to enable asap for bring-up of 400G ports on LC's fast
becuase of CMIS state machine present in PMON.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
abdosi added 2 commits July 13, 2024 01:13
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
@yejianquan yejianquan requested a review from lguohan as a code owner July 23, 2024 12:58
@yejianquan yejianquan marked this pull request as draft July 23, 2024 12:58
@yejianquan yejianquan marked this pull request as ready for review July 24, 2024 13:42
@yejianquan yejianquan requested a review from qiluo-msft as a code owner July 24, 2024 13:42
@yejianquan
Copy link
Contributor Author

Hi @mlok-nokia @arlakshm, please help to review

@yejianquan
Copy link
Contributor Author

yejianquan commented Jul 25, 2024

Hi @qiluo-msft @saiarcot895 , could you please help to review and merge?

@yejianquan yejianquan requested a review from saiarcot895 July 25, 2024 01:42
@yejianquan
Copy link
Contributor Author

@abdosi for viz

@@ -38,7 +38,7 @@
{%- set features = [("bgp", "{% if not DEVICE_RUNTIME_METADATA['ETHERNET_PORTS_PRESENT'] or ('CHASSIS_METADATA' in DEVICE_RUNTIME_METADATA and DEVICE_RUNTIME_METADATA['CHASSIS_METADATA']['module_type'] in ['supervisor']) %}disabled{% else %}enabled{% endif %}", false, "enabled"),
("database", "always_enabled", false, "always_enabled"),
("lldp", "enabled", true, "enabled"),
("pmon", "enabled", true, "enabled"),
("pmon", "enabled", "{% if 'type' in DEVICE_METADATA['localhost'] and DEVICE_METADATA['localhost']['type'] == 'SpineRouter' %}False{% else %}True{% endif %}", "enabled"),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why use titlecase instead of lowercase here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to align with sonic-net/sonic-host-services#135
In this change https://github.com/sonic-net/sonic-host-services/blob/ca6b3cdb9a56604765ada4ac67234c117f0fb5ad/scripts/featured#L79 , the host-service takes titlecase only and evaluate them with python eval.

@yxieca yxieca merged commit 4932a38 into sonic-net:master Jul 26, 2024
22 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Jul 26, 2024
* Fix the Loopback0 IPv6 address of LC's in chassis not reachable from
peer device's

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Added change to have flag

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Assign the metric vaule for Ipv6 default route learnt via RA message to
higher value so that BGP learnt default route is higher priority.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Add alternate name for bridge interface on supversior in chassis systrem

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update service_checker.py

* Update init_cfg.json.j2 to handle global scope for lldp feature

* Update sonic-feature.yang

* Added support to parse "AssociatedSliceStr" attribute of minigraph and
save as `slice_type` as part of DEVICE_METADATA

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Revert "Added support to parse "AssociatedSliceStr" attribute of minigraph and"

This reverts commit 0f2d26d.

* Added support to parse "AssociatedSliceStr" attribute of minigraph and
 save as `slice_type` as part of DEVICE_METADATA for Chassis Device type

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update minigraph.py

* pmon need not be delayed for SpineRouter/T2.
pmon need to enable asap to detect ASIC's on Supervisor.
pmonm need to enable asap for bring-up of 400G ports on LC's fast
becuase of CMIS state machine present in PMON.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Updated Yang model for Feature delay from boolean to string

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix Build Error

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix build error

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update true/false to True/False

---------

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Co-authored-by: Abhishek Dosi <abdosi@microsoft.com>
Co-authored-by: abdosi <58047199+abdosi@users.noreply.github.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #19702

mssonicbld pushed a commit that referenced this pull request Jul 26, 2024
* Fix the Loopback0 IPv6 address of LC's in chassis not reachable from
peer device's

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Added change to have flag

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Assign the metric vaule for Ipv6 default route learnt via RA message to
higher value so that BGP learnt default route is higher priority.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Add alternate name for bridge interface on supversior in chassis systrem

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update service_checker.py

* Update init_cfg.json.j2 to handle global scope for lldp feature

* Update sonic-feature.yang

* Added support to parse "AssociatedSliceStr" attribute of minigraph and
save as `slice_type` as part of DEVICE_METADATA

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Revert "Added support to parse "AssociatedSliceStr" attribute of minigraph and"

This reverts commit 0f2d26d.

* Added support to parse "AssociatedSliceStr" attribute of minigraph and
 save as `slice_type` as part of DEVICE_METADATA for Chassis Device type

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update minigraph.py

* pmon need not be delayed for SpineRouter/T2.
pmon need to enable asap to detect ASIC's on Supervisor.
pmonm need to enable asap for bring-up of 400G ports on LC's fast
becuase of CMIS state machine present in PMON.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Updated Yang model for Feature delay from boolean to string

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix Build Error

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix build error

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update true/false to True/False

---------

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Co-authored-by: Abhishek Dosi <abdosi@microsoft.com>
Co-authored-by: abdosi <58047199+abdosi@users.noreply.github.com>
liushilongbuaa pushed a commit to liushilongbuaa/sonic-buildimage that referenced this pull request Aug 1, 2024
* Fix the Loopback0 IPv6 address of LC's in chassis not reachable from
peer device's

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Added change to have flag

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Assign the metric vaule for Ipv6 default route learnt via RA message to
higher value so that BGP learnt default route is higher priority.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Add alternate name for bridge interface on supversior in chassis systrem

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update service_checker.py

* Update init_cfg.json.j2 to handle global scope for lldp feature

* Update sonic-feature.yang

* Added support to parse "AssociatedSliceStr" attribute of minigraph and
save as `slice_type` as part of DEVICE_METADATA

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Revert "Added support to parse "AssociatedSliceStr" attribute of minigraph and"

This reverts commit 0f2d26d.

* Added support to parse "AssociatedSliceStr" attribute of minigraph and
 save as `slice_type` as part of DEVICE_METADATA for Chassis Device type

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update minigraph.py

* pmon need not be delayed for SpineRouter/T2.
pmon need to enable asap to detect ASIC's on Supervisor.
pmonm need to enable asap for bring-up of 400G ports on LC's fast
becuase of CMIS state machine present in PMON.

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Updated Yang model for Feature delay from boolean to string

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix Build Error

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Fix build error

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>

* Update true/false to True/False

---------

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Co-authored-by: Abhishek Dosi <abdosi@microsoft.com>
Co-authored-by: abdosi <58047199+abdosi@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

PMON service is started so late in the Master branch
5 participants