"Can not open /dev/sdc exclusively. Mounted filesystem" running install playbook on Openshift Container Platform 3
Issue
Failing task Load heketi topology when doing an installation of OCP (Openshift Container Platform) using Ansible, with GlusteFS CRS to support registry, and using containerized Heketi to manage GlusterFS CRS.
TASK [openshift_storage_glusterfs : Load heketi topology] *************************************************************************************************************
fatal: [example.com]: FAILED! => {"changed": true, "cmd": ["oc", "rsh", "--namespace=glusterfs", "deploy-heketi-storage-1-v6kcb", "heketi-cli", "-s", "http://localhost:8080", "--user", "admin", "--secret", "mysecret", "topology", "load", "--json=/tmp/openshift-glusterfs-ansible-CDkj1W/topology.json", "2>&1"], "delta": "0:00:12.057576", "end":", "failed": true, "failed_when_result": true, "rc": 0, "start":, "stderr": "", "stderr_lines": [], "stdout": "Creating cluster ... ID: 333cc3c33c3cccccc3cc33c3c3c33ccc333\n\tAllowing file volumes on cluster.\n\tAllowing block volumes on cluster.\n\tCreating node node.example.com ... ID: 111aaaaa111111aa11111111aaaaa1111\n\t\tAdding device /dev/sdc ... Unable to add device: sudo: unable to open log file: /var/log/audit/netsec/sudo.log: No such file or directory\n Can't open /dev/sdc exclusively. Mounted filesystem?\n\tCreating node example.com ... ID: 44d4444dd444d4dd4d44d4d444d44d44\n\t\tAdding device /dev/sdc ... Unable to add device: sudo: unable to open log file: /var/log/audit/netsec/sudo.log: No such file or directory\n Can't open /dev/sdc exclusively. Mounted filesystem?\n\tCreating node example.com ... ID: 222bbb2b2bbbb2bbbbbb222bbb22b2b2b\n\t\tAdding device /dev/sdc ... Unable to add device: sudo: unable to open log file: /var/log/audit/netsec/sudo.log: No such file or directory\n Can't open /dev/sdc exclusively. Mounted filesystem?", "stdout_lines": ["Creating cluster ... ID: 333cc3c33c3cccccc3cc33c3c3c33ccc333", "\tAllowing file volumes on cluster.", "\tAllowing block volumes on cluster.", "\tCreating node node.example.com ... ID: 111aaaaa111111aa11111111aaaaa1111", "\t\tAdding device /dev/sdc ... Unable to add device: sudo: unable to open log file: /var/log/audit/netsec/sudo.log: No such file or directory", " Can't open /dev/sdc exclusively. Mounted filesystem?", "\tCreating node example.com ... ID: 44d4444dd444d4dd4d44d4d444d44d44", "\t\tAdding device /dev/sdc ... Unable to add device: sudo: unable to open log file: /var/log/audit/netsec/sudo.log: No such file or directory", " Can't open /dev/sdc exclusively. Mounted filesystem?", "\tCreating node example.com ... ID: 222bbb2b2bbbb2bbbbbb222bbb22b2b2b", "\t\tAdding device /dev/sdc ... Unable to add device: sudo: unable to open log file: /var/log/audit/netsec/sudo.log: No such file or directory", " Can't open /dev/sdc exclusively. Mounted filesystem?"]}
Environment
Red Hat Openshift Container Platform 3.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
