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

Ask for images work on s390x arch #3670

Closed
zhengxiaomei123 opened this issue Jul 31, 2020 · 20 comments · Fixed by #3744
Closed

Ask for images work on s390x arch #3670

zhengxiaomei123 opened this issue Jul 31, 2020 · 20 comments · Fixed by #3744
Labels
area/System-PZ Issues related to IBM System Z and System P area/testing Issues or PRs related to testing, Quality Assurance or Quality Engineering kind/bug Categorizes issue or PR as related to a bug.

Comments

@zhengxiaomei123
Copy link
Contributor

/kind bug

What versions of software are you using?

Operating System:
Red Hat Enterprise Linux 8.1 (Ootpa

Output of odo version:
odo v1.2.4 (b3cf595)
Server: https://api.ocp.openstack:6443
Kubernetes: v1.18.3+6025c28

How did you run odo exactly?

Enable odo CI on s390x platform

Actual behavior

./scripts/openshiftci-presubmit-all-tests.sh

Expected behavior

All the test passed

Any logs, error output, etc?

There are some hard code to import S2I images. These images only support amd64 arch which causes failed on s390x arch.
For odo supported images e2e tests:
These images are:
oc --request-timeout 5m import-image nodejs:latest --namespace=vsnyjhnygd --from=docker.io/centos/nodejs-12-centos7:latest --confirm
oc --request-timeout 5m import-image nodejs:latest --namespace=hcvvpyounm --from=docker.io/centos/nodejs-10-centos7:latest --confirm
oc --request-timeout 5m import-image nodejs:latest --namespace=qjycpyjbmo --from=registry.access.redhat.com/rhoar-nodejs/nodejs-10:latest --confirm
For odo source e2e tests:
oc --request-timeout 5m import-image dotnet:2.0 --namespace=uezadyekmn --from=registry.centos.org/dotnet/dotnet-20-centos7 --confirm

@openshift-ci-robot openshift-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 31, 2020
@zhengxiaomei123
Copy link
Contributor Author

/area system-pz

@openshift-ci-robot openshift-ci-robot added the area/System-PZ Issues related to IBM System Z and System P label Jul 31, 2020
@zhengxiaomei123
Copy link
Contributor Author

/area testing

@openshift-ci-robot openshift-ci-robot added the area/testing Issues or PRs related to testing, Quality Assurance or Quality Engineering label Jul 31, 2020
@jichenjc
Copy link
Contributor

@zhengxiaomei123 there is no centos on z at all.. so apparently need code change
can you paste the link of the code so that it will be easier to know the code comes from?

@zhengxiaomei123
Copy link
Contributor Author

zhengxiaomei123 commented Aug 3, 2020

@zhengxiaomei123
Copy link
Contributor Author

I think these tests are aim to verify odo supported images , the registry is not important. So Can I request the PR to replaces these above images from other registry? If it is aim to verify the specific image from the specific registry, I think it is meaningless to test those images only for x86 arch. Is my understanding right?

@jichenjc
Copy link
Contributor

jichenjc commented Aug 3, 2020

@zhengxiaomei123 the supported statement might prove here:
https://github.com/openshift/odo (Table 1. Supported container images )

for our platform, we can either use our own image to replace for s390x arch or skip the test..

@jichenjc
Copy link
Contributor

jichenjc commented Aug 6, 2020

@zhengxiaomei123 but that's UBI, correct? if so we need update doc to indicate what's really available and point to correct link

@zhengxiaomei123
Copy link
Contributor Author

zhengxiaomei123 commented Aug 6, 2020

@amitkrout Since the odo-init-image has supported multi-arch platform, I think there should not be images which only for one x86 platform, Is it OK to replace the nodejs-12-centos7:latest image with ubi8/nodejs-12 and replace the nodejs-10-centos7:latest image with ubi/nodejs-10 and replace the rhoar-nodejs/nodejs-10 image with rhel8/nodejs10?

@zhengxiaomei123
Copy link
Contributor Author

@zhengxiaomei123 but that's UBI, correct? if so we need update doc to indicate what's really available and point to correct link

I think we can add those images to doc.

@amitkrout
Copy link
Contributor

@amitkrout Since the odo-init-image has supported multi-arch platform, I think there should not be images which only for one x86 platform, Is it OK to replace the nodejs-12-centos7:latest image with ubi8/nodejs-12 and replace the nodejs-10-centos7:latest image with ubi/nodejs-10 and replace the rhoar-nodejs/nodejs-10 image with rhel8/nodejs10?

TBH i am not sure about the image part. @girishramnani @mohammedzee1000 PTAL

@mohammedzee1000
Copy link
Contributor

nodejs-10 and nodejs-12 for OCP on s390 is available in the RH Registry.
https://catalog.redhat.com/software/containers/ubi8/nodejs-12/5d3fff015a13461f5fb8635a?architecture=s390x&container-tabs=overview
https://catalog.redhat.com/software/containers/ubi8/nodejs-10/5c839aa3d70cc51dd4c425d9?architecture=s390x&container-tabs=gti
https://catalog.redhat.com/software/containers/rhel8/nodejs-10/5ba1f2365a134643ef2f0188?architecture=s390x
https://catalog.redhat.com/software/containers/rhel8/nodejs-12/5d3fff06d70cc5521d0009c2?architecture=s390x
These images are also available for ocp on x86.

I think this should be ok so long as they are redhat supported. Still it is better if we can get confirmation from inside about these images
@hhorak is part of software collections. whyt?

@mohammedzee1000
Copy link
Contributor

also @kadel @girishramnani wdyt

@kadel
Copy link
Member

kadel commented Aug 7, 2020

It would be interesting what images people using s390x typically use.

I don't think that it makes sense to have the same set of images for both x86 and s390x.
We can drastically reduce the number of tests that we do on s390x to just bare minimum

@zhengxiaomei123
Copy link
Contributor Author

zhengxiaomei123 commented Aug 7, 2020

It would be interesting what images people using s390x typically use.

I don't think that it makes sense to have the same set of images for both x86 and s390x.
We can drastically reduce the number of tests that we do on s390x to just bare minimum

@kadel The images are all about nodejs and test-e2e-images. Nodejs is the offical supported in Odo. The tests are running to test these offical nodejs images. It's not s390x specific.

@zhengxiaomei123
Copy link
Contributor Author

@kadel @mohammedzee1000 To seperate images for s390x and x86, I would like to create one different context and run all the spec that needs to be skipped on s390x and apply condition
if runtime.GOARCH == "s390x" {
Skip("Skipping test because there is no supported builder image for s390x.")
}

in ginkgo built-in tear down steps JustBeforeEach. I think it a good solution and will request the PR. Then please help review it. Thanks.

@zhengxiaomei123
Copy link
Contributor Author

zhengxiaomei123 commented Aug 12, 2020

@amitkrout When testing the ubi8/nodejs-10 and ubi8/nodejs-12 and rhel8/nodejs-10 and rhel8/nodejs-12 for test-e2e-images case, I also go the error which you mentioned on #3307 and #3420 . It's here always. But for ubi7/nodejs-10 and ubi7/nodejs-12, the case passed and the error is not here.
The full log I pasted here: https://tpaste.us/WRv0
The watch commond delete all the directory wrongly.

@hhorak
Copy link

hhorak commented Aug 12, 2020

I think this should be ok so long as they are redhat supported. Still it is better if we can get confirmation from inside about these images
@hhorak is part of software collections. whyt?

I can confirm that these images are supported by Red Hat on s390x as well.

@mohammedzee1000
Copy link
Contributor

@amitkrout @kadel can we then consider adding these images to our testing without removing existing ones.

They can be put under a separate test group if needed

@zhengxiaomei123
Copy link
Contributor Author

@mohammedzee1000 Yes, I created a new separate context to involes those images for x86 not removing them in PR # 3744.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/System-PZ Issues related to IBM System Z and System P area/testing Issues or PRs related to testing, Quality Assurance or Quality Engineering kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants