Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
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.