ceph-container: Operation Not Permitted on Multi Node OSD
I am trying to get this working in a multi-node environment and I keep getting operation not permitted errors
I currently have one master node that runs a monitor. When I start an OSD on that node, it comes up fine. I then copied /etc/ceph and /var/lib/ceph to two more machines. When I start the OSD service on those nodes, I get this long output in my logs that seems to be triggered from an Operation not permitted error.
I am really new to ceph so I’m not really sure how to debug this though I did try fiddling with a few files and a lot of googling. Any idea where I’m getting it wrong?
--container="mesos-8aa60360-3d0a-4713-8fe2-60046f2af3c7-S0.aaf45dfd-a687-4d86-8e6c-0e3407979847" --docker="docker" --docker_socket="/var/run/docker.sock" --help="false" --initialize_driver_logging="true" --launcher_dir="/usr/libexec/mesos" --logbufsecs="0" --logging_level="INFO" --mapped_directory="/mnt/mesos/sandbox" --quiet="false" --sandbox_directory="/var/lib/mesos/slaves/8aa60360-3d0a-4713-8fe2-60046f2af3c7-S0/frameworks/8d0d7003-3072-4176-bf49-3d1551cfefb8-0000/executors/ceph_osd.3571d6e3-f933-11e6-a02d-024287699a2c/runs/aaf45dfd-a687-4d86-8e6c-0e3407979847" --stop_timeout="0ns"
--container="mesos-8aa60360-3d0a-4713-8fe2-60046f2af3c7-S0.aaf45dfd-a687-4d86-8e6c-0e3407979847" --docker="docker" --docker_socket="/var/run/docker.sock" --help="false" --initialize_driver_logging="true" --launcher_dir="/usr/libexec/mesos" --logbufsecs="0" --logging_level="INFO" --mapped_directory="/mnt/mesos/sandbox" --quiet="false" --sandbox_directory="/var/lib/mesos/slaves/8aa60360-3d0a-4713-8fe2-60046f2af3c7-S0/frameworks/8d0d7003-3072-4176-bf49-3d1551cfefb8-0000/executors/ceph_osd.3571d6e3-f933-11e6-a02d-024287699a2c/runs/aaf45dfd-a687-4d86-8e6c-0e3407979847" --stop_timeout="0ns"
Registered docker executor on medifor-tower0.sarnoff.internal
Starting task ceph_osd.3571d6e3-f933-11e6-a02d-024287699a2c
2017-02-22 19:15:27 /entrypoint.sh: static: does not generate config
ceph-1: /usr/bin/ceph-osd --cluster ceph -f -i 1 --osd-journal /var/lib/ceph/osd/ceph-1/journal -k /var/lib/ceph/osd/ceph-1/keyring
2017-02-22 19:15:27 /entrypoint.sh: SUCCESS
[0;37;1mforego | [0mstarting ceph-1.1 on port 31854
[0;36;1mceph-1.1 | [0mstarting osd.1 at - osd_data /var/lib/ceph/osd/ceph-1 /var/lib/ceph/osd/ceph-1/journal
[0;36;1mceph-1.1 | [0;31;1m2017-02-22 19:15:27.773422 7fde40a38a40 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
[0m[0;36;1mceph-1.1 | [0;31;1m2017-02-22 19:15:27.792822 7fde40a38a40 -1 osd.1 0 log_to_monitors {default=true}
[0m[0;36;1mceph-1.1 | [0;31;1m2017-02-22 19:15:27.805961 7fde40a38a40 -1 [0;31m ** ERROR: osd init failed: (1) Operation not permitted[0m
[0m[0;36;1mceph-1.1 | [0;31;1m/tmp/buildd/ceph-11.2.0/src/common/HeartbeatMap.cc: In function 'ceph::HeartbeatMap::~HeartbeatMap()' thread 7fde40a38a40 time 2017-02-22 19:15:27.806847
[0m[0;36;1mceph-1.1 | [0;31;1m/tmp/buildd/ceph-11.2.0/src/common/HeartbeatMap.cc: 46: FAILED assert(m_workers.empty())
[0m[0;36;1mceph-1.1 | [0;31;1m ceph version 11.2.0 (f223e27eeb35991352ebc1f67423d4ebc252adb7)
[0m[0;36;1mceph-1.1 | [0;31;1m 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x80) [0x55b5d3251380]
[0m[0;36;1mceph-1.1 | [0;31;1m 2: (ceph::HeartbeatMap::~HeartbeatMap()+0xd1) [0x55b5d3337a71]
[0m[0;36;1mceph-1.1 | [0;31;1m 3: (CephContext::~CephContext()+0x428) [0x55b5d331f498]
[0m[0;36;1mceph-1.1 | [0;31;1m 4: (CephContext::put()+0xec) [0x55b5d331f78c]
[0m[0;36;1mceph-1.1 | [0;31;1m 5: (main()+0xd97) [0x55b5d2aa4f87]
[0m[0;36;1mceph-1.1 | [0;31;1m 6: (__libc_start_main()+0xf0) [0x7fde3e0b1830]
[0m[0;36;1mceph-1.1 | [0;31;1m 7: (_start()+0x29) [0x55b5d2b12dc9]
[0m[0;36;1mceph-1.1 | [0;31;1m NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
[0m[0;36;1mceph-1.1 | [0;31;1m2017-02-22 19:15:27.811335 7fde40a38a40 -1 /tmp/buildd/ceph-11.2.0/src/common/HeartbeatMap.cc: In function 'ceph::HeartbeatMap::~HeartbeatMap()' thread 7fde40a38a40 time 2017-02-22 19:15:27.806847
[0m[0;36;1mceph-1.1 | [0;31;1m/tmp/buildd/ceph-11.2.0/src/common/HeartbeatMap.cc: 46: FAILED assert(m_workers.empty())
[0m[0;36;1mceph-1.1 | [0;31;1m
[0m[0;36;1mceph-1.1 | [0;31;1m ceph version 11.2.0 (f223e27eeb35991352ebc1f67423d4ebc252adb7)
[0m[0;36;1mceph-1.1 | [0;31;1m 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x80) [0x55b5d3251380]
[0m[0;36;1mceph-1.1 | [0;31;1m 2: (ceph::HeartbeatMap::~HeartbeatMap()+0xd1) [0x55b5d3337a71]
[0m[0;36;1mceph-1.1 | [0;31;1m 3: (CephContext::~CephContext()+0x428) [0x55b5d331f498]
[0m[0;36;1mceph-1.1 | [0;31;1m 4: (CephContext::put()+0xec) [0x55b5d331f78c]
[0m[0;36;1mceph-1.1 | [0;31;1m 5: (main()+0xd97) [0x55b5d2aa4f87]
[0m[0;36;1mceph-1.1 | [0;31;1m 6: (__libc_start_main()+0xf0) [0x7fde3e0b1830]
[0m[0;36;1mceph-1.1 | [0;31;1m 7: (_start()+0x29) [0x55b5d2b12dc9]
[0m[0;36;1mceph-1.1 | [0;31;1m NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
[0m[0;36;1mceph-1.1 | [0;31;1m
[0m[0;36;1mceph-1.1 | [0;31;1m -98> 2017-02-22 19:15:27.773422 7fde40a38a40 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
[0m[0;36;1mceph-1.1 | [0;31;1m -56> 2017-02-22 19:15:27.792822 7fde40a38a40 -1 osd.1 0 log_to_monitors {default=true}
[0m[0;36;1mceph-1.1 | [0;31;1m -25> 2017-02-22 19:15:27.805961 7fde40a38a40 -1 [0;31m ** ERROR: osd init failed: (1) Operation not permitted[0m
[0m[0;36;1mceph-1.1 | [0;31;1m 0> 2017-02-22 19:15:27.811335 7fde40a38a40 -1 /tmp/buildd/ceph-11.2.0/src/common/HeartbeatMap.cc: In function 'ceph::HeartbeatMap::~HeartbeatMap()' thread 7fde40a38a40 time 2017-02-22 19:15:27.806847
[0m[0;36;1mceph-1.1 | [0;31;1m/tmp/buildd/ceph-11.2.0/src/common/HeartbeatMap.cc: 46: FAILED assert(m_workers.empty())
[0m[0;36;1mceph-1.1 | [0;31;1m
[0m[0;36;1mceph-1.1 | [0;31;1m ceph version 11.2.0 (f223e27eeb35991352ebc1f67423d4ebc252adb7)
[0m[0;36;1mceph-1.1 | [0;31;1m 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x80) [0x55b5d3251380]
[0m[0;36;1mceph-1.1 | [0;31;1m 2: (ceph::HeartbeatMap::~HeartbeatMap()+0xd1) [0x55b5d3337a71]
[0m[0;36;1mceph-1.1 | [0;31;1m 3: (CephContext::~CephContext()+0x428) [0x55b5d331f498]
[0m[0;36;1mceph-1.1 | [0;31;1m 4: (CephContext::put()+0xec) [0x55b5d331f78c]
[0m[0;36;1mceph-1.1 | [0;31;1m 5: (main()+0xd97) [0x55b5d2aa4f87]
[0m[0;36;1mceph-1.1 | [0;31;1m 6: (__libc_start_main()+0xf0) [0x7fde3e0b1830]
[0m[0;36;1mceph-1.1 | [0;31;1m 7: (_start()+0x29) [0x55b5d2b12dc9]
[0m[0;36;1mceph-1.1 | [0;31;1m NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
[0m[0;36;1mceph-1.1 | [0;31;1m
[0m[0;36;1mceph-1.1 | [0;31;1m*** Caught signal (Aborted) **
[0m[0;36;1mceph-1.1 | [0;31;1m in thread 7fde40a38a40 thread_name:ceph-osd
[0m[0;36;1mceph-1.1 | [0;31;1m ceph version 11.2.0 (f223e27eeb35991352ebc1f67423d4ebc252adb7)
[0m[0;36;1mceph-1.1 | [0;31;1m 1: (()+0x946e4e) [0x55b5d307fe4e]
[0m[0;36;1mceph-1.1 | [0;31;1m 2: (()+0x11390) [0x7fde3fad2390]
[0m[0;36;1mceph-1.1 | [0;31;1m 3: (gsignal()+0x38) [0x7fde3e0c6428]
[0m[0;36;1mceph-1.1 | [0;31;1m 4: (abort()+0x16a) [0x7fde3e0c802a]
[0m[0;36;1mceph-1.1 | [0;31;1m 5: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x26b) [0x55b5d325156b]
[0m[0;36;1mceph-1.1 | [0;31;1m 6: (ceph::HeartbeatMap::~HeartbeatMap()+0xd1) [0x55b5d3337a71]
[0m[0;36;1mceph-1.1 | [0;31;1m 7: (CephContext::~CephContext()+0x428) [0x55b5d331f498]
[0m[0;36;1mceph-1.1 | [0;31;1m 8: (CephContext::put()+0xec) [0x55b5d331f78c]
[0m[0;36;1mceph-1.1 | [0;31;1m 9: (main()+0xd97) [0x55b5d2aa4f87]
[0m[0;36;1mceph-1.1 | [0;31;1m 10: (__libc_start_main()+0xf0) [0x7fde3e0b1830]
[0m[0;36;1mceph-1.1 | [0;31;1m 11: (_start()+0x29) [0x55b5d2b12dc9]
[0m[0;36;1mceph-1.1 | [0;31;1m2017-02-22 19:15:27.817025 7fde40a38a40 -1 *** Caught signal (Aborted) **
[0m[0;36;1mceph-1.1 | [0;31;1m in thread 7fde40a38a40 thread_name:ceph-osd
[0m[0;36;1mceph-1.1 | [0;31;1m
[0m[0;36;1mceph-1.1 | [0;31;1m ceph version 11.2.0 (f223e27eeb35991352ebc1f67423d4ebc252adb7)
[0m[0;36;1mceph-1.1 | [0;31;1m 1: (()+0x946e4e) [0x55b5d307fe4e]
[0m[0;36;1mceph-1.1 | [0;31;1m 2: (()+0x11390) [0x7fde3fad2390]
[0m[0;36;1mceph-1.1 | [0;31;1m 3: (gsignal()+0x38) [0x7fde3e0c6428]
[0m[0;36;1mceph-1.1 | [0;31;1m 4: (abort()+0x16a) [0x7fde3e0c802a]
[0m[0;36;1mceph-1.1 | [0;31;1m 5: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x26b) [0x55b5d325156b]
[0m[0;36;1mceph-1.1 | [0;31;1m 6: (ceph::HeartbeatMap::~HeartbeatMap()+0xd1) [0x55b5d3337a71]
[0m[0;36;1mceph-1.1 | [0;31;1m 7: (CephContext::~CephContext()+0x428) [0x55b5d331f498]
[0m[0;36;1mceph-1.1 | [0;31;1m 8: (CephContext::put()+0xec) [0x55b5d331f78c]
[0m[0;36;1mceph-1.1 | [0;31;1m 9: (main()+0xd97) [0x55b5d2aa4f87]
[0m[0;36;1mceph-1.1 | [0;31;1m 10: (__libc_start_main()+0xf0) [0x7fde3e0b1830]
[0m[0;36;1mceph-1.1 | [0;31;1m 11: (_start()+0x29) [0x55b5d2b12dc9]
[0m[0;36;1mceph-1.1 | [0;31;1m NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
[0m[0;36;1mceph-1.1 | [0;31;1m
[0m[0;36;1mceph-1.1 | [0;31;1m 0> 2017-02-22 19:15:27.817025 7fde40a38a40 -1 *** Caught signal (Aborted) **
[0m[0;36;1mceph-1.1 | [0;31;1m in thread 7fde40a38a40 thread_name:ceph-osd
[0m[0;36;1mceph-1.1 | [0;31;1m
[0m[0;36;1mceph-1.1 | [0;31;1m ceph version 11.2.0 (f223e27eeb35991352ebc1f67423d4ebc252adb7)
[0m[0;36;1mceph-1.1 | [0;31;1m 1: (()+0x946e4e) [0x55b5d307fe4e]
[0m[0;36;1mceph-1.1 | [0;31;1m 2: (()+0x11390) [0x7fde3fad2390]
[0m[0;36;1mceph-1.1 | [0;31;1m 3: (gsignal()+0x38) [0x7fde3e0c6428]
[0m[0;36;1mceph-1.1 | [0;31;1m 4: (abort()+0x16a) [0x7fde3e0c802a]
[0m[0;36;1mceph-1.1 | [0;31;1m 5: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x26b) [0x55b5d325156b]
[0m[0;36;1mceph-1.1 | [0;31;1m 6: (ceph::HeartbeatMap::~HeartbeatMap()+0xd1) [0x55b5d3337a71]
[0m[0;36;1mceph-1.1 | [0;31;1m 7: (CephContext::~CephContext()+0x428) [0x55b5d331f498]
[0m[0;36;1mceph-1.1 | [0;31;1m 8: (CephContext::put()+0xec) [0x55b5d331f78c]
[0m[0;36;1mceph-1.1 | [0;31;1m 9: (main()+0xd97) [0x55b5d2aa4f87]
[0m[0;36;1mceph-1.1 | [0;31;1m 10: (__libc_start_main()+0xf0) [0x7fde3e0b1830]
[0m[0;36;1mceph-1.1 | [0;31;1m 11: (_start()+0x29) [0x55b5d2b12dc9]
[0m[0;36;1mceph-1.1 | [0;31;1m NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
[0m[0;36;1mceph-1.1 | [0;31;1m
[0m
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (10 by maintainers)
same problem here with k8s. running ceph by example. works fine but not persistent. when changing the osd-ds.yaml from
emptyDir: {}
tohostPath:
osd starts with error :