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

Wrong port specified when `rails_cache_store` is set to `redis`

XMLWordPrintable

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

      Description of problem:

      While investigating https://bugzilla.redhat.com/show_bug.cgi?id=2122461 and after installing the `foreman-redis` package, trying to configure `redis` as the rails cache store with:

      `satellite-installer --foreman-rails-cache-store type:redis`

      the installer will fail because it'll try to configure port 8479 instead of 6379.

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

      Satellite 6.13 Snap 8

      How reproducible:

      Always.

      Steps to Reproduce:
      1. Install `foreman-redis` package from brew
      2. Run: `satellite-installer --foreman-rails-cache-store type:redis`
      3.

      Actual results:

      ~~~

      1. satellite-installer --foreman-rails-cache-store type:redis
        2023-01-27 14:34:07 [NOTICE] [root] Loading installer configuration. This will take some time.
        2023-01-27 14:34:10 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
        2023-01-27 14:34:10 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
        Package versions are locked. Continuing with unlock.
        2023-01-27 14:34:16 [NOTICE] [configure] Starting system configuration.
        2023-01-27 14:34:30 [NOTICE] [configure] 250 configuration steps out of 1564 steps complete.
        2023-01-27 14:34:36 [NOTICE] [configure] 500 configuration steps out of 1565 steps complete.
        2023-01-27 14:34:38 [NOTICE] [configure] 750 configuration steps out of 1569 steps complete.
        2023-01-27 14:34:39 [NOTICE] [configure] 1000 configuration steps out of 1575 steps complete.
        2023-01-27 14:34:40 [NOTICE] [configure] 1250 configuration steps out of 1575 steps complete.
        2023-01-27 14:35:34 [ERROR ] [configure] Systemd start for foreman failed!
        2023-01-27 14:35:34 [ERROR ] [configure] journalctl log for foreman:
        2023-01-27 14:35:34 [ERROR ] [configure] – Logs begin at Fri 2023-01-27 14:12:08 UTC, end at Fri 2023-01-27 14:35:34 UTC. –
        2023-01-27 14:35:34 [ERROR ] [configure] Jan 27 14:32:27 satellite.blue.ddns.perf.redhat.com systemd[1]: Starting Foreman...
        2023-01-27 14:35:34 [ERROR ] [configure] Jan 27 14:32:45 satellite.blue.ddns.perf.redhat.com foreman[5966]: => Booting Puma
        2023-01-27 14:35:34 [ERROR ] [configure] Jan 27 14:32:45 satellite.blue.ddns.perf.redhat.com foreman[5966]: => Rails 6.1.7 application starting in production
        2023-01-27 14:35:34 [ERROR ] [configure] Jan 27 14:32:45 satellite.blue.ddns.perf.redhat.com foreman[5966]: => Run `bin/rails server --help` for more startup options
        2023-01-27 14:35:34 [ERROR ] [configure] Jan 27 14:32:52 satellite.blue.ddns.perf.redhat.com foreman[5966]: /usr/share/gems/gems/foreman_theme_satellite-11.0.0.2/app/models/concerns/distributor_version.rb:5: warning: already initialized constant Katello::Glue::Provider::DISTRIBUTOR_VERSION
        2023-01-27 14:35:34 [ERROR ] [configure] Jan 27 14:32:52 satellite.blue.ddns.perf.redhat.com foreman[5966]: /usr/share/gems/gems/katello-4.7.0.5/app/models/katello/glue/provider.rb:3: warning: previous definition of DISTRIBUTOR_VERSION was here
        2023-01-27 14:35:34 [ERROR ] [configure] Jan 27 14:32:52 satellite.blue.ddns.perf.redhat.com foreman[5966]: Exiting
        2023-01-27 14:35:34 [ERROR ] [configure] Jan 27 14:32:52 satellite.blue.ddns.perf.redhat.com foreman[5966]: /usr/share/ruby/socket.rb:1214:in `__connect_nonblock': Permission denied - connect(2) for 127.0.0.1:8479 (Errno::EACCES)
        . . .
        ~~~

      Expected results:

      Success.

      Additional info:

      This configuration works:

      ~~~

      1. grep redis /etc/foreman/settings.yaml
        :redis_url: redis://localhost:6379/6
        :type: redis
      • redis://localhost:6379/0
        ~~~

              ekohlvan@redhat.com Ewoud Kohl van Wijngaarden
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: