Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-28846

When adding a new capsule using Ansible, it fails with error 'Only one declaration of a Capsule is allowed'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • 6.15.0
    • Installation
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Important
    • None

      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.

              ehelms@redhat.com Eric Helms
              rhn-support-mkalyat Mithun Kalyat
              Mithun Kalyat
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: