Bug 895576

Summary: [abrt] fedup-0.7.2-1.fc17: callback.py:142:procConflictPo:NameError: global name 'po' is not defined
Product: [Fedora] Fedora Reporter: Artem <artem.goncharov>
Component: fedupAssignee: Will Woods <wwoods>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: aaron, bugzilla.acct, bugzilla.redhat.com, desgastada, frank, frankly3d, jonny, kas, metanoite, ramindeh, samuel-rhbugs, tflink, wwoods
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a710eb89a0d83fdf0df58e827750c8f2300961d3
Fixed In Version: fedup-0.7.3-5.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-15 03:29:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: executable
none
File: dso_list
none
File: environ
none
File: smolt_data
none
File: core_backtrace none

Description Artem 2013-01-15 15:02:12 UTC
Version-Release number of selected component:
fedup-0.7.2-1.fc17

Additional info:
libreport version: 2.0.18
abrt_version:   2.0.18
cmdline:        /usr/bin/python /bin/fedup --network 18 --debuglog fedupdebug.log --instrepo http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Fedora/x86_64/os
kernel:         3.6.11-1.fc17.x86_64

backtrace:
:callback.py:142:procConflictPo:NameError: global name 'po' is not defined
:
:Traceback (most recent call last):
:  File "/bin/fedup", line 330, in <module>
:    main(args)
:  File "/bin/fedup", line 275, in main
:    pkgs = download_packages(f)
:  File "/bin/fedup", line 57, in download_packages
:    updates = f.build_update_transaction(callback=output.DepsolveCallback(f))
:  File "/usr/lib/python2.7/site-packages/fedup/download.py", line 185, in build_update_transaction
:    (rv, msgs) = self.buildTransaction(unfinished_transactions_check=False)
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1138, in buildTransaction
:    (rescode, restring) = self._doSkipBroken(rescode, restring)
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1292, in _doSkipBroken
:    rescode, restring = self._skipPackagesWithProblems(rescode, restring)
:  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1365, in _skipPackagesWithProblems
:    rescode, restring = self.resolveDeps(True, skipping_broken=True)
:  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 897, in resolveDeps
:    (checkdep, errormsgs) = self._processConflict(*conflict)
:  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 759, in _processConflict
:    self._dscb_procConflict(po, niceformatneed)
:  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 745, in _dscb_procConflict
:    self.dsCallback.procConflictPo(po, niceformatneed)
:  File "/usr/lib/python2.7/site-packages/fedup/callback.py", line 142, in procConflictPo
:    self.log.debug('CONFLICT: %s → %s', po, formatted_conflict)
:NameError: global name 'po' is not defined
:
:Local variables in innermost frame:
:self: <fedup.textoutput.DepsolveCallback object at 0x7f2e29f81150>
:formatted_conflict: 'systemd < 187'
:name: <YumAvailablePackageSqlite : dracut-024-18.git20130102.fc18.x86_64 (0x5df70d0)>

Comment 1 Artem 2013-01-15 15:02:18 UTC
Created attachment 678820 [details]
File: executable

Comment 2 Artem 2013-01-15 15:02:21 UTC
Created attachment 678821 [details]
File: dso_list

Comment 3 Artem 2013-01-15 15:02:25 UTC
Created attachment 678822 [details]
File: environ

Comment 4 Artem 2013-01-15 15:02:27 UTC
Created attachment 678823 [details]
File: smolt_data

Comment 5 Artem 2013-01-15 15:02:34 UTC
Created attachment 678825 [details]
File: core_backtrace

Comment 6 Thom Carlin 2013-01-16 02:43:47 UTC
Ran fed-up after fixing /boot diskspace problem

Package: fedup-0.7.2-1.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 7 Thom Carlin 2013-01-16 02:52:36 UTC
There is a conflict which is masked by the bug above.  To fix the bug, change line 142 of /usr/lib/python2.7/site-packages/fedup/callback.py
from: self.log.debug('CONFLICT: %s → %s', po, formatted_conflict)
                                          ^^
to: self.log.debug('CONFLICT: %s → %s', name, formatted_conflict)

Comment 8 Artem 2013-01-16 08:08:47 UTC
It seems that yesterday there was problem in repos, as after failing to upgrade system with fedup I used old proven method - yum. I faced lots of multilib conflicts, i.e
Protected multilib versions: jai-imageio-core-1.2-0.10.20100217cvs.fc18.noarch != jai-imageio-core-1.2-0.9.20100217cvs.fc17.noarch
Error: Protected multilib versions: spice-server-0.12.0-1.fc18.x86_64 != spice-server-0.10.1-5.fc17.x86_64
Error: Protected multilib versions: jpackage-utils-1.7.5-20.fc18.x86_64 != jpackage-utils-1.7.5-18.2.fc17.x86_64
Error: Protected multilib versions: gdb-7.5.0.20120926-25.fc18.x86_64 != gdb-7.4.50.20120120-52.fc17.x86_64

Today yum continues fine, fedup starts downloading packages.

Can't reproduce anymore

Comment 9 Jan "Yenya" Kasprzak 2013-01-16 13:43:51 UTC
I have the same error on my F17 machine. The modification described in
comment #7 helps.

# fedup --network 18 --debuglog fedupdebug.log
setting up repos...
getting boot images...
.treeinfo                                                | 1.1 kB     00:00     
setting up update...
finding updates 66% [======================================                    ]Traceback (most recent call last):
  File "/usr/bin/fedup", line 330, in <module>
    main(args)
  File "/usr/bin/fedup", line 275, in main
    pkgs = download_packages(f)
  File "/usr/bin/fedup", line 57, in download_packages
    updates = f.build_update_transaction(callback=output.DepsolveCallback(f))
  File "/usr/lib/python2.7/site-packages/fedup/download.py", line 185, in build_update_transaction
    (rv, msgs) = self.buildTransaction(unfinished_transactions_check=False)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1124, in buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 897, in resolveDeps
    (checkdep, errormsgs) = self._processConflict(*conflict)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 759, in _processConflict
    self._dscb_procConflict(po, niceformatneed)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 745, in _dscb_procConflict
    self.dsCallback.procConflictPo(po, niceformatneed)
  File "/usr/lib/python2.7/site-packages/fedup/callback.py", line 142, in procConflictPo
    self.log.debug('CONFLICT: %s → %s', po, formatted_conflict)
NameError: global name 'po' is not defined

Comment 10 Will Woods 2013-01-16 21:14:19 UTC
This is already fixed in git:

  https://github.com/wgwoods/fedup/commit/2687ba2

there may be a test build shortly.

Comment 11 Will Woods 2013-01-23 16:20:06 UTC
*** Bug 901614 has been marked as a duplicate of this bug. ***

Comment 12 Fedora Update System 2013-01-31 14:45:59 UTC
fedup-0.7.3-0.git20130128.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-0.git20130128.fc17

Comment 13 ramindeh 2013-02-12 17:54:42 UTC
just called the app from commandline as described at fedora.com

Package: fedup-0.7.2-1.fc17
OS Release: Fedora release 17 (Beefy Miracle)

Comment 14 Will Woods 2013-02-13 16:03:56 UTC
You can try the test build mentioned in comment #12 like so:

   yum --enablerepo=updates-testing update fedup

Comment 15 Will Woods 2013-03-04 19:24:57 UTC
*** Bug 917253 has been marked as a duplicate of this bug. ***

Comment 16 Fedora Update System 2013-03-15 23:34:11 UTC
fedup-0.7.3-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-1.fc17

Comment 17 Fedora Update System 2013-03-17 00:53:57 UTC
Package fedup-0.7.3-1.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing fedup-0.7.3-1.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3956/fedup-0.7.3-1.fc17
then log in and leave karma (feedback).

Comment 18 Joao Carlos Mendes Luis 2013-03-18 02:54:03 UTC
I've got upgraded using rawride's version of fedup.  If this is the same, its ok.

Comment 19 Frank Murphy 2013-03-19 08:50:23 UTC
Description of problem:
Ran fedup from a fully updated F17 box, also use yum-local + _local.repo
"fedup --network 18"

Version-Release number of selected component:
fedup-0.7.2-1.fc17

Additional info:
cmdline:        /usr/bin/python /bin/fedup --network 18
dso_list:       yum-3.4.3-76.fc17.noarch
executable:     /bin/fedup
kernel:         3.8.3-103.fc17.i686.PAE
uid:            0
ureports_counter: 1

Truncated backtrace:
callback.py:142:procConflictPo:NameError: global name 'po' is not defined

Traceback (most recent call last):
  File "/bin/fedup", line 330, in <module>
    main(args)
  File "/bin/fedup", line 275, in main
    pkgs = download_packages(f)
  File "/bin/fedup", line 57, in download_packages
    updates = f.build_update_transaction(callback=output.DepsolveCallback(f))
  File "/usr/lib/python2.7/site-packages/fedup/download.py", line 185, in build_update_transaction
    (rv, msgs) = self.buildTransaction(unfinished_transactions_check=False)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1122, in buildTransaction
    (rescode, restring) = self._doSkipBroken(rescode, restring)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1276, in _doSkipBroken
    rescode, restring = self._skipPackagesWithProblems(rescode, restring)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1349, in _skipPackagesWithProblems
    rescode, restring = self.resolveDeps(True, skipping_broken=True)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 897, in resolveDeps
    (checkdep, errormsgs) = self._processConflict(*conflict)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 759, in _processConflict
    self._dscb_procConflict(po, niceformatneed)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 745, in _dscb_procConflict
    self.dsCallback.procConflictPo(po, niceformatneed)
  File "/usr/lib/python2.7/site-packages/fedup/callback.py", line 142, in procConflictPo
    self.log.debug('CONFLICT: %s → %s', po, formatted_conflict)
NameError: global name 'po' is not defined

Local variables in innermost frame:
self: <fedup.textoutput.DepsolveCallback object at 0xb76cb06c>
formatted_conflict: 'mdadm < 3.2.6-14'
name: <YumAvailablePackageSqlite : dracut-024-25.git20130205.fc18.i686 (0xb08678c)>

Comment 20 Frank Murphy 2013-03-19 09:26:32 UTC
(In reply to comment #17)

> https://admin.fedoraproject.org/updates/FEDORA-2013-3956/fedup-0.7.3-1.fc17
> then log in and leave karma (feedback).

Left karma, can others leave some as the case may be

Comment 21 Philipp Gampe 2013-04-16 11:38:01 UTC
Description of problem:
fedup-cli --network 18 --debuglog fedupdebug.log

Version-Release number of selected component:
fedup-0.7.2-1.fc17

Additional info:
cmdline:        /usr/bin/python /bin/fedup-cli --network 18 --debuglog fedupdebug.log
dso_list:       yum-3.4.3-31.fc17.noarch
executable:     /bin/fedup-cli
kernel:         3.8.4-102.fc17.x86_64
uid:            0
ureports_counter: 1

Truncated backtrace:
callback.py:142:procConflictPo:NameError: global name 'po' is not defined

Traceback (most recent call last):
  File "/bin/fedup-cli", line 330, in <module>
    main(args)
  File "/bin/fedup-cli", line 275, in main
    pkgs = download_packages(f)
  File "/bin/fedup-cli", line 57, in download_packages
    updates = f.build_update_transaction(callback=output.DepsolveCallback(f))
  File "/usr/lib/python2.7/site-packages/fedup/download.py", line 185, in build_update_transaction
    (rv, msgs) = self.buildTransaction(unfinished_transactions_check=False)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1124, in buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 897, in resolveDeps
    (checkdep, errormsgs) = self._processConflict(*conflict)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 759, in _processConflict
    self._dscb_procConflict(po, niceformatneed)
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 745, in _dscb_procConflict
    self.dsCallback.procConflictPo(po, niceformatneed)
  File "/usr/lib/python2.7/site-packages/fedup/callback.py", line 142, in procConflictPo
    self.log.debug('CONFLICT: %s → %s', po, formatted_conflict)
NameError: global name 'po' is not defined

Local variables in innermost frame:
self: <fedup.textoutput.DepsolveCallback object at 0x7f439cd08050>
formatted_conflict: 'v8-devel'
name: <RPMInstalledPackage : compat-v8-3.6-devel-3.6.6.25-2.fc17.x86_64 (0x2c1f790)>

Comment 22 Philipp Gampe 2013-04-16 11:51:56 UTC
Update works for me ... will leave karma after testing the full upgrade.

Comment 23 Fedora Update System 2013-04-30 14:50:52 UTC
fedup-0.7.3-3.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/fedup-0.7.3-3.fc18

Comment 24 Fedora Update System 2013-04-30 14:54:50 UTC
fedup-0.7.3-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-3.fc17

Comment 25 Fedora Update System 2013-04-30 15:37:02 UTC
fedup-0.7.3-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-4.fc17

Comment 26 Fedora Update System 2013-04-30 15:37:50 UTC
fedup-0.7.3-4.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/fedup-0.7.3-4.fc18

Comment 27 Fedora Update System 2013-04-30 15:38:51 UTC
fedup-0.7.3-4.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/fedup-0.7.3-4.fc19

Comment 28 Fedora Update System 2013-05-15 03:29:31 UTC
fedup-0.7.3-4.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 29 Fedora Update System 2013-06-07 16:42:43 UTC
fedup-0.7.3-5.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/fedup-0.7.3-5.fc17

Comment 30 Fedora Update System 2013-06-08 03:34:11 UTC
fedup-0.7.3-4.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 31 Fedora Update System 2013-06-23 05:55:58 UTC
fedup-0.7.3-5.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.