Skip to content

Commit

Permalink
Merge pull request #201 from stackhpc/upstream/yoga-2023-11-13
Browse files Browse the repository at this point in the history
Synchronise yoga with upstream
  • Loading branch information
markgoddard authored Nov 14, 2023
2 parents 8962018 + 89994fe commit d7b3e87
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ansible/group_vars/all/overcloud-dib
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ overcloud_dib_os_release: "{{ os_release }}"
overcloud_dib_elements_default:
- "{{ overcloud_dib_os_element }}"
- "cloud-init-datasources"
- "{% if overcloud_dib_os_element in ['centos', 'rocky'] %}disable-selinux{% endif %}"
- "{% if os_distribution in ['centos', 'rocky'] %}disable-selinux{% endif %}"
- "enable-serial-console"
- "vm"

Expand Down
4 changes: 4 additions & 0 deletions ansible/group_vars/all/seed
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ seed_users: "{{ users_default }}"
#
seed_containers: {}

# Whether to attempt a basic authentication login to a registry when
# deploying seed containers
seed_deploy_containers_registry_attempt_login: "{{ kolla_docker_registry_username is truthy and kolla_docker_registry_password is truthy }}"

###############################################################################
# Seed node firewalld configuration.

Expand Down
7 changes: 7 additions & 0 deletions ansible/group_vars/seed/docker-registry
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
###############################################################################
# Seed node docker regsitry configuration.

# Whether to attempt a basic authentication login to a registry when
# deploying seed containers
deploy_containers_registry_attempt_login: "{{ seed_deploy_containers_registry_attempt_login }}"
4 changes: 4 additions & 0 deletions ansible/roles/apt/tasks/keys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
mode: 0644
loop: "{{ apt_keys }}"
become: true
register: result
until: result is successful
retries: 3
delay: 5
4 changes: 4 additions & 0 deletions ansible/roles/dell-switch-bmp/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
notify:
- Copy Dell switch BMP images
become: True
register: result
until: result is successful
retries: 3
delay: 5
7 changes: 7 additions & 0 deletions ansible/roles/image-download/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
url: "{{ image_download_checksum_url }}"
return_content: true
register: expected_checksum
until: expected_checksum is successful
retries: 3
delay: 5
when:
- image_download_checksum_url is not none
- image_download_checksum_url != ""
Expand All @@ -29,6 +32,10 @@
# Always download the image if we have no checksum to compare with.
force: "{{ expected_checksum is skipped }}"
backup: true
register: result
until: result is successful
retries: 3
delay: 5
when:
- image_download_url is not none
- image_download_url != ""
Expand Down
16 changes: 8 additions & 8 deletions dev/functions
Original file line number Diff line number Diff line change
Expand Up @@ -233,17 +233,22 @@ function upgrade_kayobe_venv {

function is_deploy_image_built_locally {
ipa_build_images=$(kayobe configuration dump --host controllers[0] --var-name ipa_build_images)
[[ $ipa_build_images =~ ^true$ ]]
to_bool "$ipa_build_images"
}

function is_ironic_enabled {
ironic_enabled=$(kayobe configuration dump --host controllers[0] --var-name kolla_enable_ironic)
[[ $ironic_enabled =~ ^true$ ]]
to_bool "$ironic_enabled"
}

function is_overcloud_host_image_built_by_dib {
overcloud_dib_build_host_images=$(kayobe configuration dump --host controllers[0] --var-name overcloud_dib_build_host_images)
[[ $overcloud_dib_build_host_images =~ ^true$ ]]
to_bool "$overcloud_dib_build_host_images"
}

function is_cinder_enabled {
flag="$(run_kayobe configuration dump --host controllers[0] --var-name kolla_enable_cinder)"
to_bool "$flag"
}

function environment_setup {
Expand Down Expand Up @@ -862,11 +867,6 @@ function to_bool {
fi
}

function is_cinder_enabled {
flag="$(run_kayobe configuration dump --host controllers[0] --var-name kolla_enable_cinder)"
to_bool "$flag"
}

function configure_iptables {
# NOTE(wszumski): adapted from the ironic devstack plugin, see:
# https://github.com/openstack/ironic/blob/36e87dc5b472d79470b783fbba9ce396e3cbb96e/devstack/lib/ironic#L2132
Expand Down
4 changes: 2 additions & 2 deletions doc/source/configuration/reference/seed-custom-containers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ custom seed container. In this case, basic authentication login attempts can be
disabled by setting

.. code-block:: yaml
:caption: ``kolla.yml``
:caption: ``seed.yml``
deploy_containers_registry_attempt_login: false
seed_deploy_containers_registry_attempt_login: false
Without this setting, the login will fail because the registry has not yet been
deployed.
Expand Down
4 changes: 4 additions & 0 deletions etc/kayobe/seed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
#
#seed_containers:

# Whether to attempt a basic authentication login to a registry when
# deploying seed containers
#seed_deploy_containers_registry_attempt_login:

###############################################################################
# Seed node firewalld configuration.

Expand Down
2 changes: 1 addition & 1 deletion kayobe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _get_base_path():
return os.path.join(prefix, "share", "kayobe")

# Assume uninstalled
return os.path.join(os.path.realpath(__file__), "..")
return os.path.join(os.path.dirname(os.path.realpath(__file__)), "..")


def galaxy_role_install(role_file, roles_path, force=False):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
fixes:
- |
Adds missing ``disable-selinux`` element when building Rocky Linux
overcloud host disk images.

0 comments on commit d7b3e87

Please sign in to comment.