Skip to content

Commit 6092d50

Browse files
authored
[syncd] Add workaround for warm boot new objects (#960)
1 parent 88b62ce commit 6092d50

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

syncd/SaiSwitch.cpp

+9-2
Original file line numberDiff line numberDiff line change
@@ -1186,16 +1186,23 @@ void SaiSwitch::checkWarmBootDiscoveredRids()
11861186

11871187
auto ot = m_vendorSai->objectTypeQuery(rid);
11881188

1189-
SWSS_LOG_ERROR("RID %s (%s) is missing from current RID2VID map after WARM boot!",
1189+
// SWSS_LOG_ERROR("RID %s (%s) is missing from current RID2VID map after WARM boot!",
1190+
SWSS_LOG_WARN("RID %s (%s) is missing from current RID2VID map after WARM boot!",
11901191
sai_serialize_object_id(rid).c_str(),
11911192
sai_serialize_object_type(ot).c_str());
11921193

1194+
// XXX workaround, put discovered object in database
1195+
1196+
redisSetDummyAsicStateForRealObjectId(rid);
1197+
11931198
success = false;
11941199
}
11951200

11961201
if (!success)
11971202
{
1198-
SWSS_LOG_THROW("FATAL, some discovered RIDs are not present in current RID2VID map, bug");
1203+
// XXX workaround
1204+
//SWSS_LOG_THROW("FATAL, some discovered RIDs are not present in current RID2VID map, bug");
1205+
SWSS_LOG_ERROR("FATAL, some discovered RIDs are not present in current RID2VID map, WORKAROUND, inserting them to ASIC_DB");
11991206
}
12001207

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

0 commit comments

Comments
 (0)