Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use shell scripts to initial rancher after rancher charts installed #318

Open
shifeichen opened this issue Oct 31, 2024 · 0 comments

Comments

@shifeichen
Copy link

I get following error, I can't do the first step with my bootStrapPassword, why? I also asked gpt, it can't answer me too. the offsite have no documents for this. how can I do with your API?

$ curl -v -X POST --insecure https://rancher.mdsp.bluewater.com/v3/login -H "Content-Type: application/json" -d '{"username":"admin","password":"Lpc_Rancher_Poc"}'
Note: Unnecessary use of -X or --request, POST is already inferred.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Host rancher.mdsp.bluewater.com:443 was resolved.

  • IPv6: (none)
  • IPv4: 139.24.217.96
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 139.24.217.96:443...
  • Connected to rancher.mdsp.bluewater.com (139.24.217.96) port 443
  • schannel: disabled automatic use of client certificate
  • using HTTP/1.x

POST /v3/login HTTP/1.1
Host: rancher.mdsp.bluewater.com
User-Agent: curl/8.9.0
Accept: /
Content-Type: application/json
Content-Length: 49

} [49 bytes data]

  • upload completely sent off: 49 bytes
  • schannel: remote party requests renegotiation
  • schannel: renegotiating SSL/TLS connection
  • schannel: SSL/TLS connection renegotiated
  • schannel: remote party requests renegotiation
  • schannel: renegotiating SSL/TLS connection
  • schannel: SSL/TLS connection renegotiated
    < HTTP/1.1 401 Unauthorized
    < Date: Thu, 31 Oct 2024 10:14:51 GMT
    < Content-Type: application/json
    < Content-Length: 80
    < Connection: keep-alive
    < Cache-Control: no-cache, no-store, must-revalidate
    < X-Api-Cattle-Auth: false
    < X-Content-Type-Options: nosniff
    < Strict-Transport-Security: max-age=15724800; includeSubDomains
    <
    { [80 bytes data]
    100 129 100 80 100 49 266 163 --:--:-- --:--:-- --:--:-- 437{"type":"error","status":"401","message":"Unauthorized 401: must authenticate"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant