49 lines
1.3 KiB
Python
49 lines
1.3 KiB
Python
# Copyright 2018 OpenStack Foundation
|
|
# All Rights Reserved.
|
|
#
|
|
# 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.
|
|
|
|
from oslo_config import cfg
|
|
|
|
rpc_opts = [
|
|
cfg.IntOpt("long_rpc_timeout",
|
|
default=1800,
|
|
help="""
|
|
This option allows setting an alternate timeout value for RPC calls
|
|
that have the potential to take a long time. If set, RPC calls to
|
|
other services will use this value for the timeout (in seconds)
|
|
instead of the global rpc_response_timeout value.
|
|
|
|
Operations with RPC calls that utilize this value:
|
|
|
|
* live migration
|
|
* scheduling
|
|
* enabling/disabling a compute service
|
|
|
|
Related options:
|
|
|
|
* rpc_response_timeout
|
|
"""),
|
|
]
|
|
|
|
|
|
ALL_OPTS = rpc_opts
|
|
|
|
|
|
def register_opts(conf):
|
|
conf.register_opts(ALL_OPTS)
|
|
|
|
|
|
def list_opts():
|
|
return {'DEFAULT': ALL_OPTS}
|