Open markush81 opened 1 year ago
The trick seems to be, to add: "streams": []
, the error does not indicate that.
I found out while trying to reproduce this all with version 8.6.2 and there it behaved differently:
[package.title]: expected value of type [string] but got [undefined]"}
-> i added one (which obviously failed in 8.7.0), but it finally revealed the error[inputs.0.streams]: expected value of type [array] but got [undefined]"}
, so i ended up with trying...
"inputs": [
{
"type": "apm",
"enabled": true,
"streams": [], <----
"vars": {
"host": {
"value": "0.0.0.0:8200"
},
"url": {
"value": "http://localhost:8200"
}
}
}
]
...
in 8.7.0 ... works to create it, but is unusable. Usually it was like adding just the important variables within PUT is enough and rest is defaults, but it seems not to be the case anymore.
So the real problem is: giving a proper error message to the API user.
Pinging @elastic/fleet (Team:Fleet)
Maybe some more background: it is unclear to me how to create a good automated setup of fleet - without the need to always POST
full property sets.
The pre-configured variant i also tried, but there changes do not reflect (also not with is_managed: true
- maybe another bug).
Kibana version:
8.7.0
Elasticsearch version:
8.7.0
Server OS version:
Browser version:
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.):
Docker (docker.elastic.co/kibana/kibana:8.7.0)
Describe the bug:
Updating APM
package_policy
via API fails.Steps to reproduce:
Expected behavior:
Updated package_policy
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
I am not sure if the error about
package.title
is related, but even addingtitle
to package sub-object fails (which is expeced, according to https://petstore.swagger.io/?url=https://raw.githubusercontent.com/elastic/kibana/8.7/x-pack/plugins/fleet/common/openapi/bundled.json)Any additional context: