Remove HTTP configuration shipped in openstack-nova-placement-api RPM

The RDO openstack-nova-placement-api RPM ships with an HTTP
configuration deploying placement on port 8778, while Kolla-Ansible
creates another file to configure it to listen on port 8780. If
`placement_api_port` is changed to use port 8778, the placement_api
container will fail to start because the port is already in use.

This commit removes the configuration file shipped with the RPM package
to avoid this conflict.

Change-Id: I7babdb794bec3b08047101e2537f030e2217cedb
Closes-Bug: #1830420
This commit is contained in:
Pierre Riteau 2019-05-24 19:11:42 +01:00
parent e1af4b6a3b
commit 8e9cc856bf
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
{{ macros.install_packages(nova_placement_api_packages | customizable("packages")) }}
RUN sed -i -r 's,^(Listen 80),#\1,' /etc/httpd/conf/httpd.conf \
&& sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf
&& sed -i -r 's,^(Listen 443),#\1,' /etc/httpd/conf.d/ssl.conf \
&& rm -f /etc/httpd/conf.d/00-nova-placement-api.conf
{% elif base_distro in ['debian', 'ubuntu'] %}