Skip to content

Commit 62b9e2b

Browse files
committed
Fix issue with pulp sync
``` TASK [stackhpc.pulp.pulp_repository : include_tasks] ************************************************************************************************************************ Friday 02 February 2024 18:54:16 +0100 (0:00:00.189) 0:00:00.189 ******* fatal: [localhost]: FAILED! => msg: |- The conditional check 'pulp_repository_container_repos | length > 0' failed. The error was: error while evaluating conditional (pulp_repository_container_repos | length > 0): {{ stackhpc_pulp_repository_container_repos }}: {{ (stackhpc_pulp_repository_container_repos_kolla + stackhpc_pulp_repository_container_repos_ceph + stackhpc_pulp_repository_container_repos_hashicorp) | selectattr('required') }}: {%- set repos = [] -%} {%- for image in stackhpc_pulp_images_kolla_filtered -%} {%- if image not in stackhpc_kolla_unbuildable_images[kolla_base_distro]-%} {%- set image_repo = kolla_docker_namespace ~ "/" ~ image -%} {%- set repo = {"name": image_repo} -%} {%- set _ = repos.append(stackhpc_pulp_repository_container_repos_kolla_common | combine(repo)) -%} {%- endif -%} {%- endfor -%} {{ repos }}: 'dict object' has no attribute 'rocky' The error appears to be in '/home/stack/kayobe-env-zed/src/kayobe-config/etc/kayobe/ansible/collections/ansible_collections/stackhpc/pulp/roles/pulp_repository/tasks/mai n.yml': line 2, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: --- - include_tasks: container.yml ^ here ```
1 parent ee5fa79 commit 62b9e2b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

etc/kayobe/kolla.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ kolla_ansible_source_version: "{{ stackhpc_kolla_ansible_source_version }}"
7474
# Default is kolla_base_distro_version_default_map[kolla_base_distro].
7575
#kolla_base_distro_version:
7676

77+
kolla_base_distro_and_version: "{{ kolla_base_distro }}-{{ kolla_base_distro_version }}"
78+
7779
# URL of docker registry to use for Kolla images. Default is not set, in which
7880
# case Quay.io will be used.
7981
#kolla_docker_registry:

etc/kayobe/pulp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ stackhpc_pulp_repository_container_repos_kolla_common:
548548
stackhpc_pulp_repository_container_repos_kolla: >-
549549
{%- set repos = [] -%}
550550
{%- for image in stackhpc_pulp_images_kolla_filtered -%}
551-
{%- if image not in stackhpc_kolla_unbuildable_images[kolla_base_distro]-%}
551+
{%- if image not in stackhpc_kolla_unbuildable_images[kolla_base_distro_and_version]-%}
552552
{%- set image_repo = kolla_docker_namespace ~ "/" ~ image -%}
553553
{%- set repo = {"name": image_repo} -%}
554554
{%- set _ = repos.append(stackhpc_pulp_repository_container_repos_kolla_common | combine(repo)) -%}

0 commit comments

Comments
 (0)