将Ceph OSD连接到Docker中的集群时出错

问题描述 投票:1回答:1

我正在尝试使用docker-compose在目录上建立Ceph对象存储。这是我现在拥有的:

version: '3.7'
services:
  mon:
    image: ceph/daemon:latest
    network_mode: host
    command: mon
    environment:
      MON_IP: 192.168.10.68
      CEPH_PUBLIC_NETWORK: 192.168.10.0/24
    volumes:
      - /etc/ceph:/etc/ceph
      - /data/ceph/:/var/lib/ceph/
  osd:
    image: ceph/daemon:latest
    network_mode: host
    pid: host
    command: osd
    privileged: true
    environment:
      OSD_DIRECTORY: /data/ceph_data/
      OSD_TYPE: directory
      OSD_FORCE_ZAP: 1
    volumes:
      - /etc/ceph:/etc/ceph
      - /data/ceph/:/var/lib/ceph/
      - /dev/:/dev/
    depends_on:
      - mon
  rgw:
    image: ceph/daemon:latest
    network_mode: host
    command: rgw
    volumes:
      - /etc/ceph:/etc/ceph
      - /data/ceph/:/var/lib/ceph/
    ports:
      - "8080:8080"
    depends_on:
      - osd

但是在启动时(docker-compose up)osd无法与此连接:

mon_1  | debug 2019-10-03 12:36:44.112 7f7782a91700  1 mon.cloyster@0(leader).auth v10 client did not provide supported auth type
osd_1  | [errno 95] error connecting to the cluster

为什么?我究竟做错了什么? docker-compose是否有可行的解决方案在目录中包含Ceph?

docker docker-compose ceph
1个回答
1
投票

[我建议您检查/etc/ceph的权限,它应允许ceph对其进行读写,如chown ceph:ceph /etc/ceph

© www.soinside.com 2019 - 2024. All rights reserved.