Ask Your Question
0

cinder volume creation (status : creating)

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

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 10:13:30 -0600

rajeshkannan007 gravatar image

Hi Razique,

these are the logs of three files after executing the command

cinder-api.log

2012-11-06 15:40:32 INFO cinder.api.openstack.wsgi [req-c4b44a16-c1b9-4e74-9c43-c73e07329308 de9a94795afd434a9d6fd40bcd228a42 f2150818509d4735bd669305662564aa] POST http://192.168.0.111:8776/v1/f2150818509d4735bd669305662564aa/volumes (http://192.168.0.111:8776/v1/f2150818...) 2012-11-06 15:40:32 AUDIT cinder.api.openstack.volume.volumes [req-c4b44a16-c1b9-4e74-9c43-c73e07329308 de9a94795afd434a9d6fd40bcd228a42 f2150818509d4735bd669305662564aa] Create volume of 1 GB 2012-11-06 15:40:32 DEBUG cinder.quota [req-c4b44a16-c1b9-4e74-9c43-c73e07329308 de9a94795afd434a9d6fd40bcd228a42 f2150818509d4735bd669305662564aa] Created reservations ['704be3ef-f73e-4e61-a805-9c44f411b3f0', 'd5257501-00dd-442a-85b2-f6cd560e93e4'] reserve /usr/lib/python2.7/dist-packages/cinder/quota.py:663 2012-11-06 15:40:32 24143 DEBUG cinder.openstack.common.rpc.amqp [-] Making asynchronous cast on cinder-scheduler... cast /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py:377 2012-11-06 15:40:32 AUDIT cinder.api.openstack.volume.volumes [req-c4b44a16-c1b9-4e74-9c43-c73e07329308 de9a94795afd434a9d6fd40bcd228a42 f2150818509d4735bd669305662564aa] vol={'availability_zone': 'nova', 'terminated_at': None, 'updated_at': None, 'provider_auth': None, 'snapshot_id': None, 'ec2_id': None, 'mountpoint': None, 'deleted_at': None, 'id': '9e6bc2bd-1c0c-485f-9e50-073fff5456a0', 'size': 1, 'user_id': u'de9a94795afd434a9d6fd40bcd228a42', 'attach_time': None, 'display_description': None, 'project_id': u'f2150818509d4735bd669305662564aa', 'launched_at': None, 'scheduled_at': None, 'status': 'creating', 'volume_type_id': None, 'deleted': False, 'provider_location': None, 'host': None, 'display_name': u'test1', 'instance_uuid': None, 'created_at': datetime.datetime(2012, 11, 6, 10, 10, 32, 456434), 'attach_status': 'detached'} 2012-11-06 15:40:32 INFO cinder.api.openstack.wsgi [req-c4b44a16-c1b9-4e74-9c43-c73e07329308 de9a94795afd434a9d6fd40bcd228a42 f2150818509d4735bd669305662564aa] http://192.168.0.111:8776/v1/f2150818509d4735bd669305662564aa/volumes (http://192.168.0.111:8776/v1/f2150818...) returned with HTTP 200

cinder-scheduler.log

2012-11-06 15:40:32 4224 DEBUG cinder.openstack.common.rpc.amqp [-] received {u'_context_roles': [u'member', u'admin'], u'_context_request_id': u'req-c4b44a16-c1b9-4e74-9c43-c73e07329308', u'_context_quota_class': None, u'args': {u'topic': u'cinder-volume', u'image_id': None, u'snapshot_id': None, u'volume_id': u'9e6bc2bd-1c0c-485f-9e50-073fff5456a0'}, u'_context_auth_token': '<sanitized>', u'_context_is_admin': True, u'_context_project_id': u'f2150818509d4735bd669305662564aa', u'_context_timestamp': u'2012-11-06T10:10:32.425778', u'_context_read_deleted': u'no', u'_context_user_id': u'de9a94795afd434a9d6fd40bcd228a42', u'method': u'create_volume', u'_context_remote_address': u'192.168.0.111'} _safe_log /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/common.py:195 2012-11-06 15:40:32 4224 DEBUG cinder.openstack.common.rpc.amqp [-] unpacked context: {'user_id': u'de9a94795afd434a9d6fd40bcd228a42', 'roles': [u'member', u'admin'], 'timestamp': u'2012-11-06T10:10:32.425778', 'auth_token': '<sanitized>', 'remote_address': u'192.168.0.111', 'quota_class': None, 'is_admin': True, 'request_id': u'req-c4b44a16-c1b9-4e74-9c43-c73e07329308', 'project_id': u'f2150818509d4735bd669305662564aa', 'read_deleted': u'no'} _safe_log /usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/common.py:195 2012-11-06 15:40:32 4224 ERROR cinder.openstack.common.rpc.amqp [-] Exception during message handling 2012-11-06 15:40:32 4224 TRACE cinder.openstack.common.rpc.amqp Traceback (most recent call last): 2012-11-06 15:40:32 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 15:40:32 4224 TRACE cinder.openstack.common.rpc.amqp rval = self.proxy.dispatch(ctxt, version, method, *args) 2012-11-06 15:40:32 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 15:40:32 4224 TRACE cinder.openstack.common.rpc.amqp return getattr(proxyobj, method)(ctxt, *kwargs) 2012-11-06 15 ... (more)

edit flag offensive delete link more
0

answered 2012-11-06 11:14:27 -0600

That is the problem then, you need to create a lvm partition first Here is a small how-to with a loopfile

$ dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G $ losetup /dev/loop2 cinder-volumes $ fdisk /dev/loop2

fdisk > n fdisk > 1 fdisk > enter fdisk > enter fdisk > t fdisk > 8e fdisk > write

$ pvcreate /dev/loop2 $ vgcreate cinder-volumes /dev/loop2 $ sudo cinder-manage db sync $ sudo service cinder-volume restart $ sudo service cinder-api restart

edit flag offensive delete link more
0

answered 2012-11-06 11:39:35 -0600

rajeshkannan007 gravatar image

Hi thanks for your reply..

i followed your steps..

but when i executed $ pvcreate /dev/loop2 it shws an error,

/dev/loop2: Size must exceed minimum of 1024 sectors. Failed to setup physical volume "/dev/loop2"

What should i do now..?

edit flag offensive delete link more
0

answered 2012-11-06 12:38:03 -0600

rajeshkannan007 gravatar image

$ losetup -a returns nothing..

edit flag offensive delete link more
0

answered 2012-11-07 04:15:13 -0600

rajeshkannan007 gravatar image

This is the output of running fdisk and pressing "p"

You will not be able to write the partition table.

Command (m for help): p

Disk cinder-volumes: 2147 MB, 2147483648 bytes 22 heads, 16 sectors/track, 11915 cylinders, total 4194304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xe0b9daf4

     Device Boot      Start         End      Blocks   Id  System

cinder-volumes1 2048 4194303 2096128 8e Linux LVM

edit flag offensive delete link more
0

answered 2012-11-07 14:28:09 -0600

it's like you don't have some rights over it. are you using the same user for all the tasks ? and the root one for the mounting and lvm ones ?

edit flag offensive delete link more
0

answered 2012-11-08 05:24:03 -0600

rajeshkannan007 gravatar image

No I'm using sudo for the mounting and lvm ones..

Because after using sudo only its executed.. otherwise its not working..

edit flag offensive delete link more
0

answered 2012-11-08 08:42:51 -0600

Can you try to create a bigger file (let's say 3 gb) and try again both fsdisk and the mount/ pvcreate, etc... thanks

edit flag offensive delete link more
0

answered 2012-11-08 12:14:16 -0600

try to run a cinder delete $id otherwhise, edit manually the database and set the "deleted" field to 1 since the volume doesn't exist

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

Seen: 775 times

Last updated: Nov 21 '12