Project

General

Profile

Actions

Bug #23720

closed

foreman-maintain backup/restore fails on Foreman

Added by Ales Dujicek almost 6 years ago. Updated 2 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

without Katello backup fails in backup-certs-tar-exist, and backup-certs-tar-exist with similar errors

foreman-maintain backup offline -y /tmp/backup

Starting backup: 2018-05-28 07:00:28 -0400
Running preparation steps required to run the next scenarios
================================================================================
Check if proxy certs_tar exist:                                       [31m[1m[FAIL][0m
undefined method `[]' for nil:NilClass
--------------------------------------------------------------------------------

undefined method `[]' for nil:NilClass (NoMethodError)
/usr/share/gems/gems/foreman_maintain-0.2.2/definitions/features/foreman_proxy.rb:71:in `certs_tar'
/usr/share/gems/gems/foreman_maintain-0.2.2/definitions/checks/backup/certs_tar_exist.rb:21:in `certs_tar'
/usr/share/gems/gems/foreman_maintain-0.2.2/definitions/checks/backup/certs_tar_exist.rb:11:in `run'
/usr/share/gems/gems/foreman_maintain-0.2.2/lib/foreman_maintain/executable.rb:139:in `__run__'
/usr/share/gems/gems/foreman_maintain-0.2.2/lib/foreman_maintain/check.rb:40:in `__run__'

--------------------------------------------------------------------------------
Backup config files: 
| Collecting config files to backup                                   [FAIL]    
undefined method `[]' for nil:NilClass
--------------------------------------------------------------------------------

undefined method `[]' for nil:NilClass (NoMethodError)
/usr/share/gems/gems/foreman_maintain-0.2.2/definitions/features/foreman_proxy.rb:71:in `certs_tar'
/usr/share/gems/gems/foreman_maintain-0.2.2/definitions/features/foreman_proxy.rb:50:in `config_files'
/usr/share/gems/gems/foreman_maintain-0.2.2/definitions/procedures/backup/config_files.rb:32:in `config_files'
/usr/share/gems/gems/foreman_maintain-0.2.2/definitions/procedures/backup/config_files.rb:20:in `block in run'

restore fails because of foreman-installer reset:

Failed executing yes | foreman-installer -v --reset , exit status 1:
 ERROR: Unrecognised option '--reset'

rubygem-foreman_maintain-0.2.2
foreman 1.18 nightly

Actions #1

Updated by Eric Helms 2 months ago

  • Status changed from New to Rejected
Actions

Also available in: Atom PDF