Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.
This repository was archived by the owner on May 6, 2020. It is now read-only.

deis tls:info errors if TLS is unset #1042

@mboersma

Description

@mboersma

Testing Deis Workflow v2.5.0:

  • create a new app
  • push code and see that it's answering HTTP requests
  • run deis tls:info
$ deis tls
Error: Internal Server Error
$ deis tls:info
Error: Internal Server Error
$ deis tls:enable
Enabling https-only requests for joyful-vacation... done
$ deis tls:disable
Disabling https-only requests for joyful-vacation... done
$ deis tls:info
=== joyful-vacation TLS
HTTPS Enforced: false
$ kubectl --namespace=deis logs deis-controller-3128977233-zm13w
172.17.0.13 "GET /v2/apps/joyful-vacation/domains/?limit=100 HTTP/1.1" 200 185 "Deis Client v2.5.0"
INFO GET http://10.0.0.166:80/logs/joyful-vacation?log_lines=100 returned a 204 status code
172.17.0.13 "GET /v2/apps/joyful-vacation/logs HTTP/1.1" 204 - "Deis Client v2.5.0"
ERROR:root:Uncaught Exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/rest_framework/views.py", line 471, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/rest_framework/mixins.py", line 56, in retrieve
    instance = self.get_object()
  File "/app/api/views.py", line 177, in get_object
    return self.get_queryset(**kwargs).latest('created')
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 550, in latest
    return self._earliest_or_latest(field_name=field_name, direction="-")
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 544, in _earliest_or_latest
    return obj.get()
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 385, in get
    self.model._meta.object_name
api.models.tls.DoesNotExist: TLS matching query does not exist.
172.17.0.13 "GET /v2/apps/joyful-vacation/tls/ HTTP/1.1" 500 25 "Deis Client v2.5.0"
ERROR:root:Uncaught Exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/rest_framework/views.py", line 471, in dispatch
    response = handler(request, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/rest_framework/mixins.py", line 56, in retrieve
    instance = self.get_object()
  File "/app/api/views.py", line 177, in get_object
    return self.get_queryset(**kwargs).latest('created')
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 550, in latest
    return self._earliest_or_latest(field_name=field_name, direction="-")
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 544, in _earliest_or_latest
    return obj.get()
  File "/usr/local/lib/python3.5/dist-packages/django/db/models/query.py", line 385, in get
    self.model._meta.object_name
api.models.tls.DoesNotExist: TLS matching query does not exist.
172.17.0.13 "GET /v2/apps/joyful-vacation/tls/ HTTP/1.1" 500 25 "Deis Client v2.5.0"
172.17.0.13 "POST /v2/apps/joyful-vacation/tls/ HTTP/1.1" 201 174 "Deis Client v2.5.0"
172.17.0.13 "POST /v2/apps/joyful-vacation/tls/ HTTP/1.1" 201 175 "Deis Client v2.5.0"
172.17.0.13 "GET /v2/apps/joyful-vacation/tls/ HTTP/1.1" 200 175 "Deis Client v2.5.0"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions