-
Notifications
You must be signed in to change notification settings - Fork 116
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
Set the execute bit on sysDescr_pass.py #306
Conversation
Set the execute bit on the script in git instead of relying on a deployment script later to set the bit.
|
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
hi @SuvarnaMeenakshi I plan to take this as a workaround for now.
let me know if any concern. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the work around for slim image fix.
#### 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.
Cherry-pick PR to 202305: #307 |
#### 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.
#### 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.
Cherry-pick PR to 202311: #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.
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)