Files
cookbook-openstack-block-st…/attributes/default.rb
John Dewey 574ec91db1 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
2012-12-12 16:50:38 -08:00

101 lines
3.9 KiB
Ruby

#
# Cookbook Name:: cinder
# Attributes:: default
#
# Copyright 2012, DreamHost
# Copyright 2012, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
########################################################################
# Toggles - These can be overridden at the environment level
default["developer_mode"] = false # we want secure passwords by default
########################################################################
# Set to some text value if you want templated config files
# to contain a custom banner at the top of the written file
default["cinder"]["custom_template_banner"] = "
# This file autogenerated by Chef
# Do not edit, changes will be overwritten
"
default["cinder"]["verbose"] = "False"
default["cinder"]["debug"] = "False"
# Availability zone/region for the Cinder service
default["cinder"]["region"] = "RegionOne"
# The name of the Chef role that installs the database and database user
# that Cinder uses
default["cinder"]["cinder_db_chef_role"] = "cinder"
# The name of the Chef role that knows about the message queue server
# that Cinder uses
default["cinder"]["rabbit_server_chef_role"] = "rabbitmq-server"
# This is the name of the Chef role that will install the Keystone Service API
default["cinder"]["keystone_service_chef_role"] = "keystone"
# This is the name of the Chef role that will install the Glance API
default["cinder"]["glance_api_chef_role"] = "glance-api"
# operating system group name
default["cinder"]["group"] = "cinder"
# operating system user that services will run under
default["cinder"]["user"] = "cinder"
default["cinder"]["db"]["name"] = "cinder"
default["cinder"]["db"]["username"] = "cinder"
default["cinder"]["service_tenant_name"] = "service"
default["cinder"]["service_user"] = "cinder"
default["cinder"]["service_role"] = "admin"
# logging attribute
default["cinder"]["syslog"]["use"] = false
default["cinder"]["syslog"]["facility"] = "LOG_LOCAL2"
default["cinder"]["syslog"]["config_facility"] = "local2"
default["cinder"]["api"]["ratelimit"] = "True"
default["cinder"]["volume"]["state_path"] = "/var/lib/cinder"
default["cinder"]["volume"]["volume_group"] = "cinder-volumes"
case platform
when "fedora", "redhat", "centos"
default["cinder"]["platform"] = {
"cinder_api_packages" => ["openstack-cinder", "python-cinderclient", "MySQL-python"],
"cinder_api_service" => "openstack-cinder-api",
"cinder_volume_packages" => ["openstack-cinder", "MySQL-python"],
"cinder_volume_service" => "openstack-cinder-volume",
"cinder_scheduler_packages" => ["openstack-cinder", "MySQL-python"],
"cinder_scheduler_service" => "openstack-cinder-scheduler",
"cinder_iscsitarget_packages" => ["scsi-target-utils"],
"cinder_iscsitarget_service" => "tgtd",
"package_overrides" => ""
}
when "ubuntu"
default["cinder"]["platform"] = {
"cinder_api_packages" => ["cinder-common", "cinder-api", "python-cinderclient", "python-mysqldb"],
"cinder_api_service" => "cinder-api",
"cinder_volume_packages" => ["cinder-volume", "python-mysqldb"],
"cinder_volume_service" => "cinder-volume",
"cinder_scheduler_packages" => ["cinder-scheduler", "python-mysqldb"],
"cinder_scheduler_service" => "cinder-scheduler",
"cinder_iscsitarget_packages" => ["tgt"],
"cinder_iscsitarget_service" => "tgt",
"package_overrides" => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'"
}
end