IOError: [Errno 13] Permission denied: u'/dev/cinder-volumes
Hello,
I'm using Cinder downloaded from Folsom stable release.
All the daemons (cinder-api, cinder-volume and cinder-scheduler) run on a single machine where I also installed lvm2, iscsitarget open-iscsi, iscsitarget-dkms.
Before using the daemons, I prepared the volume group as expected by cinder:
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=2G # create a file for hosting the volumes
losetup /dev/loop2 cinder-volumes # setup the loop device
fdisk /dev/loop2 # prepare partition tables
n
p
1
ENTER
ENTER
t
8e
w
pvcreate /dev/loop2
vgcreate cinder-volumes /dev/loop2
Then I restarted target and initiator:
service tgt start
service open-iscsi start
I restarted cinder's daemons.
When I try to create a volume, the command fails even if the volume gets created.
Why?
This is the volume that's created:
root@OpenStack0
--- Logical volume ---
LV Name /dev/cinder-
VG Name cinder-volumes
LV UUID 9Hybky-
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
This is the error I get in the log:
2012-11-09 18:09:17 10596 ERROR cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
2012-11-09 18:09:17 10596 TRACE cinder.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Cinder Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Marco CONSONNI
- Solved:
- Last query:
- Last reply: