Bug 1528993

Summary: [abrt] setroubleshoot-server: results(): typeattrquery.py:65:results:AttributeError: 'NoneType' object has no attribute 'typeattributes'
Product: [Fedora] Fedora Reporter: musasji <giovanni>
Component: setroubleshootAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: bugzilla, dwalsh, mgrepl, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/be12c4dfe99818f68abcfafcb132c4942e22dc0e
Whiteboard: abrt_hash:6cea73593a0b597c73a3a7978ad6a3ebe7e54f5b;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-27 15:18:06 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:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description musasji 2017-12-25 16:48:12 UTC
Version-Release number of selected component:
setroubleshoot-server-3.3.14-1.fc27

Additional info:
reporter:       libreport-2.9.3
cmdline:        /usr/bin/python3 -Es /usr/bin/sealert -b
crash_function: results
exception_type: AttributeError
executable:     /usr/bin/sealert
kernel:         4.14.7-300.fc27.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
typeattrquery.py:65:results:AttributeError: 'NoneType' object has no attribute 'typeattributes'

Traceback (most recent call last):
  File "/usr/bin/sealert", line 56, in <module>
    from setroubleshoot.util import get_identity, load_plugins, log_init, log_debug
  File "/usr/lib/python3.6/site-packages/setroubleshoot/util.py", line 326, in <module>
    file_types =  get_all_file_types()
  File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 914, in get_all_file_types
    file_types = list(sorted(info(ATTRIBUTE, "file_type"))[0]["types"])
  File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 197, in <genexpr>
    return ({
  File "/usr/lib64/python3.6/site-packages/setools/typeattrquery.py", line 65, in results
    for attr in self.policy.typeattributes():
AttributeError: 'NoneType' object has no attribute 'typeattributes'

Local variables in innermost frame:
self: <setools.typeattrquery.TypeAttributeQuery object at 0x7f35fefa76a0>

Comment 1 musasji 2017-12-25 16:48:19 UTC
Created attachment 1372178 [details]
File: backtrace

Comment 2 musasji 2017-12-25 16:48:21 UTC
Created attachment 1372179 [details]
File: cgroup

Comment 3 musasji 2017-12-25 16:48:22 UTC
Created attachment 1372180 [details]
File: cpuinfo

Comment 4 musasji 2017-12-25 16:48:24 UTC
Created attachment 1372181 [details]
File: environ

Comment 5 musasji 2017-12-25 16:48:26 UTC
Created attachment 1372182 [details]
File: mountinfo

Comment 6 musasji 2017-12-25 16:48:29 UTC
Created attachment 1372183 [details]
File: namespaces

Comment 7 musasji 2017-12-25 16:48:31 UTC
Created attachment 1372184 [details]
File: open_fds

Comment 8 Ben Cotton 2018-11-27 14:32:20 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 9 Vit Mojzis 2018-11-27 15:18:06 UTC

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