Closed tgermain closed 9 years ago
we're going to take the easy solution for now. Mesosphere is contemplating work on a V3 API for Marathon, so there will be some bigger changes coming down the pipe. We'll work with them on making sure the fields are more consistent in the new API.
Hi,
I've several problems with the generated configuration of HAproxy.
Problem
Here is an extract of the current configuration :
This
<no value>
should be thetaskId
, it also break make the configuration invalid.In consulKV (marathon/kibana/tasks/ ) I got :
With this
id
key which used to betaskId
.It's a recent modification of marathon-consul :
Incriminated (no offence, You are doing a great jog @BrianHicks ) commit : https://github.com/CiscoCloud/marathon-consul/commit/c7b968be3d23a5a70fb577ff66058f568c8d7bba#diff-a3520fb65206c9e232f10baaff310c7a
Solutions:
Change the HAproxy template and use this
id
key instead oftaskId
. It's easy and simple but I'm against thisid
key which is a too generic name (we already got slaveId so taskId is not a long name in comparison ).OR
Adapt the incriminated commit (poke @BrianHicks ) and stick with
taskId
.OR
go talk with marathon people and make them use consistent name for every
taskId
. Slowest solution since it has to be discuss and approve on marathon side and to be release in marathon.