-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
6.15.0
Description of problem:
Trying to add a new capsule server to satellite configuration.Using Ansible to automate the build of the satellite and capsule servers. Multiple capsules in several zones.
It seems the problem lies in the capsule-cert-generate command, running multiple times for different capsules is not possible and needed ansible>throttle:1 to make sure only one delegated command is run at a time.
Ansible task to install capsule:
- name: Satellite-installer
become: true
command: >-
satellite-installer
--scenario capsule
--certs-tar-file "/root/{{ capsule_server }}-certs.tar"
--foreman-proxy-register-in-foreman "true"
--foreman-proxy-foreman-base-url "https://{{ satellite_server }}"
--foreman-proxy-trusted-hosts "{{ satellite_server }}"
--foreman-proxy-trusted-hosts "{{ capsule_server }}"
--foreman-proxy-oauth-consumer-key "{{ oauth_consumer_key.stdout }}"
--foreman-proxy-oauth-consumer-secret "{{ oauth_consumer_secret.stdout }}"
throttle: 1
The throttle 1 appears to be necessary as a playbook creating multiple capsules, seems to conflict with each other and fails with file not found errors.
The problem is probably because building and deleting capsules multiple times solving errors with the build an do not appear to able to create new capsule in satellite without deleting satellite.
- duplicates
-
SAT-23481 `capsule-certs-generate` cannot be run concurrently for different capsules
- Backlog