OSD cannot start after a pod delete
Hello,
I'm trying to implement Rook in my K8S cluster, managed to use block devices through StorageClass but now i'm challenging Rook resiliency by shutting down OSD nodes. At first when leaving dataDirHostPath: "" in the rook-cluster config, the osd configuration wasn't persistent so at every osd node reboot or osd pod delete/recreate, i lost the configuration of the previous osd. Now i'm using dataDirHostPath: "/var/lib/rook-storage" and the config is saved properly into this directory.
The problem is when i delete an osd pod, on recreating, the osd throws error because he doesn't seem to be able to access the dataDirHostPath mounted in /var/lib/rook.
From my recreated OSD container, i have the mount point and all files as below :
/ # ls -lalh /var/lib/rook/
total 4.0K
drwxr-xr-x 6 root root 87 Jun 14 10:33 .
drwxr-xr-x 1 root root 18 Jun 14 10:33 ..
drwxr--r-- 2 root root 45 Jun 14 10:33 bootstrap-osd
drwxr--r-- 2 root root 40 Jun 13 14:25 mon0
drwxr--r-- 2 root root 40 Jun 14 10:33 mon1
drwxr--r-- 4 root root 201 Jun 14 10:33 osd3
-rw-r--r-- 1 root root 277 Jun 13 14:25 partition-scheme
/ # ls -lalh /var/lib/rook/osd3/
total 1.1G
drwxr--r-- 4 root root 201 Jun 14 10:33 .
drwxr-xr-x 6 root root 87 Jun 14 10:33 ..
-rw-r--r-- 1 root root 37 Jun 14 10:33 ceph_fsid
drwxr-xr-x 4 root root 65 Jun 14 10:33 current
-rw-r--r-- 1 root root 37 Jun 14 10:33 fsid
-rw-r--r-- 1 root root 1.0G Jun 14 10:33 journal
-rw------- 1 root root 56 Jun 14 10:33 keyring
-rw-r--r-- 1 root root 21 Jun 14 10:33 magic
-rw-r--r-- 1 root root 6 Jun 14 10:33 ready
-rw-r--r-- 1 root root 2.0K Jun 14 10:33 rook.config
-rw-r--r-- 1 root root 4 Jun 14 10:33 store_version
-rw-r--r-- 1 root root 53 Jun 14 10:33 superblock
drwxr--r-- 2 root root 29 Jun 14 10:33 tmp
-rw-r--r-- 1 root root 10 Jun 14 10:33 type
-rw-r--r-- 1 root root 2 Jun 14 10:33 whoami
Still, OSD logs show that there is a problem when accessing these files :
2017-06-14 10:33:52.811009 I | mkfs-osd3: 2017-06-14 10:33:52.810967 e222240 0 filestore(/var/lib/rook/osd3) mount: enabling WRITEAHEAD journal mode: checkpoint is not enabled
2017-06-14 10:33:52.811069 I | mkfs-osd3: 2017-06-14 10:33:52.811040 e222240 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
2017-06-14 10:33:52.811990 I | mkfs-osd3: 2017-06-14 10:33:52.811920 e222240 -1 filestore(/var/lib/rook/osd3) could not find #-1:7b3f43c4:::osd_superblock:0# in index: (2) No such file or directory
2017-06-14 10:33:52.839009 I | mkfs-osd3: 2017-06-14 10:33:52.838934 e222240 -1 created object store /var/lib/rook/osd3 for osd.3 fsid ee7d8f35-73a9-4176-a43c-1cc166e1ccce
2017-06-14 10:33:52.839043 I | mkfs-osd3: 2017-06-14 10:33:52.838974 e222240 -1 auth: error reading file: /var/lib/rook/osd3/keyring: can't open /var/lib/rook/osd3/keyring: (2) No such file or directory
2017-06-14 10:33:52.839128 I | mkfs-osd3: 2017-06-14 10:33:52.839099 e222240 -1 created new key in keyring /var/lib/rook/osd3/keyring
2017-06-14 10:33:52.841620 I | mkfs-osd3: 2017-06-14 10:33:52.788249 e222240 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
2017-06-14 10:33:52.841634 I | mkfs-osd3: 2017-06-14 10:33:52.811040 e222240 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
2017-06-14 10:33:52.841645 I | mkfs-osd3: 2017-06-14 10:33:52.811920 e222240 -1 filestore(/var/lib/rook/osd3) could not find #-1:7b3f43c4:::osd_superblock:0# in index: (2) No such file or directory
2017-06-14 10:33:52.841649 I | mkfs-osd3: 2017-06-14 10:33:52.838934 e222240 -1 created object store /var/lib/rook/osd3 for osd.3 fsid ee7d8f35-73a9-4176-a43c-1cc166e1ccce
2017-06-14 10:33:52.841669 I | mkfs-osd3: 2017-06-14 10:33:52.838974 e222240 -1 auth: error reading file: /var/lib/rook/osd3/keyring: can't open /var/lib/rook/osd3/keyring: (2) No such file or directory
2017-06-14 10:33:52.841676 I | mkfs-osd3: 2017-06-14 10:33:52.839099 e222240 -1 created new key in keyring /var/lib/rook/osd3/keyring
2017-06-14 10:33:52.842906 E | cephosd: failed to config osd 3. failed to initialize OSD at /var/lib/rook/osd3: mon_command auth add failed: cephd: Invalid argument
2017-06-14 10:33:52.842918 I | cephosd: 0/1 osd devices succeeded on this
What can i do to get this persistent OSD config setting? I cannot troubleshoot it myself because i have no visibility on the ceph tools used by rookd during the osd init.
It looks like the OSD, after its restarted is just generating a new auth key and the monitors are rejecting it. I wonder if we have a bug here where the OSD isn't properly reusing the host path data dir. Can you share your pod spec for the OSD pod that is experiencing this? something like:
kubectl -n rook get pod <osd-pod-name> -o yaml
The cluster TPR might be useful as well:
kubectl -n rook get cluster -o yaml
Note that OSD/mon reliability is a big focus for the v0.5 milestone we are currently working, so these are exactly the type of issues we want to track down and find solutions for! thanks @Lain92
Here you are :) Happy to help !
apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/created-by: |
{"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"DaemonSet","namespace":"default","name":"osd","uid":"21670320-5044-11e7-a29d-0050568de64d","apiVersion":"extensions","resourceVersion":"92129"}}
creationTimestamp: 2017-06-14T10:33:46Z
generateName: osd-
labels:
app: osd
pod-template-generation: "1"
rook_cluster: default
name: osd-tc2rg
namespace: default
ownerReferences:
- apiVersion: extensions/v1beta1
blockOwnerDeletion: true
controller: true
kind: DaemonSet
name: osd
uid: 21670320-5044-11e7-a29d-0050568de64d
resourceVersion: "92149"
selfLink: /api/v1/namespaces/default/pods/osd-tc2rg
uid: f2647ec1-50ec-11e7-918c-0050568d3653
spec:
containers:
- command:
- /bin/sh
- -c
- sleep 5; echo $(HOSTNAME) | sed "s/\./_/g" > /etc/hostname; hostname -F /etc/hostname;
/usr/bin/rookd osd
env:
- name: HOSTNAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: ROOKD_CLUSTER_NAME
value: rook
- name: ROOKD_MON_ENDPOINTS
valueFrom:
configMapKeyRef:
key: endpoints
name: mon-config
- name: ROOKD_MON_SECRET
valueFrom:
secretKeyRef:
key: mon-secret
name: mon
- name: ROOKD_ADMIN_SECRET
valueFrom:
secretKeyRef:
key: admin-secret
name: mon
- name: ROOKD_CONFIG_DIR
value: /var/lib/rook
- name: ROOKD_CEPH_CONFIG_OVERRIDE
value: /etc/rook/override.conf
- name: ROOKD_DATA_DEVICE_FILTER
value: ^sd[c-z]
- name: ROOKD_OSD_STORE
value: filestore
- name: ROOKD_OSD_DATABASE_SIZE
value: "1024"
- name: ROOKD_OSD_JOURNAL_SIZE
value: "1024"
image: quay.io/rook/rookd:master-latest
imagePullPolicy: IfNotPresent
name: osd
resources: {}
securityContext:
privileged: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/rook
name: rook-data
- mountPath: /dev
name: devices
- mountPath: /etc/rook
name: rook-config-override
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-qf0b4
readOnly: true
dnsPolicy: ClusterFirst
nodeName: k8s-rbd-s1
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.alpha.kubernetes.io/notReady
operator: Exists
- effect: NoExecute
key: node.alpha.kubernetes.io/unreachable
operator: Exists
volumes:
- hostPath:
path: /var/lib/rook-storage
name: rook-data
- hostPath:
path: /dev
name: devices
- configMap:
defaultMode: 420
items:
- key: config
path: override.conf
name: rook-config-override
name: rook-config-override
- name: default-token-qf0b4
secret:
defaultMode: 420
secretName: default-token-qf0b4
status:
conditions:
- lastProbeTime: null
lastTransitionTime: 2017-06-14T10:33:46Z
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: 2017-06-14T10:33:47Z
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: 2017-06-14T10:33:47Z
status: "True"
type: PodScheduled
containerStatuses:
- containerID: docker://7b1a64752d986975dd45c215eda4f154c21996d762698211a6a33ddcbfbd0720
image: quay.io/rook/rookd:master-latest
imageID: docker-pullable://quay.io/rook/rookd@sha256:748fe324a904cd6fdc9a13be684bbe0681c610fef68ba0bc52b1bfb2746ec30e
lastState: {}
name: osd
ready: true
restartCount: 0
state:
running:
startedAt: 2017-06-14T10:33:47Z
hostIP: 192.168.40.155
phase: Running
podIP: 10.201.57.6
qosClass: BestEffort
startTime: 2017-06-14T10:33:46Z
FYI, i run all rook pods into the default namespace because i couldn't figure out when rook creates the rook namespace as it doesn't in my setup.
FYI, I'm also experiencing something similar. Tried to delete an osd pod to see what would happen and it never came back.
Initially, the new pod was dumping a go stack trace and the process would exit.
I ended up cleaning up the config dirs on the host and deleting the pod again but then it couldn't come up properly because with a new keyring but the same name, the mons were rejecting it.
You can find some of the relevant logs here: https://gist.github.com/alkar/9ccbf5ff96057f0f6c8220e89ef1a2b8
Hi all, I am quite new to all this. I'm having same issue after restarting the machine. mon0, mon1 & mon2 started erroring out and when I deleted them (in the hope that osd will create / restart them with proper values). :(
I used following commands to set it up.
$ kubectl apply -f https://raw.githubusercontent.com/rook/rook/release-0.4/demo/kubernetes/rook-operator.yaml
clusterrole "rook-operator" created
serviceaccount "rook-operator" created
clusterrolebinding "rook-operator" created
deployment "rook-operator" created
$ kubectl apply -f https://raw.githubusercontent.com/rook/rook/release-0.4/demo/kubernetes/rook-cluster.yaml
cluster "my-rook" created
$ kubectl apply -f https://raw.githubusercontent.com/rook/rook/release-0.4/demo/kubernetes/rook-storageclass.yaml
pool "replicapool" created
storageclass "rook-block" created
$ # Repeat this step for all namespaces you want to deploy PersistentVolumes with Rook in
$ kubectl get secret rook-rook-user -oyaml | sed "/resourceVer/d;/uid/d;/self/d;/creat/d;/namespace/d" | kubectl -n kube-system apply -f -
secret "rook-rook-user" created
$ # In order to make Rook the default Storage Provider by making the `rook-block` Storage Class the default, run this:
$ kubectl patch storageclass rook-block -p '{"metadata":{"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
storageclass "rook-block" patched
$ apt-get update && apt-get install ceph-common -y
Thanks in advance.
@daveamit you're hitting #586, which would cause the mons to fail, separately from this issue wih the OSD pod.
Thanks @travisn (I have no idea how I missed that), I guess I'll just wait for v0.5. I am in no hurry, for now i'll just play around by manually provisioning volumes by hostPath.
Thanks !
@Lain92 I am unable to reproduce this issue today with master-latest. Can you help verify my attempted repro steps?
I set the following in https://github.com/rook/rook/blob/master/demo/kubernetes/rook-cluster.yaml but kept all other defaults:
dataDirHostPath: /var/lib/rook-storage
I waited for the cluster to come up, then picked one of the OSD pods to delete (other pods omitted):
> kubectl -n rook get pod -o wide
NAME READY STATUS RESTARTS AGE IP NODE
rook-ceph-osd-1nrv7 1/1 Running 0 3m 10.2.78.7 172.17.4.101
rook-ceph-osd-rw5nh 1/1 Running 0 3m 10.2.81.7 172.17.4.201
> kubectl -n rook delete pod rook-ceph-osd-rw5nh
pod "rook-ceph-osd-rw5nh" deleted
The daemonset kicked in and created a new pod in its place (on the same host):
> kubectl -n rook get pod -o wide
NAME READY STATUS RESTARTS AGE IP NODE
rook-ceph-osd-1nrv7 1/1 Running 0 9m 10.2.78.7 172.17.4.101
rook-ceph-osd-phkr9 1/1 Running 0 4m 10.2.81.7 172.17.4.201
That pod was able to see the existing config/keyring/etc from the host path and it did not perform the OSD mkfs operation. The pod is up and running and the cluster is happy, from rookctl status in the toolbox:
OSDs:
TOTAL UP IN FULL NEAR FULL
2 2 2 false false
PLACEMENT GROUPS (2048 total):
STATE COUNT
active+clean 2048
Are there any different repro steps you were taking or something I'm missing? Is it possible that in your case, your OSD pod got rescheduled to a different node, which would be missing the config/keyring from the host path on the first node? (is that even possible when using a daemonset?) Thanks!
@jbw976 I tried again to reproduce the same issue and succeeded. Here is the log of the osd after crashing it one time :
[root@k8s-rook-m1 ~]# kubectl logs rook-ceph-osd-n8rzb
2017-06-28 11:02:03.942079 I | cephmon: parsing mon endpoints: rook-ceph-mon0=10.201.12.4:6790,rook-ceph-mon1=10.201.62.5:6790,rook-ceph-mon2=10.201.45.4:6790
2017-06-28 11:02:03.942504 I | cephmon: writing config file /var/lib/rook/default/default.config
2017-06-28 11:02:03.942714 I | cephmon: generated admin config in /var/lib/rook/default
2017-06-28 11:02:03.942727 I | cephosd: discovering hardware
2017-06-28 11:02:03.942738 I | exec: Running command: lsblk --all --noheadings --list --output KNAME
2017-06-28 11:02:03.945581 I | exec: Running command: lsblk /dev/sda --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
2017-06-28 11:02:03.947865 I | exec: Running command: sgdisk --print /dev/sda
2017-06-28 11:02:03.951353 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:03.952916 I | exec: Running command: lsblk /dev/sda1 --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
2017-06-28 11:02:03.954879 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:03.956380 I | exec: Running command: lsblk /dev/sda2 --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
2017-06-28 11:02:03.958697 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:03.959951 I | exec: Running command: lsblk /dev/sdb --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
2017-06-28 11:02:03.961658 I | exec: Running command: sgdisk --print /dev/sdb
2017-06-28 11:02:03.964706 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:03.966036 I | exec: Running command: lsblk /dev/sdc --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
2017-06-28 11:02:03.968648 I | exec: Running command: sgdisk --print /dev/sdc
2017-06-28 11:02:03.974290 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:03.975507 I | exec: Running command: lsblk /dev/sdc1 --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
2017-06-28 11:02:03.978017 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:03.979233 I | exec: Running command: lsblk /dev/dm-0 --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
2017-06-28 11:02:03.981346 I | exec: Running command: lsblk /dev/dm-1 --bytes --nodeps --pairs --output SIZE,ROTA,RO,TYPE,PKNAME
2017-06-28 11:02:03.983203 I | cephosd: creating and starting the osds
2017-06-28 11:02:03.983235 I | exec: Running command: lsblk /dev/sda --bytes --pairs --output NAME,SIZE,TYPE,PKNAME
2017-06-28 11:02:03.985694 I | exec: Running command: blkid /dev/sda1 -s PARTLABEL -o value
2017-06-28 11:02:03.988211 I | exec: Running command: blkid /dev/sda2 -s PARTLABEL -o value
2017-06-28 11:02:03.989926 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:03.991178 I | cephosd: skipping device sda that is in use (not by rook). fs: , ownPartitions: false
2017-06-28 11:02:03.991197 I | exec: Running command: lsblk /dev/sdb --bytes --pairs --output NAME,SIZE,TYPE,PKNAME
2017-06-28 11:02:03.992983 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:03.994250 I | cephosd: skipping device sdb that is in use (not by rook). fs: xfs, ownPartitions: true
2017-06-28 11:02:03.994270 I | exec: Running command: lsblk /dev/sdc --bytes --pairs --output NAME,SIZE,TYPE,PKNAME
2017-06-28 11:02:03.996139 I | exec: Running command: blkid /dev/sdc1 -s PARTLABEL -o value
2017-06-28 11:02:04.020375 I | exec: Running command: df --output=source,fstype
2017-06-28 11:02:04.022188 I | cephosd: configuring osd devices: &{Entries:map[sdc:0xc42017f480]}
2017-06-28 11:02:04.022221 I | cephosd: configuring osd dirs: map[]
2017-06-28 11:02:04.022233 I | sleeping a while to let the osds run...
2017-06-28 11:02:04.022725 I | cephmon: writing config file /var/lib/rook/osd3/default.config
2017-06-28 11:02:04.023505 I | exec: Running command: ceph mon getmap --cluster=default --conf=/var/lib/rook/default/default.config --keyring=/var/lib/rook/default/client.admin.keyring --format json --out-file /tmp/017770828
2017-06-28 11:02:04.238850 I | exec: got monmap epoch 3
2017-06-28 11:02:04.238961 I | cephosd: Initializing OSD 3 file system at /var/lib/rook/osd3...
2017-06-28 11:02:04.239218 I | proc: Running process ceph-osd with args: [--mkfs --mkkey --id=3 --cluster=default --conf=/var/lib/rook/osd3/default.config --osd-data=/var/lib/rook/osd3 --osd-uuid=a8a5e0e0-f626-416b-8ccb-4a90abb95a2b --monmap=/var/lib/rook/osd3/tmp/activate.monmap --osd-journal=/var/lib/rook/osd3/journal --keyring=/var/lib/rook/osd3/keyring]
2017-06-28 11:02:04.239237 I | exec: Running command: ceph-osd --mkfs --mkkey --id=3 --cluster=default --conf=/var/lib/rook/osd3/default.config --osd-data=/var/lib/rook/osd3 --osd-uuid=a8a5e0e0-f626-416b-8ccb-4a90abb95a2b --monmap=/var/lib/rook/osd3/tmp/activate.monmap --osd-journal=/var/lib/rook/osd3/journal --keyring=/var/lib/rook/osd3/keyring
2017-06-28 11:02:04.254711 I | mkfs-osd3: 2017-06-28 11:02:04.254593 7f0e8128ac80 0 ceph version 322840bc7 (b322840bc716d86b322b7f78c31cc7f9ae42c1a4) luminous (dev), process (unknown), pid 66
2017-06-28 11:02:04.294292 I | mkfs-osd3: 2017-06-28 11:02:04.294190 7f0e8128ac80 0 filestore(/var/lib/rook/osd3) backend generic (magic 0x58465342)
2017-06-28 11:02:04.331918 I | mkfs-osd3: 2017-06-28 11:02:04.331834 7f0e8128ac80 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
2017-06-28 11:02:04.354794 I | mkfs-osd3: 2017-06-28 11:02:04.354697 7f0e8128ac80 0 filestore(/var/lib/rook/osd3) mkjournal(1061): created journal on /var/lib/rook/osd3/journal
2017-06-28 11:02:04.363873 I | mkfs-osd3: 2017-06-28 11:02:04.363821 7f0e8128ac80 0 filestore(/var/lib/rook/osd3) backend generic (magic 0x58465342)
2017-06-28 11:02:04.364303 I | mkfs-osd3: 2017-06-28 11:02:04.364254 7f0e8128ac80 0 genericfilestorebackend(/var/lib/rook/osd3) detect_features: FIEMAP ioctl is disabled via 'filestore fiemap' config option
2017-06-28 11:02:04.364322 I | mkfs-osd3: 2017-06-28 11:02:04.364267 7f0e8128ac80 0 genericfilestorebackend(/var/lib/rook/osd3) detect_features: SEEK_DATA/SEEK_HOLE is disabled via 'filestore seek data hole' config option
2017-06-28 11:02:04.364326 I | mkfs-osd3: 2017-06-28 11:02:04.364268 7f0e8128ac80 0 genericfilestorebackend(/var/lib/rook/osd3) detect_features: splice() is disabled via 'filestore splice' config option
2017-06-28 11:02:04.370289 I | mkfs-osd3: 2017-06-28 11:02:04.370246 7f0e8128ac80 0 genericfilestorebackend(/var/lib/rook/osd3) detect_features: syncfs(2) syscall fully supported (by glibc and kernel)
2017-06-28 11:02:04.370776 I | mkfs-osd3: 2017-06-28 11:02:04.370742 7f0e8128ac80 0 filestore(/var/lib/rook/osd3) start omap initiation
2017-06-28 11:02:04.370972 I | mkfs-osd3: 2017-06-28 11:02:04.370914 7f0e8128ac80 4 rocksdb: RocksDB version: 5.4.0
2017-06-28 11:02:04.370981 I | mkfs-osd3:
2017-06-28 11:02:04.370988 I | mkfs-osd3: 2017-06-28 11:02:04.370927 7f0e8128ac80 4 rocksdb: Git sha rocksdb_build_git_sha:@e15382c09c87a65eaeca9bda233bab503f1e5772@
2017-06-28 11:02:04.370991 I | mkfs-osd3: 2017-06-28 11:02:04.370929 7f0e8128ac80 4 rocksdb: Compile date Jun 27 2017
2017-06-28 11:02:04.370997 I | mkfs-osd3: 2017-06-28 11:02:04.370931 7f0e8128ac80 4 rocksdb: DB SUMMARY
2017-06-28 11:02:04.371000 I | mkfs-osd3:
2017-06-28 11:02:04.371159 I | mkfs-osd3: 2017-06-28 11:02:04.370961 7f0e8128ac80 4 rocksdb: CURRENT file: CURRENT
2017-06-28 11:02:04.371167 I | mkfs-osd3:
2017-06-28 11:02:04.371172 I | mkfs-osd3: 2017-06-28 11:02:04.370966 7f0e8128ac80 4 rocksdb: IDENTITY file: IDENTITY
2017-06-28 11:02:04.371175 I | mkfs-osd3:
2017-06-28 11:02:04.371179 I | mkfs-osd3: 2017-06-28 11:02:04.370969 7f0e8128ac80 4 rocksdb: MANIFEST file: MANIFEST-000001 size: 13 Bytes
2017-06-28 11:02:04.371182 I | mkfs-osd3:
2017-06-28 11:02:04.371185 I | mkfs-osd3: 2017-06-28 11:02:04.370972 7f0e8128ac80 4 rocksdb: SST files in /var/lib/rook/osd3/current/omap dir, Total Num: 0, files:
2017-06-28 11:02:04.371188 I | mkfs-osd3:
2017-06-28 11:02:04.371194 I | mkfs-osd3: 2017-06-28 11:02:04.370973 7f0e8128ac80 4 rocksdb: Write Ahead Log file in /var/lib/rook/osd3/current/omap: 000003.log size: 0 ;
2017-06-28 11:02:04.371197 I | mkfs-osd3:
2017-06-28 11:02:04.371200 I | mkfs-osd3: 2017-06-28 11:02:04.370980 7f0e8128ac80 4 rocksdb: Options.error_if_exists: 0
2017-06-28 11:02:04.371204 I | mkfs-osd3: 2017-06-28 11:02:04.370981 7f0e8128ac80 4 rocksdb: Options.create_if_missing: 1
2017-06-28 11:02:04.371211 I | mkfs-osd3: 2017-06-28 11:02:04.370981 7f0e8128ac80 4 rocksdb: Options.paranoid_checks: 1
2017-06-28 11:02:04.371216 I | mkfs-osd3: 2017-06-28 11:02:04.370982 7f0e8128ac80 4 rocksdb: Options.env: 0x7f0e8a79c8e0
2017-06-28 11:02:04.371219 I | mkfs-osd3: 2017-06-28 11:02:04.370983 7f0e8128ac80 4 rocksdb: Options.info_log: 0x7f0e8ca8d4a0
2017-06-28 11:02:04.371223 I | mkfs-osd3: 2017-06-28 11:02:04.370983 7f0e8128ac80 4 rocksdb: Options.max_open_files: -1
2017-06-28 11:02:04.371226 I | mkfs-osd3: 2017-06-28 11:02:04.370984 7f0e8128ac80 4 rocksdb: Options.max_file_opening_threads: 16
2017-06-28 11:02:04.371228 I | mkfs-osd3: 2017-06-28 11:02:04.370984 7f0e8128ac80 4 rocksdb: Options.use_fsync: 0
2017-06-28 11:02:04.371231 I | mkfs-osd3: 2017-06-28 11:02:04.370985 7f0e8128ac80 4 rocksdb: Options.max_log_file_size: 0
2017-06-28 11:02:04.371234 I | mkfs-osd3: 2017-06-28 11:02:04.370986 7f0e8128ac80 4 rocksdb: Options.max_manifest_file_size: 18446744073709551615
2017-06-28 11:02:04.371237 I | mkfs-osd3: 2017-06-28 11:02:04.370986 7f0e8128ac80 4 rocksdb: Options.log_file_time_to_roll: 0
2017-06-28 11:02:04.371240 I | mkfs-osd3: 2017-06-28 11:02:04.370987 7f0e8128ac80 4 rocksdb: Options.keep_log_file_num: 1000
2017-06-28 11:02:04.371243 I | mkfs-osd3: 2017-06-28 11:02:04.370988 7f0e8128ac80 4 rocksdb: Options.recycle_log_file_num: 0
2017-06-28 11:02:04.371246 I | mkfs-osd3: 2017-06-28 11:02:04.370988 7f0e8128ac80 4 rocksdb: Options.allow_fallocate: 1
2017-06-28 11:02:04.371250 I | mkfs-osd3: 2017-06-28 11:02:04.370989 7f0e8128ac80 4 rocksdb: Options.allow_mmap_reads: 0
2017-06-28 11:02:04.371253 I | mkfs-osd3: 2017-06-28 11:02:04.370989 7f0e8128ac80 4 rocksdb: Options.allow_mmap_writes: 0
2017-06-28 11:02:04.371256 I | mkfs-osd3: 2017-06-28 11:02:04.370990 7f0e8128ac80 4 rocksdb: Options.use_direct_reads: 0
2017-06-28 11:02:04.371259 I | mkfs-osd3: 2017-06-28 11:02:04.370991 7f0e8128ac80 4 rocksdb: Options.use_direct_io_for_flush_and_compaction: 0
2017-06-28 11:02:04.371262 I | mkfs-osd3: 2017-06-28 11:02:04.370991 7f0e8128ac80 4 rocksdb: Options.create_missing_column_families: 0
2017-06-28 11:02:04.371265 I | mkfs-osd3: 2017-06-28 11:02:04.370992 7f0e8128ac80 4 rocksdb: Options.db_log_dir:
2017-06-28 11:02:04.371268 I | mkfs-osd3: 2017-06-28 11:02:04.370993 7f0e8128ac80 4 rocksdb: Options.wal_dir: /var/lib/rook/osd3/current/omap
2017-06-28 11:02:04.371272 I | mkfs-osd3: 2017-06-28 11:02:04.370994 7f0e8128ac80 4 rocksdb: Options.table_cache_numshardbits: 6
2017-06-28 11:02:04.371276 I | mkfs-osd3: 2017-06-28 11:02:04.370994 7f0e8128ac80 4 rocksdb: Options.max_subcompactions: 1
2017-06-28 11:02:04.371279 I | mkfs-osd3: 2017-06-28 11:02:04.370995 7f0e8128ac80 4 rocksdb: Options.max_background_flushes: 1
2017-06-28 11:02:04.371284 I | mkfs-osd3: 2017-06-28 11:02:04.370995 7f0e8128ac80 4 rocksdb: Options.WAL_ttl_seconds: 0
2017-06-28 11:02:04.371287 I | mkfs-osd3: 2017-06-28 11:02:04.370996 7f0e8128ac80 4 rocksdb: Options.WAL_size_limit_MB: 0
2017-06-28 11:02:04.371291 I | mkfs-osd3: 2017-06-28 11:02:04.370997 7f0e8128ac80 4 rocksdb: Options.manifest_preallocation_size: 4194304
2017-06-28 11:02:04.371297 I | mkfs-osd3: 2017-06-28 11:02:04.370997 7f0e8128ac80 4 rocksdb: Options.is_fd_close_on_exec: 1
2017-06-28 11:02:04.371301 I | mkfs-osd3: 2017-06-28 11:02:04.370998 7f0e8128ac80 4 rocksdb: Options.advise_random_on_open: 1
2017-06-28 11:02:04.371305 I | mkfs-osd3: 2017-06-28 11:02:04.370998 7f0e8128ac80 4 rocksdb: Options.db_write_buffer_size: 0
2017-06-28 11:02:04.371308 I | mkfs-osd3: 2017-06-28 11:02:04.370999 7f0e8128ac80 4 rocksdb: Options.access_hint_on_compaction_start: 1
2017-06-28 11:02:04.371311 I | mkfs-osd3: 2017-06-28 11:02:04.371000 7f0e8128ac80 4 rocksdb: Options.new_table_reader_for_compaction_inputs: 0
2017-06-28 11:02:04.371314 I | mkfs-osd3: 2017-06-28 11:02:04.371000 7f0e8128ac80 4 rocksdb: Options.compaction_readahead_size: 0
2017-06-28 11:02:04.371317 I | mkfs-osd3: 2017-06-28 11:02:04.371001 7f0e8128ac80 4 rocksdb: Options.random_access_max_buffer_size: 1048576
2017-06-28 11:02:04.371319 I | mkfs-osd3: 2017-06-28 11:02:04.371001 7f0e8128ac80 4 rocksdb: Options.writable_file_max_buffer_size: 1048576
2017-06-28 11:02:04.371323 I | mkfs-osd3: 2017-06-28 11:02:04.371002 7f0e8128ac80 4 rocksdb: Options.use_adaptive_mutex: 0
2017-06-28 11:02:04.371325 I | mkfs-osd3: 2017-06-28 11:02:04.371003 7f0e8128ac80 4 rocksdb: Options.rate_limiter: (nil)
2017-06-28 11:02:04.371347 I | mkfs-osd3: 2017-06-28 11:02:04.371004 7f0e8128ac80 4 rocksdb: Options.sst_file_manager.rate_bytes_per_sec: 0
2017-06-28 11:02:04.371351 I | mkfs-osd3: 2017-06-28 11:02:04.371004 7f0e8128ac80 4 rocksdb: Options.bytes_per_sync: 0
2017-06-28 11:02:04.371354 I | mkfs-osd3: 2017-06-28 11:02:04.371005 7f0e8128ac80 4 rocksdb: Options.wal_bytes_per_sync: 0
2017-06-28 11:02:04.371357 I | mkfs-osd3: 2017-06-28 11:02:04.371005 7f0e8128ac80 4 rocksdb: Options.wal_recovery_mode: 2
2017-06-28 11:02:04.371360 I | mkfs-osd3: 2017-06-28 11:02:04.371006 7f0e8128ac80 4 rocksdb: Options.enable_thread_tracking: 0
2017-06-28 11:02:04.371363 I | mkfs-osd3: 2017-06-28 11:02:04.371007 7f0e8128ac80 4 rocksdb: Options.allow_concurrent_memtable_write: 1
2017-06-28 11:02:04.371366 I | mkfs-osd3: 2017-06-28 11:02:04.371007 7f0e8128ac80 4 rocksdb: Options.enable_write_thread_adaptive_yield: 1
2017-06-28 11:02:04.371369 I | mkfs-osd3: 2017-06-28 11:02:04.371008 7f0e8128ac80 4 rocksdb: Options.write_thread_max_yield_usec: 100
2017-06-28 11:02:04.371372 I | mkfs-osd3: 2017-06-28 11:02:04.371008 7f0e8128ac80 4 rocksdb: Options.write_thread_slow_yield_usec: 3
2017-06-28 11:02:04.371377 I | mkfs-osd3: 2017-06-28 11:02:04.371009 7f0e8128ac80 4 rocksdb: Options.row_cache: 26843546
2017-06-28 11:02:04.371380 I | mkfs-osd3: 2017-06-28 11:02:04.371010 7f0e8128ac80 4 rocksdb: Options.wal_filter: None
2017-06-28 11:02:04.371383 I | mkfs-osd3: 2017-06-28 11:02:04.371011 7f0e8128ac80 4 rocksdb: Options.avoid_flush_during_recovery: 0
2017-06-28 11:02:04.371386 I | mkfs-osd3: 2017-06-28 11:02:04.371011 7f0e8128ac80 4 rocksdb: Options.base_background_compactions: 1
2017-06-28 11:02:04.371389 I | mkfs-osd3: 2017-06-28 11:02:04.371012 7f0e8128ac80 4 rocksdb: Options.max_background_compactions: 1
2017-06-28 11:02:04.371392 I | mkfs-osd3: 2017-06-28 11:02:04.371012 7f0e8128ac80 4 rocksdb: Options.avoid_flush_during_shutdown: 0
2017-06-28 11:02:04.371395 I | mkfs-osd3: 2017-06-28 11:02:04.371013 7f0e8128ac80 4 rocksdb: Options.delayed_write_rate : 16777216
2017-06-28 11:02:04.371398 I | mkfs-osd3: 2017-06-28 11:02:04.371013 7f0e8128ac80 4 rocksdb: Options.max_total_wal_size: 0
2017-06-28 11:02:04.371405 I | mkfs-osd3: 2017-06-28 11:02:04.371014 7f0e8128ac80 4 rocksdb: Options.delete_obsolete_files_period_micros: 21600000000
2017-06-28 11:02:04.371410 I | mkfs-osd3: 2017-06-28 11:02:04.371015 7f0e8128ac80 4 rocksdb: Options.stats_dump_period_sec: 600
2017-06-28 11:02:04.371413 I | mkfs-osd3: 2017-06-28 11:02:04.371015 7f0e8128ac80 4 rocksdb: Compression algorithms supported:
2017-06-28 11:02:04.371417 I | mkfs-osd3: 2017-06-28 11:02:04.371016 7f0e8128ac80 4 rocksdb: Snappy supported: 0
2017-06-28 11:02:04.371420 I | mkfs-osd3: 2017-06-28 11:02:04.371017 7f0e8128ac80 4 rocksdb: Zlib supported: 0
2017-06-28 11:02:04.371423 I | mkfs-osd3: 2017-06-28 11:02:04.371017 7f0e8128ac80 4 rocksdb: Bzip supported: 0
2017-06-28 11:02:04.371426 I | mkfs-osd3: 2017-06-28 11:02:04.371018 7f0e8128ac80 4 rocksdb: LZ4 supported: 0
2017-06-28 11:02:04.371429 I | mkfs-osd3: 2017-06-28 11:02:04.371018 7f0e8128ac80 4 rocksdb: ZSTD supported: 0
2017-06-28 11:02:04.371431 I | mkfs-osd3: 2017-06-28 11:02:04.371020 7f0e8128ac80 4 rocksdb: Fast CRC32 supported: 1
2017-06-28 11:02:04.372065 I | mkfs-osd3: 2017-06-28 11:02:04.371762 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/version_set.cc:2609] Recovering from manifest file: MANIFEST-000001
2017-06-28 11:02:04.372080 I | mkfs-osd3:
2017-06-28 11:02:04.372085 I | mkfs-osd3: 2017-06-28 11:02:04.371836 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/column_family.cc:407] --------------- Options for column family [default]:
2017-06-28 11:02:04.372089 I | mkfs-osd3:
2017-06-28 11:02:04.372096 I | mkfs-osd3: 2017-06-28 11:02:04.371839 7f0e8128ac80 4 rocksdb: Options.comparator: leveldb.BytewiseComparator
2017-06-28 11:02:04.372101 I | mkfs-osd3: 2017-06-28 11:02:04.371841 7f0e8128ac80 4 rocksdb: Options.merge_operator:
2017-06-28 11:02:04.372104 I | mkfs-osd3: 2017-06-28 11:02:04.371842 7f0e8128ac80 4 rocksdb: Options.compaction_filter: None
2017-06-28 11:02:04.372107 I | mkfs-osd3: 2017-06-28 11:02:04.371843 7f0e8128ac80 4 rocksdb: Options.compaction_filter_factory: None
2017-06-28 11:02:04.372111 I | mkfs-osd3: 2017-06-28 11:02:04.371844 7f0e8128ac80 4 rocksdb: Options.memtable_factory: SkipListFactory
2017-06-28 11:02:04.372114 I | mkfs-osd3: 2017-06-28 11:02:04.371845 7f0e8128ac80 4 rocksdb: Options.table_factory: BlockBasedTable
2017-06-28 11:02:04.372120 I | mkfs-osd3: 2017-06-28 11:02:04.371862 7f0e8128ac80 4 rocksdb: table_factory options: flush_block_policy_factory: FlushBlockBySizePolicyFactory (0x7f0e8c8bc218)
2017-06-28 11:02:04.372123 I | mkfs-osd3: cache_index_and_filter_blocks: 0
2017-06-28 11:02:04.372128 I | mkfs-osd3: cache_index_and_filter_blocks_with_high_priority: 0
2017-06-28 11:02:04.372136 I | mkfs-osd3: pin_l0_filter_and_index_blocks_in_cache: 0
2017-06-28 11:02:04.372144 I | mkfs-osd3: index_type: 0
2017-06-28 11:02:04.372147 I | mkfs-osd3: hash_index_allow_collision: 1
2017-06-28 11:02:04.372150 I | mkfs-osd3: checksum: 1
2017-06-28 11:02:04.372153 I | mkfs-osd3: no_block_cache: 0
2017-06-28 11:02:04.372156 I | mkfs-osd3: block_cache: 0x7f0e8c8da380
2017-06-28 11:02:04.372160 I | mkfs-osd3: block_cache_name: LRUCache
2017-06-28 11:02:04.372165 I | mkfs-osd3: block_cache_options:
2017-06-28 11:02:04.372170 I | mkfs-osd3: capacity : 107374182
2017-06-28 11:02:04.372173 I | mkfs-osd3: num_shard_bits : 4
2017-06-28 11:02:04.372176 I | mkfs-osd3: strict_capacity_limit : 0
2017-06-28 11:02:04.372179 I | mkfs-osd3: high_pri_pool_ratio: 0.000
2017-06-28 11:02:04.372183 I | mkfs-osd3: block_cache_compressed: (nil)
2017-06-28 11:02:04.372189 I | mkfs-osd3: persistent_cache: (nil)
2017-06-28 11:02:04.372192 I | mkfs-osd3: block_size: 4096
2017-06-28 11:02:04.372195 I | mkfs-osd3: block_size_deviation: 10
2017-06-28 11:02:04.372197 I | mkfs-osd3: block_restart_interval: 16
2017-06-28 11:02:04.372201 I | mkfs-osd3: index_block_restart_interval: 1
2017-06-28 11:02:04.372204 I | mkfs-osd3: filter_policy: nullptr
2017-06-28 11:02:04.372206 I | mkfs-osd3: whole_key_filtering: 1
2017-06-28 11:02:04.372209 I | mkfs-osd3: format_version: 2
2017-06-28 11:02:04.372212 I | mkfs-osd3:
2017-06-28 11:02:04.372215 I | mkfs-osd3: 2017-06-28 11:02:04.371868 7f0e8128ac80 4 rocksdb: Options.write_buffer_size: 67108864
2017-06-28 11:02:04.372219 I | mkfs-osd3: 2017-06-28 11:02:04.371868 7f0e8128ac80 4 rocksdb: Options.max_write_buffer_number: 2
2017-06-28 11:02:04.372222 I | mkfs-osd3: 2017-06-28 11:02:04.371870 7f0e8128ac80 4 rocksdb: Options.compression: NoCompression
2017-06-28 11:02:04.372225 I | mkfs-osd3: 2017-06-28 11:02:04.371871 7f0e8128ac80 4 rocksdb: Options.bottommost_compression: Disabled
2017-06-28 11:02:04.372227 I | mkfs-osd3: 2017-06-28 11:02:04.371872 7f0e8128ac80 4 rocksdb: Options.prefix_extractor: nullptr
2017-06-28 11:02:04.372230 I | mkfs-osd3: 2017-06-28 11:02:04.371873 7f0e8128ac80 4 rocksdb: Options.memtable_insert_with_hint_prefix_extractor: nullptr
2017-06-28 11:02:04.372233 I | mkfs-osd3: 2017-06-28 11:02:04.371873 7f0e8128ac80 4 rocksdb: Options.num_levels: 7
2017-06-28 11:02:04.372236 I | mkfs-osd3: 2017-06-28 11:02:04.371874 7f0e8128ac80 4 rocksdb: Options.min_write_buffer_number_to_merge: 1
2017-06-28 11:02:04.372239 I | mkfs-osd3: 2017-06-28 11:02:04.371875 7f0e8128ac80 4 rocksdb: Options.max_write_buffer_number_to_maintain: 0
2017-06-28 11:02:04.372242 I | mkfs-osd3: 2017-06-28 11:02:04.371876 7f0e8128ac80 4 rocksdb: Options.compression_opts.window_bits: -14
2017-06-28 11:02:04.372245 I | mkfs-osd3: 2017-06-28 11:02:04.371877 7f0e8128ac80 4 rocksdb: Options.compression_opts.level: -1
2017-06-28 11:02:04.372248 I | mkfs-osd3: 2017-06-28 11:02:04.371877 7f0e8128ac80 4 rocksdb: Options.compression_opts.strategy: 0
2017-06-28 11:02:04.372250 I | mkfs-osd3: 2017-06-28 11:02:04.371878 7f0e8128ac80 4 rocksdb: Options.compression_opts.max_dict_bytes: 0
2017-06-28 11:02:04.372256 I | mkfs-osd3: 2017-06-28 11:02:04.371878 7f0e8128ac80 4 rocksdb: Options.level0_file_num_compaction_trigger: 4
2017-06-28 11:02:04.372259 I | mkfs-osd3: 2017-06-28 11:02:04.371879 7f0e8128ac80 4 rocksdb: Options.level0_slowdown_writes_trigger: 20
2017-06-28 11:02:04.372261 I | mkfs-osd3: 2017-06-28 11:02:04.371880 7f0e8128ac80 4 rocksdb: Options.level0_stop_writes_trigger: 36
2017-06-28 11:02:04.372264 I | mkfs-osd3: 2017-06-28 11:02:04.371880 7f0e8128ac80 4 rocksdb: Options.target_file_size_base: 67108864
2017-06-28 11:02:04.372269 I | mkfs-osd3: 2017-06-28 11:02:04.371881 7f0e8128ac80 4 rocksdb: Options.target_file_size_multiplier: 1
2017-06-28 11:02:04.372274 I | mkfs-osd3: 2017-06-28 11:02:04.371881 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_base: 268435456
2017-06-28 11:02:04.372277 I | mkfs-osd3: 2017-06-28 11:02:04.371882 7f0e8128ac80 4 rocksdb: Options.level_compaction_dynamic_level_bytes: 0
2017-06-28 11:02:04.372280 I | mkfs-osd3: 2017-06-28 11:02:04.371882 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_multiplier: 10.000000
2017-06-28 11:02:04.372283 I | mkfs-osd3: 2017-06-28 11:02:04.371885 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_multiplier_addtl[0]: 1
2017-06-28 11:02:04.372287 I | mkfs-osd3: 2017-06-28 11:02:04.371886 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_multiplier_addtl[1]: 1
2017-06-28 11:02:04.372291 I | mkfs-osd3: 2017-06-28 11:02:04.371887 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_multiplier_addtl[2]: 1
2017-06-28 11:02:04.372296 I | mkfs-osd3: 2017-06-28 11:02:04.371887 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_multiplier_addtl[3]: 1
2017-06-28 11:02:04.372299 I | mkfs-osd3: 2017-06-28 11:02:04.371888 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_multiplier_addtl[4]: 1
2017-06-28 11:02:04.372302 I | mkfs-osd3: 2017-06-28 11:02:04.371889 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_multiplier_addtl[5]: 1
2017-06-28 11:02:04.372305 I | mkfs-osd3: 2017-06-28 11:02:04.371890 7f0e8128ac80 4 rocksdb: Options.max_bytes_for_level_multiplier_addtl[6]: 1
2017-06-28 11:02:04.372310 I | mkfs-osd3: 2017-06-28 11:02:04.371891 7f0e8128ac80 4 rocksdb: Options.max_sequential_skip_in_iterations: 8
2017-06-28 11:02:04.372313 I | mkfs-osd3: 2017-06-28 11:02:04.371892 7f0e8128ac80 4 rocksdb: Options.max_compaction_bytes: 1677721600
2017-06-28 11:02:04.372318 I | mkfs-osd3: 2017-06-28 11:02:04.371892 7f0e8128ac80 4 rocksdb: Options.arena_block_size: 8388608
2017-06-28 11:02:04.372321 I | mkfs-osd3: 2017-06-28 11:02:04.371893 7f0e8128ac80 4 rocksdb: Options.soft_pending_compaction_bytes_limit: 68719476736
2017-06-28 11:02:04.372324 I | mkfs-osd3: 2017-06-28 11:02:04.371893 7f0e8128ac80 4 rocksdb: Options.hard_pending_compaction_bytes_limit: 274877906944
2017-06-28 11:02:04.372337 I | mkfs-osd3: 2017-06-28 11:02:04.371894 7f0e8128ac80 4 rocksdb: Options.rate_limit_delay_max_milliseconds: 100
2017-06-28 11:02:04.372341 I | mkfs-osd3: 2017-06-28 11:02:04.371895 7f0e8128ac80 4 rocksdb: Options.disable_auto_compactions: 0
2017-06-28 11:02:04.372344 I | mkfs-osd3: 2017-06-28 11:02:04.371897 7f0e8128ac80 4 rocksdb: Options.compaction_style: kCompactionStyleLevel
2017-06-28 11:02:04.372353 I | mkfs-osd3: 2017-06-28 11:02:04.371898 7f0e8128ac80 4 rocksdb: Options.compaction_pri: kByCompensatedSize
2017-06-28 11:02:04.372357 I | mkfs-osd3: 2017-06-28 11:02:04.371899 7f0e8128ac80 4 rocksdb: Options.compaction_options_universal.size_ratio: 1
2017-06-28 11:02:04.372360 I | mkfs-osd3: 2017-06-28 11:02:04.371899 7f0e8128ac80 4 rocksdb: Options.compaction_options_universal.min_merge_width: 2
2017-06-28 11:02:04.372363 I | mkfs-osd3: 2017-06-28 11:02:04.371900 7f0e8128ac80 4 rocksdb: Options.compaction_options_universal.max_merge_width: 4294967295
2017-06-28 11:02:04.372368 I | mkfs-osd3: 2017-06-28 11:02:04.371900 7f0e8128ac80 4 rocksdb: Options.compaction_options_universal.max_size_amplification_percent: 200
2017-06-28 11:02:04.372372 I | mkfs-osd3: 2017-06-28 11:02:04.371902 7f0e8128ac80 4 rocksdb: Options.compaction_options_universal.compression_size_percent: -1
2017-06-28 11:02:04.372375 I | mkfs-osd3: 2017-06-28 11:02:04.371903 7f0e8128ac80 4 rocksdb: Options.compaction_options_fifo.max_table_files_size: 1073741824
2017-06-28 11:02:04.372381 I | mkfs-osd3: 2017-06-28 11:02:04.371904 7f0e8128ac80 4 rocksdb: Options.table_properties_collectors:
2017-06-28 11:02:04.372386 I | mkfs-osd3: 2017-06-28 11:02:04.371905 7f0e8128ac80 4 rocksdb: Options.inplace_update_support: 0
2017-06-28 11:02:04.372389 I | mkfs-osd3: 2017-06-28 11:02:04.371905 7f0e8128ac80 4 rocksdb: Options.inplace_update_num_locks: 10000
2017-06-28 11:02:04.372392 I | mkfs-osd3: 2017-06-28 11:02:04.371906 7f0e8128ac80 4 rocksdb: Options.memtable_prefix_bloom_size_ratio: 0.000000
2017-06-28 11:02:04.372398 I | mkfs-osd3: 2017-06-28 11:02:04.371907 7f0e8128ac80 4 rocksdb: Options.memtable_huge_page_size: 0
2017-06-28 11:02:04.372401 I | mkfs-osd3: 2017-06-28 11:02:04.371908 7f0e8128ac80 4 rocksdb: Options.bloom_locality: 0
2017-06-28 11:02:04.372407 I | mkfs-osd3: 2017-06-28 11:02:04.371908 7f0e8128ac80 4 rocksdb: Options.max_successive_merges: 0
2017-06-28 11:02:04.372411 I | mkfs-osd3: 2017-06-28 11:02:04.371909 7f0e8128ac80 4 rocksdb: Options.optimize_filters_for_hits: 0
2017-06-28 11:02:04.372414 I | mkfs-osd3: 2017-06-28 11:02:04.371910 7f0e8128ac80 4 rocksdb: Options.paranoid_file_checks: 0
2017-06-28 11:02:04.372418 I | mkfs-osd3: 2017-06-28 11:02:04.371910 7f0e8128ac80 4 rocksdb: Options.force_consistency_checks: 0
2017-06-28 11:02:04.372421 I | mkfs-osd3: 2017-06-28 11:02:04.371911 7f0e8128ac80 4 rocksdb: Options.report_bg_io_stats: 0
2017-06-28 11:02:04.372557 I | mkfs-osd3: 2017-06-28 11:02:04.372505 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/version_set.cc:2859] Recovered from manifest file:/var/lib/rook/osd3/current/omap/MANIFEST-000001 succeeded,manifest_file_number is 1, next_file_number is 3, last_sequence is 0, log_number is 0,prev_log_number is 0,max_column_family is 0
2017-06-28 11:02:04.372568 I | mkfs-osd3:
2017-06-28 11:02:04.372573 I | mkfs-osd3: 2017-06-28 11:02:04.372520 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/version_set.cc:2867] Column family [default] (ID 0), log number is 0
2017-06-28 11:02:04.372576 I | mkfs-osd3:
2017-06-28 11:02:04.372861 I | mkfs-osd3: 2017-06-28 11:02:04.372600 7f0e8128ac80 4 rocksdb: EVENT_LOG_v1 {"time_micros": 1498647724372591, "job": 1, "event": "recovery_started", "log_files": [3]}
2017-06-28 11:02:04.372887 I | mkfs-osd3: 2017-06-28 11:02:04.372608 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/db_impl_open.cc:482] Recovering log #3 mode 2
2017-06-28 11:02:04.372892 I | mkfs-osd3: 2017-06-28 11:02:04.372685 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/version_set.cc:2395] Creating manifest 5
2017-06-28 11:02:04.372895 I | mkfs-osd3:
2017-06-28 11:02:04.377477 I | mkfs-osd3: 2017-06-28 11:02:04.377438 7f0e8128ac80 4 rocksdb: EVENT_LOG_v1 {"time_micros": 1498647724377435, "job": 1, "event": "recovery_finished"}
2017-06-28 11:02:04.382876 I | mkfs-osd3: 2017-06-28 11:02:04.382835 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/db_impl_open.cc:1063] DB pointer 0x7f0e8cb72000
2017-06-28 11:02:04.383010 I | mkfs-osd3: 2017-06-28 11:02:04.382981 7f0e8128ac80 0 filestore(/var/lib/rook/osd3) mount(1717): enabling WRITEAHEAD journal mode: checkpoint is not enabled
2017-06-28 11:02:04.383123 I | mkfs-osd3: 2017-06-28 11:02:04.383056 7f0e8128ac80 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
2017-06-28 11:02:04.384214 I | mkfs-osd3: 2017-06-28 11:02:04.384161 7f0e8128ac80 -1 filestore(/var/lib/rook/osd3) could not find #-1:7b3f43c4:::osd_superblock:0# in index: (2) No such file or directory
2017-06-28 11:02:04.432441 I | mkfs-osd3: 2017-06-28 11:02:04.432363 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/db_impl.cc:217] Shutdown: canceling all background work
2017-06-28 11:02:04.432602 I | mkfs-osd3: 2017-06-28 11:02:04.432541 7f0e8128ac80 4 rocksdb: [/build/ceph/src/rocksdb/db/db_impl.cc:343] Shutdown complete
2017-06-28 11:02:04.432854 I | mkfs-osd3: 2017-06-28 11:02:04.432807 7f0e8128ac80 -1 created object store /var/lib/rook/osd3 for osd.3 fsid 9deb3b42-a627-445a-81a4-8a38da6d35fe
2017-06-28 11:02:04.432892 I | mkfs-osd3: 2017-06-28 11:02:04.432866 7f0e8128ac80 -1 auth: error reading file: /var/lib/rook/osd3/keyring: can't open /var/lib/rook/osd3/keyring: (2) No such file or directory
2017-06-28 11:02:04.433119 I | mkfs-osd3: 2017-06-28 11:02:04.433083 7f0e8128ac80 -1 created new key in keyring /var/lib/rook/osd3/keyring
2017-06-28 11:02:04.435174 I | mkfs-osd3: 2017-06-28 11:02:04.331834 7f0e8128ac80 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
2017-06-28 11:02:04.435185 I | mkfs-osd3: 2017-06-28 11:02:04.383056 7f0e8128ac80 -1 journal FileJournal::_open: disabling aio for non-block journal. Use journal_force_aio to force use of aio anyway
2017-06-28 11:02:04.435189 I | mkfs-osd3: 2017-06-28 11:02:04.384161 7f0e8128ac80 -1 filestore(/var/lib/rook/osd3) could not find #-1:7b3f43c4:::osd_superblock:0# in index: (2) No such file or directory
2017-06-28 11:02:04.435199 I | mkfs-osd3: 2017-06-28 11:02:04.432807 7f0e8128ac80 -1 created object store /var/lib/rook/osd3 for osd.3 fsid 9deb3b42-a627-445a-81a4-8a38da6d35fe
2017-06-28 11:02:04.435203 I | mkfs-osd3: 2017-06-28 11:02:04.432866 7f0e8128ac80 -1 auth: error reading file: /var/lib/rook/osd3/keyring: can't open /var/lib/rook/osd3/keyring: (2) No such file or directory
2017-06-28 11:02:04.435207 I | mkfs-osd3: 2017-06-28 11:02:04.433083 7f0e8128ac80 -1 created new key in keyring /var/lib/rook/osd3/keyring
2017-06-28 11:02:04.435395 I | exec: Running command: ceph auth add osd.3 -i /var/lib/rook/osd3/keyring osd allow * mon allow profile osd --cluster=default --conf=/var/lib/rook/default/default.config --keyring=/var/lib/rook/default/client.admin.keyring --format json --out-file /tmp/770147899
2017-06-28 11:02:04.638986 I | exec: Error EEXIST: entity osd.3 exists but key does not match
2017-06-28 11:02:04.639112 E | cephosd: failed to config osd 3. failed to initialize OSD at /var/lib/rook/osd3: command marshall failed: exit status 17
2017-06-28 11:02:04.639141 I | cephosd: 0/1 osd devices succeeded on this node
This problem only occurs when using the filestore storage driver, the bluestore works well over OSD restart.
This is the rook-cluster.yaml i'm using :
apiVersion: rook.io/v1alpha1
kind: Cluster
metadata:
name: rook
namespace: default
spec:
versionTag: master-latest
dataDirHostPath: "/var/lib/rook-storage"
storage: # cluster level storage configuration and selection
useAllNodes: true
useAllDevices: false
deviceFilter: "^sd[c-z]"
metadataDevice:
location:
storeConfig:
storeType: filestore
databaseSizeMB: 1024 # this value can be removed for environments with normal sized disks (100 GB or larger)
journalSizeMB: 1024 # this value can be removed for environments with normal sized disks (20 GB or larger)
I can also confirm you that the OSD pod reschedule on the same pod. (Expected behaviour) I think i found the problem : When the first OSD is created, the DataHostDirPath /var/lib/rook-storage is populated with osd directory but there is no file inside :
[root@k8s-rook-sb1 ~]# ls /var/lib/rook-storage
default osd6 partition-scheme
[root@k8s-rook-sb1 ~]# ls /var/lib/rook-storage/osd6/
[root@k8s-rook-sb1 ~]#
If i crash the rook container on this host and do the same list command, i get the files, but it's too late as they weren't mounted to the new pod because not present on the host :
[root@k8s-rook-sb1 ~]# docker rm -f 0b6ae467a7df && ls /var/lib/rook-storage/osd6/
0b6ae467a7df
[root@k8s-rook-sb1 ~]# ls /var/lib/rook-storage/osd6/
[root@k8s-rook-sb1 ~]# ls /var/lib/rook-storage/osd6/
ceph_fsid current default.config fsid journal keyring magic ready store_version superblock tmp type whoami
[root@k8s-rook-sb1 ~]#
I can guess the DataHostDirPath is not correctly mounted on the first creation of the OSD pod.
Edit : After deeper investigations, i found the problem : Inside the osd container the sdc volume is mounted on /var/lib/rook/osd#
root@k8s-rookdebug-m1:/# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 50G 2.0G 48G 5% /
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
devtmpfs 3.9G 0 3.9G 0% /dev
shm 64M 0 64M 0% /dev/shm
/dev/mapper/cl-root 22G 3.3G 19G 16% /etc/rook
/dev/sdb 50G 2.0G 48G 5% /etc/hostname
tmpfs 3.9G 12K 3.9G 1% /run/secrets/kubernetes.io/serviceaccount
/dev/sdc1 49G 1.2G 46G 3% /var/lib/rook/osd9
Because of this mount, the HostDir doesn't work as the files are written in /dev/sdc1.
When trying to touch a file in this mount, nothing happens on the host, which is expected as this is the Linux file mount expected behaviour :
Pod :
root@k8s-rookdebug-m1:/# touch /var/lib/rook/osd9/ok
Host :
[root@k8s-rookdebug-m1 ~]# ls /var/lib/rook-storage/osd9/
[root@k8s-rookdebug-m1 ~]#
However when writing inside the /var/lib/rook HostDir herited folder, we can see the touched file on the host, which is also expected behaviour :
Pod :
root@k8s-rookdebug-m1:/# touch /var/lib/rook/ok
Host :
[root@k8s-rookdebug-m1 ~]# ls /var/lib/rook-storage/
default/ ok osd9/ partition-scheme
When the pod is recreated, the /dev/sdc1 isn't mounted :
root@k8s-rookdebug-m1:/# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 50G 2.1G 48G 5% /
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
devtmpfs 3.9G 0 3.9G 0% /dev
shm 64M 0 64M 0% /dev/shm
/dev/mapper/cl-root 22G 4.3G 18G 20% /etc/hosts
/dev/sdb 50G 2.1G 48G 5% /etc/hostname
tmpfs 3.9G 12K 3.9G 1% /run/secrets/kubernetes.io/serviceaccount
Which means files created by the osd are written in the HostDir :
Pod :
root@k8s-rookdebug-m1:/# ls /var/lib/rook/osd9/
ceph_fsid current default.config fsid journal keyring magic ready store_version superblock tmp type whoami
root@k8s-rookdebug-m1:/#
Host :
[root@k8s-rookdebug-m1 ~]# ls /var/lib/rook-storage/osd9/
ceph_fsid default.config journal magic store_version tmp whoami
current fsid keyring ready superblock type
As we can see, the ok file created earlier in the first pod didn't persist, so the osd data from the first pod are lost which explains why the osd config doesn't persist.
As for why the ceph storage device is mounted on the osd directory and why it doesn't mount it on the next pod boot, i have no answer. I hope i helped you to better understand this issue.
Thank you for the extensive details @Lain92, I am able to repro this myself now. The problem is definitely that all the OSD config gets written to the mounted device in the 1st pod, but the mount is never performed again in the 2nd pod, so we think it's a brand new OSD and we start the OSD mkfs process, ending up with a new OSD journal/whoami/etc. on the host dir.
All the OSD config/data is still safe on the device, so I think if we just mount it then we can reuse it and the original OSD will start OK. Thanks a lot in helping track this down, your effort was very helpful :)
You're welcome :)