Config rollback failed after port speed is changed.
The following sonic-mgmt test is failing: sonic-mgmt/tests/generic_config_updater/test_eth_interface.py::test_update_speed.
Steps to reproduce the issue:
Set a checkpoint:
admin@sonic:/tmp$ sudo config checkpoint test
Config Rollbacker: Config checkpoint starting.
Config Rollbacker: Checkpoint name: test.
Config Rollbacker: Getting current config db.
Config Rollbacker: Getting checkpoint full-path.
Config Rollbacker: Ensuring checkpoint directory exist.
Config Rollbacker: Saving config db content to /etc/sonic/checkpoints/test.cp.json.
Config Rollbacker: Config checkpoint completed.
Checkpoint created successfully.
admin@r-tigon-21:/tmp$ sudo config apply-patch /tmp/tmp.LMlZezKnD9
Patch Applier: Patch application starting.
Patch Applier: Patch: [{"path": "/PORT/Ethernet0/speed", "value": "10000", "op": "replace"}]
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 1 change:
Patch Applier: * [{"op": "replace", "path": "/PORT/Ethernet0/speed", "value": "10000"}]
Patch Applier: Applying 1 change in order:
Patch Applier: * [{"op": "replace", "path": "/PORT/Ethernet0/speed", "value": "10000"}]
Patch Applier: Verifying patch updates are reflected on ConfigDB.
Patch Applier: Patch application completed.
Patch applied successfully.
Rollback to the checkpoint:
admin@sonic:/tmp$ sudo config rollback test --verbose
Describe the results you received:
Config rollback failed:
admin@r-tigon-21:/tmp$ sudo config rollback test --verbose
Config Rollbacker: Config rollbacking starting.
Config Rollbacker: Checkpoint name: test.
Config Rollbacker: Verifying 'test' exists.
Config Rollbacker: Loading checkpoint into memory.
Config Rollbacker: Replacing config using 'Config Replacer'.
Config Replacer: Config replacement starting.
Config Replacer: Target config length: 122190.
Config Replacer: Getting current config db.
Config Replacer: Generating patch between target config and current config db.
Config Replacer: Generated patch: [{"op": "replace", "path": "/PORT/Ethernet0/speed", "value": "50000"}, {"op": "replace", "path": "/BUFFER_PG/Ethernet0|3-4/profile", "value": "pg_lossless_50000_300m_profile"}, {"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile"}].
Config Replacer: Applying patch using 'Patch Applier'.
Patch Applier: Patch application starting.
Patch Applier: Patch: [{"op": "replace", "path": "/PORT/Ethernet0/speed", "value": "50000"}, {"op": "replace", "path": "/BUFFER_PG/Ethernet0|3-4/profile", "value": "pg_lossless_50000_300m_profile"}, {"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile"}]
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 Sorter - Strict: Validating patch is not making changes to tables without YANG models.
Patch Sorter - Strict: Validating target config according to YANG models.
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
Patch Sorter - Strict: Sorting patch updates.
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Invalid value "pg_lossless_10000_300m_profile" in "profile" element. (path: /sonic-buffer-pg:sonic-buffer-pg/BUFFER_PG/BUFFER_PG_LIST[port='Ethernet0'][pg_num='3-4']/profile)
sonic_yang(3):Data Loading Failed:Invalid value "pg_lossless_10000_300m_profile" in "profile" element.
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Invalid value "pg_lossless_10000_300m_profile" in "profile" element. (path: /sonic-buffer-pg:sonic-buffer-pg/BUFFER_PG/BUFFER_PG_LIST[port='Ethernet0'][pg_num='3-4']/profile)
sonic_yang(3):Data Loading Failed:Invalid value "pg_lossless_10000_300m_profile" in "profile" element.
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Missing required element "pool" in "BUFFER_PROFILE_LIST". (path: /sonic-buffer-profile:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST[name='pg_lossless_10000_300m_profile'])
sonic_yang(3):Data Loading Failed:Missing required element "pool" in "BUFFER_PROFILE_LIST".
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Missing required element "size" in "BUFFER_PROFILE_LIST". (path: /sonic-buffer-profile:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST[name='pg_lossless_10000_300m_profile'])
sonic_yang(3):Data Loading Failed:Missing required element "size" in "BUFFER_PROFILE_LIST".
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Invalid value "pg_lossless_10000_300m_profile" in "profile" element. (path: /sonic-buffer-pg:sonic-buffer-pg/BUFFER_PG/BUFFER_PG_LIST[port='Ethernet0'][pg_num='3-4']/profile)
sonic_yang(3):Data Loading Failed:Invalid value "pg_lossless_10000_300m_profile" in "profile" element.
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Missing required element "pool" in "BUFFER_PROFILE_LIST". (path: /sonic-buffer-profile:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST[name='pg_lossless_10000_300m_profile'])
sonic_yang(3):Data Loading Failed:Missing required element "pool" in "BUFFER_PROFILE_LIST".
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Missing required element "size" in "BUFFER_PROFILE_LIST". (path: /sonic-buffer-profile:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST[name='pg_lossless_10000_300m_profile'])
sonic_yang(3):Data Loading Failed:Missing required element "size" in "BUFFER_PROFILE_LIST".
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Invalid value "pg_lossless_10000_300m_profile" in "profile" element. (path: /sonic-buffer-pg:sonic-buffer-pg/BUFFER_PG/BUFFER_PG_LIST[port='Ethernet0'][pg_num='3-4']/profile)
sonic_yang(3):Data Loading Failed:Invalid value "pg_lossless_10000_300m_profile" in "profile" element.
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Missing required element "pool" in "BUFFER_PROFILE_LIST". (path: /sonic-buffer-profile:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST[name='pg_lossless_10000_300m_profile'])
sonic_yang(3):Data Loading Failed:Missing required element "pool" in "BUFFER_PROFILE_LIST".
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Missing required element "size" in "BUFFER_PROFILE_LIST". (path: /sonic-buffer-profile:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST[name='pg_lossless_10000_300m_profile'])
sonic_yang(3):Data Loading Failed:Missing required element "size" in "BUFFER_PROFILE_LIST".
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Invalid value "pg_lossless_10000_300m_profile" in "profile" element. (path: /sonic-buffer-pg:sonic-buffer-pg/BUFFER_PG/BUFFER_PG_LIST[port='Ethernet0'][pg_num='3-4']/profile)
sonic_yang(3):Data Loading Failed:Invalid value "pg_lossless_10000_300m_profile" in "profile" element.
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Missing required element "pool" in "BUFFER_PROFILE_LIST". (path: /sonic-buffer-profile:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST[name='pg_lossless_10000_300m_profile'])
sonic_yang(3):Data Loading Failed:Missing required element "pool" in "BUFFER_PROFILE_LIST".
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Missing required element "size" in "BUFFER_PROFILE_LIST". (path: /sonic-buffer-profile:sonic-buffer-profile/BUFFER_PROFILE/BUFFER_PROFILE_LIST[name='pg_lossless_10000_300m_profile'])
sonic_yang(3):Data Loading Failed:Missing required element "size" in "BUFFER_PROFILE_LIST".
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
libyang[0]: Invalid value "pg_lossless_10000_300m_profile" in "profile" element. (path: /sonic-buffer-pg:sonic-buffer-pg/BUFFER_PG/BUFFER_PG_LIST[port='Ethernet0'][pg_num='3-4']/profile)
sonic_yang(3):Data Loading Failed:Invalid value "pg_lossless_10000_300m_profile" in "profile" element.
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
sonic_yang(6):Note: Below table(s) have no YANG models: CONSOLE_SWITCH, DEVICE_NEIGHBOR_METADATA, DHCP_SERVER, RESTAPI, SNMP, SNMP_COMMUNITY
Patch Applier: The patch was sorted into 8 changes:
Patch Applier: * [{"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile/dynamic_th"}]
Patch Applier: * [{"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile/xoff"}]
Patch Applier: * [{"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile/xon"}]
Patch Applier: * [{"op": "replace", "path": "/PORT/Ethernet0/speed", "value": "50000"}]
Patch Applier: * [{"op": "replace", "path": "/PORT/Ethernet0/admin_status", "value": "down"}]
Patch Applier: * [{"op": "replace", "path": "/BUFFER_PG/Ethernet0|3-4/profile", "value": "pg_lossless_50000_300m_profile"}]
Patch Applier: * [{"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile"}]
Patch Applier: * [{"op": "replace", "path": "/PORT/Ethernet0/admin_status", "value": "up"}]
Patch Applier: Applying 8 changes in order:
Patch Applier: * [{"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile/dynamic_th"}]
Patch Applier: * [{"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile/xoff"}]
Patch Applier: * [{"op": "remove", "path": "/BUFFER_PROFILE/pg_lossless_10000_300m_profile/xon"}]
Patch Applier: * [{"op": "replace", "path": "/PORT/Ethernet0/speed", "value": "50000"}]
Patch Applier: * [{"op": "replace", "path": "/PORT/Ethernet0/admin_status", "value": "down"}]
Patch Applier: * [{"op": "replace", "path": "/BUFFER_PG/Ethernet0|3-4/profile", "value": "pg_lossless_50000_300m_profile"}]
Failed to rollback config
Usage: config rollback [OPTIONS] CHECKPOINT_NAME
Try "config rollback -h" for help.
Description
Config rollback failed after port speed is changed. The following
sonic-mgmt
test is failing:sonic-mgmt/tests/generic_config_updater/test_eth_interface.py::test_update_speed
.Steps to reproduce the issue:
Describe the results you received:
Config rollback failed:
Describe the results you expected:
Config rollback should be successful
Output of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):