Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1428714

Summary: [atomic registry] Can not delete project after refreshed page
Product: OpenShift Container Platform Reporter: XiaochuanWang <xiaocwan>
Component: Management ConsoleAssignee: Martin Pitt <mpitt>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: high Docs Contact:
Priority: high    
Version: 3.5.0CC: aos-bugs, jliggitt, jokerman, mmccomas, xiaocwan, xxia
Target Milestone: ---   
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: 2017-03-10 14:47:18 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 XiaochuanWang 2017-03-03 08:54:51 UTC
Description of problem:
Create a project from either Overview or Projects page.

Version-Release number of selected component (if applicable):
openshift3/registry-console:3.5

How reproducible:
Always

Steps to Reproduce:
1. Create a project from Overview page, refresh the page and try to delete it.
2. Create a project from Project page, refresh the page and try to delete it.
3. Create a project from Overview/Project page, don't refresh the page and delete it.

Actual results:
1&2 Project can't be deleted. Error message shows as below
"""
User "xiaocwan2" cannot "deletecollection" "projectsxiaocwan2-p" with name "" in project ""
"""
3. Project could be deleted.

Expected results:
1&2. Project could be deleted.

Additional info:

Comment 1 Jordan Liggitt 2017-03-03 20:36:55 UTC
looks like a missing slash in the API URL building:

"DELETE /oapi/v1/projectsxiaocwan2-p" will produce that message

Comment 2 Dominik Perpeet 2017-03-06 15:24:01 UTC
Can the project be deleted if the page isn't refreshed manually? E.g. when you log in again and look at an existing project?

If this requires manual refreshing to reproduce, I think the priority should be lower.

Comment 3 XiaochuanWang 2017-03-07 07:29:51 UTC
Login again also failed to delete the project, both below step 2.1 and 2.2 reproduce the issue.

Steps:
1. Create project from Overview/Project page
2.1 Logout and login again
or:
2.2 Do not logout, login from another browser
3. Try to delete project from Projects page (/registry#/projects)

Comment 4 Martin Pitt 2017-03-09 10:22:44 UTC
> looks like a missing slash in the API URL building:

This sounds like https://bugzilla.redhat.com/show_bug.cgi?id=1430427 and https://bugzilla.redhat.com/show_bug.cgi?id=1413997 all over again -- this crept into the latest RHEL update, and is fixed in Fedora 25's kubernetes already.

Comment 5 Martin Pitt 2017-03-09 12:09:35 UTC
I verified that this does not happen on our OpenShift test image (Fedora 23 based, openshift v1.4.1+3f9807a, kubernetes v1.4.0+776c994). Can you please check which versions of openshift/kubernetes you have installed, so that we can be sure it's a duplicate?

  rpm -qa|grep kubernetes
  openshift version

Thanks!

Comment 6 XiaochuanWang 2017-03-10 09:38:13 UTC
Reproduced on:
openshift v3.5.0.50
kubernetes v1.5.2+43a9be4
openshift3/registry-console:3.5

Please make sure you refreshed the browser before deleted the project.
Thanks!

Comment 7 Martin Pitt 2017-03-10 14:47:18 UTC
You didn't mention the package versions, but I suppose this is RHEL 7.3? The Fedora fix (http://pkgs.fedoraproject.org/cgit/rpms/kubernetes.git/commit/?id=7222698b7c) still needs to land there, and "kubernetes v1.5.2+43a9be4" makes it pretty clear that this is a duplicate.

Thanks!

*** This bug has been marked as a duplicate of bug 1430427 ***