RETIRED, python utility to manage a tripleo based cloud
Go to file
Emilien Macchi c925c3b93b undercloud: resolve undercloud_*_host
The problem we're solving here is that our operators using SSL + FQDN
based endpoints will have failures during the deployment because we
don't lookup the FQDN into IP addresses, needed later in the deployment
for proper binding.

This patch transforms undercloud_*_host parameters into IP addresses:

- We raise if lookup returns nothing.
- We raise if lookup returns more than one IP.
- We support both IPv4 and IPv6.
- We raise if the IP is a loopback.
- We raise if the returned IP is invalid.

Utils changes:

* Introduce utils.is_valid_ip.
  Return True if the IP is either v4 or v6. Return False otherwise.

* Introduce utils.is_loopback.
  Return True if the given host is a loopback. Return False otherwise.

* Introduce utils.get_host_ips.
  Returns a list of IPs for a host to lookup.

* Introduce utils.get_single_ip.
  Translate an hostname or FQDN into an IP address if it is valid IP.
  Return it unchanged if it is an IPv4 or IPv6 address.
  If the host is not reachable, it'll raise an exception.
  By default it excludes the loopbacks but it can be allowed by setting
  allow_loopback = True.

* Use utils.get_single_ip to translate undercloud_admin_host and
  undercloud_public_host to IP addresses.

Related-Bug: #1763776
Change-Id: Ic008cc758493aa95e8aa237d23c2f66c0a930509
2019-05-08 21:08:53 +00:00
config-generator Start standalone.conf 2018-05-23 16:37:26 +00:00
doc Use cliff autodoc generation 2019-02-01 20:39:58 +00:00
releasenotes Make usage of --*-flavor and --*-count an error 2019-04-11 19:42:13 +00:00
tools Avoid tox_install.sh for constraints support 2017-12-02 16:51:15 +00:00
tripleoclient undercloud: resolve undercloud_*_host 2019-05-08 21:08:53 +00:00
zuul.d Delay check CI jobs until the pep8/unit passes.. 2019-03-05 16:22:29 +01:00
.coveragerc Update .coveragerc after the removal of respective directory 2016-10-18 17:37:29 +05:30
.gitignore Switch to stestr 2019-01-04 17:31:21 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:42:47 +00:00
.mailmap Initial commit 2015-03-17 09:33:52 -04:00
.stestr.conf Switch to stestr 2019-01-04 17:31:21 +00:00
CONTRIBUTING.rst Update the doc links to the right ones 2018-01-18 00:17:13 -08:00
LICENSE Initial commit 2015-03-17 09:33:52 -04:00
README.rst Add release note link in README 2018-07-26 09:21:04 +00:00
babel.cfg Initial commit 2015-03-17 09:33:52 -04:00
bindep.txt Update the doc links to the right ones 2018-01-18 00:17:13 -08:00
lower-constraints.txt Use "push" flag for buildah 2019-04-05 13:34:20 +02:00
requirements.txt Use "push" flag for buildah 2019-04-05 13:34:20 +02:00
setup.cfg nova-less-deploy: command for deploying nodes with ironic 2019-03-19 10:18:26 +01:00
setup.py Updated from global requirements 2017-03-07 02:06:19 +00:00
test-requirements.txt Merge "Update hacking version" 2019-01-17 18:09:31 +00:00
tox.ini Switch to stestr 2019-01-04 17:31:21 +00:00

README.rst

Team and repository tags

image

tripleoclient

tripleoclient is an OpenStackClient (OSC) plugin implementation that implements commands useful for TripleO and the install and management of both an undercloud and an overcloud.

See the TripleO Documentation for details on using tripleoclient.

See the Release Notes