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

Unclear error message with empty --certs-state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.13.0
    • Installation
    • 0
    • False
    • Moderate
    • None
    • None
    • None
    • None

      Description of problem:
      When creating new certificates using satellite-installer and passing empty "state" parameter an Evaluation Error is shown

      Version-Release number of selected component (if applicable):
      -

      How reproducible:
      always

      Steps to Reproduce:
      a)
      1. satellite-installer --certs-regenerate true --certs-update-all --certs-update-server --certs-update-server-ca --certs-org-unit "FooOrg" --certs-state ""
      b)
      1. edit /etc/foreman-installer/scenarios.d/satellite-answers.yaml and set certs -> state: ''
      2. satellite-installer --certs-regenerate true --certs-update-all --certs-update-server --certs-update-server-ca

      Actual results:
      satellite-installer fails with following error
      <timestamp> [ERROR ] [configure] Evaluation Error: Error while evaluating a Function Call, 'katello::build_dn' parameter 'options' index 3 index 1 expects a value of type Undef or String[1], got String (file: /usr/share/foreman-installer/modules/katello/manifests/application.pp, line: 40, column: 24) on node <node-fqdn>

      Expected results:
      Reasonable error should be shown.

      Additional info:
      After fix (if this gets fixed) the installer should never cause inconsistency between certificates and config files - 'hammer ping' should pass (see bug 1964037)

              ehelms@redhat.com Eric Helms
              ehelms@redhat.com Eric Helms
              Radek Mynar Radek Mynar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: