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

satellite installation fails with a /usr/sbin/foreman-rake db:migrate' returned 1 instead of one of [0]

XMLWordPrintable

    • Important
    • None

      Description of problem:

      https://issues.redhat.com/browse/SAT-24811 This was the reported issue for which we added a check in satellite-maintain but the same issue can fail a new installation as well in ipv6 disabled environment.

       

      How reproducible:

      Every Time

       

      Steps to Reproduce:

      1. Disable "ipv6.disable=1 " from kernel options in the file /boot/grub2/grubenv

      2. check ipv6 loopback port is not listening 

      1. netstat -antup | grep "\::1"

       

      3. enable repos and install satellite 6.15.

      1. subscription-manager repos --disable "*"
      1. subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms \
        --enable=rhel-8-for-x86_64-appstream-rpms \
        --enable=satellite-6.15-for-rhel-8-x86_64-rpms \
        --enable=satellite-maintenance-6.15-for-rhel-8-x86_64-rpms
      1. dnf module enable satellite:el8
      1. dnf install satellite
      1. satellite-installer --scenario satellite \
        --foreman-initial-organization "My_Organization" \
        --foreman-initial-location "My_Location" \
        --foreman-initial-admin-username admin_user_name \
        --foreman-initial-admin-password admin_password

       

      Actual behavior:
      The error from /var/log/foreman-installer/satellite.log

      *{{2024-07-22 16:23:35 [DEBUG ] [configure] Foreman::Rake[db:seed]: Starting to evaluate the resource (1404 of 1647)
      2024-07-22 16:23:35 [DEBUG ] [configure] Foreman::Rake[db:seed]: Scheduling refresh of Exec[foreman-rake-db:seed]
      2024-07-22 16:23:35 [DEBUG ] [configure] Foreman::Rake[db:seed]: Evaluated in 0.00 seconds
      2024-07-22 16:23:35 [DEBUG ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: Starting to evaluate the resource (1405 of 1647)
      2024-07-22 16:23:35 [DEBUG ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]: '/usr/sbin/foreman-rake db:seed' won't be executed because of failed check 'refreshonly'
      2024-07-22 16:23:35 [DEBUG ] [configure] Exec[foreman-rake-db:seed](provider=posix): Executing '/usr/sbin/foreman-rake db:seed'
      2024-07-22 16:23:35 [DEBUG ] [configure] Executing with uid=foreman: '/usr/sbin/foreman-rake db:seed'
      2024-07-22 16:24:24 [INFO ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: rake aborted!
      2024-07-22 16:24:24 [INFO ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/Exec[foreman-rake-db:seed]/returns: Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)}}*
       
      Expected behavior:
      during installation health check should fail with the same ipv6.disable=1 warning/error

      and return msg to use the correct article to fix the ipv6. https://access.redhat.com/solutions/5045841

       

       

              ehelms@redhat.com Eric Helms
              rhn-support-ajchavan Ajay Chavan
              Jameer Pathan Jameer Pathan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: