mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Don't break up strings for VIR_WARN messages
The 'warn' level messages are logged in the default settings so may end up in something which the user looks for. Random line breaks prevent grepping for the message. Similarly to 'error' level messages remove the arbitrary line breaks in the source to make the messages greppable in the source. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
1 parent
543280d8c8
commit
9bf824b506
34 files changed
+88
-162
No files matched your search
@@ -1154,9 +1154,7 @@ virBhyveProcessBuildBhyveCmd(struct _bhyveConn *driver, virDomainDef *def,
|
||||
if (def->namespaceData) {
|
||||
bhyveDomainCmdlineDef *bhyvecmd;
|
||||
|
||||
VIR_WARN("Booting the guest using command line pass-through feature, "
|
||||
"which could potentially cause inconsistent state and "
|
||||
"upgrade issues");
|
||||
VIR_WARN("Booting the guest using command line pass-through feature, which could potentially cause inconsistent state and upgrade issues");
|
||||
|
||||
bhyvecmd = def->namespaceData;
|
||||
for (i = 0; i < bhyvecmd->num_args; i++)
|
||||
|
||||
@@ -432,10 +432,7 @@ virDomainObjBeginJobInternal(virDomainObj *obj,
|
||||
if (jobObj->asyncJob && jobObj->asyncStarted)
|
||||
asyncDuration = now - jobObj->asyncStarted;
|
||||
|
||||
VIR_WARN("Cannot start job (%s, %s, %s) in API %s for domain %s; "
|
||||
"current job is (%s, %s, %s) "
|
||||
"owned by (%llu %s, %llu %s, %llu %s (flags=0x%x)) "
|
||||
"for (%llus, %llus, %llus)",
|
||||
VIR_WARN("Cannot start job (%s, %s, %s) in API %s for domain %s; current job is (%s, %s, %s) owned by (%llu %s, %llu %s, %llu %s (flags=0x%x)) for (%llus, %llus, %llus)",
|
||||
virDomainJobTypeToString(job),
|
||||
virDomainAgentJobTypeToString(agentJob),
|
||||
virDomainAsyncJobTypeToString(asyncJob),
|
||||
|
||||
+2
-3
@@ -2326,9 +2326,8 @@ x86Decode(virCPUDef *cpu,
|
||||
preferred[0]);
|
||||
return -1;
|
||||
} else {
|
||||
VIR_WARN("Preferred CPU model %s not allowed by"
|
||||
" hypervisor; closest supported model will be"
|
||||
" used", preferred[0]);
|
||||
VIR_WARN("Preferred CPU model %s not allowed by hypervisor; closest supported model will be used",
|
||||
preferred[0]);
|
||||
}
|
||||
} else {
|
||||
VIR_DEBUG("CPU model %s not allowed by hypervisor; ignoring",
|
||||
|
||||
+1
-2
@@ -2478,8 +2478,7 @@ esxVI_GetVirtualMachineIdentity(esxVI_ObjectContent *virtualMachine,
|
||||
} else {
|
||||
memset(uuid, 0, VIR_UUID_BUFLEN);
|
||||
|
||||
VIR_WARN("Cannot access UUID, because 'configStatus' property "
|
||||
"indicates a config problem");
|
||||
VIR_WARN("Cannot access UUID, because 'configStatus' property indicates a config problem");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1839,8 +1839,7 @@ virHostdevReAttachUSBDevices(virHostdevManager *mgr,
|
||||
tmp = virUSBDeviceListFind(mgr->activeUSBHostdevs, usb);
|
||||
|
||||
if (!tmp) {
|
||||
VIR_WARN("Unable to find device %03d.%03d "
|
||||
"in list of active USB devices",
|
||||
VIR_WARN("Unable to find device %03d.%03d in list of active USB devices",
|
||||
usbsrc->bus, usbsrc->device);
|
||||
continue;
|
||||
}
|
||||
@@ -1881,8 +1880,7 @@ virHostdevReAttachSCSIHostDevices(virHostdevManager *mgr,
|
||||
* because qemuProcessStart could fail half way through. */
|
||||
|
||||
if (!(tmp = virSCSIDeviceListFind(mgr->activeSCSIHostdevs, scsi))) {
|
||||
VIR_WARN("Unable to find device %s:%u:%u:%llu "
|
||||
"in list of active SCSI devices",
|
||||
VIR_WARN("Unable to find device %s:%u:%u:%llu in list of active SCSI devices",
|
||||
scsihostsrc->adapter, scsihostsrc->bus,
|
||||
scsihostsrc->target, scsihostsrc->unit);
|
||||
return;
|
||||
@@ -1965,8 +1963,7 @@ virHostdevReAttachSCSIVHostDevices(virHostdevManager *mgr,
|
||||
|
||||
if (!(tmp = virSCSIVHostDeviceListFind(mgr->activeSCSIVHostHostdevs,
|
||||
host))) {
|
||||
VIR_WARN("Unable to find device %s "
|
||||
"in list of active SCSI_host devices",
|
||||
VIR_WARN("Unable to find device %s in list of active SCSI_host devices",
|
||||
hostsrc->wwpn);
|
||||
virObjectUnlock(mgr->activeSCSIVHostHostdevs);
|
||||
return;
|
||||
@@ -2311,8 +2308,7 @@ virHostdevPrepareOneNVMeDevice(virHostdevManager *hostdev_mgr,
|
||||
if (drvType == VIR_PCI_STUB_DRIVER_VFIO || STREQ_NULLABLE(drvName, "nvme"))
|
||||
continue;
|
||||
|
||||
VIR_WARN("Suspicious NVMe disk assignment. PCI device "
|
||||
"%s is not an NVMe disk, it has %s driver",
|
||||
VIR_WARN("Suspicious NVMe disk assignment. PCI device %s is not an NVMe disk, it has %s driver",
|
||||
virPCIDeviceGetName(pci), NULLSTR(drvName));
|
||||
}
|
||||
|
||||
|
||||
@@ -396,8 +396,8 @@ static int netcfConnectNumOfInterfacesImpl(virConnectPtr conn,
|
||||
/* Ignore the NETCF_NOERROR, as the interface is very likely
|
||||
* deleted by other management apps (e.g. virt-manager).
|
||||
*/
|
||||
VIR_WARN("couldn't find interface named '%s', might be "
|
||||
"deleted by other process", names[i]);
|
||||
VIR_WARN("couldn't find interface named '%s', might be deleted by other process",
|
||||
names[i]);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -487,8 +487,8 @@ static int netcfConnectListInterfacesImpl(virConnectPtr conn,
|
||||
/* Ignore the NETCF_NOERROR, as the interface is very likely
|
||||
* deleted by other management apps (e.g. virt-manager).
|
||||
*/
|
||||
VIR_WARN("couldn't find interface named '%s', might be "
|
||||
"deleted by other process", allnames[i]);
|
||||
VIR_WARN("couldn't find interface named '%s', might be deleted by other process",
|
||||
allnames[i]);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
@@ -669,8 +669,8 @@ netcfConnectListAllInterfaces(virConnectPtr conn,
|
||||
/* Ignore the NETCF_NOERROR, as the interface is very likely
|
||||
* deleted by other management apps (e.g. virt-manager).
|
||||
*/
|
||||
VIR_WARN("couldn't find interface named '%s', might be "
|
||||
"deleted by other process", names[i]);
|
||||
VIR_WARN("couldn't find interface named '%s', might be deleted by other process",
|
||||
names[i]);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -550,9 +550,7 @@ libxlMakeDomBuildInfo(virDomainDef *def,
|
||||
}
|
||||
|
||||
if (def->cpu && def->cpu->mode == VIR_CPU_MODE_CUSTOM) {
|
||||
VIR_WARN("Ignoring CPU with mode=custom, update your config to "
|
||||
"mode=host-passthrough to avoid risk of changed guest "
|
||||
"semantics when mode=custom is supported in the future");
|
||||
VIR_WARN("Ignoring CPU with mode=custom, update your config to mode=host-passthrough to avoid risk of changed guest semantics when mode=custom is supported in the future");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1255,8 +1255,8 @@ xenFormatXLCPUID(virConf *conf, virDomainDef *def)
|
||||
return 0;
|
||||
|
||||
if (def->cpu->mode != VIR_CPU_MODE_HOST_PASSTHROUGH) {
|
||||
VIR_WARN("ignoring CPU mode '%s', only host-passthrough mode "
|
||||
"is supported", virCPUModeTypeToString(def->cpu->mode));
|
||||
VIR_WARN("ignoring CPU mode '%s', only host-passthrough mode is supported",
|
||||
virCPUModeTypeToString(def->cpu->mode));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -3556,8 +3556,7 @@ lxcDomainAttachDeviceNetLive(virLXCDriver *driver,
|
||||
if (virNetDevBandwidthSet(net->ifname, actualBandwidth, flags) < 0)
|
||||
goto cleanup;
|
||||
} else {
|
||||
VIR_WARN("setting bandwidth on interfaces of "
|
||||
"type '%s' is not implemented yet: %s",
|
||||
VIR_WARN("setting bandwidth on interfaces of type '%s' is not implemented yet: %s",
|
||||
virDomainNetTypeToString(actualType), virGetLastErrorMessage());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -617,8 +617,7 @@ virLXCProcessSetupInterfaces(virLXCDriver *driver,
|
||||
if (virNetDevBandwidthSet(net->ifname, actualBandwidth, flags) < 0)
|
||||
goto cleanup;
|
||||
} else {
|
||||
VIR_WARN("setting bandwidth on interfaces of "
|
||||
"type '%s' is not implemented yet",
|
||||
VIR_WARN("setting bandwidth on interfaces of type '%s' is not implemented yet",
|
||||
virDomainNetTypeToString(type));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -714,8 +714,8 @@ networkStateInitialize(bool privileged,
|
||||
#ifdef WITH_FIREWALLD
|
||||
if (!virGDBusHasSystemBus() ||
|
||||
!(sysbus = virGDBusGetSystemBus())) {
|
||||
VIR_WARN("DBus not available, disabling firewalld support "
|
||||
"in bridge_network_driver: %s", virGetLastErrorMessage());
|
||||
VIR_WARN("DBus not available, disabling firewalld support in bridge_network_driver: %s",
|
||||
virGetLastErrorMessage());
|
||||
} else {
|
||||
g_dbus_connection_signal_subscribe(sysbus,
|
||||
NULL,
|
||||
@@ -1389,12 +1389,7 @@ networkDnsmasqConfContents(virNetworkObj *obj,
|
||||
}
|
||||
|
||||
if (ipv6def && ipv6SLAAC) {
|
||||
VIR_WARN("For IPv6, when DHCP is specified for one address, then "
|
||||
"state-full Router Advertising will occur. The additional "
|
||||
"IPv6 addresses specified require manually configured guest "
|
||||
"network to work properly since both state-full (DHCP) "
|
||||
"and state-less (SLAAC) addressing are not supported "
|
||||
"on the same network interface.");
|
||||
VIR_WARN("For IPv6, when DHCP is specified for one address, then state-full Router Advertising will occur. The additional IPv6 addresses specified require manually configured guest network to work properly since both state-full (DHCP) and state-less (SLAAC) addressing are not supported on the same network interface.");
|
||||
}
|
||||
|
||||
if (networkDnsmasqConfDHCP(&configbuf, ipv4def, def->bridge, &nbleases, dctx) < 0 ||
|
||||
@@ -2291,9 +2286,7 @@ networkCreateInterfacePool(virNetworkDef *netdef)
|
||||
thisIf->type = VIR_NETWORK_FORWARD_HOSTDEV_DEVICE_NETDEV;
|
||||
netdef->forward.nifs++;
|
||||
} else {
|
||||
VIR_WARN("VF %zu of SRIOV PF %s couldn't be added to the "
|
||||
"interface pool because it isn't bound "
|
||||
"to a network driver - possibly in use elsewhere",
|
||||
VIR_WARN("VF %zu of SRIOV PF %s couldn't be added to the interface pool because it isn't bound to a network driver - possibly in use elsewhere",
|
||||
i, netdef->forward.pfs->dev);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1331,8 +1331,7 @@ virNWFilterDHCPSnoopThread(void *req0)
|
||||
pcapConf[i].maxQSize) {
|
||||
if (last_displayed_queue - time(0) > 10) {
|
||||
last_displayed_queue = time(0);
|
||||
VIR_WARN("Worker thread for interface '%s' has a "
|
||||
"job queue that is too long",
|
||||
VIR_WARN("Worker thread for interface '%s' has a job queue that is too long",
|
||||
req->binding->portdevname);
|
||||
}
|
||||
continue;
|
||||
|
||||
@@ -2869,8 +2869,7 @@ qemuBlockRemoveImageMetadata(virQEMUDriver *driver,
|
||||
|
||||
for (n = src; virStorageSourceIsBacking(n); n = n->backingStore) {
|
||||
if (qemuSecurityMoveImageMetadata(driver, vm, n, NULL) < 0) {
|
||||
VIR_WARN("Unable to remove disk metadata on "
|
||||
"vm %s from %s (disk target %s)",
|
||||
VIR_WARN("Unable to remove disk metadata on vm %s from %s (disk target %s)",
|
||||
vm->def->name,
|
||||
NULLSTR(n->path),
|
||||
diskTarget);
|
||||
|
||||
@@ -9128,8 +9128,7 @@ qemuBuildInterfaceCommandLine(virQEMUDriver *driver,
|
||||
goto cleanup;
|
||||
}
|
||||
} else {
|
||||
VIR_WARN("setting bandwidth on interfaces of "
|
||||
"type '%s' is not implemented yet",
|
||||
VIR_WARN("setting bandwidth on interfaces of type '%s' is not implemented yet",
|
||||
virDomainNetTypeToString(actualType));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1071,9 +1071,7 @@ virQEMUDriverConfigLoadNVRAMEntry(virQEMUDriverConfig *cfg,
|
||||
return -1;
|
||||
|
||||
if (fwList) {
|
||||
VIR_WARN("Obsolete nvram variable is set while firmware metadata "
|
||||
"files found. Note that the nvram config file variable is "
|
||||
"going to be ignored.");
|
||||
VIR_WARN("Obsolete nvram variable is set while firmware metadata files found. Note that the nvram config file variable is going to be ignored.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
+15
-29
@@ -291,8 +291,7 @@ qemuDomainObjPrivateXMLParseJobNBD(virDomainObj *vm,
|
||||
|
||||
if (n > 0) {
|
||||
if (vm->job->asyncJob != VIR_ASYNC_JOB_MIGRATION_OUT) {
|
||||
VIR_WARN("Found disks marked for migration but we were not "
|
||||
"migrating");
|
||||
VIR_WARN("Found disks marked for migration but we were not migrating");
|
||||
n = 0;
|
||||
}
|
||||
for (i = 0; i < n; i++) {
|
||||
@@ -5140,11 +5139,9 @@ qemuDomainObjEnterMonitorInternal(virDomainObj *obj,
|
||||
return -1;
|
||||
}
|
||||
} else if (obj->job->asyncOwner == virThreadSelfID()) {
|
||||
VIR_WARN("This thread seems to be the async job owner; entering"
|
||||
" monitor without asking for a nested job is dangerous");
|
||||
VIR_WARN("This thread seems to be the async job owner; entering monitor without asking for a nested job is dangerous");
|
||||
} else if (obj->job->owner != virThreadSelfID()) {
|
||||
VIR_WARN("Entering a monitor without owning a job. "
|
||||
"Job %s owner %s (%llu)",
|
||||
VIR_WARN("Entering a monitor without owning a job. Job %s owner %s (%llu)",
|
||||
virDomainJobTypeToString(obj->job->active),
|
||||
obj->job->ownerAPI, obj->job->owner);
|
||||
}
|
||||
@@ -11094,8 +11091,7 @@ syncNicRxFilterMacAddr(char *ifname, virNetDevRxFilter *guestFilter,
|
||||
|
||||
/* set new MAC address from guest to associated macvtap device */
|
||||
if (virNetDevSetMAC(ifname, &guestFilter->mac) < 0) {
|
||||
VIR_WARN("Couldn't set new MAC address %s to device %s "
|
||||
"while responding to NIC_RX_FILTER_CHANGED",
|
||||
VIR_WARN("Couldn't set new MAC address %s to device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
newMacStr, ifname);
|
||||
} else {
|
||||
VIR_DEBUG("device %s MAC address set to %s", ifname, newMacStr);
|
||||
@@ -11127,8 +11123,7 @@ syncNicRxFilterGuestMulticast(char *ifname, virNetDevRxFilter *guestFilter,
|
||||
virMacAddrFormat(&guestFilter->multicast.table[i], macstr);
|
||||
|
||||
if (virNetDevAddMulti(ifname, &guestFilter->multicast.table[i]) < 0) {
|
||||
VIR_WARN("Couldn't add new multicast MAC address %s to "
|
||||
"device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
VIR_WARN("Couldn't add new multicast MAC address %s to device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
macstr, ifname);
|
||||
} else {
|
||||
VIR_DEBUG("Added multicast MAC %s to %s interface",
|
||||
@@ -11162,8 +11157,7 @@ syncNicRxFilterHostMulticast(char *ifname, virNetDevRxFilter *guestFilter,
|
||||
virMacAddrFormat(&hostFilter->multicast.table[i], macstr);
|
||||
|
||||
if (virNetDevDelMulti(ifname, &hostFilter->multicast.table[i]) < 0) {
|
||||
VIR_WARN("Couldn't delete multicast MAC address %s from "
|
||||
"device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
VIR_WARN("Couldn't delete multicast MAC address %s from device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
macstr, ifname);
|
||||
} else {
|
||||
VIR_DEBUG("Deleted multicast MAC %s from %s interface",
|
||||
@@ -11196,8 +11190,7 @@ syncNicRxFilterPromiscMode(char *ifname,
|
||||
|
||||
if (setpromisc) {
|
||||
if (virNetDevSetPromiscuous(ifname, promisc) < 0) {
|
||||
VIR_WARN("Couldn't set PROMISC flag to %s for device %s "
|
||||
"while responding to NIC_RX_FILTER_CHANGED",
|
||||
VIR_WARN("Couldn't set PROMISC flag to %s for device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
promisc ? "true" : "false", ifname);
|
||||
}
|
||||
}
|
||||
@@ -11214,9 +11207,8 @@ syncNicRxFilterMultiMode(char *ifname, virNetDevRxFilter *guestFilter,
|
||||
switch (guestFilter->multicast.mode) {
|
||||
case VIR_NETDEV_RX_FILTER_MODE_ALL:
|
||||
if (virNetDevSetRcvAllMulti(ifname, true) < 0) {
|
||||
VIR_WARN("Couldn't set allmulticast flag to 'on' for "
|
||||
"device %s while responding to "
|
||||
"NIC_RX_FILTER_CHANGED", ifname);
|
||||
VIR_WARN("Couldn't set allmulticast flag to 'on' for device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
ifname);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -11227,16 +11219,13 @@ syncNicRxFilterMultiMode(char *ifname, virNetDevRxFilter *guestFilter,
|
||||
}
|
||||
|
||||
if (virNetDevSetRcvMulti(ifname, true) < 0) {
|
||||
VIR_WARN("Couldn't set multicast flag to 'on' for "
|
||||
"device %s while responding to "
|
||||
"NIC_RX_FILTER_CHANGED", ifname);
|
||||
VIR_WARN("Couldn't set multicast flag to 'on' for device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
ifname);
|
||||
}
|
||||
|
||||
if (virNetDevSetRcvAllMulti(ifname,
|
||||
guestFilter->multicast.overflow) < 0) {
|
||||
VIR_WARN("Couldn't set allmulticast flag to '%s' for "
|
||||
"device %s while responding to "
|
||||
"NIC_RX_FILTER_CHANGED",
|
||||
VIR_WARN("Couldn't set allmulticast flag to '%s' for device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
virTristateSwitchTypeToString(virTristateSwitchFromBool(guestFilter->multicast.overflow)),
|
||||
ifname);
|
||||
}
|
||||
@@ -11244,15 +11233,12 @@ syncNicRxFilterMultiMode(char *ifname, virNetDevRxFilter *guestFilter,
|
||||
|
||||
case VIR_NETDEV_RX_FILTER_MODE_NONE:
|
||||
if (virNetDevSetRcvAllMulti(ifname, false) < 0) {
|
||||
VIR_WARN("Couldn't set allmulticast flag to 'off' for "
|
||||
"device %s while responding to "
|
||||
"NIC_RX_FILTER_CHANGED", ifname);
|
||||
VIR_WARN("Couldn't set allmulticast flag to 'off' for device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
ifname);
|
||||
}
|
||||
|
||||
if (virNetDevSetRcvMulti(ifname, false) < 0) {
|
||||
VIR_WARN("Couldn't set multicast flag to 'off' for "
|
||||
"device %s while responding to "
|
||||
"NIC_RX_FILTER_CHANGED",
|
||||
VIR_WARN("Couldn't set multicast flag to 'off' for device %s while responding to NIC_RX_FILTER_CHANGED",
|
||||
ifname);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1318,8 +1318,7 @@ qemuDomainFillDeviceIsolationGroup(virDomainDef *def,
|
||||
tmp = virPCIDeviceAddressGetIOMMUGroupNum(hostAddr);
|
||||
|
||||
if (tmp < 0) {
|
||||
VIR_WARN("Can't look up isolation group for host device "
|
||||
"%04x:%02x:%02x.%x, device won't be isolated",
|
||||
VIR_WARN("Can't look up isolation group for host device %04x:%02x:%02x.%x, device won't be isolated",
|
||||
hostAddr->domain, hostAddr->bus,
|
||||
hostAddr->slot, hostAddr->function);
|
||||
return;
|
||||
@@ -1362,9 +1361,7 @@ qemuDomainFillDeviceIsolationGroup(virDomainDef *def,
|
||||
tmp = qemuDomainFindUnusedIsolationGroup(def);
|
||||
|
||||
if (tmp == 0) {
|
||||
VIR_WARN("Can't obtain usable isolation group for interface "
|
||||
"configured to use hostdev-backed network '%s', "
|
||||
"device won't be isolated",
|
||||
VIR_WARN("Can't obtain usable isolation group for interface configured to use hostdev-backed network '%s', device won't be isolated",
|
||||
iface->data.network.name);
|
||||
return;
|
||||
}
|
||||
@@ -1564,8 +1561,7 @@ qemuDomainCollectPCIAddress(virDomainDef *def G_GNUC_UNUSED,
|
||||
if (!info->pciConnectFlags) {
|
||||
g_autofree char *addrStr = virPCIDeviceAddressAsString(&info->addr.pci);
|
||||
|
||||
VIR_WARN("qemuDomainDeviceCalculatePCIConnectFlags() thinks that the "
|
||||
"device with PCI address %s should not have a PCI address",
|
||||
VIR_WARN("qemuDomainDeviceCalculatePCIConnectFlags() thinks that the device with PCI address %s should not have a PCI address",
|
||||
addrStr ? addrStr : "(unknown)");
|
||||
|
||||
info->pciConnectFlags = VIR_PCI_CONNECT_TYPE_PCI_DEVICE;
|
||||
|
||||
@@ -3740,14 +3740,12 @@ processNicRxFilterChangedEvent(virQEMUDriver *driver,
|
||||
}
|
||||
|
||||
if (virDomainDefFindDevice(vm->def, devAlias, &dev, true) < 0) {
|
||||
VIR_WARN("NIC_RX_FILTER_CHANGED event received for "
|
||||
"non-existent device %s in domain %s",
|
||||
VIR_WARN("NIC_RX_FILTER_CHANGED event received for non-existent device %s in domain %s",
|
||||
devAlias, vm->def->name);
|
||||
goto endjob;
|
||||
}
|
||||
if (dev.type != VIR_DOMAIN_DEVICE_NET) {
|
||||
VIR_WARN("NIC_RX_FILTER_CHANGED event received for "
|
||||
"non-network device %s in domain %s",
|
||||
VIR_WARN("NIC_RX_FILTER_CHANGED event received for non-network device %s in domain %s",
|
||||
devAlias, vm->def->name);
|
||||
goto endjob;
|
||||
}
|
||||
@@ -6390,8 +6388,8 @@ qemuDomainObjStart(virConnectPtr conn,
|
||||
|
||||
return ret;
|
||||
} else if (ret < 0) {
|
||||
VIR_WARN("Unable to restore from managed state %s. "
|
||||
"Maybe the file is corrupted?", managed_save);
|
||||
VIR_WARN("Unable to restore from managed state %s. Maybe the file is corrupted?",
|
||||
managed_save);
|
||||
return ret;
|
||||
} else {
|
||||
VIR_WARN("Ignoring incomplete managed state %s", managed_save);
|
||||
|
||||
@@ -1708,8 +1708,7 @@ qemuFirmwareSanityCheck(const qemuFirmware *fw,
|
||||
if (!isConfidential &&
|
||||
!usesUefiVarsDevice &&
|
||||
supportsSecureBoot != requiresSMM) {
|
||||
VIR_WARN("Firmware description '%s' has invalid set of features: "
|
||||
"%s = %d, %s = %d, %s = %d (isConfidential = %d)",
|
||||
VIR_WARN("Firmware description '%s' has invalid set of features: %s = %d, %s = %d, %s = %d (isConfidential = %d)",
|
||||
filename,
|
||||
qemuFirmwareFeatureTypeToString(QEMU_FIRMWARE_FEATURE_REQUIRES_SMM),
|
||||
requiresSMM,
|
||||
@@ -1720,8 +1719,7 @@ qemuFirmwareSanityCheck(const qemuFirmware *fw,
|
||||
isConfidential);
|
||||
}
|
||||
if (hasEnrolledKeys && !supportsSecureBoot) {
|
||||
VIR_WARN("Firmware description '%s' has invalid set of features: "
|
||||
"%s = %d, %s = %d",
|
||||
VIR_WARN("Firmware description '%s' has invalid set of features: %s = %d, %s = %d",
|
||||
filename,
|
||||
qemuFirmwareFeatureTypeToString(QEMU_FIRMWARE_FEATURE_SECURE_BOOT),
|
||||
supportsSecureBoot,
|
||||
|
||||
@@ -1358,8 +1358,7 @@ qemuDomainAttachNetDevice(virQEMUDriver *driver,
|
||||
goto cleanup;
|
||||
}
|
||||
} else {
|
||||
VIR_WARN("setting bandwidth on interfaces of "
|
||||
"type '%s' is not implemented yet",
|
||||
VIR_WARN("setting bandwidth on interfaces of type '%s' is not implemented yet",
|
||||
virDomainNetTypeToString(actualType));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1867,8 +1867,8 @@ qemuMigrationSrcPostcopyFailed(virDomainObj *vm)
|
||||
virDomainObjIsFailedPostcopy(vm, vm->job))
|
||||
return;
|
||||
|
||||
VIR_WARN("Migration of domain %s failed during post-copy; "
|
||||
"leaving the domain paused", vm->def->name);
|
||||
VIR_WARN("Migration of domain %s failed during post-copy; leaving the domain paused",
|
||||
vm->def->name);
|
||||
|
||||
vm->job->asyncPaused = true;
|
||||
virDomainObjSetState(vm, VIR_DOMAIN_PAUSED,
|
||||
@@ -1899,8 +1899,8 @@ qemuMigrationDstPostcopyFailed(virDomainObj *vm)
|
||||
virDomainObjIsFailedPostcopy(vm, vm->job))
|
||||
return;
|
||||
|
||||
VIR_WARN("Incoming migration of domain '%s' failed during post-copy; "
|
||||
"leaving the domain running", vm->def->name);
|
||||
VIR_WARN("Incoming migration of domain '%s' failed during post-copy; leaving the domain running",
|
||||
vm->def->name);
|
||||
|
||||
vm->job->asyncPaused = true;
|
||||
if (state == VIR_DOMAIN_RUNNING) {
|
||||
@@ -2532,8 +2532,7 @@ qemuMigrationAnyConnectionClosed(virDomainObj *vm,
|
||||
VIR_DEBUG("Migration protocol interrupted in post-copy mode");
|
||||
postcopy = true;
|
||||
} else {
|
||||
VIR_WARN("Migration of domain %s finished but we don't know if the "
|
||||
"domain was successfully started on destination or not",
|
||||
VIR_WARN("Migration of domain %s finished but we don't know if the domain was successfully started on destination or not",
|
||||
vm->def->name);
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1437,8 +1437,8 @@ qemuMonitorJSONHandlePRManagerStatusChanged(qemuMonitor *mon,
|
||||
}
|
||||
|
||||
if (virJSONValueObjectGetBoolean(data, "connected", &connected) < 0) {
|
||||
VIR_WARN("missing connected state for %s "
|
||||
"in PR_MANAGER_STATUS_CHANGED event", name);
|
||||
VIR_WARN("missing connected state for %s in PR_MANAGER_STATUS_CHANGED event",
|
||||
name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -3852,8 +3852,7 @@ remoteAuthSASL(virConnectPtr conn, struct private_data *priv,
|
||||
goto cleanup;
|
||||
}
|
||||
if (ssf < SSF_WARNING_LEVEL) {
|
||||
VIR_WARN("negotiation SSF %d lower than %d will be deprecated. "
|
||||
"Please upgrade your ciphers.",
|
||||
VIR_WARN("negotiation SSF %d lower than %d will be deprecated. Please upgrade your ciphers.",
|
||||
ssf, SSF_WARNING_LEVEL);
|
||||
}
|
||||
priv->is_secure = 1;
|
||||
|
||||
@@ -1266,9 +1266,8 @@ static virNetMessage *virNetServerClientDispatchRead(virNetServerClient *client)
|
||||
} else if (!client->nrequests_warning &&
|
||||
client->nrequests_max > 1) {
|
||||
client->nrequests_warning = true;
|
||||
VIR_WARN("Client hit max requests limit %zd. This may result "
|
||||
"in keep-alive timeouts. Consider tuning the "
|
||||
"max_client_requests server parameter", client->nrequests);
|
||||
VIR_WARN("Client hit max requests limit %zd. This may result in keep-alive timeouts. Consider tuning the max_client_requests server parameter",
|
||||
client->nrequests);
|
||||
}
|
||||
virNetServerClientUpdateEvent(client);
|
||||
|
||||
|
||||
@@ -807,8 +807,7 @@ virSecurityDACSetOwnership(virSecurityManager *mgr,
|
||||
* not much we can do. XATTRs refcounting is fubar'ed and
|
||||
* the only option we have is warn users. */
|
||||
if (virSecurityDACRestoreFileLabelInternal(mgr, src, path, remember) < 0)
|
||||
VIR_WARN("Unable to restore label on '%s'. "
|
||||
"XATTRs might have been left in inconsistent state.",
|
||||
VIR_WARN("Unable to restore label on '%s'. XATTRs might have been left in inconsistent state.",
|
||||
NULLSTR(src ? src->path : path));
|
||||
|
||||
virErrorRestore(&origerr);
|
||||
|
||||
@@ -953,9 +953,7 @@ virSecuritySELinuxGenLabel(virSecurityManager *mgr,
|
||||
if (data->alt_domain_context == NULL) {
|
||||
static bool warned;
|
||||
if (!warned) {
|
||||
VIR_WARN("SELinux policy does not define a domain type for QEMU TCG. "
|
||||
"Guest startup may be denied due to missing 'execmem' privilege "
|
||||
"unless the 'virt_use_execmem' policy boolean is enabled");
|
||||
VIR_WARN("SELinux policy does not define a domain type for QEMU TCG. Guest startup may be denied due to missing 'execmem' privilege unless the 'virt_use_execmem' policy boolean is enabled");
|
||||
warned = true;
|
||||
}
|
||||
baselabel = data->domain_context;
|
||||
@@ -1454,8 +1452,7 @@ virSecuritySELinuxSetFilecon(virSecurityManager *mgr,
|
||||
* not much we can do. XATTRs refcounting is fubar'ed and
|
||||
* the only option we have is warn users. */
|
||||
if (virSecuritySELinuxRestoreFileLabel(mgr, path, remember, false) < 0)
|
||||
VIR_WARN("Unable to restore label on '%s'. "
|
||||
"XATTRs might have been left in inconsistent state.",
|
||||
VIR_WARN("Unable to restore label on '%s'. XATTRs might have been left in inconsistent state.",
|
||||
path);
|
||||
|
||||
virErrorRestore(&origerr);
|
||||
|
||||
@@ -306,8 +306,7 @@ virSecurityStackSetHostdevLabel(virSecurityManager *mgr,
|
||||
vm,
|
||||
dev,
|
||||
vroot) < 0) {
|
||||
VIR_WARN("Unable to restore hostdev label after failed set label "
|
||||
"call virDriver=%s driver=%s domain=%s hostdev=%p",
|
||||
VIR_WARN("Unable to restore hostdev label after failed set label call virDriver=%s driver=%s domain=%s hostdev=%p",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
vm->name, dev);
|
||||
@@ -367,8 +366,7 @@ virSecurityStackSetAllLabel(virSecurityManager *mgr,
|
||||
vm,
|
||||
migrated,
|
||||
chardevStdioLogd) < 0) {
|
||||
VIR_WARN("Unable to restore all labels after failed set label call "
|
||||
"virDriver=%s driver=%s domain=%s migrated=%d",
|
||||
VIR_WARN("Unable to restore all labels after failed set label call virDriver=%s driver=%s domain=%s migrated=%d",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
vm->name, migrated);
|
||||
@@ -422,8 +420,7 @@ virSecurityStackSetSavedStateLabel(virSecurityManager *mgr,
|
||||
if (virSecurityManagerRestoreSavedStateLabel(item->securityManager,
|
||||
vm,
|
||||
savefile) < 0) {
|
||||
VIR_WARN("Unable to restore saved state label after failed set "
|
||||
"label call virDriver=%s driver=%s savefile=%s",
|
||||
VIR_WARN("Unable to restore saved state label after failed set label call virDriver=%s driver=%s savefile=%s",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
savefile);
|
||||
@@ -523,8 +520,7 @@ virSecurityStackSetDaemonSocketLabel(virSecurityManager *mgr,
|
||||
for (item = item->prev; item; item = item->prev) {
|
||||
if (virSecurityManagerClearSocketLabel(item->securityManager,
|
||||
vm) < 0) {
|
||||
VIR_WARN("Unable to clear new daemon socket label after failed "
|
||||
"set label call virDriver=%s driver=%s domain=%s",
|
||||
VIR_WARN("Unable to clear new daemon socket label after failed set label call virDriver=%s driver=%s domain=%s",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
vm->name);
|
||||
@@ -551,8 +547,7 @@ virSecurityStackSetSocketLabel(virSecurityManager *mgr,
|
||||
for (item = item->prev; item; item = item->prev) {
|
||||
if (virSecurityManagerClearSocketLabel(item->securityManager,
|
||||
vm) < 0) {
|
||||
VIR_WARN("Unable to clear new socket label after failed "
|
||||
"set label call virDriver=%s driver=%s domain=%s",
|
||||
VIR_WARN("Unable to clear new socket label after failed set label call virDriver=%s driver=%s domain=%s",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
vm->name);
|
||||
@@ -673,9 +668,7 @@ virSecurityStackSetImageLabel(virSecurityManager *mgr,
|
||||
vm,
|
||||
src,
|
||||
flags) < 0) {
|
||||
VIR_WARN("Unable to restore image label after failed set label "
|
||||
"call virDriver=%s driver=%s domain=%s src=%p (path=%s) "
|
||||
"flags=0x%x",
|
||||
VIR_WARN("Unable to restore image label after failed set label call virDriver=%s driver=%s domain=%s src=%p (path=%s) flags=0x%x",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
vm->name, src, NULLSTR(src->path), flags);
|
||||
@@ -746,8 +739,7 @@ virSecurityStackSetMemoryLabel(virSecurityManager *mgr,
|
||||
if (virSecurityManagerRestoreMemoryLabel(item->securityManager,
|
||||
vm,
|
||||
mem) < 0) {
|
||||
VIR_WARN("Unable to restore memory label after failed set label "
|
||||
"call virDriver=%s driver=%s domain=%s mem=%p",
|
||||
VIR_WARN("Unable to restore memory label after failed set label call virDriver=%s driver=%s domain=%s mem=%p",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
vm->name, mem);
|
||||
@@ -794,8 +786,7 @@ virSecurityStackSetInputLabel(virSecurityManager *mgr,
|
||||
if (virSecurityManagerRestoreInputLabel(item->securityManager,
|
||||
vm,
|
||||
input) < 0) {
|
||||
VIR_WARN("Unable to restore input label after failed set label "
|
||||
"call virDriver=%s driver=%s domain=%s input=%p",
|
||||
VIR_WARN("Unable to restore input label after failed set label call virDriver=%s driver=%s domain=%s input=%p",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
vm->name, input);
|
||||
@@ -904,8 +895,7 @@ virSecurityStackDomainSetChardevLabel(virSecurityManager *mgr,
|
||||
def,
|
||||
dev_source,
|
||||
chardevStdioLogd) < 0) {
|
||||
VIR_WARN("Unable to restore chardev label after failed set label "
|
||||
"call virDriver=%s driver=%s domain=%s dev_source=%p",
|
||||
VIR_WARN("Unable to restore chardev label after failed set label call virDriver=%s driver=%s domain=%s dev_source=%p",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
def->name, dev_source);
|
||||
@@ -955,8 +945,7 @@ virSecurityStackSetTPMLabels(virSecurityManager *mgr,
|
||||
for (item = item->prev; item; item = item->prev) {
|
||||
if (virSecurityManagerRestoreTPMLabels(item->securityManager,
|
||||
vm, setTPMStateLabel) < 0) {
|
||||
VIR_WARN("Unable to restore TPM label after failed set label "
|
||||
"call virDriver=%s driver=%s domain=%s",
|
||||
VIR_WARN("Unable to restore TPM label after failed set label call virDriver=%s driver=%s domain=%s",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
vm->name);
|
||||
@@ -1004,8 +993,7 @@ virSecurityStackDomainSetNetdevLabel(virSecurityManager *mgr,
|
||||
for (item = item->prev; item; item = item->prev) {
|
||||
if (virSecurityManagerRestoreNetdevLabel(item->securityManager,
|
||||
def, net) < 0) {
|
||||
VIR_WARN("Unable to restore netdev label after failed set label "
|
||||
"call virDriver=%s driver=%s domain=%s",
|
||||
VIR_WARN("Unable to restore netdev label after failed set label call virDriver=%s driver=%s domain=%s",
|
||||
virSecurityManagerGetVirtDriver(mgr),
|
||||
virSecurityManagerGetDriver(item->securityManager),
|
||||
def->name);
|
||||
|
||||
@@ -331,8 +331,8 @@ virStorageBackendRBDOpenRADOSConn(virStorageBackendRBDState *ptr,
|
||||
}
|
||||
|
||||
virUUIDFormat(def->uuid, uuidstr);
|
||||
VIR_WARN("Storage Pool name='%s' uuid='%s' is tainted by custom "
|
||||
"config_opts from XML", def->name, uuidstr);
|
||||
VIR_WARN("Storage Pool name='%s' uuid='%s' is tainted by custom config_opts from XML",
|
||||
def->name, uuidstr);
|
||||
}
|
||||
|
||||
ptr->starttime = time(0);
|
||||
|
||||
@@ -69,8 +69,7 @@ virStorageBackendZFSVolModeNeeded(void)
|
||||
|
||||
ret = virCommandRun(cmd, &exit_code);
|
||||
if ((ret < 0) || (exit_code != 2)) {
|
||||
VIR_WARN("Command 'zfs get' either failed "
|
||||
"to run or exited with unexpected status");
|
||||
VIR_WARN("Command 'zfs get' either failed to run or exited with unexpected status");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -4042,8 +4042,8 @@ virStorageBackendFileSystemMountAddOptions(virCommand *cmd,
|
||||
virBufferAsprintf(&buf, "%s,", opts->options[i]);
|
||||
|
||||
virUUIDFormat(def->uuid, uuidstr);
|
||||
VIR_WARN("Storage Pool name='%s' uuid='%s' is tainted by custom "
|
||||
"mount_opts from XML", def->name, uuidstr);
|
||||
VIR_WARN("Storage Pool name='%s' uuid='%s' is tainted by custom mount_opts from XML",
|
||||
def->name, uuidstr);
|
||||
}
|
||||
|
||||
virBufferTrim(&buf, ",");
|
||||
|
||||
@@ -883,8 +883,7 @@ virStorageFileProbeFormatFromBuf(const char *path,
|
||||
}
|
||||
|
||||
if (possibleFormat != VIR_STORAGE_FILE_RAW)
|
||||
VIR_WARN("File %s matches %s magic, but version is wrong. "
|
||||
"Please report new version to devel@lists.libvirt.org",
|
||||
VIR_WARN("File %s matches %s magic, but version is wrong. Please report new version to devel@lists.libvirt.org",
|
||||
path, virStorageFileFormatTypeToString(possibleFormat));
|
||||
|
||||
cleanup:
|
||||
|
||||
@@ -2099,8 +2099,8 @@ vboxDomainDefineXMLFlags(virConnectPtr conn, const char *xml, unsigned int flags
|
||||
if (NS_SUCCEEDED(rc))
|
||||
gVBoxAPI.deleteConfig(machine);
|
||||
else
|
||||
VIR_WARN("Could not cleanup partially created VM after failure, "
|
||||
"rc=%08x", rc);
|
||||
VIR_WARN("Could not cleanup partially created VM after failure, rc=%08x",
|
||||
rc);
|
||||
}
|
||||
|
||||
VBOX_RELEASE(machine);
|
||||
|
||||
+2
-4
@@ -2110,8 +2110,7 @@ virVMXParseVNC(virConf *conf, virDomainGraphicsDef **def)
|
||||
VIR_FREE(listenAddr);
|
||||
|
||||
if (port < 0) {
|
||||
VIR_WARN("VNC is enabled but VMX entry 'RemoteDisplay.vnc.port' "
|
||||
"is missing, the VNC port is unknown");
|
||||
VIR_WARN("VNC is enabled but VMX entry 'RemoteDisplay.vnc.port' is missing, the VNC port is unknown");
|
||||
|
||||
(*def)->data.vnc.port = 0;
|
||||
(*def)->data.vnc.autoport = true;
|
||||
@@ -3879,8 +3878,7 @@ virVMXFormatVNC(virDomainGraphicsDef *def, virBuffer *buffer)
|
||||
virBufferAddLit(buffer, "RemoteDisplay.vnc.enabled = \"true\"\n");
|
||||
|
||||
if (def->data.vnc.autoport) {
|
||||
VIR_WARN("VNC autoport is enabled, but the automatically assigned "
|
||||
"VNC port cannot be read back");
|
||||
VIR_WARN("VNC autoport is enabled, but the automatically assigned VNC port cannot be read back");
|
||||
} else {
|
||||
if (def->data.vnc.port < 5900 || def->data.vnc.port > 5964) {
|
||||
VIR_WARN("VNC port %d it out of [5900..5964] range",
|
||||
|
||||
+1
-2
@@ -3218,8 +3218,7 @@ static int prlsdkConfigureNet(struct _vzDriver *driver G_GNUC_UNUSED,
|
||||
|
||||
if (isCt) {
|
||||
if (net->model != VIR_DOMAIN_NET_MODEL_UNKNOWN)
|
||||
VIR_WARN("Setting network adapter for containers is not "
|
||||
"supported by vz driver.");
|
||||
VIR_WARN("Setting network adapter for containers is not supported by vz driver.");
|
||||
} else {
|
||||
if (net->model == VIR_DOMAIN_NET_MODEL_RTL8139) {
|
||||
pret = PrlVmDevNet_SetAdapterType(sdknet, PNT_RTL);
|
||||
|
||||
Reference in new issue
Block a user