Project

Profile

Help

Issue #1364

closed

gofer sets __debug__ flag in python interpreter, resulting in yum exception

Added by cduryee over 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Urgent
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

The gofer client makes various calls to yum in order to install packages. It looks like some of the yum code checks for "__debug__" and will raise an exception if the rpm db checksum is invalid. Note that the db index gets cleared before this happens; the error is to aid in debugging. Ideally, the exception will not get raised since it is a "benign" error that is already being handled.

To fix this, I changed the following in /usr/bin/goferd:

diff --git a/bin/gofer b/bin/gofer
index ddb9e9e..033f591 100755
--- a/bin/gofer
+++ b/bin/gofer
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/python -O
 #
 # Copyright (c) 2015 Red Hat, Inc.
 #

To reproduce this issue, you will need to attempt to apply >100 (possibly >200 errata) to a system. More details are in the linked BZ.

Also available in: Atom PDF