Skip to content

[pull] master from Azure:master#1531

Merged
pull[bot] merged 1 commit intomudsut4ke:masterfrom
sonic-net:master
Apr 29, 2021
Merged

[pull] master from Azure:master#1531
pull[bot] merged 1 commit intomudsut4ke:masterfrom
sonic-net:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Apr 29, 2021

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

…7446)

The following error message is observed during chassis object being destroyed

"Exception ignored in: <function Chassis.__del__ at 0x7fd22165cd08>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/sonic_platform/chassis.py", line 83, in __del__
ImportError: sys.meta_path is None, Python is likely shutting down
The chassis tries to import deinitialize_sdk_handle during being destroyed for the purpose of releasing the sdk_handle.
However, importing another module during shutting down can cause the error because some of the fundamental infrastructures are no longer available."

This error occurs when a chassis object is created and then destroyed in the Python shell.

- How I did it
To fix it, record the deinitialize_sdk_handle in the chassis object when sdk_handle is being initialized and call the deinitialize handler when the chassis object is being destroyed

- How to verify it
Manually test.
@pull pull bot added the ⤵️ pull label Apr 29, 2021
@pull pull bot merged commit b3a2833 into mudsut4ke:master Apr 29, 2021
mudsut4ke pushed a commit that referenced this pull request Jul 19, 2021
…tilites submodules (sonic-net#7209)

sonic-swss
-[SFlowMgr] Sflow Crash on 200G ports handled (#1683)
-Stablize the test case (#1679)
-Remove PGs from an administratively down port. (#1677)

sonic-swss-common
- fix getting hash from redis db (#465)
- [dbconnector] Initialize redisContext (#464)

sonic-utilities
- route_check: Fix hanging & logging level (#1520)
- Add self timeout and crash if exceeded. (#1502)
- [reboot] User-friendly reboot cause message for kernel panic (#1486)
- [acl-loader]: do not add default deny rule for egress acl (#1531)

Signed-off-by: Danny Allen <[email protected]>
pariwat pushed a commit to pariwat/sonic-buildimage that referenced this pull request Sep 10, 2021
9a2872d [cli] Dynamic cli extension via plugins (mudsut4ke#1186)
6b51bcd [ci]: add vstest to azure pipeline (mudsut4ke#1436)
28b64ec [acl-loader]: do not add default deny rule for egress acl (mudsut4ke#1531)

Signed-off-by: Stepan Blyschak <[email protected]>
mudsut4ke pushed a commit that referenced this pull request Jan 17, 2022
* fc80eeb 2021-03-28 | [acl-loader]: do not add default deny rule for egress acl (#1531) (HEAD, origin/201911) [lguohan]

Signed-off-by: Guohan Lu <[email protected]>
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.

1 participant