Check IPs specified in undercloud.conf aren't going to cause issues or conflict
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Takashi Kajinami |
Bug Description
Description
===========
If the same IP is used for any of these options in undercloud.conf:
local_ip undercloud_
It will cause issues with the endpoints and haproxy for services. In this specific case, the zaqar_ws haproxy service was using the same bind and server IP address.
Steps to reproduce
==================
1. Define the same IP address for local_ip and undercloud_
local_ip = 192.168.24.2/24
undercloud_
undercloud_
2. openstack undercloud install
3. Try to deploy the overcloud.
Expected result
===============
Undercloud install should throw an error advising that this can't be done.
Actual result
=============
Traceback:
clean_up DeployOvercloud: Handshake status 502 Bad Gateway
Traceback (most recent call last):
File "/usr/lib/
ret_val = super(OpenStack
File "/usr/lib/
result = self.run_
File "/usr/lib/
ret_value = super(OpenStack
File "/usr/lib/
result = cmd.run(
File "/usr/lib/
super(Command, self).run(
File "/usr/lib/
return super(Command, self).run(
File "/usr/lib/
return_code = self.take_
File "/usr/lib/
self.
File "/usr/lib/
new_tht_root, tht_root)
File "/usr/lib/
plans = plan_management
File "/usr/lib/
with tripleoclients.
File "/usr/lib/
cacert=
File "/usr/lib/
sslopt=
File "/usr/lib/
websock.
File "/usr/lib/
self.
File "/usr/lib/
status, resp = _get_resp_
File "/usr/lib/
raise WebSocketBadSta
WebSocketBadSta
Checking haproxy.cfg:
listen zaqar_ws
bind 192.168.24.2:9000 ssl crt /etc/pki/
bind 192.168.24.3:9000
mode http
option forwardfor
redirect scheme https code 301 if { hdr(host) -i 192.168.24.2 } !{ ssl_fc }
rsprep ^Location:\ http://
timeout connect 5s
timeout client 25s
timeout server 25s
timeout tunnel 14400s
server undercloud 192.168.24.2:9000 check fall 5 inter 2000 rise 2 <<--- Is the same IP as here
Environment
===========
python2-
Changed in tripleo: | |
assignee: | nobody → Brendan Shephard (bshephar) |
status: | New → In Progress |
Changed in tripleo: | |
milestone: | none → train-2 |
importance: | Undecided → Medium |
Changed in tripleo: | |
milestone: | train-2 → train-3 |
Changed in tripleo: | |
assignee: | Brendan Shephard (bshephar) → Takashi Kajinami (kajinamit) |
Changed in tripleo: | |
milestone: | train-3 → ussuri-1 |
Reviewed: https:/ /review. opendev. org/664224 /git.openstack. org/cgit/ openstack/ python- tripleoclient/ commit/ ?id=2600260be5a d99da36775e4707 58591d8fcd2ca9
Committed: https:/
Submitter: Zuul
Branch: master
commit 2600260be5ad99d a36775e47075859 1d8fcd2ca9
Author: Brendan <email address hidden>
Date: Mon Jun 10 16:52:25 2019 +1000
Ensure no duplicate IPs are used in undercloud.conf
If duplicate IPs are used in undercloud.conf it will cause
issues with haproxy.
Closes-Bug: #1832168 438d34b2d626327 95af32f8462
Change-Id: I35547080aee943