add title to services
Change-Id: If2fc1a4c73d11664b2a10f9d001bbb2a32a2e67d
This commit is contained in:
parent
b51339ef1e
commit
1ecb33c946
|
@ -0,0 +1,31 @@
|
|||
# Copyright 2017 - Nokia
|
||||
#
|
||||
# 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 vitrage import __version__
|
||||
|
||||
VITRAGE_TITLE = """
|
||||
__ __ __ __
|
||||
/ | / |/ | / |
|
||||
$$ | $$ |$$/ _$$ |_ ______ ______ ______ ______
|
||||
$$ | $$ |/ |/ $$ | / \ / \ / \ / \
|
||||
$$ \ /$$/ $$ |$$$$$$/ /$$$$$$ |$$$$$$ |/$$$$$$ |/$$$$$$ |
|
||||
$$ /$$/ $$ | $$ | __ $$ | $$/ / $$ |$$ | $$ |$$ $$ |
|
||||
$$ $$/ $$ | $$ |/ |$$ | /$$$$$$$ |$$ \__$$ |$$$$$$$$/
|
||||
$$$/ $$ | $$ $$/ $$ | $$ $$ |$$ $$ |$$ |
|
||||
$/ $$/ $$$$/ $$/ $$$$$$$/ $$$$$$$ | $$$$$$$/
|
||||
/ \__$$ |
|
||||
$$ $$/
|
||||
$$$$$$/
|
||||
Vitrage RCA Service, version %s
|
||||
""" % __version__
|
|
@ -15,12 +15,15 @@
|
|||
import sys
|
||||
|
||||
from vitrage.api import app
|
||||
from vitrage.cli import VITRAGE_TITLE
|
||||
from vitrage import service
|
||||
|
||||
|
||||
def main():
|
||||
print(VITRAGE_TITLE)
|
||||
conf = service.prepare_service()
|
||||
app.build_server(conf)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
import sys
|
||||
|
||||
from oslo_service import service as os_service
|
||||
from vitrage.cli import VITRAGE_TITLE
|
||||
from vitrage.datasources.listener_service import ListenerService
|
||||
|
||||
from vitrage.datasources.collector_notifier import CollectorNotifier
|
||||
|
@ -24,8 +25,10 @@ from vitrage import service
|
|||
|
||||
|
||||
def main():
|
||||
|
||||
"""Starts all the datasources drivers services"""
|
||||
|
||||
print(VITRAGE_TITLE)
|
||||
conf = service.prepare_service()
|
||||
launcher = os_service.ServiceLauncher(conf)
|
||||
rabbitmq = CollectorNotifier(conf)
|
||||
|
|
|
@ -19,6 +19,7 @@ import sys
|
|||
from oslo_service import service as os_service
|
||||
|
||||
from vitrage.api_handler.service import VitrageApiHandlerService
|
||||
from vitrage.cli import VITRAGE_TITLE
|
||||
from vitrage.common.constants import EntityCategory
|
||||
from vitrage.datasources import OPENSTACK_CLUSTER
|
||||
from vitrage.datasources.transformer_base import CLUSTER_ID
|
||||
|
@ -39,6 +40,7 @@ def main():
|
|||
4. Starts the Consistency service
|
||||
"""
|
||||
|
||||
print(VITRAGE_TITLE)
|
||||
conf = service.prepare_service()
|
||||
evaluator_queue, evaluator, e_graph = init(conf)
|
||||
launcher = os_service.ServiceLauncher(conf)
|
||||
|
|
|
@ -15,11 +15,13 @@
|
|||
from oslo_service import service as os_service
|
||||
import sys
|
||||
|
||||
from vitrage.cli import VITRAGE_TITLE
|
||||
from vitrage.machine_learning.service import MachineLearningService
|
||||
from vitrage import service
|
||||
|
||||
|
||||
def main():
|
||||
print(VITRAGE_TITLE)
|
||||
conf = service.prepare_service()
|
||||
launcher = os_service.ServiceLauncher(conf)
|
||||
launcher.launch_service(MachineLearningService(conf))
|
||||
|
|
|
@ -15,11 +15,13 @@
|
|||
from oslo_service import service as os_service
|
||||
import sys
|
||||
|
||||
from vitrage.cli import VITRAGE_TITLE
|
||||
from vitrage.notifier.service import VitrageNotifierService
|
||||
from vitrage import service
|
||||
|
||||
|
||||
def main():
|
||||
print(VITRAGE_TITLE)
|
||||
conf = service.prepare_service()
|
||||
launcher = os_service.ServiceLauncher(conf)
|
||||
launcher.launch_service(VitrageNotifierService(conf))
|
||||
|
|
|
@ -12,10 +12,12 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from vitrage.cli import VITRAGE_TITLE
|
||||
from vitrage import service
|
||||
from vitrage import storage
|
||||
|
||||
|
||||
def dbsync():
|
||||
print(VITRAGE_TITLE)
|
||||
conf = service.prepare_service()
|
||||
storage.get_connection_from_config(conf).upgrade()
|
||||
|
|
Loading…
Reference in New Issue