Merge "Change to debug repetitive info messages"

This commit is contained in:
Zuul 2019-01-08 04:44:37 +00:00 committed by Gerrit Code Review
commit 1351f031b8
2 changed files with 18 additions and 18 deletions

View File

@ -884,23 +884,23 @@ class ResourceTracker(object):
ucpu = 0
pci_stats = (list(cn.pci_device_pools) if
cn.pci_device_pools else [])
LOG.info("Final resource view: "
"name=%(node)s "
"phys_ram=%(phys_ram)sMB "
"used_ram=%(used_ram)sMB "
"phys_disk=%(phys_disk)sGB "
"used_disk=%(used_disk)sGB "
"total_vcpus=%(total_vcpus)s "
"used_vcpus=%(used_vcpus)s "
"pci_stats=%(pci_stats)s",
{'node': nodename,
'phys_ram': cn.memory_mb,
'used_ram': cn.memory_mb_used,
'phys_disk': cn.local_gb,
'used_disk': cn.local_gb_used,
'total_vcpus': tcpu,
'used_vcpus': ucpu,
'pci_stats': pci_stats})
LOG.debug("Final resource view: "
"name=%(node)s "
"phys_ram=%(phys_ram)sMB "
"used_ram=%(used_ram)sMB "
"phys_disk=%(phys_disk)sGB "
"used_disk=%(used_disk)sGB "
"total_vcpus=%(total_vcpus)s "
"used_vcpus=%(used_vcpus)s "
"pci_stats=%(pci_stats)s",
{'node': nodename,
'phys_ram': cn.memory_mb,
'used_ram': cn.memory_mb_used,
'phys_disk': cn.local_gb,
'used_disk': cn.local_gb_used,
'total_vcpus': tcpu,
'used_vcpus': ucpu,
'pci_stats': pci_stats})
def _resource_change(self, compute_node):
"""Check to see if any resources have changed."""

View File

@ -9037,7 +9037,7 @@ class LibvirtDriver(driver.ComputeDriver):
vconfig.LibvirtConfigCPUFeature(name=f.name))
xml_str = caps.host.cpu.to_xml()
LOG.info("Libvirt baseline CPU %s", xml_str)
LOG.debug("Libvirt baseline CPU %s", xml_str)
# TODO(lei-zh): baselineCPU is not supported on all platforms.
# There is some work going on in the libvirt community to replace the
# baseline call. Consider using the new apis when they are ready. See