Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-11475

When using disconnected registries, the Ansible task fails to write registries.conf

XMLWordPrintable

    • Icon: Epic Epic
    • Resolution: Done
    • Icon: Major Major
    • rhos-18.0.4
    • None
    • edpm-ansible
    • None
    • Use copy instead of template for writing registries.conf in disconnected deployments
    • 2
    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • No Docs Impact
    • ?
    • No impact
    • 0% To Do, 0% In Progress, 100% Done
    • Hide
      .Ansible task writes the `registries.conf` file successfully in disconnected deployments

      Before this update, the `registries.conf` file failed in disconnected deployments because the Ansible task attempted to use the `template` module and the raw string input as the `src`. With this update, the Ansible task writes the `registries.conf` file successfully because it uses the `ansible.builtin.copy` module with the `content` parameter.
      Show
      .Ansible task writes the `registries.conf` file successfully in disconnected deployments Before this update, the `registries.conf` file failed in disconnected deployments because the Ansible task attempted to use the `template` module and the raw string input as the `src`. With this update, the Ansible task writes the `registries.conf` file successfully because it uses the `ansible.builtin.copy` module with the `content` parameter.
    • Bug Fix
    • Done
    • Regression Only
    • 2
    • 2024Q4
    • Important

      Writing the registries.conf file fails in disconnected deployments since the Ansible task is trying to use the `template` module and the raw string input as the `src`. We should be using `ansible.builtin.copy` instead with the `content` parameter in this case.

              rhn-support-bshephar Brendan Shephard
              rhn-support-bshephar Brendan Shephard
              rhos-dfg-df
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: