LLDP information inclusion

Registered by YHVH

Allow collected LLDP information of the network architecture to be added to the node port.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
YHVH
Direction:
Needs approval
Assignee:
None
Definition:
Drafting
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Problem description
At the moment there is little support for servers not on a flat network. In order to make needed information available for such support in the future, we need a way to provide information about the network architecture being used by the server.

Proposed Change
The ironic inspector ought to provide a plugin that will collect additional information from the discovery image and send these to the ironic node’s port in order to be available for use by other drivers within ironic.
You would create a ramdisk within diskimage-builder using the net-infrastructure element. This builds off of the existing discovery element, but then installs and runs lldpad, collecting the following information:

TLV Name, Ramdisk Name, Example Value
Port ID, Chassis_intf, Ethernet6/17
Chassis ID, Chassis_id, 00:1c:73:3c:e1:ec
System Name, Sys_name, Ni100c1s1x

The names given within the ramdisk are specific and are used in the inspector plugin to collect this information from data.json, in the same manner as the other hardware information about the baremetal server.
Once the plugin receives the network information, it will update the ironic ports extra property and add the network information here.
Note: You need to add the plugin to ironic-inspector.conf as well as add the path to ironic_inspector’s entry_points.txt

Projects
Openstack/ironic-inspector
Openstack/diskimage-builder

Work Items
- Make the ironic-inspector plugin to add collected information to extra property within the ironic port
- Provide unit test for plugin
- Create element within diskimage-builder to create a ramdisk with the capability to provide the LLDP information.
- Provide functionality test under devstack folder of openstack/ironic-inspector.

Dependencies
The plugin must be used in conjunction with the ramdisk, as the values are given specific names and will cause error if not present or incorrect. If another ramdisk is to be used, disable the plugin.

Implemented by:
ironic-inspector: https://review.openstack.org/#/c/241242/
Diskimagebuilder: https://review.openstack.org/#/c/243695/

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.