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

Made pmon feature delayed flag as jinja template #19482

Closed
wants to merge 32 commits into from

Conversation

abdosi
Copy link
Contributor

@abdosi abdosi commented Jul 5, 2024

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

Why I did:
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.

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

abdosi and others added 28 commits August 3, 2023 04:47
Signed-off-by: Abhishek Dosi <[email protected]>
higher value so that BGP learnt default route is higher priority.

Signed-off-by: Abhishek Dosi <[email protected]>
save as `slice_type` as part of DEVICE_METADATA

Signed-off-by: Abhishek Dosi <[email protected]>
 save as `slice_type` as part of DEVICE_METADATA for Chassis Device type

Signed-off-by: Abhishek Dosi <[email protected]>
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 <[email protected]>
@abdosi abdosi requested a review from lguohan as a code owner July 5, 2024 01:59
@abdosi
Copy link
Contributor Author

abdosi commented Jul 5, 2024

@anamehra @mlok-nokia for viz.

arlakshm
arlakshm previously approved these changes Jul 9, 2024
@arlakshm
Copy link
Contributor

arlakshm commented Jul 9, 2024

/Azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Abhishek Dosi <[email protected]>
@abdosi
Copy link
Contributor Author

abdosi commented Jul 13, 2024

@arlakshm : please reapprove this.

arlakshm
arlakshm previously approved these changes Jul 13, 2024
Signed-off-by: Abhishek Dosi <[email protected]>
@@ -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

@mlok-nokia mlok-nokia Jul 22, 2024

Choose a reason for hiding this comment

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

This PR works with PR sonic-net/sonic-host-services#135
But delayed value "true/false" in init_cfg.json.j2 is not matched the expected value which in the featured line 79 in sonic-net/sonic-host-services#135 change. The defined value should be "True/False".
This change causes the system fails to start PMON

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch, I suppose it's because of the removal of 'lower()' function, not sure why Abhishek changed this behavior.
Let me draft another PR and see.

Copy link
Contributor

Choose a reason for hiding this comment

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

@yejianquan
Copy link
Contributor

Fix the issue and advance sonic-host-service sub-module
#19551

@wangxin
Copy link
Contributor

wangxin commented Jul 24, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yejianquan
Copy link
Contributor

#19657 merged, closing this one

@yejianquan yejianquan closed this Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
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