[Openstack] [Help-Ask]creating a Cinder volume problem --> volume status is stuck in creating status......

디케이 zuntong at gmail.com
Wed Jan 20 11:56:41 UTC 2016


Hello, I have a problem about cinder volume,
After cinder create command, new volume status is stuck in creating
status..... is not changed to available or error..
What part of service should I focous on ???......   lvm?
rabbit? cinder-api? cinder-volume? cinder-scheduler? etc.......
I'm writing to ask for help and any advice....   solution or approach...
everything is fine.. help me...
thanks in advance..

Here are cinder logs and configuration-information and status.

●  [Configuration] : 3-node configuration (Controller-node, Network-node,
Compute-node(that is also storage-node))
                             : ubuntu14.04, icehouse installed on each node
on virtualbox

● (On Controller node)
# cinder create --display-name myVolume 1
# cinder list
+--------------------------------------+----------+--------------+------+-------------+----------+-------------+
|                  ID                  |  Status  | Display Name | Size |
Volume Type | Bootable | Attached to |
+--------------------------------------+----------+--------------+------+-------------+----------+-------------+
| 4891a2e7-0cb2-4caf-9528-6612d8cf5f5a |* creating *|   myVolume   |  1
|     None    |  false   |             |
+--------------------------------------+----------+--------------+------+-------------+----------+-------------+
mysql> select status from volumes;
+----------+
| status   |
+----------+
| creating |
+----------+

mysql> select id from volumes;
+--------------------------------------+
| id                                   |
+--------------------------------------+
| 4891a2e7-0cb2-4caf-9528-6612d8cf5f5a |
+--------------------------------------+

# netstat -an | grep 8776
tcp 0 0 0.0.0.0:8776 0.0.0.0:* LISTEN
# netstat -an | grep 5672
.....
tcp6 0 0 :::5672 :::* LISTEN
tcp6 0 0 10.10.15.11:5672 10.10.15.31:33271 ESTABLISHED
.....

# service cinder-api status
cinder-api start/running, process 3733
# service cinder-scheduler status
cinder-scheduler start/running, process 3755
*<Logs>* when cinder create commands excuted
*<cinder-api.log>*
2016-01-20 15:24:29.584 3739 INFO eventlet.wsgi.server [-] (3739) accepted
('10.10.15.11', 51845)
2016-01-20 15:24:29.588 3739 INFO urllib3.connectionpool [-] Starting new
HTTP connection (1): 10.10.15.11
2016-01-20 15:24:29.874 3739 INFO urllib3.connectionpool [-] Starting new
HTTP connection (1): 10.10.15.11
2016-01-20 15:24:30.029 3739 INFO cinder.api.openstack.wsgi
[req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50 5f8b76cf5986402fa6affdb4c9e2fc44
56ee36bd79724517bf115df7f3202f1d - - -] POST
http://10.10.15.11:8776/v1/56ee36bd79724517bf115df7f3202f1d/volumes
2016-01-20 15:24:30.032 3739 AUDIT cinder.api.v1.volumes
[req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50 5f8b76cf5986402fa6affdb4c9e2fc44
56ee36bd79724517bf115df7f3202f1d - - -] Create volume of 1 GB
2016-01-20 15:24:30.212 3739 AUDIT cinder.api.v1.volumes
[req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50 5f8b76cf5986402fa6affdb4c9e2fc44
56ee36bd79724517bf115df7f3202f1d - - -] vol={'migration_status': None,
'availability_zone': 'nova', 'terminated_at': None, 'reservations':
['8339d8b8-70a5-4226-94a5-ad7c4f16d3f6',
'6795bec3-0875-49cb-b538-c1e0f3b097c1'], 'updated_at': None,
'provider_geometry': None, 'snapshot_id': None, 'ec2_id': None,
'mountpoint': None, 'deleted_at': None, 'id':
'4891a2e7-0cb2-4caf-9528-6612d8cf5f5a', 'size': 1, 'user_id':
u'5f8b76cf5986402fa6affdb4c9e2fc44', 'attach_time': None, 'attached_host':
None, 'display_description': None, 'volume_admin_metadata': [],
'encryption_key_id': None, 'project_id':
u'56ee36bd79724517bf115df7f3202f1d', 'launched_at': None, 'scheduled_at':
None, 'status': 'creating', 'volume_type_id': None, 'deleted': False,
'provider_location': None, 'host': None, 'source_volid': None,
'provider_auth': None, 'display_name': u'myVolume', 'instance_uuid': None,
'bootable': False, 'created_at': datetime.datetime(2016, 1, 20, 6, 24, 30,
108934), 'attach_status': 'detached', 'volume_type': None, '_name_id':
None, 'volume_metadata': [], 'metadata': {}}
2016-01-20 15:24:30.217 3739 INFO cinder.api.openstack.wsgi
[req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50 5f8b76cf5986402fa6affdb4c9e2fc44
56ee36bd79724517bf115df7f3202f1d - - -]
http://10.10.15.11:8776/v1/56ee36bd79724517bf115df7f3202f1d/volumes
returned with HTTP 200
2016-01-20 15:24:30.226 3739 INFO eventlet.wsgi.server
[req-c7c065b5-3e4c-40c8-b011-24a1afbf6e50 5f8b76cf5986402fa6affdb4c9e2fc44
56ee36bd79724517bf115df7f3202f1d - - -] 10.10.15.11 - - [20/Jan/2016
15:24:30] "POST /v1/56ee36bd79724517bf115df7f3202f1d/volumes HTTP/1.1" 200
602 0.639812
*<cinder-scheduler.log>*  logs are repeated regardless of excuting of
commands...... except for "*2016-01-20 15:24:30.205"*
2016-01-20 15:23:12.097 3755 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}
2016-01-20 15:24:12.105 3755 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': None, 'tenant': None, 'user_identity': u'-
- - - -'}

*2016-01-20 15:24:30.205 3755 WARNING cinder.context [-] Arguments dropped
when creating context: {'user': u'5f8b76cf5986402fa6affdb4c9e2fc44',
'tenant': u'56ee36bd79724517bf115df7f3202f1d', 'user_identity':
u'5f8b76cf5986402fa6affdb4c9e2fc44 56ee36bd79724517bf115df7f3202f1d -
- -'}*2016-01-20
15:25:12.133 3755 WARNING cinder.context [-] Arguments dropped when
creating context: {'user': None, 'tenant': None, 'user_identity': u'- - - -
-'}

*# cinder.conf* <controller node>
[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes

rpc_backend = cinder.openstack.common.rpc.impl_kombu
rabbit_host = 10.10.15.11
rabbit_port = 5672
rabbit_userid = guest
rabbit_password = rabbitpass
control_exchange = cinder
notification_driver = cinder.openstack.common.notifier.rpc_notifier

[database]
connection = mysql://cinder:cinderdbpass@10.10.15.11/cinder

[keystone_authtoken]
auth_uri = http://10.10.15.11:5000
auth_host = 10.10.15.11
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = cinderpass
---------------------------------------------------------------------------------------------------------------
● (On Compute node) that is also storage node
# vgs
  VG             #PV #LV #SN Attr   VSize VFree
  cinder-volumes   2   0   0 wz--n- 1.99g 1.99g
# pvs
  PV         VG             Fmt  Attr PSize    PFree
  /dev/sdc   cinder-volumes lvm2 a--  1020.00m 1020.00m
  /dev/sdd   cinder-volumes lvm2 a--  1020.00m 1020.00m

# service cinder-volume status
cinder-volume start/running, process 1755
# service tgt status
tgt start/running, process 1783

# /etc/lvm/lvm.conf
...
filter = [ "a/sda1/", "a/sdc/", "a/sdd/", "r/.*/"]
....
# netstat -an | grep 5672
tcp        0      0 10.10.15.31:33263       10.10.15.11:5672
ESTABLISHED

*# cinder.conf* <compute node>
[DEFAULT]
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_confg = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
#
rpc_backend = cinder.openstack.common.rpc.impl_kombu
rabbit_host = 10.10.15.11
rabbit_port = 5672
rabbit_userid = guest
rabbit_password = rabbitpass
#
my_ip = 10.10.15.31
glance_host = 10.10.15.11
#
[keystone_authtoken]
auth_uri = http://10.10.15.11:5000
auth_host = 10.10.15.11
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = cinder
admin_password = cinderpass
#
[database]
connection = mysql://cinder:cinderdbpass@10.10.15.11/cinder

# ls -al /var/lib/cinder/volumes
total 8
drwxr-xr-x 2 cinder cinder 4096  9월  5 05:43 .
drwxr-xr-x 3 cinder cinder 4096  1월 19 21:13 ..
# ls -al /var/lock/cinder
total 0
drwxr-xr-x 2 cinder root  40  1월 19 21:52 .
drwxrwxrwt 7 root   root 140  1월 19 21:53 ..

# cat /admin-openrc.sh
export OS_USERNAME=admin
export OS_PASSWORD=adminpass
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://10.10.15.11:35357/v2.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160120/4a5345f6/attachment.html>


More information about the Openstack mailing list