Don't emit warning when ironic properties are zero
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

mahak/nova,gooddata/openstack-nova,rahulunair/nova,klmitch/nova,openstack/nova,openstack/nova,rahulunair/nova,mikalstill/nova,gooddata/openstack-nova,mahak/nova,mikalstill/nova,klmitch/nova,mikalstill/nova,klmitch/nova,rahulunair/nova,gooddata/openstack-nova,klmitch/nova,mahak/nova,openstack/nova,gooddata/openstack-nova