[root@localhost tmp]# pulp -u test01 -p dog8code user list +-------------------------------------------+ Available Users +-------------------------------------------+ Login : admin Name : None Login : westest01 Name : None Login : westest01 Name : None Login : westest02 Name : None [root@localhost tmp]# pulp -u test01 -p dog8code user create --newusername=westest01 --newpassword=dog8code --name=westest01 "Traceback (most recent call last):\n File \"/usr/lib/python2.6/site- <snip> self.__check_response_to_last_error(response)\n File \"/usr/lib/python2.6/site-packages/pymongo/connection.py\", line 540, in __check_response_to_last_error\n raise DuplicateKeyError(error[\"err\"])\nDuplicateKeyError: E11000 duplicate key error index: _database.users.$_id_ dup key: { : \"westest01\" }\n" [root@localhost tmp]# pulp -u test01 -p dog8code user create --newusername=westest01 --newpassword=dog8code --name=westest04 Successfully created User [ westest01 ] with name [ None ] [root@localhost tmp]# Expected Results: I would think that usernames should also have to be unique, not just names. Not sure if its a bug or by design, opening to verify.
yup, I think its a bug. Running the delete command for username=westest01 will delete ALL the entries in the list. It should be unique. [root@localhost tmp]# pulp -u test01 -p dog8code user delete --deleteusername=westest01 Successfully deleted User [ westest01 ] [root@localhost tmp]# pulp -u test01 -p dog8code user list +-------------------------------------------+ Available Users +-------------------------------------------+ Login : admin Name : None Login : westest02 Name : None
*** This bug has been marked as a duplicate of bug 620893 ***