Giter Site home page Giter Site logo

Comments (2)

vdice avatar vdice commented on July 18, 2024

@erikschlegel I don't believe any explicit ssh setup is required. Would you be able to provide the relevant parts of the script as well as controller logs when the script is run?

from deis.

erikschlegel avatar erikschlegel commented on July 18, 2024

Hey @vdice - this is what I see in the kubernetes logs for the deis-controller-1655488031-l1b9b pod

2017-07-04T02:00:06.750108713Z 10.244.2.9 "GET /v2/ HTTP/1.1" 401 58 "Deis Client v2.14.1" 2017-07-04T02:00:06.825483557Z 10.244.2.9 "POST /v2/auth/login/ HTTP/1.1" 200 52 "Deis Client v2.14.1" 2017-07-04T02:00:06.852298026Z 10.244.2.9 "GET /v2/ HTTP/1.1" 401 58 "curl/7.47.0"

here's the response when I curl the controller host

Attempting to login http://deis.52.170.41.237.nip.io http://deis.52.170.41.237.nip.io has address 52.170.41.237 {"detail":"Authentication credentials were not provided."}

If I take the same deis login command in my terminal host I'm able to login

Here's the script login snippet

echo "Registering Deis Load Balancer"
deis register "${DEIS_HOSTNAME_URL}" --username=deis-admin --password=### [email protected] --ssl-verify=false

while [ ! -s "${DEIS_TOKEN_FILE}" ]; do
    echo "Attempting to login ${DEIS_HOSTNAME_URL}"
    host "${DEIS_HOSTNAME_URL}"
    curl "${DEIS_HOSTNAME_URL}/v2/" && echo
    sleep 10
    timeout 5 deis login "${DEIS_HOSTNAME_URL}" --username=deis-admin --password=####
done

The router logs deis-router-3258585802-dnrlk

2017-07-04T02:11:05.302041349Z [2017-07-04T02:11:05+00:00] - deis/deis-controller - 10.240.0.4 - - - 401 - "GET /v2/ HTTP/1.1" - 416 - "-" - "curl/7.47.0" - "~^deis\x5C.(?<domain>.+)$" - 10.0.157.142:80 - deis.52.170.41.237.nip.io - 0.002 - 0.002
2017-07-04T02:11:15.318278304Z [2017-07-04T02:11:15+00:00] - deis/deis-controller - 10.244.2.1 - - - 401 - "GET /v2/ HTTP/1.1" - 411 - "-" - "Deis Client v2.14.1" - "~^deis\x5C.(?<domain>.+)$" - 10.0.157.142:80 - deis.52.170.41.237.nip.io - 0.002 - 0.002
2017-07-04T02:11:15.39038704Z [2017-07-04T02:11:15+00:00] - deis/deis-controller - 10.240.0.5 - - - 200 - "POST /v2/auth/login/ HTTP/1.1" - 365 - "-" - "Deis Client v2.14.1" - "~^deis\x5C.(?<domain>.+)$" - 10.0.157.142:80 - deis.52.170.41.237.nip.io - 0.063 - 0.066
2017-07-04T02:11:15.426052983Z [2017-07-04T02:11:15+00:00] - deis/deis-controller - 10.240.0.8 - - - 401 - "GET /v2/ HTTP/1.1" - 416 - "-" - "curl/7.47.0" - "~^deis\x5C.(?<domain>.+)$" - 10.0.157.142:80 - deis.52.170.41.237.nip.io - 0.006 - 0.006

from deis.

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.