Skip to content

Cannot access v0.4.2 console #1591

Closed
Closed

Description

@goldmann

I followed the instructions for running OSv3 v0.4.2, but when I point my broser to the console, I get:

{
  "kind": "Status",
  "creationTimestamp": null,
  "apiVersion": "v1beta1",
  "status": "Failure",
  "message": "\"/\" is forbidden because system:anonymous cannot get on /",
  "reason": "Forbidden",
  "details": {},
  "code": 403
}

Later I tried to execute: openshift admin --config=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig policy add-role-to-group cluster-admin system:authenticated system:unauthenticated but it fails with this:

W0403 09:13:57.123817     113 node_args.go:54] Unable to lookup hostname, using "localhost": Couldn't determine hostname: exit status 1
W0403 09:13:57.282874     113 node_args.go:54] Unable to lookup hostname, using "localhost": Couldn't determine hostname: exit status 1
unknown flag: --config

Usage: 
  openshift admin [options]
  openshift admin <command>

Available Commands: 
  overwrite-policy             Overwrite policy for OpenShift.  DANGER: THIS BYPASSES ALL ACCESS CONTROL CHECKS AND WRITES DIRECTLY TO ETCD!
  create-bootstrap-policy-file Create bootstrap policy for OpenShift.
  create-node-config           Create a portable client folder containing a client certificate, a client key, a server certificate authority, and a .kubeconfig file.
  create-kubeconfig            Create a basic .kubeconfig file from client certs
  create-all-certs             Create all certificates for OpenShift All-In-One
  create-client-cert           Create client certificate
  create-node-cert             Create node certificate
  create-server-cert           Create server certificate
  create-signer-cert           Create signer certificate
  create-api-client-config     Create a portable client folder containing a client certificate, a client key, a server certificate authority, and a .kubeconfig file.


Global Options:
  -h, --help=false: help for admin
      --loglevel=0: Set the level of log output (0-5)

Use "openshift <command> --help" for more information about a given command.

Activity

  1. smarterclayton commented on Apr 3, 2015

    @smarterclayton
    Contributor

    @fabianofranz is this the help text problem we opened? It's not showing policy, which means that it knows policy is a command but is actually hiding it?

    @goldmann you may need to move the config argument later in the command. Do you have the KUBECONFIG or OPENSHIFTCONFIG env vars set?

  2. goldmann commented on Apr 3, 2015

    @goldmann
    ContributorAuthor

    I'm just following the instructions in README.md. This is what I have:

    [root@mistress openshift]# env
    HOSTNAME=mistress
    LS_COLORS=
    KUBECONFIG=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    PWD=/var/lib/openshift
    container_uuid=510dae02-032a-81ac-211e-3d3c28217d1d
    SHLVL=1
    HOME=/root
    LESSOPEN=||/usr/bin/lesspipe.sh %s
    _=/usr/bin/env
    

    When used like this:

    openshift admin policy add-role-to-group cluster-admin system:authenticated system:unauthenticated --config=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig
    

    It works.

  3. smarterclayton commented on Apr 3, 2015

    @smarterclayton
    Contributor

    KUBECONFIG is broken right now - I've updated the readme to fix both of these.

    Fabiano, --config should be registered on admin - did that recently change?

    On Apr 3, 2015, at 10:01 AM, Marek Goldmann [email protected] wrote:

    I'm just following the instructions in README.md. This is what I have:

    [root@mistress openshift]# env
    HOSTNAME=mistress
    LS_COLORS=
    KUBECONFIG=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    PWD=/var/lib/openshift
    container_uuid=510dae02-032a-81ac-211e-3d3c28217d1d
    SHLVL=1
    HOME=/root
    LESSOPEN=||/usr/bin/lesspipe.sh %s
    _=/usr/bin/env
    When used like this:

    openshift admin policy add-role-to-group cluster-admin system:authenticated system:unauthenticated --config=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig
    It works.

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

  4. liggitt commented on May 9, 2015

    @liggitt
    Contributor

    KUBECONFIG is now OPENSHIFTCONFIG, and access to / should be allowed by default now. Can you confirm this is working for you now?

  5. added
    kind/bug
    on May 11, 2015
  6. liggitt commented on May 13, 2015

    @liggitt
    Contributor

    Closing as fixed

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

Metadata

Metadata

Assignees

Labels

component/webkind/bugpriority/P2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions