openstack-ironic/ironic/objects
Jay Faulkner bc463ebcbb Add node.instance_name
This adds node.instance_name as a top level field

Additionally, to provide forwards-compatability for nova clients,
we will automatically set node.instance_name if
node.instance_info.display_name is being set.

Tested the following in devstack, using manual CURL api calls:

 - Viewing an instance_name via GET /v1/nodes/node-name
 - Adding an instance_name
 - Clearing instance name on undeploy
 - Setting an instance_name via PATCH /v1/nodes/node-name
 - Setting a instance_info/display_name and validating it sets instance_name
 - Setting a instance_info/display_name when instance_name already exists and
   validating it DOES NOT OVERRIDE existing instance_name
 - node.instance_name not returned for API version < our micro version
 - querying /v1/nodes with ?instance_name=somename
 - (cid) Sort of fully tested integrated with nova by observing CI logs
 - (jayf) Added missing comments around API versions, and added a reminder
   comment

Generated-By: Claude code
Change-Id: Ic24b2e8dbe88c59f0df52a0f5581d48492ba8cd7
Signed-off-by: Afonne-CID <afonnepaulc@gmail.com>
Signed-off-by: Jay Faulkner <jay@jvf.cc>
2025-11-12 13:34:51 +01:00
..
__init__.py DB: inspection rules migration 2025-02-13 16:17:25 +01:00
allocation.py Optional indirection API use 2025-08-18 09:53:11 -07:00
base.py Optional indirection API use 2025-08-18 09:53:11 -07:00
bios.py Optional indirection API use 2025-08-18 09:53:11 -07:00
chassis.py Optional indirection API use 2025-08-18 09:53:11 -07:00
conductor.py Merge "Add periodic cleanup of stale conductors" 2025-08-22 19:58:13 +00:00
deploy_template.py Optional indirection API use 2025-08-18 09:53:11 -07:00
deployment.py Add node.instance_name 2025-11-12 13:34:51 +01:00
fields.py Stop using md5 for __repr__ of objects 2020-07-07 15:28:03 +02:00
firmware.py Optional indirection API use 2025-08-18 09:53:11 -07:00
indirection.py Optional indirection API use 2025-08-18 09:53:11 -07:00
inspection_rule.py Optional indirection API use 2025-08-18 09:53:11 -07:00
node.py Add node.instance_name 2025-11-12 13:34:51 +01:00
node_history.py Optional indirection API use 2025-08-18 09:53:11 -07:00
node_inventory.py Optional indirection API use 2025-08-18 09:53:11 -07:00
notification.py driver_internal_info in provision notifications 2020-08-25 18:11:04 +00:00
port.py Add a new 'category' field to the Port object 2025-08-18 21:59:33 -05:00
portgroup.py Add a new 'category' field to the Portgroup object 2025-11-04 12:44:01 -08:00
runbook.py Optional indirection API use 2025-08-18 09:53:11 -07:00
trait.py Reduce the number of RPC calls to traits API 2025-08-25 19:02:43 +02:00
volume_connector.py Optional indirection API use 2025-08-18 09:53:11 -07:00
volume_target.py Optional indirection API use 2025-08-18 09:53:11 -07:00