Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1335767

Summary: Upgrades fails to update to pulp 2.8.1 on RHEL6
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: PackagingAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lukas Pramuk <lpramuk>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bmbouter, cduryee, daviddavis, dkliban, ehelms, ggainey, ipanova, mhrivnak, pcreech, rchan, ttereshc
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pulp-2.8.3-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:13:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1335807    

Description Lukas Pramuk 2016-05-13 08:00:51 UTC
Description of problem:
Upgrades fails to update to pulp 2.8.1 on RHEL6

Version-Release number of selected component (if applicable):
6.2.0-Snap11

How reproducible:
alaways

Steps to Reproduce:
1. # yum update
...
  Updating   : python-nectar-1.5.1-3.el6sat.noarch                                                              227/420 
error: %pre(pulp-server-2.8.1.3-1.el6sat.noarch) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package pulp-server-2.8.1.3-1.el6sat.noarch
error:   install: %pre scriptlet failed (2), skipping pulp-server-2.8.1.3-1.el6sat
  Updating   : pulp-docker-plugins-2.0.0.2-1.el6sat.noarch                                                      229/420 
...
pulp-server-2.6.0.20-1.el6.noarch was supposed to be removed but is not!


Actual results:
pulp-server-2.6.0

Expected results:
pulp-server-2.8.1

Additional info:
pulp-server-2.8.1.3-1.el6sat.noarch preinstall script failed

Comment 2 Lukas Pramuk 2016-05-13 12:12:55 UTC
PREIN:

# If we are upgrading
if [ $1 -gt 1 ] ; then
        /sbin/service pulp_workers stop > /dev/null 2>&1
        /sbin/service pulp_celerybeat stop > /dev/null 2>&1
        /sbin/service pulp_resource_manager stop > /dev/null 2>&1
fi

It failed to stop the service? So typical for RHEL6...

Comment 3 Lukas Pramuk 2016-05-17 10:55:44 UTC
Stopping pulp services may fail what will result in failing PREIN script thus failing to upgrade pulp-server package !!!

We are saying to issue "katello-service stop" command prior upgrading anyway.

If still we want to have this in PREIN script then at least lets use more non-blocking form:

if [ $1 -gt 1 ] ; then
        /sbin/service pulp_workers stop > /dev/null 2>&1 || :
        /sbin/service pulp_celerybeat stop > /dev/null 2>&1 || :
        /sbin/service pulp_resource_manager stop > /dev/null 2>&1 || :
fi

WYT?

Comment 4 Chris Duryee 2016-05-17 13:24:17 UTC
I've seen similar bugs in the past where adding '|| :' fixed things up.

It seems OK to me, I will reach out to pulp team for feedback.

Comment 6 Lukas Pramuk 2016-06-02 13:02:00 UTC
VERIFIED.

@satellite-6.2.0-14.1.el6sat.noarch
pulp-server-2.8.3-2.el6sat.noarch

# yum update
...
  Updating   : pulp-server-2.8.3-2.el6sat.noarch                                                                236/431
warning: /etc/default/pulp_workers created as /etc/default/pulp_workers.rpmnew
warning: /etc/httpd/conf.d/pulp.conf created as /etc/httpd/conf.d/pulp.conf.rpmnew
warning: /etc/pulp/server.conf created as /etc/pulp/server.conf.rpmnew
...

>>> by yum pudate you get new pulp-server even if service stop fails

Comment 7 Michael Hrivnak 2016-06-13 02:15:06 UTC
Looks like this is resolved. Let me know if we still need to open an upstream issue on it.

Comment 8 pulp-infra@redhat.com 2016-06-27 19:30:24 UTC
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

Comment 9 pulp-infra@redhat.com 2016-06-27 19:30:27 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.

Comment 10 Bryan Kearney 2016-07-27 11:13:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501

Comment 11 pulp-infra@redhat.com 2016-08-04 15:00:38 UTC
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.

Comment 12 pulp-infra@redhat.com 2016-09-06 19:22:54 UTC
The Pulp upstream bug status is at VERIFIED. Updating the external tracker on this bug.

Comment 13 pulp-infra@redhat.com 2016-09-15 21:02:58 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.