-
Notifications
You must be signed in to change notification settings - Fork 32
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
SFTP Teardown failure #415
Comments
So I did some digging, and this seems to be a known issue with pytest prematurely closing the stream for logging: Was able to find some other GH projects that had a similar issue and were able to implement a easy fix: |
Thanks for digging @a-dubs. It's good to know that this option exists, but I'm a little hesitant to just silence logging exceptions, even if it is in the final cleanup. This could hide future bugs. I think what is happening is the logger is getting torn down by pytest, and then the final integration instance gets garbage collected which triggers For now I think that we can just manually call |
@holmanb, @a-dubs: was this fixed with canonical/cloud-init#5698? |
Locally for me, yes, but I still see it failing in CI so I guess not. |
When collecting logs it looks like the instance teardown path recently (within the last month) started throwing an unhandled exception in the failure path. I see the following traceback in cloud-init integration tests on failure.
The text was updated successfully, but these errors were encountered: