Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 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 "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". 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 "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-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 1145462

Summary: KickstartError: /usr/bin/firewall-offline-cmd is missing. Cannot setup firewall.
Product: Red Hat Enterprise Linux 7 Reporter: Petr Spacek <pspacek>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.1CC: jbastian, mosonkonrad, netwiz, pspacek
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:d2e145727177126636e128057fe7d462ca160bfac69734efadc735891c4ad801
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-12 20:18:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1147687    
Bug Blocks:    
Attachments:
Description Flags
File: anaconda-tb
none
File: anaconda.log
none
File: environ
none
File: lsblk_output
none
File: nmcli_dev_list
none
File: os_info
none
File: program.log
none
File: storage.log
none
File: syslog
none
File: ifcfg.log none

Description Petr Spacek 2014-09-23 07:03:56 UTC
Description of problem:
As in bug 1145454, I'm using kickstart from RHEL 7.0 ages to install trully minimal VM. It crashes because /usr/bin/firewall-offline-cmd is missing.

As in bug 1145454, I think that Anaconda should skip firewall configuration when firewalld is not installed.

Version-Release number of selected component:
anaconda-19.31.91-1

The following was filed automatically by anaconda:
anaconda 19.31.91-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 636, in execute
    raise KickstartError(msg)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/install.py", line 85, in doConfiguration
    ksdata.firewall.execute(storage, ksdata, instClass)
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 211, in run
    threading.Thread.run(self, *args, **kwargs)
KickstartError: /usr/bin/firewall-offline-cmd is missing. Cannot setup firewall.

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   inst.sshd dhcpclass=ipa-lab-vms ks=http://gordo.idm.lab.bos.redhat.com/cblr/svc/op/ks/profile/RHEL-7-nightly-x86_64-minimal-brq
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.10.0-160.el7.x86_64
product:        Red Hat Enterprise Linux
release:        Red Hat Enterprise Linux ComputeNode release 7.0 (Maipo)
release_type:   pre-release
type:           anaconda
version:        7.0

Comment 1 Petr Spacek 2014-09-23 07:04:06 UTC
Created attachment 940279 [details]
File: anaconda-tb

Comment 2 Petr Spacek 2014-09-23 07:04:09 UTC
Created attachment 940280 [details]
File: anaconda.log

Comment 3 Petr Spacek 2014-09-23 07:04:11 UTC
Created attachment 940281 [details]
File: environ

Comment 5 Petr Spacek 2014-09-23 07:04:16 UTC
Created attachment 940283 [details]
File: lsblk_output

Comment 6 Petr Spacek 2014-09-23 07:04:17 UTC
Created attachment 940284 [details]
File: nmcli_dev_list

Comment 7 Petr Spacek 2014-09-23 07:04:18 UTC
Created attachment 940285 [details]
File: os_info

Comment 8 Petr Spacek 2014-09-23 07:04:21 UTC
Created attachment 940286 [details]
File: program.log

Comment 9 Petr Spacek 2014-09-23 07:04:24 UTC
Created attachment 940287 [details]
File: storage.log

Comment 10 Petr Spacek 2014-09-23 07:04:28 UTC
Created attachment 940288 [details]
File: syslog

Comment 11 Petr Spacek 2014-09-23 07:04:31 UTC
Created attachment 940289 [details]
File: ifcfg.log

Comment 13 Petr Spacek 2014-09-23 07:05:53 UTC
Please note that RHEL version in bug decsription is incorrect. I'm testing nightly compose RHEL-7.1-20140918.n.0.

Comment 15 Chris Lumens 2014-09-23 13:54:23 UTC
You asked for firewall config in your kickstart file.  This is consistent with other kickstart behavior - if you ask for partitioning we can't do, anaconda fails.  We can maybe clean up the traceback so it looks more like an error, but it needs to stay an error.  What if you are relying on the firewall setup to be just so for post-install?  That could be a nasty surprise.

Comment 16 Petr Spacek 2014-09-23 15:10:26 UTC
Ah, okay. I was confused by fact that it worked in the past.

To be sure: It is supposed to work if I omit "firewall --enabled --port=22:tcp" line from kickstart, right?

Comment 18 Chris Lumens 2014-09-30 17:14:39 UTC
> Ah, okay. I was confused by fact that it worked in the past.
> 
> To be sure: It is supposed to work if I omit "firewall --enabled
> --port=22:tcp" line from kickstart, right?

You may need to add "firewall --disabled" instead.  anaconda does set up a default firewall regardless.

Comment 19 Chris Lumens 2014-12-08 21:10:26 UTC
Okay, can you please retest with the latest trees?  We've got a patch in now that should have the firewall package installed if you reference the firewall command in your kickstart file (and same for authconfig).  See bug 1147867.

Comment 20 Dave Cantrell 2014-12-12 20:18:36 UTC

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

Comment 21 Konrad MosoĊ„ 2014-12-23 14:04:04 UTC
There is no access to #1147687

Comment 22 Steven Haigh 2015-02-13 09:46:16 UTC
You are not authorized to access bug #1147687.

Any details that can be shared? I've come across this too... :\

Comment 23 Petr Spacek 2015-02-18 10:48:12 UTC
Thanks for heads up! The bug #1147687 is now open to public.