Ask Your Question
0

Attach volume time out

asked 2012-11-26 16:15:34 -0500

xing-yang gravatar image

Hi,

If it takes too long for the cinder volume driver to complete an attach lun task (initialize_connection), cinder api times out.

2012-11-26 07:31:28 TRACE cinder.api.openstack Timeout: Timeout while waiting on RPC response.

Is there a way to increase the time out value?

Thanks, Xing

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted
0

answered 2012-11-30 16:04:14 -0500

xing-yang gravatar image

Hi Rajesh,

I found a rpc_cast_timeout flag in /etc/cinder.conf. I'm going to increase that value and give a try. Will let you know how it goes.

Here's the keystone.conf file.

Thanks, Xing

------------------------------keystone.conf--------------------------------------------------------------

[DEFAULT] admin_token = password

A "shared secret" between keystone and other openstack services

admin_token = ADMIN

The IP address of the network interface to listen on

bind_host = 0.0.0.0

The port number which the public service listens on

public_port = 5000

The port number which the public admin listens on

admin_port = 35357

The port number which the OpenStack Compute service listens on

compute_port = 8774

=== Logging Options ===

Print debugging output

verbose = False

Print more verbose output

(includes plaintext request logging, potentially including passwords)

debug = False

Name of log file to output to. If not set, logging will go to stdout.

log_file = keystone.log

The directory to keep log files in (will be prepended to --logfile)

log_dir = /var/log/keystone

Use syslog for logging.

use_syslog = False

syslog facility to receive log lines

syslog_log_facility = LOG_USER

If this option is specified, the logging configuration file specified is

used and overrides any other logging options specified. Please see the

Python logging module documentation for details on logging configuration

files.

log_config = logging.conf

A logging.Formatter log message format string which may use any of the

available logging.LogRecord attributes.

log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s

Format string for %(asctime)s in log records.

log_date_format = %Y-%m-%d %H:%M:%S

onready allows you to send a notification when the process is ready to serve

For example, to have it notify using systemd, one could set shell command:

onready = systemd-notify --ready

or a module with notify() method:

onready = keystone.common.systemd

[sql] connection = mysql://root:password@localhost/keystone?charset=utf8

The SQLAlchemy connection string used to connect to the database

connection = sqlite:///keystone.db

the timeout before idle sql connections are reaped

idle_timeout = 200

[identity]

driver = keystone.identity.backends.sql.Identity

[catalog] driver = keystone.catalog.backends.sql.Catalog

dynamic, sql-based backend (supports API/CLI-based management commands)

driver = keystone.catalog.backends.sql.Catalog

static, file-based backend (does NOT support any management commands)

driver = keystone.catalog.backends.templated.TemplatedCatalog

template_file = default_catalog.templates

[token]

driver = keystone.token.backends.kvs.Token

Amount of time a token should remain valid (in seconds)

expiration = 86400

[policy]

driver = keystone.policy.backends.rules.Policy

[ec2] driver = keystone.contrib.ec2.backends.sql.Ec2

driver = keystone.contrib.ec2.backends.kvs.Ec2

[ssl] #enable = True #certfile = /etc/keystone/ssl/certs/keystone.pem #keyfile = /etc/keystone/ssl/private/keystonekey.pem #ca_certs = /etc/keystone/ssl/certs/ca.pem #cert_required = True [signing] #token_format = UUID #certfile = /etc/keystone/ssl/certs/signing_cert.pem #keyfile = /etc/keystone/ssl/private/signing_key.pem #ca_certs = /etc/keystone/ssl/certs/ca.pem #key_size = 1024 #valid_days = 3650 #ca_password = None #token_format = PKI

[ldap]

url = ldap://localhost

user = dc=Manager,dc=example,dc=com

password = None

suffix = cn=example,cn=com

use_dumb_member = False

user_tree_dn = ou=Users,dc=example,dc=com

user_objectclass = inetOrgPerson

user_id_attribute = cn

user_name_attribute = sn

tenant_tree_dn = ou=Groups ...

(more)
edit flag offensive delete link more
0

answered 2012-11-30 06:47:52 -0500

rajeshkannan007 gravatar image

Hi Xing,

I think some fault in your keystone.conf file's configuration.. can u please paste your keystone.conf file

Regards, Rajesh kannan

edit flag offensive delete link more
0

answered 2012-12-04 05:59:23 -0500

rajeshkannan007 gravatar image

Hi Xing,

How rpc_cast_timeout flag working on now after increasing the value...?

Its solved your problem or not..?

Regards, Rajesh kannan

edit flag offensive delete link more
0

answered 2012-12-04 21:30:17 -0500

xing-yang gravatar image

Hi Rajesh,

rpc_cast_timeout didn't help, but increasing rpc_response_timeout in cinder.conf did solve the problem.

Thanks, Xing

edit flag offensive delete link more
0

answered 2012-12-04 21:30:33 -0500

xing-yang gravatar image

Thanks Rajesh kannan, that solved my question.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-11-26 16:15:34 -0500

Seen: 978 times

Last updated: Dec 04 '12