Cache lookup addresses for a quick access.
Delete swift entries containing inspection data.
Delete swift entries related to the node in task.node containing
inspection data. The entries are
inspector_data-<task.node.uuid>-inventory
for hardware inventory and
similar for -plugin
containing the rest of the inspection data.
task – A TaskManager instance.
Remove lookup addresses cached on the node.
Create ironic ports from MAC addresses data dict.
Creates ironic ports from MAC addresses data returned with inspection or
as requested by operator. Helper argument to detect the MAC address
get_mac_address
defaults to ‘value’ part of MAC address dict key-value
pair.
task – A TaskManager instance.
macs – A sequence of MAC addresses. If None
, fetched from
the task’s management interface.
Get inspection data.
Retrieve the inspection data for a node either from database or the Object Storage API (swift/radosgw) as configured.
node – the Ironic node that the required data is about
context – an admin context
dictionary with inventory
and plugin_data
fields
NodeInventoryNotFound if no inventory has been saved
Do a node lookup by the information from the inventory.
context – Request context
mac_addresses – List of MAC addresses.
bmc_addresses – List of BMC (realistically, IPMI) addresses.
node_uuid – Node UUID (if known).
NotFound with a generic message for all failures to avoid disclosing any information.
Store inspection data.
Store the inspection data for a node. The storage is either the database or the Object Storage API (swift/radosgw) as configured.
node – the Ironic node that the inspection data is about
inventory – the inventory to store
plugin_data – the plugin data (if any) to store
context – an admin context
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.