Bug 1605143

Summary: [Online-int][registration]Collaborator can not be de-provisioned although collaboration relationship is removed by inviter
Product: OpenShift Online Reporter: yufchang <yufchang>
Component: Accounts and BillingAssignee: Mike Dame <mdame>
Status: CLOSED CURRENTRELEASE QA Contact: yufchang <yufchang>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, jokerman, mdame, mmccomas
Target Milestone: ---Keywords: OnlinePro
Target Release: ---   
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: 2018-09-10 17:51:12 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:
Attachments:
Description Flags
collaborator
none
collaborator-panel
none
registration page (no collaboration box) none

Comment 2 yufchang 2018-07-23 01:37:27 UTC
Waiting for EOM to verify.

Comment 3 Mike Dame 2018-08-21 14:10:38 UTC
This has merged into int, and shouldn't require EOM testing since when a collaborator with no other paid subscription is removed by the inviter, their account should be immediately deprovisioned

Comment 4 yufchang 2018-08-22 02:25:02 UTC
Hi, Mike.
This bug is submitted after I verified your PR last time. As I mentioned in the description, collaborator account is not removed. After login web console as a collaborator, project "fuse-ignite" still can be seen. This related to bug https://bugzilla.redhat.com/show_bug.cgi?id=1599590.
I tried again today, the same result.

Comment 5 yufchang 2018-08-22 02:26:37 UTC
Created attachment 1477782 [details]
collaborator

Comment 7 Mike Dame 2018-08-22 14:55:33 UTC
Also to clarify, I don't believe that the previous failure you saw was directly related to 1599590, but rather the PR I just referenced

Comment 8 yufchang 2018-08-23 07:27:19 UTC
Thanks. I verified on online-int. Now collaboration account will be removed as expected. But on the account overview panel, there is still "Collaboration" panel left on the UI. See my attachment. Not sure if it is plan to fix in this bug.
OpenShift Master:    v3.9.31

Comment 9 yufchang 2018-08-23 07:27:57 UTC
Created attachment 1478082 [details]
collaborator-panel

Comment 10 Mike Dame 2018-08-23 13:35:13 UTC
Hi, could you please verify that the collaboration account you are testing with is not a collaborator on any other subscriptions as well? I tried to reproduce what you saw on online int, but with no issues. What I did:

1. Add collaborator User2 to subscription with User1
2. Log in to User2, see the collaboration panel (as in your screenshot)
3. Remove User2 from User1's collaborators
4. Refresh the screen for User2, no longer see collaboration panel but instead get redirected to the registration screen (this is expected because User2 has no other subscriptions in this case) (see screenshot)

If the collaborator account you are testing with does have other collaborations or subscriptions, could you please provide info regarding what clusters or plan types they are? That could be helpful too if there is still a bug here

Comment 11 Mike Dame 2018-08-23 13:36:08 UTC
Created attachment 1478201 [details]
registration page (no collaboration box)

Shows where collaborators should be redirected once removed from a subscription (if they have no other collaborations/subscriptions)