Bug 1390355 - Online Backup fails with --incremental flag
Summary: Online Backup fails with --incremental flag
Keywords:
Status: CLOSED DUPLICATE of bug 1384901
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Backup & Restore
Version: 6.3.0
Hardware: x86_64
OS: Linux
high
high
Target Milestone: Unspecified
Assignee: Christine Fouant
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-31 19:28 UTC by Bruno Rocha
Modified: 2016-11-07 21:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-07 21:18:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


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