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

[DX010 platform] fix dx010 platform testcase issues #13595

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

qnos
Copy link
Contributor

@qnos qnos commented Feb 2, 2023

Why I did it

  1. fix chassis test_set_fans_led case
  2. fix chassis get_name case mismatch issue
  3. fix fan_drawer test_set_fans_speed
  4. fix component test_components test case

How I did it

Add corresponding configuration into chassis json file

How to verify it

Run platform tests cases to verify these failure cases

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

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

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

@prgeor
Copy link
Contributor

prgeor commented Feb 3, 2023

@qnos none of the fans are controllable on DX010? How is the platform then doing the thermal cooling as temperature warm up?

@qnos
Copy link
Contributor Author

qnos commented Feb 3, 2023

@qnos none of the fans are controllable on DX010? How is the platform then doing the thermal cooling as temperature warm up?

DX010 take the automatic thermal control policy. It uses the thermal sensor temperature to automatically adjust the fan speed, and manually change the fan speed through fan API would be override by fancontrol daemon, so I set the fan to not controllable.

Why I did it
1. fix chassis test_set_fans_led case
2. fix chassis get_name case mismatch issue
3. fix fan_drawer test_set_fans_speed
4. fix component test_components test case

How I did it
Add corresponding configuration into chassis json file

How to verify it
Run platform tests cases to verify these failure cases
@qnos qnos force-pushed the dx010-platform-testcases-fix branch from d39ebd1 to 190c057 Compare February 6, 2023 01:10
@assrinivasan
Copy link
Contributor

@prgeor please help unblock this merge, thanks

@prgeor
Copy link
Contributor

prgeor commented Feb 9, 2023

@qnos none of the fans are controllable on DX010? How is the platform then doing the thermal cooling as temperature warm up?

DX010 take the automatic thermal control policy. It uses the thermal sensor temperature to automatically adjust the fan speed, and manually change the fan speed through fan API would be override by fancontrol daemon, so I set the fan to not controllable.

@qnos I see your platform has the API to set the fan speed here Why skip this test to check the fan set_speed API? Can you adhere to this HLD

@quantios
Copy link

quantios commented Feb 9, 2023

@qnos none of the fans are controllable on DX010? How is the platform then doing the thermal cooling as temperature warm up?

DX010 take the automatic thermal control policy. It uses the thermal sensor temperature to automatically adjust the fan speed, and manually change the fan speed through fan API would be override by fancontrol daemon, so I set the fan to not controllable.

@qnos I see your platform has the API to set the fan speed here Why skip this test to check the fan set_speed API? Can you adhere to this HLD

@prgeor Yes, DX010 provide the set_speed API. But as I described, DX010 takes the automatic fan control policy. Only if we disable all fancontrol daemons in pmon, otherwise the speed value set through set_speed api would be overrided by fancontrol daemon, and cause the speed value from get api not match what we set. So I set the fans not controllable in platform.json.

@prgeor
Copy link
Contributor

prgeor commented Feb 9, 2023

@lguohan please help merge

@prgeor
Copy link
Contributor

prgeor commented Feb 9, 2023

@StormLiangMS @yxieca please cherry pick

@lguohan lguohan merged commit f6701f5 into sonic-net:master Feb 10, 2023
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Feb 10, 2023
Why I did it
1. fix chassis test_set_fans_led case
2. fix chassis get_name case mismatch issue
3. fix fan_drawer test_set_fans_speed
4. fix component test_components test case

How I did it
Add corresponding configuration into chassis json file

How to verify it
Run platform tests cases to verify these failure cases
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202205: #13778

yxieca pushed a commit that referenced this pull request Feb 11, 2023
Why I did it
1. fix chassis test_set_fans_led case
2. fix chassis get_name case mismatch issue
3. fix fan_drawer test_set_fans_speed
4. fix component test_components test case

How I did it
Add corresponding configuration into chassis json file

How to verify it
Run platform tests cases to verify these failure cases

Co-authored-by: Ikki Zhu <[email protected]>
qiluo-msft pushed a commit that referenced this pull request Feb 16, 2023
Why I did it
1. fix chassis test_set_fans_led case
2. fix chassis get_name case mismatch issue
3. fix fan_drawer test_set_fans_speed
4. fix component test_components test case

How I did it
Add corresponding configuration into chassis json file

How to verify it
Run platform tests cases to verify these failure cases
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Feb 17, 2023
Why I did it
1. fix chassis test_set_fans_led case
2. fix chassis get_name case mismatch issue
3. fix fan_drawer test_set_fans_speed
4. fix component test_components test case

How I did it
Add corresponding configuration into chassis json file

How to verify it
Run platform tests cases to verify these failure cases
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202211: #13859

mssonicbld pushed a commit that referenced this pull request Feb 17, 2023
Why I did it
1. fix chassis test_set_fans_led case
2. fix chassis get_name case mismatch issue
3. fix fan_drawer test_set_fans_speed
4. fix component test_components test case

How I did it
Add corresponding configuration into chassis json file

How to verify it
Run platform tests cases to verify these failure cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants