-
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
[Config Rollback] | Failed to rollback config #11912
Closed
Comments
GCU related issue, please help to investigate @qiluo-msft |
wen587
added a commit
to sonic-net/sonic-utilities
that referenced
this issue
Sep 5, 2022
What I did Fix sonic-net/sonic-buildimage#11912 How I did it Add the missing 'remove_backend_tables_from_config' in dry run. How to verify it Run unit test and manual test locally.
yxieca
pushed a commit
to sonic-net/sonic-utilities
that referenced
this issue
Sep 8, 2022
What I did Fix sonic-net/sonic-buildimage#11912 How I did it Add the missing 'remove_backend_tables_from_config' in dry run. How to verify it Run unit test and manual test locally.
EdenGri
pushed a commit
to EdenGri/sonic-utilities
that referenced
this issue
Oct 12, 2022
What I did Fix sonic-net/sonic-buildimage#11912 How I did it Add the missing 'remove_backend_tables_from_config' in dry run. How to verify it Run unit test and manual test locally.
preetham-singh
pushed a commit
to preetham-singh/sonic-utilities
that referenced
this issue
Nov 21, 2022
What I did Fix sonic-net/sonic-buildimage#11912 How I did it Add the missing 'remove_backend_tables_from_config' in dry run. How to verify it Run unit test and manual test locally.
malletvapid23
added a commit
to malletvapid23/Sonic-Utility
that referenced
this issue
Aug 3, 2023
What I did Fix sonic-net/sonic-buildimage#11912 How I did it Add the missing 'remove_backend_tables_from_config' in dry run. How to verify it Run unit test and manual test locally.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In attempt to make config rollback I receive the next error : Error: 'DryRunChangeApplier' object has no attribute 'remove_backend_tables_from_config'
Steps to reproduce the issue:
Make some changes in configuration
Configure checkpoint (config checkpoint A)
Make some changes in configuration
Configure 2nd checkpoint (config checkpoint B)
Make some changes in configuration
Try to rollback (config rollback -d A)
Describe the results you received:
`# config rollback -d A
** DRY RUN EXECUTION **
Config Rollbacker: Config rollbacking starting.
Config Rollbacker: Checkpoint name: A.
Config Rollbacker: Verifying 'A' exists.
Config Rollbacker: Loading checkpoint into memory.
Config Rollbacker: Replacing config using 'Config Replacer'.
Config Replacer: Config replacement starting.
Config Replacer: Target config length: 15511.
Config Replacer: Getting current config db.
Config Replacer: Generating patch between target config and current config db.
Config Replacer: Applying patch using 'Patch Applier'.
Patch Applier: Patch application starting.
Patch Applier: Patch: [{"op": "remove", "path": "/VLAN_MEMBER/Vlan12|Ethernet8"}, {"op": "remove", "path": "/VLAN_MEMBER/Vlan12|Ethernet0"}, {"op": "remove", "path": "/VLAN/Vlan12"}]
Patch Applier: Getting current config db.
Patch Applier: Simulating the target full config after applying the patch.
Patch Applier: Validating target config does not have empty tables, since they do not show up in ConfigDb.
Patch Applier: Sorting patch updates.
Patch Applier: The patch was sorted into 3 changes:
Patch Applier: * [{"op": "remove", "path": "/VLAN_MEMBER/Vlan12|Ethernet0"}]
Patch Applier: * [{"op": "remove", "path": "/VLAN_MEMBER/Vlan12|Ethernet8"}]
Patch Applier: * [{"op": "remove", "path": "/VLAN/Vlan12"}]
Patch Applier: Applying 3 changes in order:
Patch Applier: * [{"op": "remove", "path": "/VLAN_MEMBER/Vlan12|Ethernet0"}]
** DryRun: Would apply [{"op": "remove", "path": "/VLAN_MEMBER/Vlan12|Ethernet0"}]
Patch Applier: * [{"op": "remove", "path": "/VLAN_MEMBER/Vlan12|Ethernet8"}]
** DryRun: Would apply [{"op": "remove", "path": "/VLAN_MEMBER/Vlan12|Ethernet8"}]
Patch Applier: * [{"op": "remove", "path": "/VLAN/Vlan12"}]
** DryRun: Would apply [{"op": "remove", "path": "/VLAN/Vlan12"}]
Patch Applier: Verifying patch updates are reflected on ConfigDB.
Failed to rollback config
Usage: config rollback [OPTIONS] CHECKPOINT_NAME
Try "config rollback -h" for help.
Error: 'DryRunChangeApplier' object has no attribute 'remove_backend_tables_from_config'
root@qa-eth-vt03-7-4700a0:/home/admin# config save -y
Running command: /usr/local/bin/sonic-cfggen -d --print-data > /etc/sonic/config_db.json`
Describe the results you expected:
config rollback is succesfull
Output of
show version
:Output of
show techsupport
:sonic_dump_qa-eth-vt02-2-4700a1_20220823_145320_config_rollback.tar.gz
The text was updated successfully, but these errors were encountered: