From c538000db7f9b49efb81442188450c93a77745b2 Mon Sep 17 00:00:00 2001 From: fserucas Date: Tue, 24 Jan 2023 16:07:22 +0000 Subject: [PATCH 1/3] nodepool-builder: revert run container as nodepool user Change-Id: I69c3109a14663a78ec03fc4432af02f63dbaba61 --- ansible/roles/sf-nodepool/defaults/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ansible/roles/sf-nodepool/defaults/main.yml b/ansible/roles/sf-nodepool/defaults/main.yml index 7be3d1d55..83da693bd 100644 --- a/ansible/roles/sf-nodepool/defaults/main.yml +++ b/ansible/roles/sf-nodepool/defaults/main.yml @@ -63,14 +63,13 @@ nodepool_components: - service: "nodepool-builder" image: "quay.io/software-factory/nodepool-builder-ubi:{{ nodepool_container_version }}" run: >- - sudo /usr/local/bin/nodepool-builder -d -c /etc/nodepool/nodepool.yaml -s /etc/nodepool/secure.conf -l /etc/nodepool/builder-logging.yaml params: >- --network host - --user {{ container_uid }}:{{ container_gid }} + --user 0 --volume /dev:/dev --volume /run/libvirt:/run/libvirt --volume /etc/nodepool/:/etc/nodepool/:z From 45beda51dd364bcaf1ae5414961e6823082d95f5 Mon Sep 17 00:00:00 2001 From: Nicolas Hicher Date: Tue, 24 Jan 2023 14:26:16 -0500 Subject: [PATCH 2/3] logserver: fix when condition for jinja is not allowed Change-Id: I214c855d03565feea0513d9d7987c6a30f03f072 --- ansible/roles/sf-logserver/tasks/install.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ansible/roles/sf-logserver/tasks/install.yml b/ansible/roles/sf-logserver/tasks/install.yml index daabcfba1..9f8f859aa 100644 --- a/ansible/roles/sf-logserver/tasks/install.yml +++ b/ansible/roles/sf-logserver/tasks/install.yml @@ -2,7 +2,7 @@ - service_facts: run_once: true -- name: "Remove packages if {{ role_package }} is a container" +- name: "Remove packages" block: - name: Stop services service: @@ -16,10 +16,7 @@ - httpd - mod_wsgi state: absent - when: - - "'{{ role_package }}.service' in {{ ansible_facts.services }}" - - "'gateway' not in roles" - - "'cauth' not in roles" + when: "'gateway' not in roles" - name: "Removing ara resources" block: @@ -48,8 +45,7 @@ name: ara state: absent remove: true - - when: "'ara.service' in {{ ansible_facts.services }}" + when: "'ara.service' in ansible_facts.services" - name: Reloading Systemd systemd: From d8d15b270edde6927ea5588b318b98ea9bfc73c6 Mon Sep 17 00:00:00 2001 From: Fabien Boucher Date: Wed, 25 Jan 2023 09:28:19 +0000 Subject: [PATCH 3/3] Use zuul_client container bump Depends-On: https://softwarefactory-project.io/r/c/containers/+/27263 Change-Id: Id4f164af326f5f9d7fc8b199abff7393007c7776 --- ansible/roles/sf-zuul/defaults/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/sf-zuul/defaults/main.yml b/ansible/roles/sf-zuul/defaults/main.yml index 0c0fbe3c8..e301d5dcc 100644 --- a/ansible/roles/sf-zuul/defaults/main.yml +++ b/ansible/roles/sf-zuul/defaults/main.yml @@ -23,8 +23,8 @@ zuul_share_dir: "/usr/share/javascript/zuul" zuul_version: "8.1.0" zuul_container_version: "{{ zuul_version }}-1" -zuul_client_version: "a6ce77acffd852219fd43a6dc61cbe637aa85bf2" -zuul_client_container_version: "{{ zuul_client_version }}-1" +zuul_client_version: "f96ddd00fc69d8a4d51eb207ef322b99983d1fe8" +zuul_client_container_version: "0.1.0-{{ zuul_client_version }}-1" zuul_components_default_params: >- --network host