At the moment, Watcher can use a single bare metal provisioning service: Openstack Ironic. We're now adding support for Canonical's MAAS service [1], which is commonly used along with Juju [2] to deploy Openstack. In order to do so, we're building a metal client abstraction, with concrete implementations for Ironic and MAAS. We'll pick the MAAS client if the MAAS url is provided, otherwise defaulting to Ironic. For now, we aren't updating the baremetal model collector since it doesn't seem to be used by any of the existing Watcher strategy implementations. [1] https://maas.io/docs [2] https://juju.is/docs Implements: blueprint maas-support Change-Id: I6861995598f6c542fa9c006131f10203f358e0a6
73 lines
2.4 KiB
Python
Executable File
73 lines
2.4 KiB
Python
Executable File
# -*- encoding: utf-8 -*-
|
|
# Copyright (c) 2016 b<>com
|
|
# Copyright (c) 2016 Intel Corp
|
|
#
|
|
# Authors: Vincent FRANCOISE <vincent.francoise@b-com.com>
|
|
#
|
|
# 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
|
|
|
|
from watcher.conf import api
|
|
from watcher.conf import applier
|
|
from watcher.conf import ceilometer_client
|
|
from watcher.conf import cinder_client
|
|
from watcher.conf import clients_auth
|
|
from watcher.conf import collector
|
|
from watcher.conf import datasources
|
|
from watcher.conf import db
|
|
from watcher.conf import decision_engine
|
|
from watcher.conf import exception
|
|
from watcher.conf import glance_client
|
|
from watcher.conf import gnocchi_client
|
|
from watcher.conf import grafana_client
|
|
from watcher.conf import grafana_translators
|
|
from watcher.conf import ironic_client
|
|
from watcher.conf import keystone_client
|
|
from watcher.conf import maas_client
|
|
from watcher.conf import monasca_client
|
|
from watcher.conf import neutron_client
|
|
from watcher.conf import nova_client
|
|
from watcher.conf import paths
|
|
from watcher.conf import placement_client
|
|
from watcher.conf import planner
|
|
from watcher.conf import service
|
|
|
|
CONF = cfg.CONF
|
|
|
|
service.register_opts(CONF)
|
|
api.register_opts(CONF)
|
|
paths.register_opts(CONF)
|
|
exception.register_opts(CONF)
|
|
datasources.register_opts(CONF)
|
|
db.register_opts(CONF)
|
|
planner.register_opts(CONF)
|
|
applier.register_opts(CONF)
|
|
decision_engine.register_opts(CONF)
|
|
maas_client.register_opts(CONF)
|
|
monasca_client.register_opts(CONF)
|
|
nova_client.register_opts(CONF)
|
|
glance_client.register_opts(CONF)
|
|
gnocchi_client.register_opts(CONF)
|
|
keystone_client.register_opts(CONF)
|
|
grafana_client.register_opts(CONF)
|
|
grafana_translators.register_opts(CONF)
|
|
cinder_client.register_opts(CONF)
|
|
ceilometer_client.register_opts(CONF)
|
|
neutron_client.register_opts(CONF)
|
|
clients_auth.register_opts(CONF)
|
|
ironic_client.register_opts(CONF)
|
|
collector.register_opts(CONF)
|
|
placement_client.register_opts(CONF)
|