Skip to content

Sync caracal antelope #1235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4dc1926
Stop changing permissions on files on Rocky 9
markgoddard Jul 22, 2024
09d226c
Stop changing permissions on files (#1119)
jovial Jul 12, 2024
67530fd
Merge pull request #1189 from stackhpc/zed-yoga-merge
markgoddard Jul 24, 2024
376928e
CI: Allow logging of Rally/Tempest
markgoddard Sep 14, 2023
1a1210c
Merge pull request #1193 from stackhpc/rally-logging
priteau Jul 24, 2024
d750747
Fix CVE-2024-40767
priteau Jul 24, 2024
5b1f040
CI: Bump AIO root volume size to 40GB
m-bull Jul 24, 2024
cdfad6a
Merge pull request #1195 from stackhpc/yoga-bump=aio-disk
markgoddard Jul 24, 2024
41812df
Merge branch 'stackhpc/yoga' into yoga-ossa-2024-002
m-bull Jul 24, 2024
e25cc4c
Merge pull request #1191 from stackhpc/yoga-ossa-2024-002
priteau Jul 24, 2024
97c3d43
Build nova from our fork
priteau Jul 25, 2024
41936eb
Merge pull request #1200 from stackhpc/zed-nova
markgoddard Jul 25, 2024
4fb938c
Prevent hanging before reboot on systems running molly-guard
markgoddard Aug 5, 2024
382f735
Add reboot timeout to reboot playbook
markgoddard Aug 5, 2024
9b9971d
Merge pull request #1209 from stackhpc/yoga-molly-guard
markgoddard Aug 5, 2024
adfb56a
Add ceph-{enter,exit}-maintenance.yml playbooks
markgoddard Aug 8, 2024
f8ed8c1
Merge pull request #1180 from stackhpc/yoga-backports
markgoddard Aug 9, 2024
d1c589b
CIS: Remove always tag from include_role tasks
markgoddard Aug 9, 2024
e58e4b6
Make linter happy
Alex-Welsh Aug 13, 2024
be31d10
Add RabbitMQ Quorum queue migration playbook
Alex-Welsh Aug 13, 2024
4e5e88d
Explicitly set RabbitMQ queue types in AIO
Alex-Welsh Aug 14, 2024
acc08a3
Allow reboot playbook to run with bootstrap user
Alex-Welsh Aug 12, 2024
2f7f5f9
Fixing wazuh password generation.
grzegorzkoper Aug 14, 2024
2aa9d60
Merge pull request #1220 from stackhpc/yoga-cis-no-always
markgoddard Aug 16, 2024
ad8aa2a
Fix rabbit migration playbook
Alex-Welsh Aug 15, 2024
d76ba77
Merge pull request #1221 from stackhpc/reboot
markgoddard Aug 16, 2024
c35a1d2
Merge pull request #1227 from stackhpc/wazuh_password_gen_fix
markgoddard Aug 16, 2024
b468bbe
Merge pull request #1225 from stackhpc/make-linter-happy
markgoddard Aug 16, 2024
07fdce6
Merge stackhpc/yoga into stackhpc/zed
markgoddard Aug 16, 2024
b300dd1
Merge stackhpc/zed into stackhpc/2023.1
markgoddard Aug 16, 2024
f30b309
Merge pull request #1230 from stackhpc/2023.1-zed-merge
markgoddard Aug 16, 2024
eedc6fa
Refactor RabbitMQ migration playbook into script
Alex-Welsh Aug 16, 2024
5c5afa4
Merge branch 'stackhpc/2023.1' into rabbit-upgrade
Alex-Welsh Aug 19, 2024
9cfefa6
Address RabbitMQ quorum PR nits
Alex-Welsh Aug 20, 2024
dcea903
Merge pull request #1219 from stackhpc/2023.1-ceph-maintenance
markgoddard Aug 20, 2024
6281412
Merge pull request #1224 from stackhpc/rabbit-upgrade
Alex-Welsh Aug 20, 2024
fa2995e
Merge remote-tracking branch 'origin/stackhpc/2023.1' into sync-carac…
Alex-Welsh Aug 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/source/operations/upgrading-ceph.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Place the host or batch of hosts into maintenance mode:

.. code-block:: console

sudo cephadm shell -- ceph orch host maintenance enter <host>
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/ceph-enter-maintenance.yml -l <host>

To update all eligible packages, use ``*``, escaping if necessary:

Expand All @@ -72,7 +72,8 @@ To update all eligible packages, use ``*``, escaping if necessary:
kayobe overcloud host package update --packages "*" --limit <host>

If the kernel has been upgraded, reboot the host or batch of hosts to pick up
the change:
the change. While running this playbook, consider setting ``ANSIBLE_SERIAL`` to
the maximum number of hosts that can safely reboot concurrently.

.. code-block:: console

Expand All @@ -82,7 +83,7 @@ Remove the host or batch of hosts from maintenance mode:

.. code-block:: console

sudo cephadm shell -- ceph orch host maintenance exit <host>
kayobe playbook run $KAYOBE_CONFIG_PATH/ansible/ceph-exit-maintenance.yml -l <host>

Wait for Ceph health to return to ``HEALTH_OK``:

Expand Down
13 changes: 13 additions & 0 deletions etc/kayobe/ansible/ceph-enter-maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
- name: Ensure a Ceph host has entered maintenance
gather_facts: true
any_errors_fatal: true
# We need to check whether it is OK to stop hosts after previous hosts have
# entered maintenance.
serial: 1
hosts: ceph
become: true
tasks:
- name: Ensure a Ceph host has entered maintenance
ansible.builtin.import_role:
name: stackhpc.cephadm.enter_maintenance
12 changes: 12 additions & 0 deletions etc/kayobe/ansible/ceph-exit-maintenance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
- name: Ensure a Ceph host has exited maintenance
gather_facts: true
any_errors_fatal: true
hosts: ceph
# The role currently requires hosts to exit maintenance serially.
serial: 1
become: true
tasks:
- name: Ensure a Ceph host has exited maintenance
ansible.builtin.import_role:
name: stackhpc.cephadm.exit_maintenance
2 changes: 0 additions & 2 deletions etc/kayobe/ansible/cis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@
- include_role:
name: ansible-lockdown.rhel9_cis
when: ansible_facts.os_family == 'RedHat' and ansible_facts.distribution_major_version == '9'
tags: always

- include_role:
name: ansible-lockdown.ubuntu22_cis
when: ansible_facts.distribution == 'Ubuntu' and ansible_facts.distribution_major_version == '22'
tags: always
1 change: 1 addition & 0 deletions etc/kayobe/ansible/prometheus-network-names.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
- name: Prometheus friendly network names
hosts: overcloud
gather_facts: no
Expand Down
17 changes: 17 additions & 0 deletions etc/kayobe/ansible/reboot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,26 @@
- name: Reboot the host
hosts: seed-hypervisor:seed:overcloud:infra-vms
serial: "{{ lookup('env', 'ANSIBLE_SERIAL') | default(1, true) }}"
gather_facts: false
vars:
reboot_timeout_s: "{{ 20 * 60 }}"
reboot_with_bootstrap_user: false
ansible_user: "{{ bootstrap_user if reboot_with_bootstrap_user | bool else kayobe_ansible_user }}"
ansible_ssh_common_args: "{{ '-o StrictHostKeyChecking=no' if reboot_with_bootstrap_user | bool else '' }}"
ansible_python_interpreter: "/usr/bin/python3"
tags:
- reboot
tasks:
- name: Reboot and wait
become: true
reboot:
reboot_timeout: "{{ reboot_timeout_s }}"
search_paths:
# Systems running molly-guard hang waiting for confirmation before rebooting without this.
- "/lib/molly-guard"
# Default list:
- "/sbin"
- "/bin"
- "/usr/sbin"
- "/usr/bin"
- "/usr/local/sbin"
2 changes: 1 addition & 1 deletion etc/kayobe/ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
collections:
- name: stackhpc.cephadm
version: 1.15.1
version: 1.18.0
# NOTE: Pinning pulp.squeezer to 0.0.13 because 0.0.14+ depends on the
# pulp_glue Python library being installed.
- name: pulp.squeezer
Expand Down
2 changes: 1 addition & 1 deletion etc/kayobe/ansible/stackhpc-openstack-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
depth: 1
single_branch: true

- name: Ensure the latest versions of pip and setuptools are installed # noqa package-latest
- name: Ensure the latest versions of pip and setuptools are installed # noqa package-latest
ansible.builtin.pip:
name: "{{ item.name }}"
state: latest
Expand Down
2 changes: 1 addition & 1 deletion etc/kayobe/ansible/templates/wazuh-secrets.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ secrets_wazuh:
# Strengthen default wazuh api user pass
wazuh_api_users:
- username: "wazuh"
password: "{{ secrets_wazuh.wazuh_api_users[0].password | default(lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1, length=30)) }}"
password: "{{ secrets_wazuh.wazuh_api_users[0].password | default(lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1, length=30, override_special=override_special_characters)) }}"
# OpenSearch 'admin' user pass
opendistro_admin_password: "{{ secrets_wazuh.opendistro_admin_password | default(lookup('password', '/dev/null'), true) }}"
# OpenSearch 'kibanaserver' user pass
Expand Down
18 changes: 18 additions & 0 deletions etc/kayobe/ansible/ubuntu-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
reboot:
reboot_timeout: "{{ reboot_timeout_s }}"
connect_timeout: 600
search_paths:
# Systems running molly-guard hang waiting for confirmation before rebooting without this.
- "/lib/molly-guard"
# Default list:
- "/sbin"
- "/bin"
- "/usr/sbin"
- "/usr/bin"
- "/usr/local/sbin"
become: true
when: file_status.stat.exists

Expand Down Expand Up @@ -101,6 +110,15 @@
reboot:
reboot_timeout: "{{ reboot_timeout_s }}"
connect_timeout: 600
search_paths:
# Systems running molly-guard hang waiting for confirmation before rebooting without this.
- "/lib/molly-guard"
# Default list:
- "/sbin"
- "/bin"
- "/usr/sbin"
- "/usr/bin"
- "/usr/local/sbin"
become: true

- name: Update distribution facts
Expand Down
1 change: 1 addition & 0 deletions etc/kayobe/ansible/wazuh-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
gather_facts: false
vars:
wazuh_secrets_path: "{{ kayobe_env_config_path }}/wazuh-secrets.yml"
override_special_characters: '"#$%&()*+,-./:;<=>?@[\]^_{|}~'
tasks:
- name: install passlib[bcrypt]
pip:
Expand Down
15 changes: 15 additions & 0 deletions releasenotes/notes/ceph-maintenance-4c4eb0a4f7149665.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
features:
- |
Adds two new custom playbooks for placing Ceph hosts into and removing them
from maintenance:

- ``ceph-enter-maintenance.yml``
- ``ceph-exit-maintenance.yml``
upgrade:
- |
Updates the ``stackhpc.cephadm`` collection to version ``1.18.0``.
fixes:
- |
Fixes an issue with idempotency in the ``stackhpc.ceph.cephadm_keys``
plugin.
2 changes: 1 addition & 1 deletion terraform/aio/vm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ variable "aio_vm_subnet" {

variable "aio_vm_volume_size" {
type = number
default = 35
default = 40
}

variable "aio_vm_tags" {
Expand Down
Loading