Skip to content

Commit

Permalink
[syncd] Add workaround for warm boot new objects (sonic-net#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik committed Nov 2, 2021
1 parent 88b62ce commit 6092d50
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions syncd/SaiSwitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1186,16 +1186,23 @@ void SaiSwitch::checkWarmBootDiscoveredRids()

auto ot = m_vendorSai->objectTypeQuery(rid);

SWSS_LOG_ERROR("RID %s (%s) is missing from current RID2VID map after WARM boot!",
// SWSS_LOG_ERROR("RID %s (%s) is missing from current RID2VID map after WARM boot!",
SWSS_LOG_WARN("RID %s (%s) is missing from current RID2VID map after WARM boot!",
sai_serialize_object_id(rid).c_str(),
sai_serialize_object_type(ot).c_str());

// XXX workaround, put discovered object in database

redisSetDummyAsicStateForRealObjectId(rid);

success = false;
}

if (!success)
{
SWSS_LOG_THROW("FATAL, some discovered RIDs are not present in current RID2VID map, bug");
// XXX workaround
//SWSS_LOG_THROW("FATAL, some discovered RIDs are not present in current RID2VID map, bug");
SWSS_LOG_ERROR("FATAL, some discovered RIDs are not present in current RID2VID map, WORKAROUND, inserting them to ASIC_DB");
}

SWSS_LOG_NOTICE("all discovered RIDs are present in current RID2VID map for switch VID %s",
Expand Down

0 comments on commit 6092d50

Please sign in to comment.