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

POSTIN scriptlet katello-pull-transport-migrate fails on nonexisting yggdrasild.service

XMLWordPrintable

    • 2
    • False
    • sat-endeavour
    • None
    • None
    • None
    • To Do

      Description of problem:
      Installing `katello-pull-transport-migrate` on a system that already had the package installed in past (and then removed), the postinstall script fails with `yggdrasild.service not found` error.
       

      How reproducible:
      100%
       

      Is this issue a regression from an earlier version:
      probably not
       

      Steps to Reproduce:

      1. dnf install katello-pull-transport-migrate -y

      2. dnf remove katello-pull-transport-migrate y

      3. dnf install katello-pull-transport-migrate -y

      Actual behavior:
      3. fails with:

      {nocode}
      Running transaction
      Preparing : 1/1
      Installing : yggdrasil-0.2.3-1.el8sat.x86_64 1/3
      Installing : foreman_ygg_worker-0.2.2-1.el8sat.x86_64 2/3
      Installing : katello-pull-transport-migrate-1.0.2-1.el8sat.noarch 3/3
      Running scriptlet: katello-pull-transport-migrate-1.0.2-1.el8sat.noarch 3/3
      Getting configuration from subscription-manager...
      Starting yggdrasild...
      Failed to try-restart yggdrasild.service: Unit yggdrasild.service not found.
      warning: %post(katello-pull-transport-migrate-1.0.2-1.el8sat.noarch) scriptlet failed, exit status 5

      Error in POSTIN scriptlet in rpm package katello-pull-transport-migrate
      Verifying : foreman_ygg_worker-0.2.2-1.el8sat.x86_64 1/3
      Verifying : katello-pull-transport-migrate-1.0.2-1.el8sat.noarch 2/3
      Verifying : yggdrasil-0.2.3-1.el8sat.x86_64 3/3
      Installed products updated.{nocode}

      Expected behavior:
      No failure.

      Business Impact / Additional info:

              Unassigned Unassigned
              rhn-support-pmoravec Pavel Moravec
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: