我边看帮助手册边尝试在单节点手动安装OpenStack
http://docs.openstack.org/trunk/openstack-compute/install/apt/content/ap_installingfolsomubuntuprecise.html
当我执行这个命令
$ cinder create --display_name test 1
想在Cinder配置创建卷的时候卡住了。。(囧,好绕口)
它提示
+---------------------+--------------------------------------+
| Property | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | nova |
| created_at | 2012-11-05T11:59:59.548149 |
| display_description | None |
| display_name | test |
| id | 8802e55c-29a6-4087-9730-286cfbd3fdb3 |
| metadata | {} |
| size | 1 |
| snapshot_id | None |
| status | creating |
| volume_type | None |
+---------------------+--------------------------------------+
当我执行这个命令
$ cinder list
卷的状态还是在创建
它提示:
+--------------------------------------+----------+--------------+------+-------------+-------------+
| ID | Status | Display Name | Size | Volume Type | Attached to |
+--------------------------------------+----------+--------------+------+-------------+-------------+
| 8802e55c-29a6-4087-9730-286cfbd3fdb3 | creating | test | 1 | None | |
+--------------------------------------+----------+--------------+------+-------------+-------------+
卷的状态应该是“Available”的,但是在我手上它还是“Creating”的状态。
我的Cinder的配置如下:
[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
sql_connection = mysql://cinder:openstack@*.*.*.*/cinder
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = ietadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
volumes_dir = /var/lib/cinder/volumes
#osapi_volume_listen_port=5900
我的api-paste.ini部分文件长这样的
[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
service_protocol = http
service_host = x.y.z.a
service_port = 5000
auth_host = x.y.z.a
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = openstack
如何破?帮帮我吧~~~好急
补充楼主Cinder log和版本
cinder-scheduler .log file
2012-11-06 11:14:53 4224 ERROR cinder.openstack.common.rpc.amqp [-] Exception during message handling
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp Traceback (most recent call last):
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py", line 276, in _process_data
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, **args)
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/dispatcher.py", line 145, in dispatch
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, **kwargs)
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/cinder/scheduler/manager.py", line 98, in _schedule
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp db.volume_update(context, volume_id, {'status': 'error'})
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 256, in volume_update
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp return IMPL.volume_update(context, volume_id, values)
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 124, in wrapper
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp return f(*args, **kwargs)
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1071, in volume_update
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp volume_ref = volume_get(context, volume_id, session=session)
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 124, in wrapper
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp return f(*args, **kwargs)
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1014, in volume_get
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp raise exception.VolumeNotFound(volume_id=volume_id)
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp VolumeNotFound: Volume cb5dc6eb-78c3-4ee5-8ab6-8003a7430a85 could not be found.
2012-11-06 11:14:53 4224 TRACE cinder.openstack.common.rpc.amqp
帖子地址:https://answers.launchpad.net/cinder/+question/213323
【每日译帖】想通过每天一点点的劳动为stackers们带来一点点的料。如果stackers喜欢,请关注这个论坛。翻译粗糙,若发现不对的地方,感谢大家指出!这样能为更多的人带来正确有价值的信息。
【这篇帖子翻译难度太大了!明天找个简单的。。。顺便,妇女节快乐!】
OpenStack
Cinder
|