Skip to content

Commit

Permalink
use swift backend for inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
msherman64 committed Nov 11, 2024
1 parent 8c91220 commit 23c1486
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
2 changes: 2 additions & 0 deletions kolla/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ encoded_ironic_pxe_root_password: "{{ ironic_pxe_root_password | password_hash('
ironic_kernel_append_params: nofb vga=normal console=tty0 console=ttyS0,{{ ironic_console_serial_speed }} rootpwd="{{ encoded_ironic_pxe_root_password }}"
ironic_erase_devices_metadata_during_deploy: false

ironic_inspector_store: database

# settings for ironic inspector

# don't run standalone, always depend on glance+neutron+ironic.
Expand Down
25 changes: 23 additions & 2 deletions kolla/node_custom_config/ironic-inspector.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ update_pxe_enabled = true
# The storage backend for storing introspection data. Possible values
# are: 'none', 'database' and 'swift'. If set to 'none', introspection
# data will not be stored. (string value)
store_data = database
store_data = "{{ ironic_inspector_store }}"

# https://docs.openstack.org/ironic-inspector/2023.1/configuration/ironic-inspector.html#processing.processing_hooks
# for choices, see https://docs.openstack.org/ironic-inspector/2023.1/user/usage.html#plugins
Expand All @@ -34,4 +34,25 @@ processing_hooks = $default_processing_hooks,extra_hardware,lldp_basic,accelerat

[capabilities]
# Whether to store the boot mode (BIOS or UEFI).
boot_mode = true
boot_mode = true

{% if ironic_inspector_store == "swift" %}
[swift]
auth_url = {{ keystone_internal_url }}
auth_type = password
project_domain_id = {{ default_project_domain_id }}
user_domain_id = {{ default_user_domain_id }}
project_name = service
username = {{ ironic_inspector_keystone_user }}
password = {{ ironic_inspector_keystone_password }}
valid_interfaces = internal
region_name = {{ openstack_region_name }}

# Default Swift container to use when creating objects. (string value)
container = ironic-inspector

# Number of seconds that the Swift object will last before being
# deleted. (set to 0 to never delete the object). (integer value)
#delete_after = 0

{% endif %}
2 changes: 1 addition & 1 deletion kolla/node_custom_config/ironic.conf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ erase_devices_metadata_during_deploy = True
require_managed_boot = True
# passed to ironic-python-agent, see :
# https://docs.openstack.org/ironic-python-agent/latest/admin/how_it_works.html#inspection
extra_kernel_params = "ipa-inspection-collectors=default,pci-devices,dmi-decode,numa-topology,logs ipa-collect-lldp=1"
extra_kernel_params = "ipa-inspection-collectors=default,pci-devices,dmi-decode,numa-topology,extra-hardware,logs ipa-collect-lldp=1"

[neutron]
cleaning_network = "{{ ironic_cleaning_network }}"
Expand Down

0 comments on commit 23c1486

Please sign in to comment.