Bug 1572182
Summary: | oc diagnostics networkcheck should using openshift3/ose-control-plane instead of openshift3/ose | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | zhaozhanqi <zzhao> |
Component: | Networking | Assignee: | Ravi Sankar <rpenta> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Meng Bo <bmeng> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.10.0 | CC: | aos-bugs, bbennett, hongli, rpenta, wmeng, xtian |
Target Milestone: | --- | ||
Target Release: | 3.10.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: (1) Network diags incorrectly considering the installation as containerized.
(2) Relative image path used by diagnostic test pods are not correctly resolved by kubelet
Consequence: network check diags fails
Fix: Network diags will correctly determine as non-containerized install and fully qualified image names are used for test pods.
Result: network check diagnostics works as expected.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2018-12-20 21:12:15 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1583500, 1584494, 1588768 | ||
Bug Blocks: |
Description
zhaozhanqi
2018-04-26 11:03:10 UTC
There are two issues with this bug: (1) Network Diagnostics incorrectly detected openshift environment as containerized because of the new way of configuring and running openshift in 3.10 where it uses node image to run SDN, etc. With 3.10, containerized mode is no longer supported, so containerized specific code should be removed from network diagnostic. (2) Network diagnostic test pod uses relative image path and that is not correctly resolved by the docker. We need to add appropriate registries to the docker config depending on the environment (AWS, openstack, etc.). Issue (1) in comment#1 is fixed by https://github.com/openshift/origin/pull/19754 Ravi: Can you open a new bug for (2) please? https://github.com/openshift/origin/pull/19754 has merged. Created https://bugzilla.redhat.com/show_bug.cgi?id=1584494 for issue (2) Issue (2) will be fixed by https://github.com/openshift/origin/pull/19901 Testing with AWS internal registry must pass --pod-image, --test-pod-image and --test-pod-port options. @ Ravi Sankar I don't think those two PR above are resolving the current bug issue. Could you check the bug title and the issue is we need to use 'openshift3/ose-control-plane instead' of 'openshift3/ose ' PR https://github.com/openshift/origin/pull/19901 is approved but not yet merged in master. I thought PR 19901 only resolve the docker registry issue. ok, I will have a try after this PR is merged. thanks. @zhaozhanqi Yes, this needs one more fix: https://github.com/openshift/origin/pull/20013 Move this bug to MODIFIED since this PR https://github.com/openshift/origin/pull/20013 only was merged in origin, but NOT OCP yet. Verified this bug, now the default image is using openshift3/ose-control-plane. There is another issue. I found the default registry 'registry.access.redhat.com/' is added again in 3.10, is that expected? and from the PR https://github.com/openshift/origin/pull/20013 said: For testing on AWS, user need to manually pass the image params --pod-image=registry.reg-aws.openshift.com:443/openshift3/ose-control-plane:v3.10 --test-pod-image=docker.io/openshift/hello-openshift The test pod image will use 'docker.io/openshift/hello-openshift? I tried use the default image '--test-pod-image='registry.reg-aws.openshift.com:443/openshift3/ose-deployer:v3.10', but it failed with error: # oc adm diagnostics networkcheck --pod-image='registry.reg-aws.openshift.com:443/openshift3/ose-control-plane:v3.10' --test-pod-image='registry.reg-aws.openshift.com:443/openshift3/ose-deployer:v3.10' [Note] Determining if client configuration exists for client/cluster diagnostics Info: Successfully read a client config file at '/root/.kube/config' Info: Using context for cluster-admin access: 'default/qe-zzhao-master-etcd-nfs-1:8443/system:admin' [Note] Running diagnostic: NetworkCheck Description: Create a pod on all schedulable nodes and run network diagnostics from the application standpoint ERROR: [DNet2005 from diagnostic NetworkCheck@openshift/origin/pkg/oc/admin/diagnostics/diagnostics/cluster/network/run_pod.go:170] Setting up test environment for network diagnostics failed: Failed to run network diags test pod and service: Failed to run network diags test pods, failed: 24, total: 24, details: error: --deployment or OPENSHIFT_DEPLOYMENT_NAME is required [Note] Summary of diagnostics execution (version v3.10.10): [Note] Errors seen: 1 I will create another bug to trace this issue. |