在Docker的必备配置SELinux上,Openshift安装失败(找不到semanage&restorecon命令)

时间:2019-10-25 05:50:51

标签: ansible openshift selinux

规格:

  • Openshift 3.11
  • Ansible 2.6.19
  • RHEL 7.6

Ansible无法运行prereqs安装,如下所示

ansible-playbook -i /etc/ansible/hosts /usr/share/ansible/openshift-ansible/playbooks/prerequisites.yml -vvv 

错误:

{
    "changed": true,
    "cmd": "semanage fcontext -a -e /var/lib/docker/overlay2 \"/var/lib/docker/overlay2\"\n restorecon -R -v \"/var/lib/docker/overlay2\"",
    "delta": "0:00:00.005386",
    "end": "2019-10-22 15:52:19.990999",
    "invocation": {
        "module_args": {
            "_raw_params": "semanage fcontext -a -e /var/lib/docker/overlay2 \"/var/lib/docker/overlay2\"\n restorecon -R -v \"/var/lib/docker/overlay2\"",
            "_uses_shell": true,
            "argv": null,
            "chdir": null,
            "creates": null,
            "executable": null,
            "removes": null,
            "stdin": null,
            "warn": true
        }
    },
    "msg": "non-zero return code",
    "rc": 127,
    "start": "2019-10-22 15:52:19.985613",
    "stderr": "/bin/sh: semanage: command not found\n/bin/sh: line 1: restorecon: command not found",
    "stderr_lines": [
        "/bin/sh: semanage: command not found",
        "/bin/sh: line 1: restorecon: command not found"
    ],
    "stdout": "",
    "stdout_lines": []
}

我遵循了以下网站的一些建议,但均因上述相同错误而失败

0 个答案:

没有答案