Skip to content

Commit ea55fc3

Browse files
author
rocky Cloud User
committed
editing playbooks and config
1 parent 6f7e510 commit ea55fc3

File tree

9 files changed

+90
-10
lines changed

9 files changed

+90
-10
lines changed

etc/kayobe/environments/ci-aio/controllers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
# User with which to access the controllers via SSH during bootstrap, in order
66
# to setup the Kayobe user account. Default is {{ os_distribution }}.
7-
controller_bootstrap_user: "{{ os_distribution if os_distribution == 'ubuntu' else 'cloud-user' }}"
7+
#controller_bootstrap_user: "{{ os_distribution if os_distribution == 'ubuntu' else 'cloud-user' }}"
8+
controller_bootstrap_user: 'rocky'
89

910
controller_extra_network_interfaces:
1011
- ethernet
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22

3-
stackhpc_enable_cis_benchmark_hardening_hook: true
3+
stackhpc_enable_cis_benchmark_hardening_hook: false

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-1-check-bmc-up.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
- name: Check BMC is up
5454
ansible.builtin.uri:
55-
url: "https://{{ ironic_driver_info['redfish_address'] }}"
55+
url: "{{ ironic_driver_info['redfish_address'] + '/redfish/v1' }}"
5656
method: GET
5757
status_code: 200
5858
validate_certs: false

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-2-ensure-redfish-inspect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
- name: Check BMC is up
3636
ansible.builtin.uri:
37-
url: "https://{{ ironic_driver_info['redfish_address'] }}"
37+
url: "{{ ironic_driver_info['redfish_address'] + '/redfish/v1' }}"
3838
method: GET
3939
status_code: 200
4040
validate_certs: false

etc/kayobe/environments/stackhpc-baremetal/ansible/baremetal-3-ensure-agent-inspect.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- baremetal
1212
vars:
1313
venv: "{{ virtualenv_path }}/openstack-cli"
14-
controller_host: localhost
14+
controller_host: controller0
1515

1616
tasks:
1717
- name: Show and check baremetal node
@@ -34,7 +34,7 @@
3434

3535
- name: Check BMC is up
3636
ansible.builtin.uri:
37-
url: "https://{{ ironic_driver_info['redfish_address'] }}"
37+
url: "{{ ironic_driver_info['redfish_address'] + '/redfish/v1' }}"
3838
method: GET
3939
status_code: 200
4040
validate_certs: false
@@ -108,7 +108,6 @@
108108
cacert: "{{ openstack_cacert | default(omit, true) }}"
109109
interface: "{{ openstack_interface | default(omit, true) }}"
110110
register: bmport
111-
delegate_to: localhost
112111
when: kayobe_agent_inspect_done == ""
113112

114113
- name: Disable PXE on all baremetal ports

etc/kayobe/environments/stackhpc-baremetal/inventory/group_vars/baremetal-redfish/ironic

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@ ironic_driver: redfish
44

55
ironic_driver_info:
66
redfish_system_id: "{{ ironic_redfish_system_id }}"
7-
redfish_address: "{{ ironic_redfish_address }}"
7+
redfish_address: "http://192.168.33.3:34343"
88
redfish_username: "{{ ironic_redfish_username }}"
99
redfish_password: "{{ ironic_redfish_password }}"
1010
redfish_verify_ca: "{{ ironic_redfish_verify_ca }}"
1111

1212
ironic_redfish_verify_ca: false
13-
ironic_redfish_address: "{{ redfish_address | default('') }}"
13+
ironic_redfish_address: "{{ redfish_address }}"
1414
ironic_redfish_system_id:
1515
ironic_redfish_username: "{{ secrets_redfish_baremetal_username | default('') }}"
1616
ironic_redfish_password: "{{ secrets_redfish_baremetal_password | default('') }}"
1717
ironic_resource_class: "example_resource_class"
1818
ironic_capabilities: "boot_option:local,boot_mode:uefi"
19+
ironic_properties: {}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
3+
kolla_enable_ironic: true
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{% raw %}
2+
{% set internal_net_ip = (internal_net_ips).get(inventory_hostname) %}
3+
4+
[DEFAULT]
5+
# avoid checksum issues, do convert on deploy node
6+
force_raw_images = false
7+
# Avoid some timeouts of heartbeats and vif deletes
8+
rpc_response_timeout = 360
9+
10+
[conductor]
11+
automated_clean = true
12+
bootloader = file:///var/lib/ironic/httpboot/esp.img
13+
deploy_kernel = file:///var/lib/ironic/httpboot/ironic-agent.kernel
14+
deploy_ramdisk = file:///var/lib/ironic/httpboot/ironic-agent.initramfs
15+
16+
# We have busy conductors failing to heartbeat
17+
# Default is 10 secs
18+
heartbeat_interval = 30
19+
# Default is 60 seconds
20+
heartbeat_timeout = 360
21+
sync_local_state_interval = 360
22+
23+
# Normally this is 100. We see eventlet threads
24+
# not making much progress, to for saftey reduce
25+
# this by half, should leave work on rabbit queu
26+
workers_pool_size = 50
27+
# Normally this is 8, keep it same
28+
period_max_workers = 8
29+
30+
# Increase power sync interval to reduce load
31+
sync_power_state_interval = 120
32+
power_failure_recovery_interval = 120
33+
# Stop checking for orphan allocations for now
34+
check_allocations_interval = 120
35+
36+
# Wait much longer before provision timeout check, to reduce background load
37+
# The default is 60 seconds
38+
check_provision_state_interval = 120
39+
check_rescue_state_interval = 120
40+
41+
[database]
42+
# Usually this is 50, reduce to stop DB connection timeouts
43+
# and instead just make eventlet threads wait a bit longer
44+
max_overflow = 5
45+
# By default this is 30 seconds, but as we reduce
46+
# the pool overflow, some people will need to wait longer
47+
pool_timeout = 60
48+
49+
[neutron]
50+
# Increase the neutron client timeout to allow for the slow management
51+
# switches.
52+
timeout = 300
53+
request_timeout = 300
54+
55+
[glance]
56+
# Retry image download at least once if failure
57+
num_retries = 1
58+
59+
[neutron]
60+
inspection_network = "{{ inspection_net_name | default('inspect-net' )}}"
61+
62+
[redfish]
63+
kernel_append_params = nofb nomodeset vga=normal console=tty0 console=ttyS0,115200n8 ipa-insecure=1 {% if internal_net_ip %}ipa-ntp-server={{ internal_net_ip }}{% endif %}
64+
65+
[inspector]
66+
extra_kernel_params = ipa-collect-lldp=1 ipa-inspection-collectors=default,logs,pci-devices ipa-insecure=1
67+
hooks = ramdisk-error,validate-interfaces,ports,local-link-connection,parse-lldp,root-device,cpu-capabilities,architecture
68+
add_ports = all
69+
70+
[pxe]
71+
# 100GB size 4 weeks ttl
72+
image_cache_size = 95367
73+
image_cache_ttl = 40320
74+
{% endraw %}

etc/kayobe/environments/stackhpc-sushy-baremetal/inventory/group_vars/sushy-libvirt/ironic

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
bikolla_enable_secureboot: false
44

5-
ironic_redfish_system_id: "{{ inventory_hostname | to_uuid }}"
5+
ironic_redfish_system_id: "{{ '/redfish/v1/Systems/' + inventory_hostname | to_uuid }}"
66

77
redifsh_address: "http://192.168.33.3:34343"
8+
ironic_redfish_address: "192.168.33.3:34343"
9+
ironic_flat_provisioning_network: provision-net

0 commit comments

Comments
 (0)