Error creating volumes

Asked by jorge miguel lopes branco

I am having problems creating volumes. I can create instances properly, however when it comes to volumes i get a message of error after attempting to create one. Example:

# cinder list
+--------------------------------------+--------+----------------+------+-------------+----------+-------------+
| ID | Status | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+--------+----------------+------+-------------+----------+-------------+
| ce684b10-7b1a-4a07-8386-5b37f41e12d1 | error | vol123456789er | 1 | None | false | |
+--------------------------------------+--------+----------------+------+-------------+----------+-------------+

#grep ce684b10-7b1a-4a07-8386-5b37f41e12d1 /var/log/cinder/*.log

2014-03-31 16:16:23.539 19682 INFO cinder.volume.flows.create_volume [req-fbaace0a-4a72-47a4-ae36-4acdda485a8d f962fd6a12394f6bb6b7a153027772bf 9f7a59adaee74e38b508d194a318ea63] Volume ce684b10-7b1a-4a07-8386-5b37f41e12d1: being created using CreateVolumeFromSpecTask._create_raw_volume with specification: {'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1'}
2014-03-31 16:16:23.656 19682 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:23.659 19682 ERROR cinder.brick.local_dev.lvm [req-fbaace0a-4a72-47a4-ae36-4acdda485a8d f962fd6a12394f6bb6b7a153027772bf 9f7a59adaee74e38b508d194a318ea63] Cmd :sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:23.710 19682 TRACE cinder.volume.flows.create_volume Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:23.714 19682 TRACE cinder.openstack.common.rpc.amqp Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:23.840 19682 INFO cinder.volume.flows.create_volume [req-fbaace0a-4a72-47a4-ae36-4acdda485a8d f962fd6a12394f6bb6b7a153027772bf 9f7a59adaee74e38b508d194a318ea63] Volume ce684b10-7b1a-4a07-8386-5b37f41e12d1: being created using CreateVolumeFromSpecTask._create_raw_volume with specification: {'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1'}
2014-03-31 16:16:23.955 19682 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:23.957 19682 ERROR cinder.brick.local_dev.lvm [req-fbaace0a-4a72-47a4-ae36-4acdda485a8d f962fd6a12394f6bb6b7a153027772bf 9f7a59adaee74e38b508d194a318ea63] Cmd :sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:23.988 19682 TRACE cinder.volume.flows.create_volume Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:23.991 19682 TRACE cinder.openstack.common.rpc.amqp Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:24.065 19682 INFO cinder.volume.flows.create_volume [req-fbaace0a-4a72-47a4-ae36-4acdda485a8d f962fd6a12394f6bb6b7a153027772bf 9f7a59adaee74e38b508d194a318ea63] Volume ce684b10-7b1a-4a07-8386-5b37f41e12d1: being created using CreateVolumeFromSpecTask._create_raw_volume with specification: {'status': u'creating', 'volume_size': 1, 'volume_name': u'volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1'}
2014-03-31 16:16:24.162 19682 TRACE cinder.brick.local_dev.lvm Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:24.164 19682 ERROR cinder.brick.local_dev.lvm [req-fbaace0a-4a72-47a4-ae36-4acdda485a8d f962fd6a12394f6bb6b7a153027772bf 9f7a59adaee74e38b508d194a318ea63] Cmd :sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:24.200 19682 TRACE cinder.volume.flows.create_volume Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g
2014-03-31 16:16:24.203 19682 TRACE cinder.openstack.common.rpc.amqp Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g

what can i do? any suggestions?

Question information

Language:
English Edit question
Status:
Answered
For:
Cinder Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
lirenke (lvhancy) said :
#1

Hi, it seems that fail to execute command "lvcreate", but there is no reason showed. What's the result if you run the command directly in shell?

Revision history for this message
Sandy Walsh (sandy-walsh) said :
#2

seeing the same problem under devstack

http://paste.openstack.org/show/76657/

Revision history for this message
hanzhf (hanzhf) said :
#3

ERROR cinder.brick.local_dev.lvm [req-fbaace0a-4a72-47a4-ae36-4acdda485a8d f962fd6a12394f6bb6b7a153027772bf 9f7a59adaee74e38b508d194a318ea63] Cmd :sudo cinder-rootwrap /etc/cinder/rootwrap.conf lvcreate -n volume-ce684b10-7b1a-4a07-8386-5b37f41e12d1 cinder-volumes -L 1g, the command failed during lvcreate, can you try manually try this command on your system ?

Can you help with this problem?

Provide an answer of your own, or ask jorge miguel lopes branco for more information if necessary.

To post a message you must log in.