Bug 714046

Summary: Wrong error message when running user delete on admin user
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: cperry, jconnor, jortel, skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 26   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-15 15:14:29 UTC Type: ---
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:    
Bug Blocks: 647488    

Description Preethi Thomas 2011-06-17 08:41:09 UTC
Description of problem:
[root@preethi ~]# rpm -q pulp
pulp-0.0.190-1.fc14.noarch


[root@preethi ~]# pulp-admin user delete --username=admin
error: operation failed: Cannot delete %s, they are the last super user


See %s

Comment 1 Jason Connor 2011-06-22 16:44:28 UTC
fix in 11f72e76cb51edc3aa18c7656d75b5473e12cbcf

Comment 2 Jeff Ortel 2011-06-22 21:12:23 UTC
build: 0.196

Comment 3 Preethi Thomas 2011-07-05 11:01:48 UTC
fails-qa even though the above error has been fixed, I think the message needs to be reworded.

[root@preethi ~]# rpm -q pulp
pulp-0.0.200-1.fc14.noarch
[root@preethi ~]# pulp-admin user delete --username=admin
error: operation failed: Cannot delete admin, they are the last super user


I would suggest something like 

error: operation failed:  The last super user "admin" cannot be deleted.

Comment 4 Preethi Thomas 2011-07-19 18:58:21 UTC
looks like i forgot to move it to assigned. see last comment.

Comment 5 Sayli Karmarkar 2011-07-20 19:56:50 UTC
$ sudo pulp-admin user delete --username admin
error: operation failed: The last super user 'admin' cannot be deleted.

Comment 6 Jeff Ortel 2011-07-20 20:47:52 UTC
build: 0.212

Comment 7 Preethi Thomas 2011-07-21 15:30:14 UTC
fails_qa

[root@preethi ~]# rpm -q pulp
pulp-0.0.212-1.fc14.noarch

[root@preethi ~]# pulp-admin user delete --username admin
error: operation failed: Cannot delete admin, they are the last super user
[root@preethi ~]#

Comment 8 Sayli Karmarkar 2011-07-21 17:34:38 UTC
Looks like the fix did not make it in that build. Commit was pushed before the build but changelog shows that it was tagged after previous commit. Moving to modified.

Comment 9 Jeff Ortel 2011-07-22 17:42:36 UTC
build: 0.213

Comment 10 Preethi Thomas 2011-07-25 13:52:15 UTC
[root@preethi ~]#  pulp-admin user delete --username admin
error: operation failed: The last super user 'admin' cannot be deleted.
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# rpm -q pulp
pulp-0.0.213-1.fc14.noarch

Comment 11 Preethi Thomas 2011-08-15 15:14:29 UTC
Closing with current community release

pulp-0.0.223