Bug 1500612 - [5.7] DEADLOCK: reactivation-key, snapshot_server(), register/delete POSTGRESQL fix was not shipped complete
Summary: [5.7] DEADLOCK: reactivation-key, snapshot_server(), register/delete POSTGRES...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Server
Version: 570
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Kašpárek
QA Contact: Jan Hutař
URL:
Whiteboard:
Depends On:
Blocks: 1490375 1509351 1511563
TreeView+ depends on / blocked
 
Reported: 2017-10-11 08:07 UTC by Tomáš Kašpárek
Modified: 2017-11-09 15:05 UTC (History)
3 users (show)

Fixed In Version: satellite-schema-5.7.0.34-1-sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1511563 (view as bug list)
Environment:
Last Closed: 2017-10-31 12:25:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1459963 0 unspecified CLOSED [5.7] DEADLOCK: reactivation-key, snapshot_server(), register/delete 2021-09-09 12:21:16 UTC
Red Hat Product Errata RHBA-2017:3085 0 normal SHIPPED_LIVE Satellite 5.7 bug fix update 2017-10-31 16:24:49 UTC

Internal Links: 1459963

Description Tomáš Kašpárek 2017-10-11 08:07:25 UTC
Description of problem:
ll schema/satellite/upgrade/satellite-schema-5.7.0.27-to-satellite-schema-5.7.0.32/*postgres

-rw-rw-r--. 1 tkasparek tkasparek 24904 Oct 11 08:45 ../satellite-schema-5.7.0.27-to-satellite-schema-5.7.0.32/001-rhn_server-snapshot_server_deadlock.sql.postgres

001-rhn_server-snapshot_server_deadlock.sql.postgres file is not added to the upgrade script as it does not macth *postgresql (missing l at the end)

which causes following schema diff:
--- procedure_rhn_server_snapshot_server_server_id_in_numeric_reason_in_character_varying_returns_void.1        2017-10-11 08:23:12.682066002 +0200
+++ procedure_rhn_server_snapshot_server_server_id_in_numeric_reason_in_character_varying_returns_void.2        2017-10-11 08:23:12.682066002 +0200
@@ -22,6 +22,7 @@
                        and cf.id = lookup_first_matching_cf(scc.server_id, cfn.path);
        locked integer;
     begin
-        perform lock_counts(server_id_in);
        select nextval('rhn_snapshot_id_seq') into snapshot_id_v;
 
        insert into rhnSnapshot (id, org_id, server_id, reason) (


Version-Release number of selected component (if applicable):
satellite-schema-5.7.0.32-1.el6sat.noarch

How reproducible:
always

Steps to Reproduce:
1. upgrade 5.7 to satellite-schema-5.7.0.32
2. spacewalk-sql -i <<< '\df+ rhn_server.snapshot_server'

Actual results:
lock_counts call is missing in rhn_server.snapshot_server

Expected results:
it's there

Additional info:
oracle works fine

Comment 6 Martin Korbel 2017-10-26 12:06:41 UTC
VERIFIED on satellite-schema-5.7.0.34-1

spacewalk-sql -i <<< '\df+ rhn_server.snapshot_server' | grep lock_counts
                                                                                                                                                     :         perform lock_counts(server_id_in);

Comment 13 errata-xmlrpc 2017-10-31 12:25:12 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-2017:3085


Note You need to log in before you can comment on or make changes to this bug.