-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
test: Retry auth in checkClientCertAuthentication #19719
test: Retry auth in checkClientCertAuthentication #19719
Conversation
I did see this locally with 50% chance until I seriously started looking for reasons, then it stopped failing, of course. Current theory: it is something intermediate that goes away with retrying. |
f260c01
to
483bc3c
Compare
Experiment results: The first password auth attempt in checkClientCertAuthentication sometimes fails with an internal error. Retrying it after five seconds always succeeds. Delaying the first try by ten seconds also always succeeds. I have no idea why it fails the first time and why it succeeds the second time. I don't think we need to find out. |
483bc3c
to
bf04ab6
Compare
So perhaps the |
5a8455d
to
f2a2784
Compare
During my testing, How would you wait until passwd auth works? I think just retrying inside do_test is ok. |
f2a2784
to
1638835
Compare
@mvollmer Note that samba-in-kubernetes/samba-container#160 applied to the other container image that we used in the meantime. I went back to https://github.com/Fmstrat/samba-domain, and it at least made that problem better. You can check Not sure about checking if pwd auth works -- in that case we can just retry the whole curl thing I suppose. There's only so much yak that we can and want to shave 😁 |
Slightly amplified test run: https://cockpit-logs.us-east-1.linodeobjects.com/pull-19719-20231211-084650-1638835f-rhel-9-4-networking/log.html |
No, the |
036d4ff
to
179b9f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argh, the faulty flake8 unit-test container update does not affect just bots https://github.com/cockpit-project/bots/issues/5659 but also cockpit. That is urgent I suppose.
Note that this is still no-test.
Thanks!
Password authentication sometimes fails on the first try.
179b9f2
to
6dab14a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Danke! I bow to the bots in their infinite wisdom for the final verdict, of course. 🙇
@@ -427,11 +435,13 @@ class CommonTests: | |||
|
|||
# from sssd | |||
self.allow_journal_messages("alice is not allowed to run sudo on x0. This incident will be reported.") | |||
# occasional intermediate error during password auth | |||
self.allow_journal_messages("cockpit-session: user account access failed: 4 alice: System error") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "4" is funny. But we can keep this for the time being, and replace with .*
if/when it becomes a problem.
Meh, TestAD failure. That's a different test, but possibly same root cause? Retried. |
After 5 retries, I'll look the other way here. |
No description provided.