ceph osd ERROR: osd init failed: (1) Operation not permitted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-helm |
Expired
|
Undecided
|
Unassigned |
Bug Description
kubectl version
Client Version: version.
Server Version: version.
openstack helm - Multinode deployment
Client: &version.
Server: &version.
Always fails
kubectl -n ceph get pods
NAME READY STATUS RESTARTS AGE
ceph-mds-
ceph-mon-9ntrt 1/1 Running 0 5m
ceph-mon-
ceph-mon-qbsr5 1/1 Running 0 5m
ceph-mon-qw50f 1/1 Running 0 5m
ceph-osd-6kc7c 0/1 CrashLoopBackOff 5 5m
ceph-osd-ltzsq 0/1 CrashLoopBackOff 5 5m
Below are the logs:
kubectl -n ceph logs -f ceph-osd-6kc7c
+ export LC_ALL=C
+ LC_ALL=C
+ source variables_
++ ALL_SCENARIOS=
++ : ceph
++ : ceph-config/ceph
++ :
++ : osd_directory
++ : 1
++ : kube-contrail-
++ : kube-contrail-
++ : /var/lib/
++ : 1
++ : 0
++ : mds-kube-
++ : 0
++ : 100
++ : 0
++ : 0
+++ uuidgen
++ : 4190ac7b-
+++ uuidgen
++ : c296ef19-
++ : root=default host=kube-
++ : 0
++ : cephfs
++ : cephfs_data
++ : 8
++ : cephfs_metadata
++ : 8
++ : kube-contrail-
++ :
++ :
++ : 8080
++ : 0
++ : 9000
++ : 0.0.0.0
++ : cephnfs
++ : 0.0.0.0
++ : 5000
++ : /api/v0.1
++ : warning
++ : /var/log/
++ : k8s
++ : 127.0.0.1
++ : 4001
++ :
++ :
++ CLI_OPTS='--cluster ceph'
++ DAEMON_
++ MOUNT_OPTS='-t xfs -o noatime,inode64'
++ ETCDCTL_
++ [[ k8s == \e\t\c\d ]]
++ MDS_KEYRING=
++ ADMIN_KEYRING=
++ MON_KEYRING=
++ RGW_KEYRING=
++ MDS_BOOTSTRAP_
++ RGW_BOOTSTRAP_
++ OSD_BOOTSTRAP_
++ OSD_PATH_
++ MONMAP=
+ source common_functions.sh
++ set -ex
+ source debug.sh
++ set -e
+++ comma_to_space
+++ echo
+ case "$KV_TYPE" in
+ source /config.k8s.sh
++ set -e
++ to_lowercase osd_directory
++ echo osd_directory
+ CEPH_DAEMON=
+ create_
+ for keyring in '$OSD_BOOTSTRAP
++ dirname /var/lib/
+ mkdir -p /var/lib/
+ for keyring in '$OSD_BOOTSTRAP
++ dirname /var/lib/
+ mkdir -p /var/lib/
+ for keyring in '$OSD_BOOTSTRAP
++ dirname /var/lib/
+ mkdir -p /var/lib/
+ for directory in mon osd mds radosgw tmp mgr
+ mkdir -p /var/lib/ceph/mon
+ for directory in mon osd mds radosgw tmp mgr
+ mkdir -p /var/lib/ceph/osd
+ for directory in mon osd mds radosgw tmp mgr
+ mkdir -p /var/lib/ceph/mds
+ for directory in mon osd mds radosgw tmp mgr
+ mkdir -p /var/lib/
+ for directory in mon osd mds radosgw tmp mgr
+ mkdir -p /var/lib/ceph/tmp
+ for directory in mon osd mds radosgw tmp mgr
+ mkdir -p /var/lib/ceph/mgr
+ mkdir -p /var/lib/
+ mkdir -p /var/run/ceph
+ mkdir -p /var/lib/
+ mkdir -p /var/lib/
+ mkdir -p /var/lib/
+ chown -R ceph. /var/run/ceph/ /var/lib/
+ case "$CEPH_DAEMON" in
+ source start_osd.sh
++ set -ex
++ is_redhat
++ get_package_manager
++ is_available rpm
++ command -v rpm
++ is_available dpkg
++ command -v dpkg
++ OS_VENDOR=ubuntu
++ [[ ubuntu == \r\e\d\h\a\t ]]
++ is_ubuntu
++ get_package_manager
++ is_available rpm
++ command -v rpm
++ is_available dpkg
++ command -v dpkg
++ OS_VENDOR=ubuntu
++ [[ ubuntu == \u\b\u\n\t\u ]]
++ source /etc/default/ceph
+++ TCMALLOC_
+ OSD_TYPE=directory
+ start_osd
+ get_config
+ log 'k8s: config is stored as k8s secrets.'
+ '[' -z 'k8s: config is stored as k8s secrets.' ']'
++ date '+%F %T'
+ TIMESTAMP=
+ echo '2017-08-15 23:42:59 /entrypoint.sh: k8s: config is stored as k8s secrets.'
+ return 0
+ check_config
+ [[ ! -e /etc/ceph/ceph.conf ]]
+ '[' 1 -eq 1 ']'
+ get_admin_key
+ log 'k8s: does not generate the admin key. Use Kubernetes secrets instead.'
+ '[' -z 'k8s: does not generate the admin key. Use Kubernetes secrets instead.' ']'
2017-08-15 23:42:59 /entrypoint.sh: k8s: config is stored as k8s secrets.
++ date '+%F %T'
+ TIMESTAMP=
+ echo '2017-08-15 23:42:59 /entrypoint.sh: k8s: does not generate the admin key. Use Kubernetes secrets instead.'
+ return 0
+ check_admin_key
+ [[ ! -e /etc/ceph/
+ case "$OSD_TYPE" in
+ source osd_directory.sh
2017-08-15 23:42:59 /entrypoint.sh: k8s: does not generate the admin key. Use Kubernetes secrets instead.
++ set -ex
+ source osd_common.sh
+ osd_directory
+ [[ ! -d /var/lib/ceph/osd ]]
+ '[' -z kube-contrail-
++ find /var/lib/ceph/osd -prune -empty
+ [[ -n '' ]]
+ mkdir -p /etc/forego/ceph
+ echo ''
++ ls /var/lib/ceph/osd
++ sed 's/.*-//'
+ for OSD_ID in '$(ls /var/lib/ceph/osd | sed '\''s/.*-//'\'')'
++ get_osd_path 0
++ echo /var/lib/
+ OSD_PATH=
+ OSD_KEYRING=
+ '[' -n '' ']'
+ '[' -n '' ']'
+ OSD_J=/
+ '[' '!' -e /var/lib/
+ echo 'ceph-0: /usr/bin/ceph-osd --cluster ceph -f -i 0 --osd-journal /var/lib/
+ tee -a /etc/forego/
ceph-0: /usr/bin/ceph-osd --cluster ceph -f -i 0 --osd-journal /var/lib/
+ log SUCCESS
+ '[' -z SUCCESS ']'
++ date '+%F %T'
2017-08-15 23:42:59 /entrypoint.sh: SUCCESS
+ TIMESTAMP=
+ echo '2017-08-15 23:42:59 /entrypoint.sh: SUCCESS'
+ return 0
+ start_forego
+ exec /usr/local/
forego | starting ceph-0.1 on port 5000
ceph-0.1 | starting osd.0 at :/0 osd_data /var/lib/
ceph-0.1 | 2017-08-15 23:42:59.266204 7f46027e48c0 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
ceph-0.1 | 2017-08-15 23:42:59.366827 7f46027e48c0 -1 osd.0 173 log_to_monitors {default=true}
ceph-0.1 | 2017-08-15 23:42:59.377318 7f46027e48c0 -1 ** ERROR: osd init failed: (1) Operation not permitted
This issue is reproducible by following the steps
Deploy helm chart ceph. It will deploy ceph.osd
Delete helm delete --purge ceph
Try to deploy ceph once again and will hit the mentioned error