-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Generic Config Updater] apply-patch ignore-path path is not working #11576
Comments
This seems like a problem in the box, shutting down a port has a side effect of changing BUFFER_PG table. @qiluo-msft do you have suggestions about who can help with this?
|
@DavidZagury The ERR syslog is generated by this code line https://github.com/Azure/sonic-utilities/blob/6de18a1ded43a5bec02af5732fc4c64e551d8a42/generic_config_updater/change_applier.py#L129 and it is truncated. Could you just add some debug output and capture @renukamanavalan Could you please help check also? |
@ghooo is correct w.r.t YANG validation. |
I think when use GCU to shut down the port, GCU will compare the running config and target config to make sure it makes the change and only make the change to the In this example(check Additional information in this issue), shutting down the port will result in "BUFFER_PG|Ethernet0|3-4" disappearing. The BUFFER_PG seems to have dependent changes to |
I have add a breakpoint and printed the run_data and the upd_data, since it is the full db it is quite long to add as a comment here, I added it to here: As I said, the difference is only on the BUFFER_PG where a profile was removed. |
Hi |
@qiluo-msft can you please find someone in your team to take a look at this issue? |
@wen587 will work on a fix. |
What I did Fixes sonic-net/sonic-buildimage#11576 How I did it Add a workaround to only compare config without backend service impact. How to verify it Manual test on specific platform and check operation success.
What I did Fixes sonic-net/sonic-buildimage#11576 How I did it Add a workaround to only compare config without backend service impact. How to verify it Manual test on specific platform and check operation success.
What I did Fixes sonic-net/sonic-buildimage#11576 How I did it Add a workaround to only compare config without backend service impact. How to verify it Manual test on specific platform and check operation success.
What I did Fixes sonic-net/sonic-buildimage#11576 How I did it Add a workaround to only compare config without backend service impact. How to verify it Manual test on specific platform and check operation success.
Description
When using apply-patch to update the DB there is an hidden option 'ignore-path' that should be used to ignore validation for config specified by given path.
The validation on apply-path does not ignore the tables given with this flag.
Steps to reproduce the issue:
Describe the results you received:
Logs show:
Describe the results you expected:
Should pass.
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
The BUFFER_PG table does change when shutting down a port:
But it seems that the -i flag doesn't work and doesn't ignore tables giving to it.
After update is done on src/sonic-utilities/generic_config_updater/change_applier.py in function apply(self, change)
There is a validation:
https://github.com/Azure/sonic-utilities/blob/ac2f55306e9f5f0f9fad60f814bcc777f685d2b4/generic_config_updater/change_applier.py#L145
Which take the new db and compare it to the expected db, there is no mention of what we gave it on the ignore flag, which results in a the error.
The text was updated successfully, but these errors were encountered: