Skip to content

Post-osc login message doesn't check if user has permission to create projects #1688

Closed

Description

@mfojtik

@liggitt maybe I'm doing something wrong here, but I can't create a new project after login:

[vagrant@openshiftdev origin]$ osc login
Authentication required for https://192.168.121.130:8443 (openshift)
Username: mfojtik
Password: 
Login successful.

You don't have any projects. If you have access to create a new project, run

    $ openshift ex new-project <projectname> --admin="mfojtik"

To be added as an admin to an existing project, run

    $ openshift ex policy add-role-to-user admin "mfojtik" -n <projectname>

[vagrant@openshiftdev origin]$ openshift ex new-project mfojtik --admin="mfojtik"
F0410 10:38:26.535044   21547 new_project.go:47] "/osapi/v1beta1/projects/mfojtik" is forbidden because mfojtik cannot get on projects with name "mfojtik" in mfojtik

Activity

  1. liggitt commented on Apr 10, 2015

    @liggitt
    Contributor

    You need to create the project as a cluster admin. The user you are logged in as does not have project creation permission

  2. ncdc commented on Apr 10, 2015

    @ncdc
    Contributor

    Why can't users create their own projects?

    Sent from my iPhone

    On Apr 10, 2015, at 8:03 AM, Jordan Liggitt [email protected] wrote:

    You need to create the project as a cluster admin. The user you are logged in as does not have project creation permission

    —
    Reply to this email directly or view it on GitHub.

  3. mfojtik commented on Apr 10, 2015

    @mfojtik
    ContributorAuthor

    @liggitt maybe we should then remove the suggestion about creating new projects, or check if the user has right to do so and replace the content if the help message with something like 'contact the cluster admin to create a project for you'

  4. liggitt commented on Apr 10, 2015

    @liggitt
    Contributor

    To be fair, the suggestion does say "If you have access to create a new project...", but checking and tailoring the suggestion could be reasonable.

  5. changed the title [-]Unable to create Project after osc login[/-] [+]Post-`osc login` message doesn't check if user has permission to create projects[/+] on Apr 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions