2 ultrakang ultrakang 于 2015.06.01 10:53 提问

Openstack: NFS做cinder后端时,创建云硬盘一直是creating状态

大家好,

环境:ubuntu 14.04 server ,icehouse版本。 cinder-api和scheduler是装在控制节点controller,cinder-volume是装在存储节点storage1,就一个存储节点,存储节点同时装有NFS服务端。​

我在把NFS作为Cinder后端时遇到了问题:

cinder-volume可以挂载NFS share 但是创建volume的时候一直是creating状态

可以看到下图最后一行表明storage1的cinder-volume已经挂载上了NFS share
图片说明
图片说明
我查看了一下只有cinder-scheduler.log有警告,WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}

4个回答

ultrakang
ultrakang   2015.06.01 10:56

cinder-volume.log
2015-05-31 14:24:31.576 1246 INFO cinder.openstack.common.service [-] Child 1413 exited with status 1
2015-05-31 14:24:32.008 2354 INFO cinder.openstack.common.service [-] Starting 1 workers
2015-05-31 14:24:32.009 2354 INFO cinder.openstack.common.service [-] Started child 2360
2015-05-31 14:24:32.018 2360 AUDIT cinder.service [-] Starting cinder-volume node (version 2014.1.4)
2015-05-31 14:24:32.019 2360 INFO cinder.volume.manager [req-4fe8d511-053d-4a0b-ac9b-b3d93ea6605c - - - - -] Starting volume driver NfsDriver (1.1.0)
2015-05-31 14:25:00.350 2360 INFO cinder.volume.manager [req-4fe8d511-053d-4a0b-ac9b-b3d93ea6605c - - - - -] volume aab63d75-edbc-4a77-bdb6-4d7c85b84955: skipping export
2015-05-31 14:25:00.351 2360 INFO cinder.volume.manager [req-4fe8d511-053d-4a0b-ac9b-b3d93ea6605c - - - - -] Updating volume status
2015-05-31 14:25:00.362 2360 INFO cinder.brick.remotefs.remotefs [req-4fe8d511-053d-4a0b-ac9b-b3d93ea6605c - - - - -] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:25:00.512 2360 INFO oslo.messaging._drivers.impl_rabbit [req-4fe8d511-053d-4a0b-ac9b-b3d93ea6605c - - - - -] Connected to AMQP server on 172.25.1.11:5672
2015-05-31 14:25:00.540 2360 INFO oslo.messaging._drivers.impl_rabbit [-] Connected to AMQP server on 172.25.1.11:5672
2015-05-31 14:25:05.552 2360 INFO cinder.volume.manager [req-67be0821-5bc8-42dd-85a2-6b8b6a044a82 - - - - -] Updating volume status
2015-05-31 14:25:05.564 2360 INFO cinder.brick.remotefs.remotefs [req-67be0821-5bc8-42dd-85a2-6b8b6a044a82 - - - - -] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:26:05.553 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:26:05.565 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:27:05.555 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:27:05.566 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:28:05.557 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:28:05.569 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:29:05.554 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:29:05.566 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:30:05.555 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:30:05.566 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:31:05.554 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:31:05.565 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:32:05.557 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:32:05.568 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:33:05.557 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:33:05.570 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:34:05.557 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:34:05.569 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:35:05.560 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:35:05.573 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:36:05.560 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:36:05.572 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:37:05.559 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:37:05.571 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:38:05.559 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:38:05.572 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:39:05.559 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:39:05.572 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:40:05.559 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:40:05.572 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:41:05.560 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:41:05.572 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:42:05.561 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:42:05.574 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:43:05.561 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:43:05.574 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:44:05.561 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:44:05.573 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:45:05.564 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:45:05.576 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:46:05.562 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:46:05.574 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:47:05.563 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:47:05.575 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:48:05.563 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:48:05.575 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:49:05.563 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:49:05.575 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:50:05.563 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:50:05.575 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:51:05.564 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:51:05.576 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:52:05.565 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:52:05.577 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:53:05.563 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:53:05.576 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:54:05.563 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:54:05.577 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b
2015-05-31 14:55:05.564 2360 INFO cinder.volume.manager [-] Updating volume status
2015-05-31 14:55:05.577 2360 INFO cinder.brick.remotefs.remotefs [-] Already mounted: /var/lib/cinder/volumes/eca3e552ec86f78a1b26ed7018e3788b


ultrakang
ultrakang   2015.06.01 10:58

cinder-scheduler.log
**
2015-05-31 09:47:53.787 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:48:08.874 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:48:53.788 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:49:08.877 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:49:53.790 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:50:08.879 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:50:53.794 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:51:08.881 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:51:53.793 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:52:08.885 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:52:53.796 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:53:08.887 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:53:53.795 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:54:08.890 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:54:53.796 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:55:08.896 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:55:53.801 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}
2015-05-31 09:56:08.896 11229 WARNING cinder.context [-] Arguments dropped when creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - - -'}

ultrakang
ultrakang   2015.06.01 10:59

cinder-api.log
2015-05-31 14:44:40.718 10285 AUDIT cinder.api.v1.volumes [req-17c024a9-65a5-4776-8fc3-a78b2a6810c4 5a4e0c106c054075a9c666e16b968975 59de3a2727de48fab03b6d3841081940 - - -] vol={'migration_status': None, 'availability_zone': u'nova', 'terminated_at': None, 'updated_at': datetime.datetime(2015, 5, 31, 6, 1, 47), 'provider_geometry': None, 'snapshot_id': None, 'ec2_id': None, 'mountpoint': None, 'deleted_at': None, 'id': u'aab63d75-edbc-4a77-bdb6-4d7c85b84955', 'size': 5L, 'user_id': u'5a4e0c106c054075a9c666e16b968975', 'attach_time': None, 'attached_host': None, 'display_description': None, 'volume_admin_metadata': [], 'encryption_key_id': None, 'project_id': u'59de3a2727de48fab03b6d3841081940', 'launched_at': None, 'scheduled_at': datetime.datetime(2015, 5, 31, 6, 1, 47), 'status': u'creating', 'volume_type_id': None, 'deleted': False, 'provider_location': None, 'host': u'storage1', 'source_volid': None, 'provider_auth': None, 'display_name': u'NFSvolume1', 'instance_uuid': None, 'bootable': False, 'created_at': datetime.datetime(2015, 5, 31, 6, 1, 47), 'attach_status': u'detached', 'volume_type': None, '_name_id': None, 'volume_metadata': []}
2015-05-31 14:44:40.785 10285 INFO cinder.api.openstack.wsgi [req-17c024a9-65a5-4776-8fc3-a78b2a6810c4 5a4e0c106c054075a9c666e16b968975 59de3a2727de48fab03b6d3841081940 - - -] http://controller:8776/v1/59de3a2727de48fab03b6d3841081940/volumes/aab63d75-edbc-4a77-bdb6-4d7c85b84955 returned with HTTP 200
2015-05-31 14:44:40.785 10285 INFO eventlet.wsgi.server [req-17c024a9-65a5-4776-8fc3-a78b2a6810c4 5a4e0c106c054075a9c666e16b968975 59de3a2727de48fab03b6d3841081940 - - -] 172.25.1.11 - - [31/May/2015 14:44:40] "GET /v1/59de3a2727de48fab03b6d3841081940/volumes/aab63d75-edbc-4a77-bdb6-4d7c85b84955 HTTP/1.1" 200 789 0.080646

Moolight_shadow
Moolight_shadow   2015.06.12 17:15

命令行debug创建下 看看 等他报错 查看配置文档

Csdn user default icon
上传中...
上传图片
插入图片