Open lilyLuLiu opened 1 week ago
this is b/c somehow it is trying to use podman remote instead of podman.
Can you point out the feature file for that? Also I think we want to use podman remote instead podman on system since it is not default available for mac/windows.
Tests should be using podman-remote for win/mac and podman for linux
@praveenkumar , This failure all happened on tests of Linux.
Tests should be using podman-remote for win/mac and podman for linux
@adrianriobo Does that mean for win/mac it is using podman socket which is running inside the crc VM or using podman-machine vm?
Yeah, for win and mac any scenario making use of podman is relying on "our" podman (crc-VM)
Yeah, for win and mac any scenario making use of podman is relying on "our" podman (crc-VM)
@adrianriobo so in this case we should also do same for linux right?
Well, we are not making it for testing our podman setup, but b/c we rely on some container engine. In the end we somehow would like to test the interaction between podman / crc.
I would suggest keep the same strategy, as in future we remove the podman socket or make more tricky to make use of it ..we may end on a situation where we need to use podman machine on win and mac and keep using podman on linux.
dunno...WDYT?
What we want to have our test case follow same steps on all platform to have reliable metrics in case of this https://github.com/crc-org/crc/blob/main/test/e2e/features/story_openshift.feature#L55-L66 (which is causing issue).
Well, we are not making it for testing our podman setup, but b/c we rely on some container engine. In the end we somehow would like to test the interaction between podman / crc.
In this case I would suggest to have a different test case only for linux which use the podman installed on the system instead using podman-socket from the VM.
Well the intention should be scenario spec should be the same the tech underneath implementing it is controlled by code (in this case use "our" podman socket for win and mac and podman for linux).
And this is fine...what I do not know is why on Linux is not working as expected and it is complaining about the socket. And this should be target of this issue, know why and fix it
From source:
If we just call on purpose podman remote, should we avoid that on linux?
It is because we have https://github.com/crc-org/crc/blob/main/test/extended/crc/cmd/cmd.go#L214C2-L217C44 logic so what I suspect that on linux since we are running podman-remote
command we have to make sure we execute crc podman-env
command.
Ohh my bad from top of my head I thought that should be using podman not podman-remote...about the crc podman-env
this is kind of executed with line 57 on that scenario: Given podman command is available
That line goes to https://github.com/crc-org/crc/blob/d9f83bcc27dc8717469091553c90d9b97c2b5105/test/e2e/testsuite/testsuite.go#L942
After investigation, the podman-remote
command failed because CONTAINER_HOST
is set as default network system-mode
, but actual network is user-mode
.
The network mode is changed to user-mode
in @story_microshift
case, and didn't change back to default.
Test case
Pull image locally, push to registry, deploy
sometimes failed:But this error never appear in nightly run. And I checked the machine, podman work well.
this is b/c somehow it is trying to use podman remote instead of podman.