Bug 2055208

Summary: On RHEL8 offline backup fails with iptables: command not found
Product: Red Hat Satellite Reporter: Lukas Pramuk <lpramuk>
Component: Satellite MaintainAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Gaurav Talreja <gtalreja>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: apatel, kgaikwad
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-16 13:55:27 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 Lukas Pramuk 2022-02-16 13:26:19 UTC
Description of problem:
On RHEL8 offline backup fails with iptables: command not found



Version-Release number of selected component (if applicable):
7.0.0 Snap9
rubygem-foreman_maintain-1.0.3-1.el8sat.noarch

How reproducible:
deterministic

Steps to Reproduce:
1. Run offline backup

# satellite-maintain backup offline /tmp
Starting backup: 2022-02-16 08:00:09 -0500
Running preparation steps required to run the next scenarios
================================================================================
Make sure Foreman DB is up: 
/ Checking connection to the Foreman DB                               [OK]      
--------------------------------------------------------------------------------


Running Backup
================================================================================
Confirm turning off services is allowed: 
WARNING: This script will stop your services.

Do you want to proceed?, [y(yes), q(quit)] y
                                                                      [OK]      
--------------------------------------------------------------------------------
Prepare backup Directory: 
Creating backup folder /tmp/satellite-backup-2022-02-16-08-00-09      [OK]
--------------------------------------------------------------------------------
Check if the directory exists and is writable:                        [OK]
--------------------------------------------------------------------------------
Generate metadata: 
\ Saving metadata to metadata.yml                                     [OK]      
--------------------------------------------------------------------------------
Detect features available in the local proxy:                         [OK]
--------------------------------------------------------------------------------
disable active sync plans: 
- Total 0 sync plans are now disabled.                                [OK]      
--------------------------------------------------------------------------------
Add maintenance_mode chain to iptables:                               [FAIL]
Failed executing iptables -N FOREMAN_MAINTAIN, exit status 127:
 sh: iptables: command not found
--------------------------------------------------------------------------------
Scenario [Backup] failed.

The following steps ended up in failing state:

  [iptables-add-maintenance-mode-chain]

Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="iptables-add-maintenance-mode-chain"


Actual results:
offline backup fails due to missing iptables command

Expected results:
offline backup is successful on RHEL8

Comment 2 Lukas Pramuk 2022-02-16 13:55:27 UTC

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