-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CI] Various MlWithSecurityIT tests failing on Windows with incorrect auth failures #31058
Comments
Pinging @elastic/ml-core |
Pinging @elastic/es-security |
Recent failures of An example of one of them:
|
Given this is related to authorization, this is unlikely related to #30794 as we would see a different type of failure. I'll see what I can dig up, but one issue I have is why are we only seeing this on windows? |
@jaymode you're correct that #30794 is not to blame for this - sorry I jumped to conclusions by looking for security PRs in the change list. So far I've worked out that the breakage occured somewhere in between ad43231 and 946f519 on the 6.x branch, i.e. late on 22nd May or early on 23rd May and more than 20 commits before your security PRs went into 6.x. I'll try to narrow it down further. |
@droberts195 I wonder if it's due to bb8f1e8 That's windows only, and this smoke test has a number of |
I've made some more progress. The problem occurs because when multiple comma separated roles are supplied to the In other words, before bb8f1e8 one of our setup commands meant that
But after bb8f1e8
The docs say that a comma separated list of roles is supported (search for "This option accepts a comma-separated list of role names to assign to the user."), therefore this is a regression and a blocker for 6.4 because |
Pinging @elastic/es-core-infra |
https://stackoverflow.com/questions/8145744/how-to-invoke-a-parameter-in-a-batch-file-with-comma-delimiter is relevant here regarding treatment of commas in batch files. Unfortunately neither of the solutions work in our case as we're trying to separate the first argument out of the batch file arguments while leaving all the others quoted exactly as they were previously, and that seems to be impossible in general. However it is done there will always be some combination of quotes, spaces, commas or semi-colons where the chosen algorithm fails. The only solutions I can think of are:
Do you have any better ideas @jasontedor? |
Thanks a lot @droberts195. I favored option one as that was an approach I considered when I initially made the change that led to the breakage here. I am sorry for the build breakage and that you and @tvernum lost time to this. |
Closed by #31156 |
There have been several cases in the last few days of the
x-pack/qa/smoke-test-ml-with-security
suite failing on Windows due to auth failures for users who ought to have permissions to call the endpoints they're calling.An example from master is https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+multijob-windows-compatibility/1675/console
An example from 6.x is https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+6.x+multijob-windows-compatibility/1099/console
I suspect this is a side effect of a security change, as no changes have recently been made to the ML permissions. The Windows builds have been repeatedly failing for around 2 weeks due to various problems, so the security change could be up to 2 weeks old. But its effects on ML would have been masked by failures earlier in the build.
The text was updated successfully, but these errors were encountered: