Bug 836087

Summary: [abrt] policycoreutils-python-2.1.11-18.fc17: seobject.py:274:commit:TypeError: in method 'semanage_set_reload', argument 2 of type 'int'
Product: [Fedora] Fedora Reporter: Juan Orti <jorti>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dougie13a, dwalsh, fedora.jrg01, mgrepl, msuchy
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:e6220ddbdb00713132c71ebb07de3410fc9257f6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-20 15:27:47 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: 848130    

Description Juan Orti 2012-06-28 05:30:35 UTC
libreport version: 2.0.10
abrt_version:   2.0.10
cmdline:        /usr/bin/python -Es /sbin/semanage -S targeted -i -
executable:     /sbin/semanage
kernel:         3.3.7-1.fc17.x86_64
time:           dom 27 may 2012 20:45:39 CEST
uid:            0
username:       root

backtrace:
:seobject.py:274:commit:TypeError: in method 'semanage_set_reload', argument 2 of type 'int'
:
:Traceback (most recent call last):
:  File "/sbin/semanage", line 566, in <module>
:    trans.finish()
:  File "/usr/lib64/python2.7/site-packages/seobject.py", line 285, in finish
:    self.commit()
:  File "/usr/lib64/python2.7/site-packages/seobject.py", line 274, in commit
:    semanage_set_reload(self.sh, self.reload)
:TypeError: in method 'semanage_set_reload', argument 2 of type 'int'
:
:Local variables in innermost frame:
:self: <seobject.semanageRecords instance at 0x2747a28>

Comment 1 Miroslav Grepl 2012-06-29 09:16:20 UTC
Fixed in policycoreutils-2.1.11-19.1.fc17.x86_64

Comment 2 Miroslav Suchý 2012-10-19 14:23:50 UTC
Can you please release it via updates? This is cousing problem for us as well (Katello project).

Comment 3 Miroslav Grepl 2012-10-19 16:14:26 UTC
No idea why this is still opened. I apologize.

Comment 4 Miroslav Suchý 2012-10-20 18:14:26 UTC
You build that package in koji, but it has been garbage collected. Most probably because you did not associate it with update in bodhi.

Comment 5 John Griffiths 2012-10-20 18:14:29 UTC
*** Bug 868064 has been marked as a duplicate of this bug. ***

Comment 6 John Griffiths 2012-10-20 18:16:16 UTC
This is happening in i686 too; 3.6.2-4.fc17.i686.PAE

Comment 7 Fedora Update System 2012-10-24 13:04:38 UTC
policycoreutils-2.1.12-4.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/policycoreutils-2.1.12-4.fc17

Comment 8 Fedora Update System 2012-10-24 23:56:35 UTC
Package policycoreutils-2.1.12-4.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing policycoreutils-2.1.12-4.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16848/policycoreutils-2.1.12-4.fc17
then log in and leave karma (feedback).

Comment 9 Miroslav Suchý 2012-10-30 06:22:10 UTC
I tested the new package and it gets further, but still failing. The error changed from:

Non-fatal POSTIN scriptlet failure in rpm package katello-selinux-1.1.2-1.fc17.noarch
Traceback (most recent call last):
  File "/usr/sbin/semanage", line 566, in <module>
    trans.finish()
  File "/usr/lib64/python2.7/site-packages/seobject.py", line 285, in finish
    self.commit()
  File "/usr/lib64/python2.7/site-packages/seobject.py", line 274, in commit
    semanage_set_reload(self.sh, self.reload)
TypeError: in method 'semanage_set_reload', argument 2 of type 'int'

to:

Non-fatal POSTIN scriptlet failure in rpm package katello-selinux-1.1.2-1.fc17.noarch
Traceback (most recent call last):
  File "/usr/sbin/semanage", line 568, in <module>
    process_args(mkargv(l))
  File "/usr/sbin/semanage", line 449, in process_args
    OBJECT.modify(target, value, use_file)
  File "/usr/lib64/python2.7/site-packages/seobject.py", line 2026, in modify
    name = selinux.selinux_boolean_sub(name)
AttributeError: 'module' object has no attribute 'selinux_boolean_sub'

Comment 10 Miroslav Grepl 2012-10-31 13:34:30 UTC
Fixed in policycoreutils-2.1.12-5.fc17

Comment 11 Miroslav Suchý 2012-10-31 14:45:34 UTC
Indeed.
Thanks.

Comment 12 Fedora Update System 2012-11-01 01:25:22 UTC
Package policycoreutils-2.1.12-5.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing policycoreutils-2.1.12-5.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16848/policycoreutils-2.1.12-5.fc17
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2012-12-20 15:27:49 UTC
policycoreutils-2.1.12-5.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.