Skip to content

Commit

Permalink
Prepare ironic deployment (pt. 2)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt committed Mar 17, 2024
1 parent be9e654 commit 9ea1181
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 12 deletions.
20 changes: 13 additions & 7 deletions environments/kolla/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,25 @@ openstack_service_workers: 2
libvirt_enable_sasl: "no"

# ironic
# ironic_dnsmasq_interface: "eno2"
# ironic_cleaning_network: "public"
# ironic_dnsmasq_dhcp_ranges:
# - range: "192.168.88.100,192.168.88.110"
# routers: "192.168.88.1"
ironic_cleaning_network: "public"

# No DNS is usable in the introspect network
ironic_inspector_internal_endpoint: https://192.168.16.254:5050
ironic_dnsmasq_dhcp_ranges:
- range: "192.168.17.100,192.168.17.110"
routers: "192.168.17.10"

# No trusted CA is used in the Cloud in a box
ironic_inspector_kernel_cmdline_extras:
- ipa-insecure=True

# neutron
neutron_plugin_agent: ovn
neutron_ovn_availability_zones:
- nova

# NOTE: Disable the debugging logs for Libvirt as Libvirt writes a lot of logs
# that are not of interest.
# We disable the debugging logs for Libvirt as Libvirt writes a lot of logs
# that are not of interest.
nova_libvirt_logging_debug: "no"

# nova
Expand Down
16 changes: 16 additions & 0 deletions environments/kolla/files/overlays/ironic.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[DEFAULT]

# DOCS: https://docs.openstack.org/ironic/latest/install/enabling-drivers.html
# ALL TYPES: https://opendev.org/openstack/ironic/src/branch/master/setup.cfg

enabled_hardware_types = ipmi,redfish
enabled_boot_interfaces = ipxe,redfish-virtual-media
enabled_console_interfaces = ipmitool-socat,no-console
enabled_deploy_interfaces = direct,ansible
enabled_inspect_interfaces = inspector,redfish,no-inspect
enabled_management_interfaces = ipmitool,redfish
enabled_network_interfaces = flat,neutron
enabled_power_interfaces = ipmitool,redfish
enabled_raid_interfaces = no-raid,redfish
enabled_storage_interfaces = cinder,noop
enabled_vendor_interfaces = ipmitool,no-vendor
1 change: 0 additions & 1 deletion environments/openstack/playbook-bootstrap-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
name: subnet-public
network_name: public
cidr: 192.168.112.0/24
enable_dhcp: false
allocation_pool_start: 192.168.112.100
allocation_pool_end: 192.168.112.200
gateway_ip: 192.168.112.10
Expand Down
1 change: 0 additions & 1 deletion environments/openstack/playbook-bootstrap-sandbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
name: subnet-public
network_name: public
cidr: 192.168.112.0/24
enable_dhcp: false
allocation_pool_start: 192.168.112.100
allocation_pool_end: 192.168.112.200
gateway_ip: 192.168.112.10
Expand Down
2 changes: 2 additions & 0 deletions inventory/group_vars/generic/kolla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
network_interface: "{{ network_internal_interface }}"
neutron_external_interface: "{{ network_workload_interface }}"
tunnel_interface: "{{ network_internal_interface }}"

ironic_dnsmasq_interface: "{{ network_metal_interface }}"
16 changes: 13 additions & 3 deletions inventory/group_vars/generic/network.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
---
##########################################################
# network
# The network_*_interface parameters are only used within the
# Cloud in a Box inventory for simplification.

network_internal_interface: vlan100
network_mgmt_interface: eno1

network_internal_interface: vlan100
network_workload_interface: vlan101
network_metal_interface: vlan102

##########################################################
# network

network_type: netplan

Expand All @@ -21,6 +26,11 @@ network_vlans:
vlan101:
id: 101
link: "{{ network_mgmt_interface }}"
vlan102:
id: 102
link: "{{ network_mgmt_interface }}"
addresses:
- "192.168.17.{{ node_id }}/24"

network_dispatcher_scripts:
- src: /opt/configuration/environments/manager/files/osism.sh
Expand Down

0 comments on commit 9ea1181

Please sign in to comment.