2012-09-03 20:52:25 |
Mate Lakat |
description |
If you install DevStack on the top of an oneiric, volume operations will fail. It is happening, because oneiric is not using the conf.d approach for targets:
stack@DevStackOSDomU:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
stack@DevStackOSDomU:~$ ls -la /etc/tgt/
total 12
drwxr-xr-x 2 root root 4096 2012-09-03 14:02 .
drwxr-xr-x 95 root root 4096 2012-09-03 14:09 ..
-rw-r--r-- 1 root root 103 2011-08-08 09:10 targets.conf
stack@DevStackOSDomU:~$ cat /etc/tgt/targets.conf
# Empty targets configuration file -- please see the package
# documentation directory for an example.
The exercise.sh shows this error, but stack.sh is not failing:
...
+ return 0
+ [[ deb = \d\e\b ]]
+ [[ ! -f /etc/tgt/conf.d/cinder.conf ]]
+ sudo tee /etc/tgt/conf.d/cinder.conf
+ echo 'include /opt/stack/cinder/volumes/*'
tee: /etc/tgt/conf.d/cinder.conf: No such file or directory
include /opt/stack/cinder/volumes/*
+ sudo stop tgt
stop: Unknown instance:
+ true
+ sudo start tgt
... |
If you install DevStack on the top of an oneiric, volume operations will fail. It is happening, because oneiric is not using the conf.d approach for targets:
stack@DevStackOSDomU:~$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"
stack@DevStackOSDomU:~$ ls -la /etc/tgt/
total 12
drwxr-xr-x 2 root root 4096 2012-09-03 14:02 .
drwxr-xr-x 95 root root 4096 2012-09-03 14:09 ..
-rw-r--r-- 1 root root 103 2011-08-08 09:10 targets.conf
Note: There is not conf.d directory!
stack@DevStackOSDomU:~$ cat /etc/tgt/targets.conf
# Empty targets configuration file -- please see the package
# documentation directory for an example.
Note: No inclusion of /etc/tgt/conf.d (of course)
BUT: cinder expects the conf.d approach!
The exercise.sh shows this error, but stack.sh is not failing:
...
+ return 0
+ [[ deb = \d\e\b ]]
+ [[ ! -f /etc/tgt/conf.d/cinder.conf ]]
+ sudo tee /etc/tgt/conf.d/cinder.conf
+ echo 'include /opt/stack/cinder/volumes/*'
tee: /etc/tgt/conf.d/cinder.conf: No such file or directory
include /opt/stack/cinder/volumes/*
+ sudo stop tgt
stop: Unknown instance:
+ true
+ sudo start tgt
... |
|