oneiric: cinder fails due to targets configuration

Bug #1045358 reported by Mate Lakat
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Mate Lakat

Bug 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

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

Mate Lakat (mate-lakat)
Changed in devstack:
assignee: nobody → Mate Lakat (mate-lakat)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/12321

Changed in devstack:
status: New → In Progress
Mate Lakat (mate-lakat)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/12321
Committed: http://github.com/openstack-dev/devstack/commit/a39caacad341234e5d9e86ae2b7cf8c2ecbbc190
Submitter: Jenkins
Branch: master

commit a39caacad341234e5d9e86ae2b7cf8c2ecbbc190
Author: Mate Lakat <email address hidden>
Date: Mon Sep 3 15:45:53 2012 +0100

    Make sure tgt is using config.d approach

    Fixes bug 1045358.

    On ubuntu Oneiric, the tgt configuration was not using the config.d
    approach. tgt was unable to find the config files, so no volumes could
    be created. This fix makes sure, that the config.d directory is there,
    and the configuration includes files from there.

    Was Cinder only, added same fix for Nova volumes

    Change-Id: I6752cb628dd22e91e640f0f584fafefa4cd6d0f1

Changed in devstack:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.