My ansible deployment system broke today. The following simple task works with policycoreutils 2.7-2.fc27: - name: Foo sefcontext: target: /usr/bin/whatever setype: xdm_exec_t state: present (It does the equivalent of semanage fcontext -a -t xdm_exec_t /usr/bin/whatever.) But applying a simple update of policycoreutils, policycoreutils-python-utils and policycoreutils-python3 from 2.7-2.fc27 to 2.7-3.fc27 (with no other system changes) causes that task to fail with: AttributeError: 'fcontextRecords' object has no attribute 'set_reload'. The ansible code could certainly be doing something wrong but I wouldn't expect a minor update to break something like this. I haven't yet gotten down into the ansible code to figure out what it's doing. I'm guessing this all comes from selinux-python-fedora.patch; there's a bunch of changes to how the classes are set up.
semanageRecords.set_reload() was removed as it was used inside semanage in a wrong way. It should had been fixed instead and definitely this change should not have happened in Fedora 27. I'm sorry for that. Anyway, fixed policycoreutils is being built for Rawhide and Fedora 27 now. I'll push an update ASAP.
policycoreutils-2.7-4.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6732190fd4
Thank you! I pulled the build from koji and tested it out; everything appears to be working fine now. By the way, if you think it better that Ansible not use set_reload, feel free to comment on https://github.com/ansible/ansible/issues/23841
policycoreutils-2.7-4.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6732190fd4
policycoreutils-2.7-4.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.