Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-2435

Setup automation hub clusters with CIFS and failed with "invalid selinux context: [Errno 95] Operation not supported"

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • 2.3
    • Pulp
    • None
    • False
    • Hide

      None

      Show
      None
    • 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":

      { "_diff_peek": null, "_original_basename": null, "access_time": null, "access_time_format": "%Y%m%d%H%M.%S", "attributes": null, "follow": true, "force": false, "group": "pulp", "mode": "u+rwx,g+rwx,o+rx", "modification_time": null, "modification_time_format": "%Y%m%d%H%M.%S", "owner": "pulp", "path": "/var/lib/pulp/media", "recurse": false, "selevel": null, "serole": "_default", "setype": "_default", "seuser": "_default", "src": null, "state": "directory", "unsafe_writes": false }

      },
      "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

              jtanner@redhat.com James Tanner
              rhn-support-guliu Reid Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: