Skip to content

osc login/project output tweaks #1415

Closed

Description

@sosiouxme
[joe@master ~]$ osc login --certificate-authority=/var/lib/openshift/openshift.local.certificates/ca/cert.crt                                                                                                      
Please provide the server URL or just <enter> to use 'https://localhost:8443': https://master.osv3.example.com:8443
Authenticate for "openshift"
Username: joe
Password: 
Logged into 'https://master.osv3.example.com:8443' as 'joe'.
You don't have any project.
If you have access to create a new project, run 'openshift ex new-project <projectname> --admin=htpasswd:joe'.
To be added as an admin to an existing project, run 'openshift ex policy add-user admin htpasswd:joe -n <projectname>'.
Welcome to OpenShift v3! Use 'osc --help' for a list of commands available.
  1. I think it would be more welcoming if that "Welcome to OpenShift" line came first.
  2. "You don't have any project" should be projectS
  3. If a user is logging in this way, they are probably not the cluster admin and probably can't run openshift ex new-project. Perhaps reword as something like:
An administrator can create a new project for you by running 'openshift ex new-project <projectname> --admin=htpasswd:joe'.
To add this user as an admin to an existing project, a project administrator can run 'openshift ex policy add-user admin htpasswd:joe -n <projectname>'.

Somewhat related; if you then add the user to a project, it won't be obvious to them what to do with osc project:

[joe@master ~]$ osc project
No specific project in use.
[joe@master ~]$ osc project -h
No specific project in use.
[joe@master ~]$ osc help project
Switch to another project and make it the default in your configuration.

Use "osc --help" for a list of all commands available in osc.
Use "osc options" for a list of global command-line options (applies to all commands).

Maybe "osc project" in this situation could retrieve a list of projects, or direct you to run "osc get projects" for a list? At least, the help could be more helpful about this. Could it at least give the syntax, even though it is just osc project <name>?

Activity

  1. sosiouxme commented on Mar 23, 2015

    @sosiouxme
    MemberAuthor
  2. smarterclayton commented on Mar 26, 2015

    @smarterclayton
    Contributor

    See the latest updates

  3. fabianofranz commented on Mar 26, 2015

    @fabianofranz
    Contributor

    @sosiouxme At least a few of these were addressed in the latest updates. I'll check if there's anything else to fix.

  4. danmcp commented on May 11, 2015

    @danmcp

    Any remaining issues?

  5. smarterclayton commented on May 11, 2015

    @smarterclayton
    Contributor

    All of these are covered

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions