← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1794773] Re: Unnecessary warning when ironic node properties are not set

 

Reviewed:  https://review.openstack.org/605754
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=63b9c88386998bc584786ecb8ea7a2aae971a384
Submitter: Zuul
Branch:    master

commit 63b9c88386998bc584786ecb8ea7a2aae971a384
Author: Mark Goddard <mark@xxxxxxxxxxxx>
Date:   Thu Sep 27 15:32:36 2018 +0100

    Don't emit warning when ironic properties are zero
    
    If an ironic node is registered without either of the 'memory_mb' or
    'cpus' properties, the following warning messages are seen in the
    nova-compute logs:
    
    Warning, memory usage is 0 for <instance> on baremetal node <node>.
    Warning, number of cpus is 0 for <instance> on baremetal node <node>.
    
    As of the Rocky release [1], the standard compute resources (VCPU,
    MEMORY_MB, DISK_GB) are not registered with placement for ironic nodes.
    They were not required to be set since the Pike release, but still this
    warning is emitted.
    
    This change removes these warning messages.
    
    Backport: rocky, queens, pike
    
    [1] https://review.openstack.org/#/c/565841/
    
    Change-Id: I342b9b12ec869431c3abad75eb8194c34151a281
    Closes-Bug: #1794773


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1794773

Title:
  Unnecessary warning when ironic node properties are not set

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  If an ironic node is registered without either of the 'memory_mb' or
  'cpus' properties, the following warning messages are seen in the
  nova-compute logs:

  Warning, memory usage is 0 for <instance> on baremetal node <node>.
  Warning, number of cpus is 0 for <instance> on baremetal node <node>.

  As of the Rocky release [1], the standard compute resources (VCPU,
  MEMORY_MB, DISK_GB) are not registered with placement for ironic
  nodes. They were not required to be set since the Pike release, but
  still this warning is emitted.

  [1] https://review.openstack.org/#/c/565841/

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1794773/+subscriptions


References