-
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
ci: capture ceph and salt logs for failed tests #691
Comments
@tserong does sesdev already copies those logs somewhere or has an interface for grabbing it? |
No, and it shouldn't need to. When we run sesdev manually, if it fails, we can log in to the nodes it deploys and inspect the logs if we need to. When run inside jenkins, this is not possible (jenkins destroys all the instances, right?) so AIUI jenkins needs to capture the logs for later analysis if something fails. Edit to clarify: you can use |
Just for further clarity, when I said "No, and it shouldn't need to", I meant sesdev doesn't have a specific function for copying those log files. There is I just did a bit of experimentation with
That should work because the sesdev deployment inside jenkins is just a single node, and the deployment name is "mini". |
The sesdev jobs are using pipelines, when the ses devel jobs are using straight jobs where can the archive files plugin can be used. I don't see right now a way of doing it in pipelines, maybe some investigation required. |
Rather than just dump logs to the output? |
Trying out something in #695 |
We've recently had intermittent failures during deployment when running sesdev-integration in jenkins. The relevant part of the sesdev output is:
As best as I can tell, it does at least part of the bootstrap, but then something fails and it doesn't get any further. I think it's extremely weird that we get
Summary: Total=1 Succeeded=0 Warnings=0 Failed=1
but with no other error output saying what failed. Also, I'm surprisedceph-salt apply
has an exit code of zero in this case.I tried to add some extra logging to sesdev itself if deployment fails at this point (see #689), but haven't been able to reproduce the problem since my latest addition of ceph-salt.log so I still don't know what the problem is (or was), and anyway, it really shouldn't be up to sesdev to capture log files.
Can we make jenkins capture
/var/log/ceph/*
,/var/log/salt/*
and/var/log/ceph-salt.log
when tests fail? That way next time we hit this error I'll hopefully be able to figure out what's going wrong.The text was updated successfully, but these errors were encountered: