You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnlen(programmedNCs), errors.Wrapf(errNonExistentContainerStatus, "can't find NC with ID %s in service state, stop updating this host NC version", ncID)
269
269
}
270
270
// if the NC still exists in state and is programmed to some version (doesn't have to be latest), add it to our set of NCs that have been programmed
logger.Errorf("failed to parse host nc version string %s: %s", ncInfo.HostVersion, err)
278
278
continue
279
279
}
280
-
iflocalNCVersion>consolidatedNCVersion {
280
+
iflocalNCVersion>nmaProgrammedNCVersion {
281
281
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
282
-
logger.Errorf("NC version from consolidated sources is decreasing: have %d, got %d", localNCVersion, consolidatedNCVersion)
282
+
logger.Errorf("NC version from consolidated sources is decreasing: have %d, got %d", localNCVersion, nmaProgrammedNCVersion)
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
289
-
logger.Printf("Updating NC %s host version from %s to %s", ncID, ncInfo.HostVersion, consolidatedNCVersionStr)
290
-
ncInfo.HostVersion=consolidatedNCVersionStr
289
+
logger.Printf("Updating NC %s host version from %s to %s", ncID, ncInfo.HostVersion, nmaProgrammedNCVersionStr)
290
+
ncInfo.HostVersion=nmaProgrammedNCVersionStr
291
291
logger.Printf("Updated NC %s host version to %s", ncID, ncInfo.HostVersion)
292
292
service.state.ContainerStatus[ncID] =ncInfo
293
293
// if we successfully updated the NC, pop it from the needs update set.
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
680
+
logger.Errorf("Failed to get supported APIs from NMAgent: %v", err)
681
+
returnfalse
673
682
}
674
683
675
684
for_, api:=rangeapis {
676
685
ifstrings.Contains(api, nmAgentSwiftV2API) {
677
-
swiftV2Support=true
686
+
returntrue
678
687
}
679
688
}
680
689
681
-
returnswiftV2Support, nil
690
+
returnfalse
682
691
}
683
692
684
693
// GetIMDSNCVersions gets NC versions from IMDS and returns them as a map
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
690
-
logger.Errorf("NMAgent does not support SwiftV2 API or encountered an error: %v", err)
698
+
logger.Errorf("NMAgent does not support SwiftV2 API")
//nolint:staticcheck // SA1019: suppress deprecated logger.Printf usage. Todo: legacy logger usage is consistent in cns repo. Migrates when all logger usage is migrated
700
-
logger.Errorf("Failed to get NC versions from IMDS: %v", err)
708
+
logger.Errorf("Failed to get network interfaces from IMDS: %v", err)
0 commit comments