Closed AKosturArista closed 9 months ago
This seems like a work around, because with the slim image loaded, I was able to run a python script inside snmp docker to copy the sysDescr_pass.py to the location and change the mode to allow execution. What is the reason that we are able to do it during run time but does not occur when sonic_ax_impl comes up?
hi @SuvarnaMeenakshi I plan to take this as a workaround for now.
let me know if any concern.
Cherry-pick PR to 202305: https://github.com/sonic-net/sonic-snmpagent/pull/307
Cherry-pick PR to 202311: https://github.com/sonic-net/sonic-snmpagent/pull/311
Why I did it
Slim images may have a sysDescr_pass.py script that does not correctly have the execute bit set resulting in any request for the sysDescr.0 OID via SNMP would fail. By setting the execute bit directly in source control, this script is no longer reliant on any deployment script to fix the permissions after the fact.
How I did it
Set the execute bit directly within source control
How to verify it
Testing on a platform which uses a slim image should reliably pass the snmp/test_snmp_v2mib.py test.
Which release branch to backport (provide reason below if selected)