Bug 1447619
Summary: | incremental backup with no source dir specified fails with no implicit conversion of nil into String (TypeError) | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Ondrejka <pondrejk> |
Component: | Backup & Restore | Assignee: | Christine Fouant <cfouant> |
Status: | CLOSED ERRATA | QA Contact: | Bruno Rocha <rochacbruno> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2.9 | CC: | bbuckingham, bkearney, egolov, ehelms, rochacbruno |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | katello-3.4.5 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-02-21 17:06:24 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
Peter Ondrejka
2017-05-03 10:44:29 UTC
Connecting redmine issue http://projects.theforeman.org/issues/18756 from this bug Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18756 has been resolved. FAILED_QA Version Tested: Satellite-6.3 Snap 10 katello-common-3.4.4-2.el7sat.noarch While the original error is gone, you still end up with a quite unfriendly traceback when no directory is given: # katello-backup /tmp/ --incremental /sbin/katello-backup:72:in `block in <main>': missing argument: --incremental (OptionParser::MissingArgument) from /sbin/katello-backup:22:in `new' from /sbin/katello-backup:22:in `<main>' I was expecting to see: # katello-backup /tmp/ --incremental katello-backup: Please specify the previous backup directory. This is due to the change that went in later: - opts.on("--incremental [PREVIOUS_BACKUP_DIR]", String, "Backup changes since previous backup") do |dir_path| + opts.on("--incremental PREVIOUS_BACKUP_DIR", String, "Backup changes since previous backup") do |dir_path| Removing the brackets made the value required, but now Ruby's OptionParser outputs the traceback and I can't find a way to tell it to output a friendly message :( During the verification of other BZ I had the chance to verify this one, so taking and moving to verified: Verified with snap 16: [root@cloud-qe-15 v2]# rpm -q satellite satellite-6.3.0-18.0.beta.el7sat.noarch Steps: [root@cloud-qe-15 v2]# katello-backup /tmp/ --incremental missing argument: --incremental Usage: katello-backup /path/to/dir [options] eg: $ katello-backup /tmp/katello-backup --skip-pulp-content Create backup without Pulp content for debugging only --incremental PREVIOUS_BACKUP_DIR Backup changes since previous backup .... .... .... Help message states very clearly that `--incremental` requires a `PREVIOUS_BACKUP_DIR` Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:0336 |