Test runtime cilium in container (take two)#19310
Merged
nbusseneau merged 4 commits intocilium:masterfrom Apr 7, 2022
Merged
Conversation
Member
Author
|
/test-runtime |
a632c14 to
11186e3
Compare
Member
Author
|
/test-runtime |
11186e3 to
25a7188
Compare
Member
Author
|
/test-runtime |
25a7188 to
7d5f689
Compare
Member
Author
|
Fixed image references to start with "quay.io" |
Member
Author
|
/test-runtime |
7d5f689 to
269ff08
Compare
Member
Author
|
Noticed that |
Member
Author
|
/test-runtime |
Runtime tests do not need images used by k8s tests, nor do k8s tests need images used by runtime tests. Pull images only for the test suite in use. Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
Run Cilium in docker container for the Runtime tests. Keep the systemd cilium.service, but uses a new script to run Cilium from a docker container from there. This design has a high degree of compatibility to the prior running cilium-agent directly from cilium.docker. Test scripts are organized so that there is no change when running CIlium in a development VM. There cilium-agent is still run in the host as before. While working with this I noticed that CIlium operator fails to run in Runtime tests as it now assumes to be able to reach k8s api-server. CIlium agent fails after a while due to this if it is using etcd kvstore as the heartbeats are missing. That's why the kvstore needs to return to the default (consul) configuration after the etcd test. Previously this was done after each test, but now this is done after all (two) of the kvstore tests, speeding up the tests a bit. Do not pass explicit options when they are the same as defaults. This also avoids using systemd template where bare Cilium agent options are expected. Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
Pass CILIUM_IMAGE and CILIUM_TAG from environment to provisioning. Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
Add support for passing VMUSER (which defaults to vagrant) to ease running tests in non-vagrant VMs. Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
269ff08 to
c3af894
Compare
jrajahalme
added a commit
to jrajahalme/cilium
that referenced
this pull request
Apr 9, 2022
[ upstream commit 262ac5f ] Add space between provided and default args. Fixes: cilium#19310 Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
jrajahalme
added a commit
to jrajahalme/cilium
that referenced
this pull request
Apr 9, 2022
[ upstream commit 262ac5f ] Add space between provided and default args. Fixes: cilium#19310 Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
jrajahalme
added a commit
to jrajahalme/cilium
that referenced
this pull request
Apr 9, 2022
[ upstream commit 262ac5f ] Add space between provided and default args. Fixes: cilium#19310 Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
jrajahalme
added a commit
to jrajahalme/cilium
that referenced
this pull request
Apr 12, 2022
[ upstream commit 262ac5f ] Add space between provided and default args. Fixes: cilium#19310 Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
jrajahalme
added a commit
to jrajahalme/cilium
that referenced
this pull request
Apr 12, 2022
[ upstream commit 262ac5f ] Add space between provided and default args. Fixes: cilium#19310 Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
This was referenced Apr 12, 2022
This was referenced Apr 15, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run Cilium in docker container for the Runtime tests. This is needed so that cilium-envoy built on Ubuntu 20.04 runs also on earlier versions when the correct version of libc is in the container image.
This version keeps the systemd cilium.service, but uses a new script to run Cilium from a docker container from there within Runtime tests. This design has a high degree of compatibility to the prior running cilium-agent directly from cilium.docker.
Test scripts are organised so that there is no change when running CIlium in a development VM. There cilium-agent is still run in the host as before.
While working with this I noticed that CIlium operator fails to run in Runtime tests as it now assumes to be able to reach k8s api-server. Because of this it is pointless to deploy
cilium-operatorfor runtime tests. CIlium agent fails after a while due to this if it is using etcd kvstore as the heartbeats are missing. That's why the kvstore needs to return to the default (consul) configuration after the etcd test. Previously this was done after each test, but now this is done after all (two) of the kvstore tests, speeding up the tests a bit.Fixes: #18919