Skip to content

Commit

Permalink
Pass reproducer Job zuul-params.yml in tcib content provider
Browse files Browse the repository at this point in the history
ci/playbooks/tcib/tcib.yml depends on zuul vars to find
out the ci-framework 01-bootstrap.yml path.

Otherwise the tcib reproducer content provider playbook fails with
following error
```
2024-05-09 03:30:52,939 p=25285 u=zuul n=ansible | ERROR! Unable to look up a name or access an attribute in template string ({{
    [
      ansible_user_dir,
      zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir,
      'playbooks',
      '01-bootstrap.yml'
    ] | ansible.builtin.path_join

}}).
Make sure your variable name does not contain invalid characters like '-': join() argument must be str, bytes, or os.PathLike object, not 'AnsibleUndefined'. join() argument must be str, bytes, or os.PathLike object, not 'AnsibleUndefined'.
```
Passing reproducer Job zuul-params.yml fixes the issue.

Signed-off-by: Chandan Kumar <[email protected]>
  • Loading branch information
raukadah authored and openshift-merge-bot[bot] committed May 9, 2024
1 parent 06623dd commit 9d77c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/reproducer/templates/content-provider.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
}}
{% endraw %}
{% endif %}

{% if openstack_content_provider | default('false') | bool %}
{% raw %}
- name: Run tcib playbook
Expand All @@ -124,6 +123,7 @@
-e cifmw_zuul_target_host=controller-0
-e "cifmw_rp_registry_ip="{{ hostvars['localhost']['cifmw_rp_registry_ip'] }}""
-e "@{{ ansible_user_dir }}/ci-framework-data/parameters/reproducer-variables.yml"
-e "@~/{{ job_id }}-params/zuul-params.yml"
--skip-tags build_openstack_packages

- name: Output needed content into consumable environment
Expand Down

0 comments on commit 9d77c69

Please sign in to comment.