-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
problemSomething isn't workingSomething isn't working
Description
Short Description
The task to configure an XNAT Container Service registry only runs if the registry doesn't already exist:
ansible-collection-infra/roles/xnat_container_service/tasks/add_container_service_hub.yml
Lines 14 to 29 in 10f3e98
| - 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
problemSomething isn't workingSomething isn't working