Project

General

Profile

Actions

Bug #12818

closed

ceph-disk prepare fails because of --setuser

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

Status:
Resolved
Priority:
Normal
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

This can be reproduced with ceph-disk prepare on CentOS 7. I'm running into this while working on https://github.com/ceph/ceph/pull/5699 and can provide the steps to reproduce if this turns out to be a non trivial error condition.

x7fea5004dd90 con 0x7fea5005b560
2015-08-28 07:53:04.701571 7fea4f7ae700  1 -- 149.202.170.174:0/1022790 <== mon.0 149.202.170.174:6789/0 12 ==== mon_command_ack([{"prefix": "mon getmap"}]=0 got monmap epoch 1 v1) v1 ==== 76+0+198 (216627437 0 579546068) 0x7fea44001350 con 0x7fea5005b560
got monmap epoch 1
2015-08-28 07:53:04.705570 7fea56742700  1 -- 149.202.170.174:0/1022790 mark_down 0x7fea5005b560 -- 0x7fea50062550
2015-08-28 07:53:04.705600 7fea56742700  1 -- 149.202.170.174:0/1022790 mark_down_all
2015-08-28 07:53:04.706101 7fea56742700  1 -- 149.202.170.174:0/1022790 shutdown complete.
2015-08-28 07:53:04.785704 7f696ac6f900 -1 filestore(/var/lib/ceph/tmp/mnt.DNwqiy) mkjournal error creating journal on /var/lib/ceph/tmp/mnt.DNwqiy/journal: (13) Permission denied
2015-08-28 07:53:04.785728 7f696ac6f900 -1 OSD::mkfs: ObjectStore::mkfs failed with error -13
2015-08-28 07:53:04.785798 7f696ac6f900 -1  ** ERROR: error creating empty object store in /var/lib/ceph/tmp/mnt.DNwqiy: (13) Permission denied
ERROR:ceph-disk:Failed to activate
Traceback (most recent call last):
  File "/usr/sbin/ceph-disk", line 3326, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/ceph-disk", line 3285, in main
    main_catch(args.func, args)
  File "/usr/sbin/ceph-disk", line 3304, in main_catch
    func(args)
  File "/usr/sbin/ceph-disk", line 2386, in main_activate
    dmcrypt_key_dir=args.dmcrypt_key_dir,
  File "/usr/sbin/ceph-disk", line 2159, in mount_activate
    (osd_id, cluster) = activate(path, activate_key_template, init)
  File "/usr/sbin/ceph-disk", line 2322, in activate
    keyring=keyring,
  File "/usr/sbin/ceph-disk", line 1925, in mkfs
    '--setgroup', get_ceph_user(),
  File "/usr/sbin/ceph-disk", line 333, in command_check_call
    return subprocess.check_call(arguments)
  File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/ceph-osd', '--cluster', 'ceph', '--mkfs', '--mkkey', '-i', '0', '--monmap', '/var/lib/ceph/tmp/mnt.DNwqiy/activate.monmap', '--osd-data', '/var/lib/ceph/tmp/mnt.DNwqiy', '--osd-journal', '/var/lib/ceph/tmp/mnt.DNwqiy/journal', '--osd-uuid', 'ca7c00a8-4d59-11e5-820b-fa163ee4cd49', '--keyring', '/var/lib/ceph/tmp/mnt.DNwqiy/keyring', '--setuser', 'ceph', '--setgroup', 'ceph']' returned non-zero exit status 1
================ 1 failed, 1 passed, 8 skipped in 34.56 seconds ================

Actions #1

Updated by Loïc Dachary over 8 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF