Ask Your Question
0

cinder volume creation (status : creating)

asked 2012-11-05 12:18:47 -0500

rajeshkannan007 gravatar image

Hi, I am trying openstack manual installation on a single node with the help of the manual http://docs.openstack.org/trunk/openstack-compute/install/apt/content/ap_installingfolsomubuntuprecise.html (http://docs.openstack.org/trunk/opens...)

I got stucked in creating volumes in cinder configuration

When i execute the command $ cinder create --display_name test 1

it gives,

+---------------------+--------------------------------------+ | 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 | +---------------------+--------------------------------------+

And the status of the volume remains in creating

When i execute the command $ cinder list

it gives +--------------------------------------+----------+--------------+------+-------------+-------------+ | ID | Status | Display Name | Size | Volume Type | Attached to | +--------------------------------------+----------+--------------+------+-------------+-------------+ | 8802e55c-29a6-4087-9730-286cfbd3fdb3 | creating | test | 1 | None | | +--------------------------------------+----------+--------------+------+-------------+-------------+

the status of the volume should be 'Available', But in my case it still remains in 'creating' state

and my cinder.conf looks like, [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

and the part of my api-paste.ini file looks like, [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

Please help me fix it..

Its urgent i need..

regards Rajesh kannan

edit retag flag offensive close merge delete

29 answers

Sort by ยป oldest newest most voted
0

answered 2012-11-06 08:49:20 -0500

Hey Rajesh, what about cinder-api.log ?

edit flag offensive delete link more
0

answered 2012-11-06 09:12:25 -0500

rajeshkannan007 gravatar image

After running the command, it shows..

$ cinder create --display_name test 1 +---------------------+--------------------------------------+ | Property | Value | +---------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | created_at | 2012-11-06T08:38:07.615678 | | display_description | None | | display_name | test | | id | aafcf6da-5767-440e-9f8f-ebd221cf6fb7 | | metadata | {} | | size | 1 | | snapshot_id | None | | status | creating | | volume_type | None | +---------------------+--------------------------------------+

And i executed the cinder list command for checking the volume it shows,

~$ cinder list +--------------------------------------+----------+--------------+------+-------------+-------------+ | ID | Status | Display Name | Size | Volume Type | Attached to | +--------------------------------------+----------+--------------+------+-------------+-------------+ | aafcf6da-5767-440e-9f8f-ebd221cf6fb7 | creating | test | 1 | None | | +--------------------------------------+----------+--------------+------+-------------+-------------+

Its status still remain in 'creating'..!!

What should i do to make it available...?

edit flag offensive delete link more
0

answered 2012-11-08 12:13:35 -0500

try to run

edit flag offensive delete link more
0

answered 2012-11-06 12:30:30 -0500

Looks like the loopfile is not mounted, what losetup -a shows ?

edit flag offensive delete link more
0

answered 2012-11-06 12:53:30 -0500

rajeshkannan007 gravatar image

now i tried from the first step..

while executing $pvcreate /dev/loop2 it shows,

Can't initialize physical volume "/dev/loop2" of volume group "cinder-volumes" without -ff

edit flag offensive delete link more
0

answered 2012-11-06 13:13:38 -0500

what fdisk /path/to/cinder-volumes output ? run fdisk and then press "p"

edit flag offensive delete link more
0

answered 2012-11-06 07:32:27 -0500

koolhead17 gravatar image

Rajesh,

Kindly paste cinder logs also the version of cinder you are using.

edit flag offensive delete link more
0

answered 2012-11-06 08:16:39 -0500

rajeshkannan007 gravatar image

Hi, Thanks for your reply,

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

cinder-volume.log file contains,

2012-11-06 11:14:06 24356 AUDIT cinder.service [-] SIGTERM received 2012-11-06 11:14:10 25704 DEBUG cinder.service [-] Full set of FLAGS: wait /usr/lib/python2.7/dist-packages/cinder/service.py:411 2012-11-06 11:14:10 25704 DEBUG cinder.service [-] storage_availability_zone : nova wait /usr/lib/python2.7/dist-packages/cinder/service.py:420 2012-11-06 11:14:10 25704 DEBUG cinder.service [-] sql_connection_debug : 0 wait /usr/lib/python2.7/dist-packages/cinder/service.py:420 2012-11-06 11:14:10 25704 DEBUG cinder.service [-] glance_port : 9292 wait /usr/lib/python2.7 ... (more)

edit flag offensive delete link more
0

answered 2012-11-06 08:55:16 -0500

rajeshkannan007 gravatar image

Thanks for your reply Razique,

My cinder-api.log file contains

2012-11-06 14:16:36 13476 AUDIT cinder.service [-] SIGTERM received 2012-11-06 14:16:36 13476 INFO cinder.wsgi [-] WSGI server has stopped. 2012-11-06 14:16:37 15266 AUDIT cinder.api.openstack.volume.extensions [-] Initializing extension manager. 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Loading extension cinder.api.openstack.volume.contrib.standard_extensions load_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:251 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Calling extension factory cinder.api.openstack.volume.contrib.standard_extensions load_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:257 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Loading extension cinder.api.openstack.volume.contrib.quota_classes.Quota_classes load_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:251 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Calling extension factory cinder.api.openstack.volume.contrib.quota_classes.Quota_classes load_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:257 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext name: QuotaClasses _check_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:230 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext alias: os-quota-class-sets _check_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:231 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext description: Quota classes management support _check_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:233 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext namespace: http://docs.openstack.org/volume/ext/quota-classes-sets/api/v1.1 (http://docs.openstack.org/volume/ext/...) _check_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:234 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext updated: 2012-03-12T00:00:00+00:00 _check_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:235 2012-11-06 14:16:37 15266 AUDIT cinder.api.openstack.extensions [-] Loaded extension: os-quota-class-sets 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Loading extension cinder.api.openstack.volume.contrib.image_create.Image_create load_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:251 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Calling extension factory cinder.api.openstack.volume.contrib.image_create.Image_create load_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:257 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext name: CreateVolumeExtension _check_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:230 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext alias: os-image-create _check_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:231 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext description: Allow creating a volume from an image in the Create Volume v1 API _check_extension /usr/lib/python2.7/dist-packages/cinder/api/openstack/extensions.py:233 2012-11-06 14:16:37 15266 DEBUG cinder.api.openstack.extensions [-] Ext namespace: http://docs.openstack.org/volume/ext/image-create/api ... (more)

edit flag offensive delete link more
0

answered 2012-11-06 09:03:15 -0500

Can you run $ cinder create --display_name test 1 and paste the lines of the three logs ?

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-11-05 12:18:47 -0500

Seen: 741 times

Last updated: Nov 21 '12