Bug #12718
Updated by Loïc Dachary over 8 years ago
restorecon must be called only if it's available. It fails all ceph-deploy run on operating systems that do not have selinux installed by default.
It was introduced by https://github.com/ceph/ceph/commit/9db80da12803d42bb676d67f37442c0c54d83448 which is part of https://github.com/ceph/ceph/pull/5421
It does not show in the nightlies because "ceph-deploy suite is run on next and hammer only":http://pulpito.ceph.com/?suite=ceph-deploy
<pre>
2015-08-18T11:23:29.611 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] Traceback (most recent call last):
2015-08-18T11:23:29.612 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] File "/usr/sbin/ceph-disk", line 3204, in <module>
2015-08-18T11:23:29.612 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] main()
2015-08-18T11:23:29.612 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] File "/usr/sbin/ceph-disk", line 3175, in main
2015-08-18T11:23:29.612 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] args.func(args)
2015-08-18T11:23:29.612 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] File "/usr/sbin/ceph-disk", line 1844, in main_prepare
2015-08-18T11:23:29.612 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] luks=luks
2015-08-18T11:23:29.612 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] File "/usr/sbin/ceph-disk", line 1593, in prepare_dev
2015-08-18T11:23:29.613 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] path = mount(dev=dev, fstype=fstype, options=mount_options)
2015-08-18T11:23:29.613 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] File "/usr/sbin/ceph-disk", line 1076, in mount
2015-08-18T11:23:29.613 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] path,
2015-08-18T11:23:29.613 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] File "/usr/sbin/ceph-disk", line 308, in command
2015-08-18T11:23:29.613 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] arguments = _get_command_executable(arguments)
2015-08-18T11:23:29.613 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] File "/usr/sbin/ceph-disk", line 288, in _get_command_executable
2015-08-18T11:23:29.613 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] raise ExecutableNotFound('%s %s' % (executable_msg, command_msg))
2015-08-18T11:23:29.614 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][WARNING] __main__.ExecutableNotFound: restorecon not in path. Could not run command: restorecon /var/lib/ceph/tmp/mnt.RF4z1x
2015-08-18T11:23:29.614 INFO:teuthology.orchestra.run.target169098.stderr:[target169097][ERROR ] RuntimeError: command returned non-zero exit status: 1
</pre>