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

Satellite 6.17 upgrade check fails for PostgreSQL 13 due to insufficient space warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 6.17.0
    • None
    • False
    • sat-rocket
    • None
    • None
    • None
    • None

      Description of problem: 

      During the upgrade check from Satellite 6.16 to 6.17 fails at the PostgreSQL space check.

      How reproducible:

      100%

       

      Is this issue a regression from an earlier version:

       

      Steps to Reproduce:

      1. Deploy fresh satellite 6.16
      2.  ensure /var/lib/pgsql/data is used more than 50% of the disk space

      3. Perform upgrade check for 6.17 

       

       

      Actual behavior:

      Check to make sure PostgreSQL 13 work directory has enough space for upgrade:
                                                                            [FAIL]
      PostgreSQL will be upgraded from 12 to 13.
      During the upgrade a backup is created in /var/lib/pgsql/data-old and requires at least 100383 MiB free space.

      Scenario [Checks before upgrading] failed.

      The following steps ended up in failing state:  

      [available-space-for-postgresql13]

      In case the failures are false positives, use
      --whitelist="available-space-for-postgresql13"

       

      1. # rpm -qa | grep satellite-6
        satellite-6.16.5.2-1.el9sat.noarch
      2. # rpm -qa | grep postgresql
        postgresql-private-libs-13.22-1.el9_6.x86_64
        postgresql-13.22-1.el9_6.x86_64
        foreman-postgresql-3.12.0.8-1.el9sat.noarch
        postgresql-server-13.22-1.el9_6.x86_64
        postgresql-evr-0.0.2-3.el9sat.noarch
        postgresql-contrib-13.22-1.el9_6.x86_64
      3. df -h
        Filesystem             Size  Used Avail Use% Mounted on
        devtmpfs               4.0M     0  4.0M   0% /dev
        tmpfs                  5.8G   64K  5.8G   1% /dev/shm
        tmpfs                  2.3G   11M  2.3G   1% /run
        /dev/mapper/rhel-root  148G  105G   44G  71% /
        /dev/sda1             1014M  233M  782M  23% /boot
        tmpfs                  1.2G  4.0K  1.2G   1% /run/user/0
      4.  du -h /var/lib/pgsql/
        99G /var/lib/pgsql/data
        99G /var/lib/pgsql/

       

      Expected behavior:

      Below Check is not required as satellite 6.16 is already running on PostgreSQL 13 , (the postgresql 13 upgrade is already happened for 15→16)

      ------------------------------------------------------------------------------------------------------------------

      Check to make sure PostgreSQL 13 work directory has enough space for upgrade:

      -------------------------------------------------------------------------------------------------------------------

      Business Impact / Additional info:

       

              rhn-support-ajchavan Ajay Chavan
              rhn-support-ajchavan Ajay Chavan
              Ajay Chavan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: