Project

General

Profile

Actions

Bug #12718

closed

ceph-disk always calls restorecon

Added by Loïc Dachary over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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

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
Actions #1

Updated by Loïc Dachary over 8 years ago

  • Status changed from New to 12
  • Assignee set to Loïc Dachary
  • Priority changed from Normal to Urgent
Actions #2

Updated by Loïc Dachary over 8 years ago

  • Description updated (diff)
Actions #3

Updated by Loïc Dachary over 8 years ago

  • Status changed from 12 to Fix Under Review
Actions #4

Updated by Milan Broz over 8 years ago

Interesting, I have if which('restorecon') here locally.

Some wrong patch was merged then...

Actions #5

Updated by Loïc Dachary over 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF