Bug 489034 - backup jobs fail when rpm command is found several times in the PATH
Summary: backup jobs fail when rpm command is found several times in the PATH
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: fwbackups
Version: 9
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Stewart Adam
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-06 20:59 UTC by Misho Krastev
Modified: 2009-04-09 16:10 UTC (History)
1 user (show)

Fixed In Version: 1.43.3-0.1.rc1.fc9
Clone Of:
Environment:
Last Closed: 2009-04-09 16:08:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Misho Krastev 2009-03-06 20:59:37 UTC
Description of problem:

If the rpm command is found in multiple locations the PATH env variable fwbackups will create 'RPM - Package list.txt' files in the archive (one for each location). Consequently on the cleanup phase of the backup job the execution will fail because it will try to delete the same files more than one time.

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

1.43.2-2.fc9

How reproducible:

Every time is rpm is found in more than one location.

Steps to Reproduce:
1. Add /bin twice to your PATH. 
2. Run backup job
3.
  
Actual results:

Backup fails due to exception when trying to remove 'RPM - Package list.txt' file.

Expected results:

Backup job should complete successfully.

Additional info:

Function createPkgLists (backend.py:352) needs a break statement after the first successful execution of the rpm command. This will prevent failures in cases where rpm command is found in more than one location in the PATH.

Comment 1 Stewart Adam 2009-03-07 06:36:30 UTC
Thanks for the report - fixed locally, I will generate a patch and update the Fedora RPM soon until 1.43.3 is ready for release.

Comment 2 Fedora Update System 2009-03-23 04:10:14 UTC
fwbackups-1.43.3-0.1.rc1.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/fwbackups-1.43.3-0.1.rc1.fc9

Comment 3 Fedora Update System 2009-03-23 15:54:56 UTC
fwbackups-1.43.3-0.1.rc1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing-newkey update fwbackups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2009-2936

Comment 4 Fedora Update System 2009-03-23 16:00:07 UTC
fwbackups-1.43.3-0.1.rc1.fc10 has been pushed to the Fedora 10 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update fwbackups'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-2972

Comment 5 Fedora Update System 2009-04-09 16:08:06 UTC
fwbackups-1.43.3-0.1.rc1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2009-04-09 16:10:16 UTC
fwbackups-1.43.3-0.1.rc1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.


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