无法使用所有功能合而为一,在可部署kolla的OpenStack上启用ceph-osd

问题描述

想在节点上使用kolla-ansible在一个已部署的OpenStack中全部启用ceph-osd。我能够启用ceph-mon / mgr等,但无法设置ceph-osd。

#docker ps | grep ceph_
08a1625a91dc        kolla/centos-source-ceph-rgw:train                    "dumb-init --single-…"   9 hours ago         Up About a minute                       ceph_rgw
916d4b1aefb6        kolla/centos-source-ceph-mgr:train                    "dumb-init --single-…"   9 hours ago         Up 2 hours                              ceph_mgr
6b0bebcb1e3e        kolla/centos-source-ceph-mon:train                    "dumb-init --single-…"   9 hours ago         Up 2 hours                              ceph_mon

配置设置如下:

enable_ceph: "yes"

enable_ceph_rgw: "yes"

enable_ceph_dashboard: "{{ enable_ceph | bool }}"

enable_cinder: "yes"

enable_cinder_backup: "yes"

glance_backend_ceph: "yes"

gnocchi_backend_storage: "{{ 'ceph' if enable_ceph|bool else 'file' }}"

cinder_backend_ceph: "{{ enable_ceph }}"

cinder_backup_driver: "ceph"

nova_backend_ceph: "{{ enable_ceph }}"

glance_backend_ceph: "yes"

cinder_backend_ceph: "{{ enable_ceph }}"


ceph_osd_store_type: "filestore"

我还分开了存储空间:

(kolla-dev-env) [root@kolla-dev-nd ~]# docker exec -it ceph_mon ceph -s
  cluster:
    id:     287aedd5-14a6-45a9-a3cb-68a18fafc33f
    health: HEALTH_WARN
            Reduced data availability: 64 pgs inactive
            OSD count 0 < osd_pool_default_size 3

  services:
    mon: 1 daemons,quorum 10.10.121.243 (age 6h)
    mgr: localhost(active,since 111m)
    osd: 0 osds: 0 up,0 in

  data:
    pools:   5 pools,64 pgs
    objects: 0 objects,0 B
    usage:   0 B used,0 B / 0 B avail
    pgs:     100.000% pgs unknown
             64 unknown

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)