Log node UUID and not entire node instance to
avoid logging its driver_info field Change-Id: I07eed090920c777046fe29618d5d8be42618a0f6
This commit is contained in:
parent
acf1c7d43e
commit
88ad9a7bbf
@ -54,7 +54,7 @@ def do_node_clean(task, clean_steps=None, disable_ramdisk=False):
|
|||||||
how = ('API' if node.automated_clean is False else 'configuration')
|
how = ('API' if node.automated_clean is False else 'configuration')
|
||||||
LOG.info('Automated cleaning is disabled via %(how)s, node %(node)s '
|
LOG.info('Automated cleaning is disabled via %(how)s, node %(node)s '
|
||||||
'has been successfully moved to AVAILABLE state',
|
'has been successfully moved to AVAILABLE state',
|
||||||
{'how': how, 'node': node})
|
{'how': how, 'node': node.uuid})
|
||||||
return
|
return
|
||||||
|
|
||||||
# NOTE(dtantsur): this is only reachable during automated cleaning,
|
# NOTE(dtantsur): this is only reachable during automated cleaning,
|
||||||
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
security:
|
||||||
|
- |
|
||||||
|
Log the node UUID instead of the full node object in
|
||||||
|
ironic/conductor/cleaning.py, to avoid logging the node's driver_info
|
||||||
|
property (containing its BMC username and password).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user