{"action":"closed","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/1083","labels_url":"https://api.github.com/repos/openshift/origin/issues/1083/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/1083/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/1083/events","html_url":"https://github.com/openshift/origin/issues/1083","id":58387249,"number":1083,"title":"Recreating a deleted project cannot add admin using new-project","user":{"login":"liggitt","id":980082,"avatar_url":"https://avatars.githubusercontent.com/u/980082?v=3","gravatar_id":"","url":"https://api.github.com/users/liggitt","html_url":"https://github.com/liggitt","followers_url":"https://api.github.com/users/liggitt/followers","following_url":"https://api.github.com/users/liggitt/following{/other_user}","gists_url":"https://api.github.com/users/liggitt/gists{/gist_id}","starred_url":"https://api.github.com/users/liggitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liggitt/subscriptions","organizations_url":"https://api.github.com/users/liggitt/orgs","repos_url":"https://api.github.com/users/liggitt/repos","events_url":"https://api.github.com/users/liggitt/events{/privacy}","received_events_url":"https://api.github.com/users/liggitt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-20T17:52:48Z","updated_at":"2015-02-27T13:11:21Z","closed_at":"2015-02-27T13:11:21Z","body":"Deleting a project leaves its resources and policy in place (which is a different issue)\r\n\r\nRecreating a deleted project fails assigning admin because the 'admin' rolebinding already exists\r\n\r\n```\r\nproject=ui-test-project7\r\nopenshift ex new-project $project --admin=\"anypassword:createuser\"\r\nopenshift ex policy add-user admin anypassword:adduser -n $project\r\nosc describe policybinding master -n $project\r\nosc delete project $project\r\nopenshift ex new-project $project --admin=\"anypassword:createuser2\"\r\nopenshift ex policy add-user admin anypassword:adduser2 -n $project\r\nosc describe policybinding master -n $project\r\n```\r\n\r\nAs a user, I'd expect `new-project --admin ...` to be equivalent to `new-project`+`add-user` calls, but `add-user` is better at adding the user to the role, regardless of what role bindings are in place."}}