Skip to content

Commit 6f75198

Browse files
authored
Merge pull request #2110 from rackerlabs/updates-for-netdev
feat(ironic): remove default deploy interface and set it in the workload and update enabled interfaces
2 parents ef9b2e9 + 46597cf commit 6f75198

3 files changed

Lines changed: 15 additions & 12 deletions

File tree

components/ironic/values.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,23 @@ conf:
4848
"baremetal:node:get_console": "((role:member and system_scope:all) or rule:service_role) or (role:service and system_scope:all) or (role:member and project_id:%(node.owner)s) or (role:service and project_id:%(node.owner)s) or (role:member and project_id:%(node.lessee)s)"
4949
ironic:
5050
DEFAULT:
51-
# We only want to default to direct, otherwise defaults interfere with hardware
52-
# types selecting their own defaults. So we purposefully leave the defaults unset
53-
# but enable everything that our Redfish focused (with iDRAC and iLO support)
54-
# systems need
55-
default_deploy_interface: direct
51+
# hardware types we have enabled in ironic
52+
enabled_hardware_types: redfish,idrac,ilo5,ilo,netdev,manual-management
53+
# enabled interfaces for the above hardware types, each hardware type must
54+
# have at least one enabled interface that it reports it supports
5655
enabled_bios_interfaces: no-bios,redfish,idrac-redfish,ilo
57-
enabled_boot_interfaces: http-ipxe,ipxe,redfish-virtual-media,redfish-https,idrac-redfish-virtual-media,ilo-virtual-media,ilo-uefi-https,ilo-ipxe
56+
# remove fake once there is a noop that the ManualManagement uses, which netdev is derived from
57+
enabled_boot_interfaces: http-ipxe,ipxe,redfish-virtual-media,redfish-https,idrac-redfish-virtual-media,ilo-virtual-media,ilo-uefi-https,ilo-ipxe,fake
58+
enabled_console_interfaces: redfish-graphical,no-console
5859
enabled_deploy_interfaces: direct,ramdisk,noop
5960
enabled_firmware_interfaces: redfish,no-firmware
60-
enabled_hardware_types: redfish,idrac,ilo5,ilo,netdev
61-
enabled_inspect_interfaces: redfish,agent,idrac-redfish,ilo
62-
enabled_management_interfaces: ipmitool,redfish,idrac-redfish,ilo,ilo5
61+
enabled_inspect_interfaces: redfish,agent,idrac-redfish,ilo,no-inspect
62+
enabled_management_interfaces: ipmitool,redfish,idrac-redfish,ilo,ilo5,noop
6363
enabled_network_interfaces: noop,neutron
64-
enabled_power_interfaces: redfish,ipmitool,idrac-redfish,ilo
65-
enabled_raid_interfaces: redfish,idrac-redfish,ilo5,agent
66-
enabled_vendor_interfaces: redfish,ipmitool,idrac-redfish,ilo
64+
# remove fake once there is a noop that the ManualManagement uses, which netdev is derived from
65+
enabled_power_interfaces: redfish,ipmitool,idrac-redfish,ilo,fake
66+
enabled_raid_interfaces: redfish,idrac-redfish,ilo5,agent,no-raid
67+
enabled_vendor_interfaces: redfish,ipmitool,idrac-redfish,ilo,no-vendor
6768
# the service account belongs to the service project but our nodes
6869
# will live in the infra domain in the baremetal project so the
6970
# service account needs to have permissions outside of just the

python/understack-workflows/tests/test_enroll_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def test_enrol_happy_path_uses_virtual_media_inspect_and_flips_back(mocker):
266266
"redfish_password": "calvin",
267267
},
268268
boot_interface="http-ipxe",
269+
deploy_interface="direct",
269270
inspect_interface="idrac-redfish",
270271
extra={"external_cmdb_id": "cmdb-1"},
271272
)

python/understack-workflows/understack_workflows/ironic_node.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def create_ironic_node(
151151
"redfish_password": bmc.password,
152152
},
153153
"boot_interface": STEADY_STATE_BOOT_INTERFACE,
154+
"deploy_interface": "direct",
154155
"inspect_interface": inspect_interface,
155156
}
156157
if external_cmdb_id:

0 commit comments

Comments
 (0)