-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
2.3
-
None
-
False
-
-
False
-
-
-
-
Moderate
Description
<what is happening>
<specify cloud and/or on-premise using labels "crc-automation-hub" and/or "private-automation-hub>
<NOTE: if priority is 'blocker' or 'critical', please provide justification as to why>
Key Dependency Versions
<applicable package versions from api root such as pulpcore, pulp_ansible, pulp_container>
Note: Bug filers can grab dependency package versions from the api root which has pulpcore, pulp_ansible, pulp_container, and galaxy-importer. For the c.rh.c the api root is https://console.redhat.com/api/automation-hub/
Steps to Reproduce
<list explicit steps to reproduce>
<how reproducible: always, under certain conditions, intermittent, seen only once, etc>
Description of problem:
Setup automation hub clusters with CIFS and failed with "invalid selinux context: [Errno 95] Operation not supported"
The full traceback is:
File "/tmp/ansible_file_payload_au4zb2gs/ansible_file_payload.zip/ansible/module_utils/basic.py", line 793, in set_context_if_different
rc = selinux.lsetfilecon(to_native(path), ':'.join(new_context))
File "/tmp/ansible_file_payload_au4zb2gs/ansible_file_payload.zip/ansible/module_utils/compat/selinux.py", line 23, in _check_rc
raise OSError(errno, os.strerror(errno))
fatal: [xx.xx.xx.xx]: FAILED! => {
"changed": false,
"cur_context": [
"system_u",
"object_r",
"cifs_t",
"s0"
],
"gid": 0,
"group": "root",
"input_was": [
"system_u",
"object_r",
"var_lib_t",
null
],
"invocation": {
"module_args":
},
"mode": "0755",
"msg": "invalid selinux context: [Errno 95] Operation not supported",
"new_context": [
"system_u",
"object_r",
"var_lib_t",
"s0"
],
"owner": "root",
"path": "/var/lib/pulp/media",
"secontext": "system_u:object_r:cifs_t:s0",
"size": 0,
"state": "directory",
"uid": 0
}
====
Actual Behavior
<what is happening>
failed
Expected Behavior
<what should happen>
success