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

satellite-maintain backup offline does not collect custom certificates and thus can't restore by passing katello-cert-check

XMLWordPrintable

    • Important

      Description of problem:

      Version-Release number of selected component (if applicable):
      satellite-6.10.7.1-1.el7sat.noarch
      on RHEL 7.9 (3.10.0-1160.59.1)

      How reproducible:
      Generate backup of Satellite 6.10 with custom certificates

      Steps to Reproduce:
      1. Generate backup of Satellite with customer certificates

      1. satellite-maintain backup offline --skip-pulp-content /var/backup_directory

      2. On reproducer/restore target attempt to restore using backup files:

      1. satellite-maintain restore /var/backup_directory

      3. Restore fails:

      <SNIP>
      Checking to see if the private key matches the certificate: Error opening Private Key /etc/pki/tls/private/satellite-wildcard.example.com.key
      140094951200656:error:02001002:system library:fopen:No such file or directory:bss_file.c:402:fopen('/etc/pki/tls/private/satellite-wildcard.example.com.key','r')
      140094951200656:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:404:
      unable to load Private Key
       
      [FAIL]
      </SNIP>

      Actual results:
      If custom certs are present satellite-maintain does not collect

      Expected results:
      Expected satellite-maintain backup to collected needed /etc/pki/tls/* certs to properly restore database

      Additional info:

            jira-bugzilla-migration RH Bugzilla Integration
            rhn-support-risantam Ricardo Santamaria
            RH Bugzilla Integration RH Bugzilla Integration
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: