tobiko/tobiko/openstack/topology/_exception.py
Federico Ressi 9afc448f94 Add controller topology nodes group
Implement looking for reachable compute node IP
addresses when hypervisor.host_ip is not directly
recheable by using controller node as an SSH proxy
to fetch available compute node IPS executing
ifconfig command on compute node itself.

This makes topology discovery almost fully automatic
on cases where triple undercloud is not available
(even if far slower).

Report only on public IP for each node.

Use only public interface entry points to discover
controller nodes.

Change-Id: I7c295975b459231f8d319eb2caf0214a4884e50b
2019-10-10 07:18:49 +02:00

25 lines
886 B
Python

# Copyright 2019 Red Hat
#
# 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 __future__ import absolute_import
import tobiko
class NoSuchOpenStackTopologyNode(tobiko.TobikoException):
message = "No such topology node: {details!r}"
class NoSuchOpenStackTopologyNodeGroup(tobiko.TobikoException):
message = "No such topology node group: {group!r}"