Skip to content

Commit 7211d17

Browse files
committed
Post-review changes 2
1 parent 97ef7e1 commit 7211d17

File tree

5 files changed

+35
-19
lines changed

5 files changed

+35
-19
lines changed

doc/source/configuration/firewall.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,15 @@ sets exist for the following groups:
3939
* Ansible Control host Infrastructure VM - ``stackhpc_ansible_control_infra_vm_firewalld_rules``
4040
* Seed - ``stackhpc_seed_firewalld_rules``
4141
* Seed Hypervisor - ``stackhpc_seed_hypervisor_firewalld_rules``
42+
43+
The ``kayobe configuration dump`` command can be used to view all the rules
44+
that will be applied to a host.
45+
46+
.. code-block:: bash
47+
48+
kayobe configuration dump --var-name stackhpc_firewalld_rules --limit <host>
49+
50+
If the command above prints a template, rather than a clean list of rules, the
51+
configuration is invalid. The kayobe configuration dump command can be used on
52+
other variables such as ``stackhpc_firewalld_rules_unverified`` or
53+
``stackhpc_*_firewalld_rules`` to debug the configuration.

etc/kayobe/environments/ci-aio/kolla/globals.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ opensearch_heap_size: 200m
1414

1515
# Increase Grafana timeout
1616
grafana_start_first_node_retries: 20
17+
18+
# Open up ports in firewalld for services on the public API network.
19+
enable_external_api_firewalld: true

etc/kayobe/environments/ci-multinode/kolla/globals.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ designate_ns_record:
4444
designate_backend: "bind9"
4545
designate_recursion: "yes"
4646
designate_forwarders_addresses: "1.1.1.1; 8.8.8.8"
47+
48+
# Open up ports in firewalld for services on the public API network.
49+
enable_external_api_firewalld: true

etc/kayobe/inventory/group_vars/all/firewall

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ stackhpc_controller_firewalld_rules_template:
8989
- service: ssh
9090
network: "{{ public_net_name }}"
9191
state: disabled
92-
enabled: "{{ public_net_name | net_zone != provision_oc_net_name | net_zone }}"
92+
enabled: "{{ public_net_name | net_zone != admin_oc_net_name | net_zone }}"
9393
# Designate
9494
- rules:
9595
- port: 53/tcp
@@ -128,7 +128,7 @@ stackhpc_controller_firewalld_rules_template:
128128
- port: 8089/tcp
129129
network: "{{ provision_wl_net_name }}"
130130
state: enabled
131-
enabled: "{{ kolla_enable_octavia | bool }}"
131+
enabled: "{{ kolla_enable_ironic | bool }}"
132132

133133
stackhpc_controller_firewalld_rules_extra: []
134134

@@ -164,7 +164,7 @@ stackhpc_compute_firewalld_rules_template:
164164
- service: ssh
165165
network: "{{ public_net_name }}"
166166
state: disabled
167-
enabled: "{{ public_net_name | net_zone != provision_oc_net_name | net_zone }}"
167+
enabled: "{{ public_net_name | net_zone != admin_oc_net_name | net_zone }}"
168168
# GENEVE
169169
- rules:
170170
- port: 6081/udp
@@ -204,24 +204,25 @@ stackhpc_storage_firewalld_rules_template:
204204
- service: ssh
205205
network: "{{ admin_oc_net_name }}"
206206
state: enabled
207+
enabled: true
208+
# Ceph Prometheus exporter
209+
- rules:
207210
- port: 9283/tcp
208211
network: "{{ provision_oc_net_name }}"
209212
state: enabled
210-
enabled: true
211-
- rules:
212-
- service: ssh
213-
network: "{{ storage_net_name }}"
214-
state: disabled
215-
enabled: "{{ storage_net_name | net_zone != provision_oc_net_name | net_zone }}"
213+
enabled: "{{ kolla_enable_prometheus_ceph_mgr_exporter and 'mgrs' in group_names }}"
216214
# Ceph
217215
- rules:
218216
- service: ceph
219217
network: "{{ storage_net_name }}"
220218
state: enabled
219+
- service: ceph
220+
network: "{{ storage_mgmt_net_name }}"
221+
state: enabled
221222
- service: ceph-mon
222223
network: "{{ storage_net_name }}"
223224
state: "{{ 'enabled' if 'mons' in group_names else 'disabled' }}"
224-
enabled: "{{ stackhpc_enable_ceph | default(false) | bool }}"
225+
enabled: "{{ 'ceph' in group_names }}"
225226

226227
stackhpc_storage_firewalld_rules_extra: []
227228

@@ -369,14 +370,10 @@ stackhpc_seed_firewalld_rules_template:
369370
- service: ssh
370371
state: disabled
371372
network: "{{ public_net_name }}"
372-
enabled: "{{ public_net_name | net_zone != provision_oc_net_name | net_zone }}"
373+
enabled: "{{ public_net_name | net_zone != admin_oc_net_name | net_zone }}"
373374
# Pulp server
374375
- rules:
375-
- service: http
376-
network: "{{ provision_oc_net_name }}"
377-
state: enabled
378-
# nginx
379-
- port: 8080/tcp
376+
- service: "{{ pulp_port }}/tcp"
380377
network: "{{ provision_oc_net_name }}"
381378
state: enabled
382379
enabled: "{{ seed_pulp_container_enabled | bool }}"
@@ -388,6 +385,10 @@ stackhpc_seed_firewalld_rules_template:
388385
enabled: "{{ seed_squid_container_enabled | bool }}"
389386
# Ironic
390387
- rules:
388+
# nginx
389+
- port: 8080/tcp
390+
network: "{{ provision_oc_net_name }}"
391+
state: enabled
391392
# Ironic inspector API
392393
- port: 5050/tcp
393394
network: "{{ provision_oc_net_name }}"

etc/kayobe/kolla/globals.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,3 @@ prometheus_instance_label: "{% raw %}{{ ansible_facts.hostname }}{% endraw %}"
5353
# in Yoga. This is required to include a valid value for the flavor_id label on
5454
# openstack_nova_server_status metrics.
5555
prometheus_openstack_exporter_compute_api_version: "2.1"
56-
57-
# Open up ports in firewalld for services on the public API network.
58-
enable_external_api_firewalld: true

0 commit comments

Comments
 (0)