Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

CCv0: improve debugability of SEV/SNP tests #5710

Open
wants to merge 5 commits into
base: CCv0
Choose a base branch
from

Conversation

wainersm
Copy link
Contributor

Let's print debug information on the SEV/SNP tests as currently we are left clueless about some fails.

Fixes #5708

The SEV and SNP tests sometimes fail on CI and it is hard to determine
what went wrong because they don't print debug messages. This changed
the tests so that they behave like many others: print the system's logs
since the test's begin time.

Fixes kata-containers#5708
Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
The setup() function of SEV and SNP tests execute some clean up routines
to get rid of resources left by the previous test. In reality the good
practice is to have the test remove its used resources on teardown.

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
Print the running pods description as well.

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
@wainersm
Copy link
Contributor Author

/test-snp
/test-sev

@katacontainersbot katacontainersbot added the size/small Small and simple task label Jul 12, 2023
@wainersm
Copy link
Contributor Author

The snp fail:

17:05:06 #   Normal   Pulling    12s (x2 over 14s)  kubelet            Pulling image "ghcr.io/confidential-containers/test-container:unencrypted"
17:05:06 #   Normal   Created    12s (x2 over 13s)  kubelet            Created container snp-unencrypted
17:05:06 #   Warning  Failed     12s (x2 over 13s)  kubelet            Error: failed to create containerd task: failed to create shim task: no such file or directory: not found
17:05:06 #   Normal   Pulled     12s                kubelet            Successfully pulled image "ghcr.io/confidential-containers/test-container:unencrypted" in 660.235256ms

Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @wainersm!

Print the containerd journal since the start of the test.

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
@wainersm wainersm added the do-not-merge PR has problems or depends on another label Jul 13, 2023
@katacontainersbot katacontainersbot added size/tiny Smallest and simplest task and removed size/small Small and simple task labels Jul 13, 2023
@wainersm
Copy link
Contributor Author

Added the do-not-merge label because we will use this PR to debug the problem.

@wainersm
Copy link
Contributor Author

/test-snp
/test-sev

Signed-off-by: Wainer dos Santos Moschetta <[email protected]>
@katacontainersbot katacontainersbot added size/medium Average sized task and removed size/tiny Smallest and simplest task labels Jul 13, 2023
@wainersm
Copy link
Contributor Author

/test-snp
/test-sev

@wainersm
Copy link
Contributor Author

/test-snp

@fitzthum
Copy link

We might need to adjust the debug level of containerd to get the really juicy messages.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/testing do-not-merge PR has problems or depends on another size/medium Average sized task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants