datawire / kubernaut

Instant ephemeral Kubernetes clusters for development and testing
Apache License 2.0
117 stars 8 forks source link

no register command and other stuff... #2

Closed rhs closed 7 years ago

rhs commented 7 years ago

I tried the quickstart again with python3 and got much farther. ;-)

Still ran into trouble (no register command, claim asked me to login, login just prints the username/password I had to make up, and then claim didn't seem to work).

I've included the transcript below:

Usage: kubernaut [OPTIONS] COMMAND [ARGS]...

  kubernaut: easy kubernetes clusters for painless development and testing

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  claim       claim your Kubernetes cluster
  kubeconfig  retrieve clusters kubeconfig
  login       login to access the kubernaut.io service
  release     release your Kubernetes cluster
(kubernaut) [rhs@venture ~]$ kubernaut claim
(kubernaut) [rhs@venture ~]$ kubernaut claim
Credentials not found for kubernaut.io. Please login first with `kubernaut login`.
(kubernaut) [rhs@venture ~]$ kubernaut login
Username: rhs
Password: 
{'credentials': {'kubernaut.io': {'password': 'asdf', 'username': 'rhs'}}}
(kubernaut) [rhs@venture ~]$ kubernaut register
Usage: kubernaut [OPTIONS] COMMAND [ARGS]...

Error: No such command "register".
(kubernaut) [rhs@venture ~]$ kubernaut 
Usage: kubernaut [OPTIONS] COMMAND [ARGS]...

  kubernaut: easy kubernetes clusters for painless development and testing

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  claim       claim your Kubernetes cluster
  kubeconfig  retrieve clusters kubeconfig
  login       login to access the kubernaut.io service
  release     release your Kubernetes cluster
(kubernaut) [rhs@venture ~]$ kubernaut claim
Traceback (most recent call last):
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib64/python3.5/socket.py", line 733, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/urllib3/connectionpool.py", line 357, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib64/python3.5/http/client.py", line 1107, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib64/python3.5/http/client.py", line 1152, in _send_request
    self.endheaders(body)
  File "/usr/lib64/python3.5/http/client.py", line 1103, in endheaders
    self._send_output(message_body)
  File "/usr/lib64/python3.5/http/client.py", line 934, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.5/http/client.py", line 877, in send
    self.connect()
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/urllib3/connection.py", line 166, in connect
    conn = self._new_conn()
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7ff2a5cc1048>: Failed to establish a new connection: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='kubernaut.io', port=80): Max retries exceeded with url: /cluster (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff2a5cc1048>: Failed to establish a new connection: [Errno -2] Name or service not known',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/rhs/.virtualenvs/kubernaut/bin/kubernaut", line 11, in <module>
    load_entry_point('kubernaut==0.1.0', 'console_scripts', 'kubernaut')()
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/kubernaut/cli.py", line 46, in wrapper
    return func(*args, **kwargs)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/kubernaut/cli.py", line 62, in cli_claim
    resp = requests.post(url, auth=auth)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/requests/sessions.py", line 502, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/requests/sessions.py", line 612, in send
    r = adapter.send(request, **kwargs)
  File "/home/rhs/.virtualenvs/kubernaut/lib/python3.5/site-packages/requests/adapters.py", line 504, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='kubernaut.io', port=80): Max retries exceeded with url: /cluster (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff2a5cc1048>: Failed to establish a new connection: [Errno -2] Name or service not known',))