Other relevant environment details: Container runtime, disk info, etc
Config:
Copy any non-default config values here or attach the full config as a gist or file.
Logs:
Include snippet of errors in log.
Performance:
Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.
# Commands should be run when the bug is actively happening.
# Note: This command will run for ~30 seconds.
curl -o profiles.tar.gz "http://localhost:8086/debug/pprof/all?cpu=30s"
iostat -xd 1 30 > iostat.txt
# Attach the `profiles.tar.gz` and `iostat.txt` output files.
/api/v2/templates/apply
returnsduplicate name
validation errors andunprocessable entity
status when I pass multiple objects in theremotes
array.Steps to reproduce: List the minimal actions needed to reproduce the behavior.
In the request body, pass an array of
{"url": "TEMPLATE_URL"} objects with the
remotes` parameter--for example:Expected behavior: Expect both templates to be applied, as implied by the spec: https://docs.influxdata.com/influxdb/v2.3/api/#operation/ApplyTemplate.
Actual behavior: Responds with HTTP
422
status and the following errors:If I pass each URL in a separate request - only one object in
remotes: []
, then the templates apply successfully.Environment info:
Config: Copy any non-default config values here or attach the full config as a gist or file.
Logs: Include snippet of errors in log.
Performance: Generate profiles with the following commands for bugs related to performance, locking, out of memory (OOM), etc.