openstack kilo 挂载磁盘失败
cinder服务正常
[root@controller ~]# cinder service-list
+------------------+------------+------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+------------+------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | controller | nova | enabled | up | 2015-09-19T17:01:54.000000 | - |
| cinder-volume | block1@lvm | nova | enabled | up | 2015-09-19T17:01:54.000000 | - |
+------------------+------------+------+---------+-------+----------------------------+-----------------+
cinder也可以创建磁盘
[root@controller ~]# nova volume-list
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+-------------+
| 16deff98-2bf2-4f60-9400-60a94b272008 | available | | 1 | - | |
| 9ab738b4-7d32-44ac-8d20-ba0e481cd50b | available | | 1 | - | |
+--------------------------------------+-----------+--------------+------+-------------+-------------+
但是挂载给用户虚拟机失败
检查控制节点的var/log下面的 cinder的api.log发现有如下错误
OSError: [Errno 13] Permission denied: '/var/lock/cinder'
] Permission denied
经分析控制节点和cinder节点都没有此相关目录
检查控制节点的var/log下面的 scheduler.log,发现有如下错误:
2015-09-19 13:02:59.141 1141 ERROR oslo_messaging._drivers.impl_rabbit [req-81017b1e-4e3d-4a52-8804-b4f7fc0fc8b7 eff3c37ef12e4aa4aca14b2e4b452276 46d8ac56f67f41c08012f4fd1c0786ef - - -] AMQP server on controller:5672 is unreachable: [Errno 104] Connection reset by peer. Trying again in 1 seconds.
2015-09-19 13:03:00.163 1141 INFO oslo_messaging._drivers.impl_rabbit [req-81017b1e-4e3d-4a52-8804-b4f7fc0fc8b7 eff3c37ef12e4aa4aca14b2e4b452276 46d8ac56f67f41c08012f4fd1c0786ef - - -] Reconnected to AMQP server on controller:5672
控制节点的/etc/cinder/cinder.conf[DEFAULT]
logdir = /var/log/cinder
state_path = /var/lib/cinder
#lock_path = /var/lib/cinder/tmp
volumes_dir = /etc/cinder/volumes
iscsi_helper = lioadm
rootwrap_config = /etc/cinder/rootwrap.conf
#auth_strategy = keystone
auth_strategy = keystone
rpc_backend = rabbit
my_ip = 10.0.0.11
verbose = True
[database]
#connection = mysql://cinder:cinder@localhost/cinder
connection = mysql://cinder:CINDER_DBPASS@controller/cinder
[keystone_authtoken]
#admin_tenant_name = %SERVICE_TENANT_NAME%
#admin_user = %SERVICE_USER%
#admin_password = %SERVICE_PASSWORD%
#auth_host = 127.0.0.1
#auth_port = 35357
#auth_protocol = http
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = cinder
password = openstack
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = RABBIT_PASS
[oslo_concurrency]
lock_path = /var/lock/cinder
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
后面怎么解决的哦