分享

大神们,解决下ceph和openstack整合的问题

lz19851224 发表于 2016-6-1 11:48:06 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 4 15117
less /var/log/glance/api.log 2016-06-01 11:37:36.599 36247 WARNING oslo_config.cfg [-] Option "username" from group "keystone_authtoken" is deprecated. Use option "username" from group "keystone_authtoken".


systemctl status -l openstack-glance-api.service
● openstack-glance-api.service - OpenStack Image Service (code-named Glance) API server
   Loaded: loaded (/usr/lib/systemd/system/openstack-glance-api.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since 三 2016-06-01 11:37:36 CST; 22s ago
  Process: 36247 ExecStart=/usr/bin/glance-api (code=exited, status=1/FAILURE)
Main PID: 36247 (code=exited, status=1/FAILURE)

6月 01 11:37:36 controller systemd[1]: openstack-glance-api.service: main process exited, code=exited, status=1/FAILURE
6月 01 11:37:36 controller systemd[1]: Failed to start OpenStack Image Service (code-named Glance) API server.
6月 01 11:37:36 controller systemd[1]: Unit openstack-glance-api.service entered failed state.
6月 01 11:37:36 controller systemd[1]: openstack-glance-api.service failed.
6月 01 11:37:36 controller systemd[1]: openstack-glance-api.service holdoff time over, scheduling restart.
6月 01 11:37:37 controller systemd[1]: start request repeated too quickly for openstack-glance-api.service
6月 01 11:37:37 controller systemd[1]: Failed to start OpenStack Image Service (code-named Glance) API server.
6月 01 11:37:37 controller systemd[1]: Unit openstack-glance-api.service entered failed state.
6月 01 11:37:37 controller systemd[1]: openstack-glance-api.service failed.

请问这个报错是配置文件写错了?

[DEFAULT]
default_store = rbd
notification_driver = noop
verbose = True
show_image_direct_url = True
[glance_store]
stores = rbd
rbd_store_pool = images
rbd_store_user = glance
rbd_store_ceph_conf = /etc/ceph/ceph.conf
rbd_store_chunk_size = 8
default_store = file
filesystem_store_datadir = /var/lib/glance/images/

我主要改了nova(控制节点和计算节点)、cinder(控制节点和存储节点)、glance(控制节点)的配置文件,nova和cinder的服务能重启成功,glance-API的服务重启不成功,在控制节点里cinder service-list看不到ceph作为后端


已有(4)人评论

跳转到指定楼层
qcbb001 发表于 2016-6-1 14:43:58
从上面信息看是glance没有正确安装
回复

使用道具 举报

lz19851224 发表于 2016-6-1 15:31:28
可我没弄ceph之前是好好的,就在配置文件里加了这几句话就不行了,能看看这是哪错了?
[DEFAULT]
show_image_direct_url = True
glance_api_version = 2   
[glance_store]
stores=glance.store.rbd.Store
default_store = rbd
rbd_store_pool = images
rbd_store_user = glance
rbd_store_ceph_conf = /etc/ceph/ceph.conf
rbd_store_chunk_size = 8

回复

使用道具 举报

lz19851224 发表于 2016-6-1 15:45:50
我把这几句话删了,重启服务就没事
回复

使用道具 举报

qcbb001 发表于 2016-6-1 17:32:52
lz19851224 发表于 2016-6-1 15:45
我把这几句话删了,重启服务就没事

下面楼主可以尝试下:

在 /etc/glance/glance-api.conf 文件中做如下修改:

[DEFAULT]
...
show_image_direct_url = True
...
[glance_store]
stores=glance.store.rbd.Store
default_store = rbd
rbd_store_pool = images
rbd_store_user = glance
rbd_store_ceph_conf = /etc/ceph/ceph.conf
rbd_store_chunk_size = 8



修改 /etc/cinder/cinder.conf:

[DEFAULT]
...
#volume_group = cinder-volumes
volume_driver = cinder.volume.drivers.rbd.RBDDriver
rbd_pool = volumes
rbd_ceph_conf = /etc/ceph/ceph.conf
rbd_max_clone_depth = 5
rbd_store_chunk_size = 4
rados_connect_timeout = -1
glance_api_version = 2
rbd_user = glance
...


上面一些信息,换成自己的

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条