Skip to content
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

runtime-rs doesn't work with cri-o #8985

Closed
pmores opened this issue Feb 1, 2024 · 0 comments
Closed

runtime-rs doesn't work with cri-o #8985

pmores opened this issue Feb 1, 2024 · 0 comments
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.

Comments

@pmores
Copy link
Contributor

pmores commented Feb 1, 2024

runtime-rs cannot currently be launched by cri-o since cri-o passes an empty value for -address which runtime-rs incorrectly rejects.

@pmores pmores added bug Incorrect behaviour needs-review Needs to be assessed by the team. labels Feb 1, 2024
pmores added a commit to pmores/kata-containers that referenced this issue Feb 1, 2024
Since cri-o doesn't seem to use address for event publishing as mentioned
in the previous commit it will not send it.  However, the exactl way of
not sending it is unfortunately different from what is assumed by
runtime-rs.  Due to an implementation detail of cri-o which uses containerd
libraries for some low-level tasks, TTRPC_ADDRESS will not be missing from
environment as assumed, instead it will be present with an empty value.

This commit contains a small adjustment to account for that and use
LogForwarder even if TTRPC_ADDRESS is present, but with an empty value.

Fixes kata-containers#8985

Signed-off-by: Pavel Mores <pmores@redhat.com>
@katacontainersbot katacontainersbot moved this from To do to In progress in Issue backlog Feb 1, 2024
pmores added a commit to pmores/kata-containers that referenced this issue Feb 6, 2024
Since cri-o doesn't seem to use address for event publishing as mentioned
in the previous commit it will not send it.  However, the exact way of
not sending it is unfortunately different from what is assumed by
runtime-rs.  Due to an implementation detail of cri-o which uses containerd
libraries for some low-level tasks, TTRPC_ADDRESS will not be missing from
environment as assumed, instead it will be present with an empty value.

This commit contains a small adjustment to account for that and use
LogForwarder even if TTRPC_ADDRESS is present, but with an empty value.

Fixes kata-containers#8985

Signed-off-by: Pavel Mores <pmores@redhat.com>
pmores added a commit to pmores/kata-containers that referenced this issue Feb 6, 2024
Since cri-o doesn't seem to use address for event publishing as mentioned
in the previous commit it will not send it.  However, the exact way of
not sending it is unfortunately different from what is assumed by
runtime-rs.  Due to an implementation detail of cri-o which uses containerd
libraries for some low-level tasks, TTRPC_ADDRESS will not be missing from
environment as assumed, instead it will be present with an empty value.

This commit contains a small adjustment to account for that and use
LogForwarder even if TTRPC_ADDRESS is present, but with an empty value.

Fixes kata-containers#8985

Signed-off-by: Pavel Mores <pmores@redhat.com>
@gkurz gkurz closed this as completed in 6346e04 Feb 8, 2024
c3d pushed a commit to c3d/kata-containers that referenced this issue Feb 23, 2024
Since cri-o doesn't seem to use address for event publishing as mentioned
in the previous commit it will not send it.  However, the exact way of
not sending it is unfortunately different from what is assumed by
runtime-rs.  Due to an implementation detail of cri-o which uses containerd
libraries for some low-level tasks, TTRPC_ADDRESS will not be missing from
environment as assumed, instead it will be present with an empty value.

This commit contains a small adjustment to account for that and use
LogForwarder even if TTRPC_ADDRESS is present, but with an empty value.

Fixes kata-containers#8985

Signed-off-by: Pavel Mores <pmores@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behaviour needs-review Needs to be assessed by the team.
Projects
Issue backlog
  
In progress
Development

No branches or pull requests

1 participant