Bug 1390355

Summary: Online Backup fails with --incremental flag
Product: Red Hat Satellite Reporter: Bruno Rocha <rochacbruno>
Component: Backup & RestoreAssignee: Christine Fouant <cfouant>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.3.0CC: bbuckingham
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 21:18:41 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:

Description Bruno Rocha 2016-10-31 19:28:25 UTC
Description of problem:

Online Backup is failing when --incremental is specified


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

satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch

How reproducible:

6.3.z

Steps to Reproduce:

Create a backup using `--online-backup`

$katello-backup /tmp/b1_dir2 --online-backup 
Starting backup: 2016-10-31 20:14:24 +0100
Creating backup folder /tmp/b1_dir2
Backing up config files... 
tar: Removing leading `/' from member names
Done.
Backing up postgres db... 
Done.
Backing up mongo db... 
Done.
Backing up Pulp data... 
tar: Removing leading `/' from member names
Done.
Done with backup: 2016-10-31 20:14:26 +0100
**** BACKUP Complete, contents can be found in: /tmp/b1_dir2 ****

# perform some changes in the system, create product, repo etc (actually error happens even if nothing is changed)


# Try to run incremental online backup in the same folder

$katello-backup /tmp/b1_dir2 --online-backup --incremental
/usr/bin/katello-backup:17:in `exist?': no implicit conversion of nil into String (TypeError)
	from /usr/bin/katello-backup:17:in `block (2 levels) in <main>'
	from /usr/share/ruby/optparse.rb:1364:in `call'
	from /usr/share/ruby/optparse.rb:1364:in `block in parse_in_order'
	from /usr/share/ruby/optparse.rb:1351:in `catch'
	from /usr/share/ruby/optparse.rb:1351:in `parse_in_order'
	from /usr/share/ruby/optparse.rb:1345:in `order!'
	from /usr/share/ruby/optparse.rb:1437:in `permute!'
	from /usr/share/ruby/optparse.rb:1459:in `parse!'
	from /usr/bin/katello-backup:29:in `block in <main>'
	from /usr/share/ruby/optparse.rb:885:in `initialize'
	from /usr/bin/katello-backup:9:in `new'
	from /usr/bin/katello-backup:9:in `<main>'

$ echo $?
1


Actual results:

/usr/bin/katello-backup:17:in `exist?': no implicit conversion of nil into String (TypeError)

Expected results:

Existing backup would be incremented

Additional info:

satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch

Comment 3 Christine Fouant 2016-11-07 21:17:06 UTC
This was fixed by https://github.com/Katello/katello-packaging/pull/307

Comment 4 Christine Fouant 2016-11-07 21:18:41 UTC

*** This bug has been marked as a duplicate of bug 1384901 ***