Merge pull request #9 from jaypipes/working

Fixes from marathon chef-client debug session
Merge pull request #10 from jaypipes/working

When merging setup and api recipes, forgot to include keystone role conf...
Merge pull request #11 from jaypipes/working

Corrects api_endpoint -> cinder_api_endpoint
Merge pull request #12 from jaypipes/working

Install the dang API packages
Merge pull request #13 from jaypipes/working

db sync is idempotent, no need for not_if
Added includes for volume
Set state_path and a few others to not rely on defaults

I believe state_path was causing lvm to create volumes in the worng dir.

2012-12-13 00:30:54 DEBUG cinder.volume.manager [req-64dbc153-ece0-43b5-b5d3-239c438f892d cd5e66fdaffb46b98ec38033b3568ad7 b207ef4975d140da8f1afee98cffcde4] volume volume-58299
55a-c4f5-4965-a154-86ecc734ca60: creating export create_volume /usr/lib/python2.7/dist-packages/cinder/volume/manager.py:155
2012-12-13 00:30:54 31573 ERROR cinder.openstack.common.rpc.amqp [-] Exception during message handling
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp Traceback (most recent call last):
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/amqp.py", line 276, in _process_data
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     rval = self.proxy.dispatch(ctxt, version, method, **args)
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/rpc/dispatcher.py", line 145, in dispatch
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 163, in create_volume
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     volume_ref['id'], {'status': 'error'})
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     self.gen.next()
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 156, in create_volume
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     model_update = self.driver.create_export(context, volume_ref)
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/cinder/volume/driver.py", line 380, in create_export
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     volume_path)
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/cinder/volume/iscsi.py", line 112, in create_iscsi_target
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     utils.ensure_tree(FLAGS.volumes_dir)
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/dist-packages/cinder/utils.py", line 1049, in ensure_tree
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     os.makedirs(path)
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp   File "/usr/lib/python2.7/os.py", line 157, in makedirs
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp     mkdir(name, mode)
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/volumes'
2012-12-13 00:30:54 31573 TRACE cinder.openstack.common.rpc.amqp
Merge pull request #14 from retr0h/working

Added includes for volume
Defaults to LVM

Creates an LVM developer mode volume group.
Missed a ';'
Referenced image_file incorrectly in guard
Merge pull request #15 from retr0h/working

Creates an LVM developer mode volume group.
volume_driver was incorrect in attributes/default.rb