Bug 1592217

Summary: When joining two projects if the first project does not exist, the error message is inaccurate
Product: OpenShift Container Platform Reporter: Birol Bilgin <bbilgin>
Component: NetworkingAssignee: Jacob Tanenbaum <jtanenba>
Status: CLOSED ERRATA QA Contact: Meng Bo <bmeng>
Severity: low Docs Contact:
Priority: low    
Version: 3.7.1CC: acomabon, aos-bugs, bbennett, cdc, jokerman, mmccomas, pasik, zzhao
Target Milestone: ---Keywords: NeedsTestCase
Target Release: 4.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-04 10:40:21 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:

Description Birol Bilgin 2018-06-18 08:24:09 UTC
Description of problem:

When joining two projects with the command "oc adm pod-network join-projects", if the first project does not exist, the error message is inaccurate.

"error: Project "pc" failed to join "pa", error: timed out waiting for the condition"


Version-Release number of selected component (if applicable):
oc v3.7.42
kubernetes v1.7.6+a08f5eeb62


How reproducible:
Allways

Steps to Reproduce:
1. oc new project pa
2. oc new-project pb
3. oc adm pod-network join-projects --to=pc pa
error: Project "pa" failed to join "pc", error: timed out waiting for the condition
4. oc adm pod-network join-projects --to=pa pc
error: No projects found

Actual results:
error: Project "pa" failed to join "pc", error: timed out waiting for the condition

Expected results:
error: No projects found

Comment 2 Ben Bennett 2019-04-05 15:55:25 UTC
Fixed by https://bugzilla.redhat.com/show_bug.cgi?id=1592217

Comment 4 zhaozhanqi 2019-04-15 05:10:55 UTC
Verified this bug on 
$ oc version
Client Version: version.Info{Major:"4", Minor:"1+", GitVersion:"v4.1.0", GitCommit:"eee567b9d", GitTreeState:"", BuildDate:"2019-04-14T17:00:04Z", GoVersion:"", Compiler:"", Platform:""}

$ oc adm pod-network join-projects --to=pc pa
error: no projects found

Comment 6 errata-xmlrpc 2019-06-04 10:40:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0758