Browse code

Merge "xenapi: enable block device access for stack user"

Jenkins authored on 2013/09/05 20:52:55
Showing 1 changed files
... ...
@@ -48,6 +48,11 @@ useradd $STACK_USER -s /bin/bash -d /opt/stack -G libvirtd
48 48
 echo $STACK_USER:$GUEST_PASSWORD | chpasswd
49 49
 echo "$STACK_USER ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
50 50
 
51
+# Add an udev rule, so that new block devices could be written by stack user
52
+cat > /etc/udev/rules.d/50-openstack-blockdev.rules << EOF
53
+KERNEL=="xvd[b-z]", GROUP="$STACK_USER", MODE="0660"
54
+EOF
55
+
51 56
 # Give ownership of /opt/stack to stack user
52 57
 chown -R $STACK_USER /opt/stack
53 58