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

The value of "--foreman-foreman-url" option is not honored as the value of foreman_url in Satellite settings.

XMLWordPrintable

    • 1
    • False
    • foreman-installer-3.15.0-0.1.develop.20250418031139gitb43089a
    • Moderate
    • sat-rocket
    • Bug Fix
    • Hide
      .Satellite honors the `--foreman-foreman-url` setting

      Before this update, if you executed the {foreman-installer} with the `--foreman-foreman-url` option, the `Foreman URL` setting was not set.
      With this fix, the `Foreman URL` setting is set correctly when passed with the `--foreman-foreman-url` option.
      If you set the `Foreman URL` setting by using the WebUI, API or Hammer before this update, you must use the `--foreman-foreman-url` option when you run {foreman-installer} to preserve it. Otherwise, it will be overwritten by the `Foreman URL` value from the answers file.
      Show
      .Satellite honors the `--foreman-foreman-url` setting Before this update, if you executed the {foreman-installer} with the `--foreman-foreman-url` option, the `Foreman URL` setting was not set. With this fix, the `Foreman URL` setting is set correctly when passed with the `--foreman-foreman-url` option. If you set the `Foreman URL` setting by using the WebUI, API or Hammer before this update, you must use the `--foreman-foreman-url` option when you run {foreman-installer} to preserve it. Otherwise, it will be overwritten by the `Foreman URL` value from the answers file.
    • Done
    • Manual
    • No

      Description of problem:

      The value of "--foreman-foreman-url" option is not honored as the value of foreman_url in Satellite settings.

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

      Satellite 6.11.2

      How reproducible:

      Always ( but under very specific circumstances )

      Steps to Reproduce:

      1. Repeat Step 1 to Step 5 from BZ https://bugzilla.redhat.com/show_bug.cgi?id=2127955 as the reproducer steps.

      2. Once the installer finishes, Check the following outputs:

      1. hammer settings info --name foreman_url
      1. hammer settings info --name unattended_url
      1. grep url /etc/foreman-installer/scenarios.d/satellite-answers.yaml

      Actual results:

      The unattended_url is correctly set but not the foreman_url

      1. hammer settings info --name foreman_url
        Id: foreman_url
        Name: foreman_url
        Description: URL where your Foreman instance is reachable (see also Provisioning > unattended_url)
        Category: General
        Settings type: string
        Value: https://sat611.example.com
      1. hammer settings info --name unattended_url
        Id: unattended_url
        Name: unattended_url
        Description: URL hosts will retrieve templates from during build, when it starts with https unattended/userdata controllers cannot be accessed via HTTP
        Category: Provisioning
        Settings type: string
        Value: https://mysatellite.example.com

      Whereas the answers file shows that installer used the right values:

      1. grep url /etc/foreman-installer/scenarios.d/satellite-answers.yaml
        foreman_url: https://mysatellite.example.com
        unattended_url: https://mysatellite.example.com
        dynflow_redis_url:
        foreman_url:
        puppet_url: https://mysatellite.example.com:8140
        template_url: http://mysatellite.example.com:8000
        foreman_base_url: https://mysatellite.example.com
        registered_proxy_url:
        source_url: http://downloads.theforeman.org/discovery/releases/latest/
        server_foreman_url: https://mysatellite.example.com

      Expected results:

      The --foreman-foreman-url and\or --puppet-server-foreman-url should be honored when the value of foreman_url settings is being set.

      Additional info:

      NA

              ekohlvan@redhat.com Ewoud Kohl van Wijngaarden
              rhn-support-saydas Sayan Das
              Radek Mynar Radek Mynar
              Akshay Gadhave Akshay Gadhave
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: