Bug 1428714 - [atomic registry] Can not delete project after refreshed page
Summary: [atomic registry] Can not delete project after refreshed page
Keywords:
Status: CLOSED DUPLICATE of bug 1430427
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Martin Pitt
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-03 08:54 UTC by XiaochuanWang
Modified: 2017-07-24 14:11 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-10 14:47:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.