ceph/ceph-ansible

role ceph-nfs can't add ganesha_t to permissive domain

guits opened this issue · 2 comments

guits commented
TASK [ceph-nfs : add ganesha_t to permissive domain] ***************************
task path: /home/jenkins-build/build/workspace/ceph-ansible-nightly-pacific-centos-non_container-stable-6.0-all_daemons/roles/ceph-nfs/tasks/main.yml:35
Tuesday 19 July 2022  16:46:35 +0000 (0:00:02.135)       0:10:53.725 ********** 
redirecting (type: modules) ansible.builtin.selinux_permissive to community.general.selinux_permissive
redirecting (type: modules) community.general.selinux_permissive to community.general.system.selinux_permissive
ok: [nfs0] => changed=false 
  failed_when_result: false
  module_stderr: |-
    Shared connection to 192.168.121.223 closed.
  module_stdout: |-
    Failed to resolve typepermissive statement at /var/lib/selinux/targeted/tmp/modules/400/permissive_ganesha_t/cil:1
    Traceback (most recent call last):
      File "/home/vagrant/.ansible/tmp/ansible-tmp-1658249195.5697093-3979193-83958559715456/AnsiballZ_selinux_permissive.py", line 249, in <module>
        _ansiballz_main()
      File "/home/vagrant/.ansible/tmp/ansible-tmp-1658249195.5697093-3979193-83958559715456/AnsiballZ_selinux_permissive.py", line 239, in _ansiballz_main
        invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
      File "/home/vagrant/.ansible/tmp/ansible-tmp-1658249195.5697093-3979193-83958559715456/AnsiballZ_selinux_permissive.py", line 110, in invoke_module
        runpy.run_module(mod_name='ansible_collections.community.general.plugins.modules.system.selinux_permissive', init_globals=None, run_name='__main__', alter_sys=True)
      File "/usr/lib64/python3.6/runpy.py", line 205, in run_module
        return _run_module_code(code, init_globals, run_name, mod_spec)
      File "/usr/lib64/python3.6/runpy.py", line 96, in _run_module_code
        mod_name, mod_spec, pkg_name, script_name)
      File "/usr/lib64/python3.6/runpy.py", line 85, in _run_code
        exec(code, run_globals)
      File "/tmp/ansible_selinux_permissive_payload_1a4foe9j/ansible_selinux_permissive_payload.zip/ansible_collections/community/general/plugins/modules/system/selinux_permissive.py", line 126, in <module>
      File "/tmp/ansible_selinux_permissive_payload_1a4foe9j/ansible_selinux_permissive_payload.zip/ansible_collections/community/general/plugins/modules/system/selinux_permissive.py", line 108, in main
      File "/usr/lib/python3.6/site-packages/seobject.py", line 515, in add
        self.commit()
      File "/usr/lib/python3.6/site-packages/seobject.py", line 330, in commit
        rc = semanage_commit(self.sh)
    OSError: [Errno 0] Error
  msg: |-
    MODULE FAILURE
    See stdout/stderr for the exact error
  rc: 1

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation.