"api_base_uri" configuration parameter is not set properly when binding to multiple spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Designate Charm |
Fix Released
|
Medium
|
Alex Kavanagh |
Bug Description
When deploying the designate charm and binding it to multiple spaces as on example below, the "api_base_uri" parameter of "/etc/designate
The charm has been deployed with the following configuration:
designate:
charm: "./charms/
series: "trusty"
num_units: 3
constraints: "spaces=
bindings:
admin: "openstack-admin"
internal: "openstack-
public: "openstack-public"
shared-db: "openstack-
options:
debug: "true"
openstack
region: "RegionOne"
use-syslog: "true"
verbose: "true"
vip: "10.24.111.14 10.24.112.14 10.24.113.14"
to:
- "lxd:controller/0"
- "lxd:controller/1"
- "lxd:controller/2"
This results in "api_base_uri" parameter being configured as follows:
api_base_uri = 'http://
And the client is unable to establish the connection:
tytus@maas:~$ designate server-list
ERROR: Unable to establish connection to http://
When changing the value of the "api_base_uri" parameter to 'http://
Changed in charm-designate: | |
importance: | Undecided → Medium |
Changed in charm-designate: | |
milestone: | none → 17.08 |
status: | New → Fix Committed |
status: | Fix Committed → In Progress |
Changed in charm-designate: | |
assignee: | nobody → Tytus Kurek (tkurek) |
Changed in charm-designate: | |
assignee: | Tytus Kurek (tkurek) → Alex Kavanagh (ajkavanagh) |
Changed in charm-designate: | |
status: | Fix Committed → Fix Released |
tags: | added: cpe-onsite |
Another workaround for that is to set "enable_host_header = True" parameter inside of the /etc/designate/ designate. conf configuration file while commenting out the "api_base_uri" parameter at all. It looks like these two parameters are redundant - the "api_base_uri" is used only when the host header is not specified or is turned off.