zun/higgins/opts.py
Will 52c85d3454 Add service group to enable state report
This patch enables higgins services, such as
higgins-conductor, to report their state
periodically.

While the service is starting, a periodical
task is created and it reports the information
of the service to Database.

To complete the unit test for service group,
some necessary test code is added.

Implements: blueprint support-service-group
Change-Id: Id3dff15b46feb5874ffec3231bfa8d526ac44cf1
2016-06-03 15:12:25 +08:00

32 lines
1.0 KiB
Python

# 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.
import itertools
import higgins.api.app
import higgins.common.keystone
import higgins.common.service
import higgins.conductor.config
def list_opts():
return [
('DEFAULT',
itertools.chain(
higgins.common.rpc_service.periodic_opts,
higgins.common.service.service_opts,
)),
('api', higgins.api.app.API_SERVICE_OPTS),
('conductor', higgins.conductor.config.SERVICE_OPTS),
('keystone_auth', higgins.common.keystone.keystone_auth_opts),
]