Bug 269601

Summary: traceback running lokkit
Product: [Fedora] Fedora Reporter: Jeremy Katz <katzj>
Component: system-config-firewallAssignee: Thomas Woerner <twoerner>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-31 16:24:18 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:    
Bug Blocks: 257221    
Attachments:
Description Flags
/etc/selinux/config from the livecd none

Description Jeremy Katz 2007-08-30 21:43:48 UTC
Running lokkit when doing a live install gives
Traceback (most recent call last):
  File "/usr/sbin/lokkit", line 53, in <module>
    old_config = parseSELinuxArgs(selinux_args, options=old_config)
  File "/usr/share/system-config-firewall/fw_parser.py", line 167, in
parseSELinuxArgs
    return _parse_args(parser, args, options)
  File "/usr/share/system-config-firewall/fw_parser.py", line 148, in _parse_args
    (_options, _args) = parser.parse_args(args, options)
  File "/usr/lib/python2.5/optparse.py", line 1378, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.5/optparse.py", line 1418, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib/python2.5/optparse.py", line 1493, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib/python2.5/optparse.py", line 782, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib/python2.5/optparse.py", line 786, in take_action
    setattr(values, dest, value)
AttributeError: 'list' object has no attribute 'selinux'

Comment 1 Thomas Woerner 2007-08-31 08:55:44 UTC
Please attach your selinux config file and the command line for lokkit, you were
using.

Comment 2 Jeremy Katz 2007-08-31 13:17:15 UTC
Created attachment 183301 [details]
/etc/selinux/config from the livecd

Pretty standard config; things would have been initially generated with
  /usr/sbin/lokkit -f --quiet --nostart --enabled
  /usr/sbin/lokkit -f --quiet --nostart --selinux=enabled

Then, running lokkit --help from the image gives the traceback.  There may have
also been a traceback on running one of the above commands when creating the
image, but I don't have a log of that handy; I'll check as I do another image
in a little bit.

Comment 3 Jeremy Katz 2007-08-31 14:08:38 UTC
Also happens during the install when we run lokkit

Comment 4 Thomas Woerner 2007-08-31 15:14:55 UTC
I can not reproduce the problem here. Do you have an image of the latest live CD
for me?

BTW: --selinux=enabled is not valid in the old and new lokkit:

  --selinux=<mode>      Configure SELinux mode: enforcing, permissive or
                        disabled


Comment 5 Jeremy Katz 2007-08-31 15:28:43 UTC
Ugh, I meant enforcing.  I just can't type what I read.  

I sent you a link to an image via IRC

Comment 6 Thomas Woerner 2007-08-31 16:24:18 UTC
Fixed in rawhide in package system-config-firewall-1.0.5-2.fc8.