Merge pull request #5235 from YchauWang/wyc-qmp-log

virtcontainers: add warn log record for qmp hotplug cpu error
This commit is contained in:
Bin Liu
2022-10-09 08:29:09 +08:00
committed by GitHub

View File

@@ -1913,6 +1913,7 @@ func (q *qemu) hotplugAddCPUs(amount uint32) (uint32, error) {
}
if err := q.qmpMonitorCh.qmp.ExecuteCPUDeviceAdd(q.qmpMonitorCh.ctx, driver, cpuID, socketID, dieID, coreID, threadID, romFile); err != nil {
q.Logger().WithField("hotplug", "cpu").Warnf("qmp hotplug cpu, cpuID=%s socketID=%s, error: %v", cpuID, socketID, err)
// don't fail, let's try with other CPU
continue
}