bilelmsekni / OpenStack-Grizzly-Install-Guide

A full install guide for OpenStack Grizzly
352 stars 218 forks source link

Configure tgt instead of iscsitarget #136

Closed racedo closed 10 years ago

racedo commented 10 years ago

Using the Ubuntu Cloud Archive, tgt is a dependency of cinder-volume

$ apt-cache show cinder-volume|grep Depends
Depends: cinder-common (= 1:2013.1.3-0ubuntu2~cloud0), lvm2, tgt, upstart-job, python

The manual installs iscsitarget and configures iscsitarget in /etc/cinder/cinder.conf

Either tgt or iscsitarget need to be running and by default, both will be running if the instructions are followed. Deleting tgt will delete cinder-volume so for testing purposes it looks more reasonable to just use tgt.

Alternatively we can just disable tgt.

When using tgt this is the cinder.conf configuration

[DEFAULT]
rootwrap_config=/etc/cinder/rootwrap.conf
sql_connection = mysql://cinderUser:cinderPass@10.0.0.51/cinder
api_paste_config = /etc/cinder/api-paste.ini
iscsi_helper=tgtadm
volume_name_template = volume-%s
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
#osapi_volume_listen_port=5900

state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/cinder/volumes
mtasic85 commented 10 years ago

I had to add following to this configuration:

[DEFAULT]
...
# IMPORTANT: update last number to be address of compute node
iscsi_ip_address = 10.10.10.53

# IMPORTANT: required by cider to be address of compute node
rabbit_host=10.10.10.51