Project

General

Profile

Actions

Bug #18818

closed

posttrans(foreman-installer-katello-3.3.0-5.el7.noarch) scriptlet failed

Added by Klaas D about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Installer
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

hi,
during the update of a capsule/foreman-proxy from katello 3.2 to katello 3.3 during yum update:

Running transaction
  Updating   : foreman-debug-1.14.2-1.el7.noarch                                                                                                                                          1/49
  Updating   : python-pulp-common-2.10.3-1.el7.noarch                                                                                                                                     2/49
  Updating   : python-pulp-agent-lib-2.10.3-1.el7.noarch                                                                                                                                  3/49
  Updating   : foreman-selinux-1.14.2-1.el7.noarch                                                                                                                                        4/49
  Updating   : katello-selinux-3.0.2-1.el7.noarch                                                                                                                                         5/49
  Updating   : python-pulp-rpm-common-2.10.3-1.el7.noarch                                                                                                                                 6/49
  Updating   : pulp-rpm-handlers-2.10.3-1.el7.noarch                                                                                                                                      7/49
  Installing : tracer-common-0.6.12-4.el7.noarch                                                                                                                                          8/49
  Installing : python-six-1.9.0-2.el7.noarch                                                                                                                                              9/49
  Installing : 1:python-html5lib-0.999-5.el7.noarch                                                                                                                                      10/49
  Installing : python-beautifulsoup4-4.3.2-1.el7.noarch                                                                                                                                  11/49
  Updating   : rubygem-rb-inotify-0.9.7-2.el7.noarch                                                                                                                                     12/49
  Updating   : katello-agent-fact-plugin-2.9.1-1.el7.noarch                                                                                                                              13/49
  Updating   : 1:rubygem-sinatra-1.4.7-1.el7.noarch                                                                                                                                      14/49
  Installing : 1:rubygem-concurrent-ruby-1.0.0-2.fm1_11.el7.noarch                                                                                                                       15/49
  Updating   : foreman-proxy-1.14.2-1.el7.noarch                                                                                                                                         16/49
warning: /etc/foreman-proxy/settings.d/bmc.yml created as /etc/foreman-proxy/settings.d/bmc.yml.rpmnew
warning: /etc/foreman-proxy/settings.d/puppet_proxy_puppet_api.yml created as /etc/foreman-proxy/settings.d/puppet_proxy_puppet_api.yml.rpmnew
  Installing : python-psutil-2.2.1-1.el7.x86_64                                                                                                                                          17/49
  Installing : python2-tracer-0.6.12-4.el7.noarch                                                                                                                                        18/49
  Updating   : katello-service-3.3.0-3.el7.noarch                                                                                                                                        19/49
  Updating   : rubygem-kafo_parsers-0.1.5-1.el7.noarch                                                                                                                                   20/49
  Updating   : rubygem-kafo-1.0.5-1.el7.noarch                                                                                                                                           21/49
  Updating   : 1:foreman-installer-1.14.2-1.el7.noarch                                                                                                                                   22/49
warning: /etc/foreman-installer/scenarios.d/foreman-answers.yaml created as /etc/foreman-installer/scenarios.d/foreman-answers.yaml.rpmnew
warning: /etc/foreman-installer/scenarios.d/foreman.yaml saved as /etc/foreman-installer/scenarios.d/foreman.yaml.rpmsave
  Updating   : katello-installer-base-3.3.0-5.el7.noarch                                                                                                                                 23/49
  Updating   : foreman-installer-katello-3.3.0-5.el7.noarch                                                                                                                              24/49
warning: /etc/foreman-installer/scenarios.d/katello-answers.yaml created as /etc/foreman-installer/scenarios.d/katello-answers.yaml.rpmnew
warning: /etc/foreman-installer/scenarios.d/katello.yaml created as /etc/foreman-installer/scenarios.d/katello.yaml.rpmnew
  Installing : foreman-proxy-content-3.3.0-3.el7.noarch                                                                                                                                  25/49
  Updating   : katello-agent-2.9.1-1.el7.noarch                                                                                                                                          26/49
Note: Forwarding request to 'systemctl enable goferd.service'.
  Updating   : katello-debug-3.3.0-3.el7.noarch                                                                                                                                          27/49
  Updating   : katello-client-bootstrap-1.2.2-1.el7.noarch                                                                                                                               28/49
  Cleanup    : katello-agent-2.7.0-1.el7.noarch                                                                                                                                          29/49
   Active: active (running) since Mon 2017-03-06 14:24:23 CET; 3min 57s ago
  Cleanup    : pulp-rpm-handlers-2.9.3-1.el7.noarch                                                                                                                                      30/49
  Cleanup    : python-pulp-agent-lib-2.9.3-1.el7.noarch                                                                                                                                  31/49
  Cleanup    : python-pulp-rpm-common-2.9.3-1.el7.noarch                                                                                                                                 32/49
  Cleanup    : katello-debug-3.2.2-1.el7.noarch                                                                                                                                          33/49
  Erasing    : katello-capsule-3.2.2-1.el7.noarch                                                                                                                                        34/49
  Cleanup    : foreman-installer-katello-3.2.3-1.el7.noarch                                                                                                                              35/49
warning: /etc/foreman-installer/scenarios.d/capsule.yaml saved as /etc/foreman-installer/scenarios.d/capsule.yaml.rpmsave
warning: /etc/foreman-installer/scenarios.d/capsule-answers.yaml saved as /etc/foreman-installer/scenarios.d/capsule-answers.yaml.rpmsave
  Cleanup    : katello-installer-base-3.2.3-1.el7.noarch 
  Cleanup    : foreman-proxy-1.13.4-1.el7.noarch                                                                                                                                         37/49
  Cleanup    : 1:foreman-installer-1.13.4-1.el7.noarch                                                                                                                                   38/49
  Cleanup    : rubygem-kafo-0.9.8-1.el7.noarch                                                                                                                                           39/49
  Cleanup    : katello-selinux-3.0.1-1.el7.noarch                                                                                                                                        40/49
  Cleanup    : foreman-selinux-1.13.4-1.el7.noarch                                                                                                                                       41/49
  Cleanup    : rubygem-kafo_parsers-0.1.2-1.el7.noarch                                                                                                                                   42/49
  Cleanup    : foreman-debug-1.13.4-1.el7.noarch                                                                                                                                         43/49
  Cleanup    : rubygem-rb-inotify-0.9.7-1.el7.noarch                                                                                                                                     44/49
  Cleanup    : 1:rubygem-sinatra-1.3.5-1.el7.noarch                                                                                                                                      45/49
  Cleanup    : katello-service-3.2.2-1.el7.noarch                                                                                                                                        46/49
  Cleanup    : python-pulp-common-2.9.3-1.el7.noarch                                                                                                                                     47/49
  Cleanup    : katello-agent-fact-plugin-2.7.0-1.el7.noarch                                                                                                                              48/49
  Cleanup    : katello-client-bootstrap-1.1.0-1.el7.noarch                                                                                                                               49/49
mv: cannot stat ‘/etc/foreman-installer/scenarios.d/capsule-answers.yaml’: No such file or directory
warning: %posttrans(foreman-installer-katello-3.3.0-5.el7.noarch) scriptlet failed, exit status 26
Non-fatal POSTTRANS scriptlet failure in rpm package foreman-installer-katello-3.3.0-5.el7.noarch
Uploading Package Profile
  Verifying  : rubygem-kafo-1.0.5-1.el7.noarch                                                                                                                                            1/49
  Verifying  : rubygem-kafo_parsers-0.1.5-1.el7.noarch                                                                                                                                    2/49
  Verifying  : foreman-installer-katello-3.3.0-5.el7.noarch                                                                                                                               3/49
  Verifying  : python-pulp-rpm-common-2.10.3-1.el7.noarch                                                                                                                                 4/49
  Verifying  : foreman-selinux-1.14.2-1.el7.noarch                                                                                                                                        5/49
  Verifying  : katello-selinux-3.0.2-1.el7.noarch                                                                                                                                         6/49
  Verifying  : foreman-proxy-content-3.3.0-3.el7.noarch                                                                                                                                   7/49
  Verifying  : katello-service-3.3.0-3.el7.noarch                                                                                                                                         8/49
  Verifying  : python-psutil-2.2.1-1.el7.x86_64                                                                                                                                           9/49
  Verifying  : 1:foreman-installer-1.14.2-1.el7.noarch                                                                                                                                   10/49
  Verifying  : katello-debug-3.3.0-3.el7.noarch                                                                                                                                          11/49
  Verifying  : katello-installer-base-3.3.0-5.el7.noarch                                                                                                                                 12/49
  Verifying  : 1:rubygem-concurrent-ruby-1.0.0-2.fm1_11.el7.noarch                                                                                                                       13/49
  Verifying  : 1:rubygem-sinatra-1.4.7-1.el7.noarch                                                                                                                                      14/49
  Verifying  : foreman-proxy-1.14.2-1.el7.noarch                                                                                                                                         15/49
  Verifying  : katello-agent-fact-plugin-2.9.1-1.el7.noarch                                                                                                                              16/49
  Verifying  : python-pulp-common-2.10.3-1.el7.noarch                                                                                                                                    17/49
  Verifying  : python-beautifulsoup4-4.3.2-1.el7.noarch                                                                                                                                  18/49
  Verifying  : 1:python-html5lib-0.999-5.el7.noarch                                                                                                                                      19/49
  Verifying  : python-pulp-agent-lib-2.10.3-1.el7.noarch                                                                                                                                 20/49
  Verifying  : rubygem-rb-inotify-0.9.7-2.el7.noarch                                                                                                                                     21/49
  Verifying  : python2-tracer-0.6.12-4.el7.noarch                                                                                                                                        22/49
  Verifying  : python-six-1.9.0-2.el7.noarch                                                                                                                                             23/49
  Verifying  : tracer-common-0.6.12-4.el7.noarch                                                                                                                                         24/49
  Verifying  : katello-agent-2.9.1-1.el7.noarch                                                                                                                                          25/49
  Verifying  : foreman-debug-1.14.2-1.el7.noarch                                                                                                                                         26/49
  Verifying  : katello-client-bootstrap-1.2.2-1.el7.noarch                                                                                                                               27/49
  Verifying  : pulp-rpm-handlers-2.10.3-1.el7.noarch                                                                                                                                     28/49
  Verifying  : python-pulp-agent-lib-2.9.3-1.el7.noarch                                                                                                                                  29/49
  Verifying  : pulp-rpm-handlers-2.9.3-1.el7.noarch                                                                                                                                      30/49
  Verifying  : rubygem-kafo-0.9.8-1.el7.noarch
  Verifying  : katello-selinux-3.0.1-1.el7.noarch                                                                                                                                        32/49
  Verifying  : rubygem-kafo_parsers-0.1.2-1.el7.noarch                                                                                                                                   33/49
  Verifying  : katello-capsule-3.2.2-1.el7.noarch                                                                                                                                        34/49
  Verifying  : foreman-debug-1.13.4-1.el7.noarch                                                                                                                                         35/49
  Verifying  : python-pulp-rpm-common-2.9.3-1.el7.noarch                                                                                                                                 36/49
  Verifying  : katello-service-3.2.2-1.el7.noarch                                                                                                                                        37/49
  Verifying  : katello-agent-fact-plugin-2.7.0-1.el7.noarch                                                                                                                              38/49
  Verifying  : katello-agent-2.7.0-1.el7.noarch                                                                                                                                          39/49
  Verifying  : foreman-selinux-1.13.4-1.el7.noarch                                                                                                                                       40/49
  Verifying  : katello-debug-3.2.2-1.el7.noarch                                                                                                                                          41/49
  Verifying  : 1:foreman-installer-1.13.4-1.el7.noarch                                                                                                                                   42/49
  Verifying  : katello-installer-base-3.2.3-1.el7.noarch                                                                                                                                 43/49
  Verifying  : rubygem-rb-inotify-0.9.7-1.el7.noarch                                                                                                                                     44/49
  Verifying  : python-pulp-common-2.9.3-1.el7.noarch                                                                                                                                     45/49
  Verifying  : foreman-installer-katello-3.2.3-1.el7.noarch                                                                                                                              46/49
  Verifying  : katello-client-bootstrap-1.1.0-1.el7.noarch                                                                                                                               47/49
  Verifying  : foreman-proxy-1.13.4-1.el7.noarch                                                                                                                                         48/49
  Verifying  : 1:rubygem-sinatra-1.3.5-1.el7.noarch                                                                                                                                      49/49

Installed:
  foreman-proxy-content.noarch 0:3.3.0-3.el7

Dependency Installed:
  python-beautifulsoup4.noarch 0:4.3.2-1.el7       python-html5lib.noarch 1:0.999-5.el7                      python-psutil.x86_64 0:2.2.1-1.el7        python-six.noarch 0:1.9.0-2.el7
  python2-tracer.noarch 0:0.6.12-4.el7             rubygem-concurrent-ruby.noarch 1:1.0.0-2.fm1_11.el7       tracer-common.noarch 0:0.6.12-4.el7

Updated:
  foreman-debug.noarch 0:1.14.2-1.el7        foreman-installer.noarch 1:1.14.2-1.el7        foreman-installer-katello.noarch 0:3.3.0-5.el7    foreman-proxy.noarch 0:1.14.2-1.el7
  foreman-selinux.noarch 0:1.14.2-1.el7      katello-agent.noarch 0:2.9.1-1.el7             katello-agent-fact-plugin.noarch 0:2.9.1-1.el7    katello-client-bootstrap.noarch 0:1.2.2-1.el7
  katello-debug.noarch 0:3.3.0-3.el7         katello-installer-base.noarch 0:3.3.0-5.el7    katello-selinux.noarch 0:3.0.2-1.el7              katello-service.noarch 0:3.3.0-3.el7
  pulp-rpm-handlers.noarch 0:2.10.3-1.el7    python-pulp-agent-lib.noarch 0:2.10.3-1.el7    python-pulp-common.noarch 0:2.10.3-1.el7          python-pulp-rpm-common.noarch 0:2.10.3-1.el7
  rubygem-kafo.noarch 0:1.0.5-1.el7          rubygem-kafo_parsers.noarch 0:0.1.5-1.el7      rubygem-rb-inotify.noarch 0:0.9.7-2.el7           rubygem-sinatra.noarch 1:1.4.7-1.el7

Replaced:
  katello-capsule.noarch 0:3.2.2-1.el7

Complete!

as you can see the file /etc/foreman-installer/scenarios.d/capsule-answers.yaml was renamed to /etc/foreman-installer/scenarios.d/capsule-answers.yaml.rpmsave before the posttrans scriptlet wanted to move it.

https://github.com/Katello/katello-packaging/blob/master/katello-installer/katello-installer-base.spec#L42

I'm not sure if its always a rpmsave file or if sometimes this scriptlet gets run when the file is still .yaml. You could catch both cases with a simple if [ -e ...yaml ] and if [ -e ...rpmsave ]

Greetings
Klaas


Related issues 2 (0 open2 closed)

Related to Katello - Bug #18831: foreman-installer --scenario foreman-proxy-content installation failedRejectedJustin Sherrill03/08/2017Actions
Is duplicate of Katello - Bug #20615: Installer doesnt work unless you run --help first.Duplicate08/16/2017Actions
Actions #1

Updated by Justin Sherrill about 7 years ago

  • Assignee set to Eric Helms
  • translation missing: en.field_release set to 226
Actions #2

Updated by Justin Sherrill almost 7 years ago

  • translation missing: en.field_release changed from 226 to 228
Actions #3

Updated by Eric Helms almost 7 years ago

  • translation missing: en.field_release changed from 228 to 258
Actions #4

Updated by Anonymous almost 7 years ago

This also happens on the upgrade of the main katello (3.2 -> 3.3 - not only for smart-proxies.
During package-update I get the same errors:

warning: %posttrans(foreman-installer-katello-3.3.1.4-1.el7.noarch) scriptlet failed, exit status 26
Non-fatal POSTTRANS scriptlet failure in rpm package foreman-installer-katello-3.3.1.4-1.el7.noarch

and it is also the capsule part and not the katello-part, which fails:

[root@test ~]# foreman-installer --scenario katello --migrations-only -v
[root@test ~]# echo $?
0
[root@test ~]# foreman-installer --scenario capsule --migrations-only -v
ERROR: Scenario (/etc/foreman-installer/scenarios.d/capsule.yaml) was not found, can not continue
[root@test ~]# echo $?
26

Actions #5

Updated by Justin Sherrill almost 7 years ago

  • translation missing: en.field_release changed from 258 to 250
Actions #6

Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-packaging/pull/497 added
Actions #7

Updated by Eric Helms over 6 years ago

  • translation missing: en.field_release changed from 250 to 286
Actions #8

Updated by Anonymous over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #9

Updated by Sean O'Keeffe over 6 years ago

  • Is duplicate of Bug #20615: Installer doesnt work unless you run --help first. added
Actions #10

Updated by Sean O'Keeffe over 6 years ago

  • Related to Bug #18831: foreman-installer --scenario foreman-proxy-content installation failed added
Actions

Also available in: Atom PDF