Coder Social home page Coder Social logo

admin role about installcentos HOT 9 CLOSED

gshipley avatar gshipley commented on May 11, 2024
admin role

from installcentos.

Comments (9)

marekjelen avatar marekjelen commented on May 11, 2024

Try running

oc login -u system:admin

before adding the cluster-role.

from installcentos.

nickjupp avatar nickjupp commented on May 11, 2024

thanks, have tried - gives
error: username system:admin is invalid for basic auth

from installcentos.

marekjelen avatar marekjelen commented on May 11, 2024

Have you tried logging in on the server as system:admin can only login on localhost.

from installcentos.

nickjupp avatar nickjupp commented on May 11, 2024

it's an AWS machine, so via ssh connection.

`[centos@ip-172-31-10-24 installcentos]$ oc login localhost:8443
Authentication required for https://localhost:8443 (openshift)
Username: root
Password:
Login successful.

You don't have any projects. You can try to create a new project, by running

oc new-project <projectname>

[centos@ip-172-31-10-24 installcentos]$ oc logout
Logged "root" out on "https://localhost:8443"
[centos@ip-172-31-10-24 installcentos]$ oc login -u system:admin
Authentication required for https://localhost:8443 (openshift)
Username: system:admin
Password:
error: username system:admin is invalid for basic auth - verify you have provided the correct host and port and that the server is currently running.
error: username system:admin is invalid for basic auth
[centos@ip-172-31-10-24 installcentos]$ `

from installcentos.

nickjupp avatar nickjupp commented on May 11, 2024

Have just run on a local Centos VM using VirtualBox, installed as root user and all worked fine, so seems to be something to do with AWS account permissions.... will continue to investigate as this would be great to spin up on demand!

from installcentos.

marekjelen avatar marekjelen commented on May 11, 2024

Going to investigate, thanks for providing the information.

from installcentos.

nickjupp avatar nickjupp commented on May 11, 2024

re-ran in AWS, added a root password and installed as root - all worked fine so this was the issue.
CLI access is fine from both local console and remote, can oc describe node etc, but now can't access web console (at all... no route),
Hostname is the internal/private 172.x.x.x EC2 address which probably explains it
....which is odd as the previous install did give me the console ok.
On my local machine (not ssh to the EC2 machine) I can oc login to the public IP and the following works, but not in the browser....
`
curl https://18.204.x.x.:8443/version/openshift -k

{
"major": "3",
"minor": "7+",
"gitCommit": "282e43f",
"gitVersion": "v3.7.1+282e43f-42",
}
`

from installcentos.

marekjelen avatar marekjelen commented on May 11, 2024

Did you configure DNS? It's better to use DNS (at least nip.io) to access the console then plain IP address.

from installcentos.

marekjelen avatar marekjelen commented on May 11, 2024

Seems stale, please reopen if need be.

from installcentos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.