RETIRED, A utility to run diskimage-builder undercloud elements on a running host
Go to file
Michele Baldessari 9e5153e909 Configure keepalived before rabbitmq
Sometimes an undercloud could fail to install with the following error:
2018-05-29 12:53:17,588 INFO: May 29 12:53:08 foo.int.bar systemd[1]: Starting RabbitMQ broker...
2018-05-29 12:53:17,588 INFO: May 29 12:53:11 foo.int.bar rabbitmq-server[14327]: ERROR: epmd error for host foo: address (cannot connect to host/port)
2018-05-29 12:53:17,588 INFO: May 29 12:53:11 foo.int.bar systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE

1) The hostname of the box is
foo.int.bar foo

and in the hosts file we have the following entry: 192.168.248.2
192.168.248.2 foo.int.bar foo

Note: 192.168.248.2 is a VIP managed by keepalived because we configured this
undercloud to be an SSL one so we have:
undercloud_public_host = 192.168.248.2

2) At this stage we see rabbitmq-server being started:
Jan 27 06:46:31 foo.int.bar systemd[1]: Starting Flexible Branding Service...
Jan 27 06:46:31 foo.int.bar systemd[1]: epmd@0.0.0.0.socket failed to listen on sockets: Address already in use
Jan 27 06:46:31 foo.int.bar systemd[1]: Failed to listen on Erlang Port Mapper Daemon Activation Socket.
Jan 27 06:46:31 foo.int.bar systemd[1]: Unit epmd@0.0.0.0.socket entered failed state.
Jan 27 06:46:31 foo.int.bar systemd[1]: Starting Erlang Port Mapper Daemon Activation Socket.
Jan 27 06:46:31 foo.int.bar systemd[1]: Starting RabbitMQ broker...
Jan 27 06:46:34 foo.int.bar rabbitmq-server[14532]: ERROR: epmd error for host foo: address (cannot connect to host/port)

Now epmd might have already been up (and normally the failed message is
not particularly concerning). But the real problem is that we are trying
to connect to foo which maps to a VIP, but the VIP gets started only
later by keepalived:
3)
Jan 27 07:02:30 foo.int.bar Keepalived_vrrp[914]: VRRP_Instance(42) Sending/queueing gratuitous ARPs on br-ctlplane for 192.168.248.2
Jan 27 07:02:30 foo.int.bar Keepalived_vrrp[914]: Sending gratuitous ARP on br-ctlplane for 192.168.248.2

Let's make sure keepalived is up and running before rabbitmq in order to
fix this.

Change-Id: I010102b01e41610838c836a743a07be1965944d6
Closes-Bug: #1782814
(cherry picked from commit c3ccb92d64)
2018-07-24 08:51:22 +02:00
config-generator Pythonize instack-install-undercloud 2015-05-26 14:02:18 +02:00
doc/source Switch from oslosphinx to openstackdocstheme 2017-07-10 08:49:38 -06:00
elements Configure keepalived before rabbitmq 2018-07-24 08:51:22 +02:00
imagefactory Don't specify the input type to qemu-img 2014-10-27 19:08:51 +00:00
instack_undercloud Introduce docker_insecure_registries parameter 2018-05-01 17:27:08 +00:00
json-files Use ironic::pxe class to setup PXE 2016-09-02 11:52:14 +02:00
releasenotes Introduce docker_insecure_registries parameter 2018-05-01 17:27:08 +00:00
scripts Undercloud/Certmonger: Only attempt to reload haproxy is it's active 2017-09-02 04:18:46 +00:00
templates Provide LOCAL_IP_WRAPPED as a instack env variable 2017-10-20 14:46:21 +00:00
tools Avoid tox_install.sh for constraints support 2018-05-30 11:03:06 -06:00
zuul.d Zuul: Remove project name 2018-02-06 06:26:14 -08:00
.coveragerc Enable coverage testing 2015-11-30 22:56:47 +00:00
.gitignore Add Reno support 2017-01-24 10:01:45 -05:00
.gitreview Update .gitreview for stable/pike 2017-08-24 21:04:45 +00:00
.testr.conf Test _generate_environment 2015-05-28 11:27:15 -05:00
Gemfile Switch to use Puppet Openstack spec helper 2016-10-05 17:16:24 -06:00
LICENSE Add LICENSE 2014-02-18 09:48:12 -05:00
README.md Optimize the link address 2017-06-06 18:11:28 +07:00
Rakefile Disable the deprecation warnings as errors for puppet-syntax 2017-02-01 12:32:51 +01:00
bindep.txt Add ssl development headers to bindep 2017-07-06 16:21:20 +01:00
requirements.txt Updated from global requirements 2017-10-27 21:45:10 +00:00
setup.cfg Add instack-pre-upgrade-undercloud to setup.cfg 2017-07-11 20:45:41 +00:00
setup.py Updated from global requirements 2017-03-28 22:03:54 +00:00
test-requirements.txt Updated from global requirements 2017-07-27 19:10:22 +00:00
tox.ini Avoid tox_install.sh for constraints support 2018-05-30 11:03:06 -06:00
undercloud.conf.sample Introduce docker_insecure_registries parameter 2018-05-01 17:27:08 +00:00

README.md

Team and repository tags

Team and repository tags

Undercloud Install via instack

instack-undercloud is tooling for installing a TripleO undercloud.

It is part of the TripleO project: https://docs.openstack.org/developer/tripleo-docs/index.html