
Cisco's Third-Party CI was taken down as a result of the CTO's office being restructured. Numerous attempts to re-engage with Cisco directly and address the various known issues in their drivers have not proven to be fruitful. Additionally, the drivers are not Python3 compatible, and some reports have indicated that the CIMC driver is no longer compatible with newer versions. As such, the ironic community has little choice but to to remove the Cisco UCS/CIMC hardware types and driver interface code. Story: 2005033 Task: 29522 Change-Id: Ie12eaf7572ce4d66f6a68025b7fe2d294185ce28
103 lines
3.4 KiB
Python
103 lines
3.4 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
|
|
|
|
from oslo_log import log
|
|
|
|
import ironic.conf
|
|
|
|
_default_opt_lists = [
|
|
ironic.conf.default.api_opts,
|
|
ironic.conf.default.driver_opts,
|
|
ironic.conf.default.exc_log_opts,
|
|
ironic.conf.default.hash_opts,
|
|
ironic.conf.default.image_opts,
|
|
ironic.conf.default.img_cache_opts,
|
|
ironic.conf.default.netconf_opts,
|
|
ironic.conf.default.notification_opts,
|
|
ironic.conf.default.path_opts,
|
|
ironic.conf.default.portgroup_opts,
|
|
ironic.conf.default.service_opts,
|
|
ironic.conf.default.utils_opts,
|
|
]
|
|
|
|
_opts = [
|
|
('DEFAULT', itertools.chain(*_default_opt_lists)),
|
|
('agent', ironic.conf.agent.opts),
|
|
('ansible', ironic.conf.ansible.opts),
|
|
('api', ironic.conf.api.opts),
|
|
('audit', ironic.conf.audit.opts),
|
|
('cinder', ironic.conf.cinder.list_opts()),
|
|
('conductor', ironic.conf.conductor.opts),
|
|
('console', ironic.conf.console.opts),
|
|
('database', ironic.conf.database.opts),
|
|
('deploy', ironic.conf.deploy.opts),
|
|
('dhcp', ironic.conf.dhcp.opts),
|
|
('drac', ironic.conf.drac.opts),
|
|
('glance', ironic.conf.glance.list_opts()),
|
|
('healthcheck', ironic.conf.healthcheck.opts),
|
|
('ilo', ironic.conf.ilo.opts),
|
|
('inspector', ironic.conf.inspector.list_opts()),
|
|
('ipmi', ironic.conf.ipmi.opts),
|
|
('irmc', ironic.conf.irmc.opts),
|
|
('iscsi', ironic.conf.iscsi.opts),
|
|
('json_rpc', ironic.conf.json_rpc.list_opts()),
|
|
('metrics', ironic.conf.metrics.opts),
|
|
('metrics_statsd', ironic.conf.metrics_statsd.opts),
|
|
('neutron', ironic.conf.neutron.list_opts()),
|
|
('pxe', ironic.conf.pxe.opts),
|
|
('service_catalog', ironic.conf.service_catalog.list_opts()),
|
|
('snmp', ironic.conf.snmp.opts),
|
|
('swift', ironic.conf.swift.list_opts()),
|
|
('xclarity', ironic.conf.xclarity.opts),
|
|
]
|
|
|
|
|
|
def list_opts():
|
|
"""Return a list of oslo.config options available in Ironic code.
|
|
|
|
The returned list includes all oslo.config options. Each element of
|
|
the list is a tuple. The first element is the name of the group, the
|
|
second element is the options.
|
|
|
|
The function is discoverable via the 'ironic' entry point under the
|
|
'oslo.config.opts' namespace.
|
|
|
|
The function is used by Oslo sample config file generator to discover the
|
|
options.
|
|
|
|
:returns: a list of (group, options) tuples
|
|
"""
|
|
return _opts
|
|
|
|
|
|
def update_opt_defaults():
|
|
log.set_defaults(
|
|
default_log_levels=[
|
|
'amqp=WARNING',
|
|
'amqplib=WARNING',
|
|
'qpid.messaging=INFO',
|
|
'oslo.messaging=INFO',
|
|
'sqlalchemy=WARNING',
|
|
'stevedore=INFO',
|
|
'eventlet.wsgi.server=INFO',
|
|
'iso8601=WARNING',
|
|
'requests=WARNING',
|
|
'neutronclient=WARNING',
|
|
'glanceclient=WARNING',
|
|
'urllib3.connectionpool=WARNING',
|
|
'keystonemiddleware.auth_token=INFO',
|
|
'keystoneauth.session=INFO',
|
|
]
|
|
)
|