Skip to content

XNAT Container Registries can only be configured once #201

@p-j-smith

Description

@p-j-smith

Short Description

The task to configure an XNAT Container Service registry only runs if the registry doesn't already exist:

- name: Configure Image Host
ansible.builtin.uri:
url: "{{ web_server.url }}/xapi/docker/hubs"
user: "{{ xnat_service_admin.username }}"
password: "{{ xnat_service_admin.password }}"
method: POST
body_format: json
body:
name: "{{ container_registry.name }}"
url: "{{ container_registry.url }}"
username: "{{ container_registry.username }}"
password: "{{ container_registry.password }}"
default: "{{ container_registry.default }}"
validate_certs: "{{ ssl.validate_certs }}"
status_code: 200, 201
when: hub_check.status != 200

This means that we cannot e.g. update the token used by the registry. We should instead always run the task to configure the registry

Evidence/Steps to Reproduce

No response

Acceptance Criteria/Expected Behaviour

No response

Details

No response

Resolution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    problemSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions