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

Diagnostic web page broken in 0.50.0-ea7. #1019

Closed
dgaffuri opened this issue Dec 7, 2018 · 2 comments
Closed

Diagnostic web page broken in 0.50.0-ea7. #1019

dgaffuri opened this issue Dec 7, 2018 · 2 comments
Milestone

Comments

@dgaffuri
Copy link

dgaffuri commented Dec 7, 2018

Describe the bug
Diagnostic web page is broken in 0.50.0-ea7

To Reproduce
Steps to reproduce the behavior:

  1. kubectl port-forward <ambassador-pod> 8877
  2. Navigate to http://localhost:8877/ambassador/v0/diag/
  3. Browser displays 'server error'

Expected behavior
Browser should show the diagnostic page

Versions (please complete the following information):

  • Ambassador: 0.50.0-ea7
  • Kubernetes environment: Docker Desktop Community 2.0.0.0-mac81 (29211)
  • Version: 1.10.3

Additional context
The following is shown in logs:

2018-12-07 16:31:23 diagd 0.50.0 [P50TThreadPoolExecutor-0_3] INFO: E32627D4-8486-4091-A419-A103CCF431B4: 127.0.0.1 "GET /ambassador/v0/diag/" START
2018-12-07 16:31:23 diagd 0.50.0 [P50TThreadPoolExecutor-0_3] ERROR: 'kind'
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/ambassador-0.0.0.dev0-py3.6.egg/ambassador_diag/diagd.py", line 98, in wrapper
    result = f(*args, reqid=reqid, **kwds)
  File "/usr/lib/python3.6/site-packages/ambassador-0.0.0.dev0-py3.6.egg/ambassador_diag/diagd.py", line 299, in show_overview
    aconf = get_aconf(app, "overview")
  File "/usr/lib/python3.6/site-packages/ambassador-0.0.0.dev0-py3.6.egg/ambassador_diag/diagd.py", line 173, in get_aconf
    resources = fetch_resources(latest, app.logger, k8s=app.k8s)
  File "/usr/lib/python3.6/site-packages/ambassador-0.0.0.dev0-py3.6.egg/ambassador/config/acresource.py", line 258, in fetch_resources
    fetcher = ResourceFetcher(config_dir_path, logger, k8s=k8s)
  File "/usr/lib/python3.6/site-packages/ambassador-0.0.0.dev0-py3.6.egg/ambassador/config/acresource.py", line 155, in __init__
    self.load_yaml(serialization, k8s=k8s)
  File "/usr/lib/python3.6/site-packages/ambassador-0.0.0.dev0-py3.6.egg/ambassador/config/acresource.py", line 171, in load_yaml
    self.ocount = self.process_object(obj, rkey)
  File "/usr/lib/python3.6/site-packages/ambassador-0.0.0.dev0-py3.6.egg/ambassador/config/acresource.py", line 220, in process_object
    if obj['kind'] == 'Pragma':
KeyError: 'kind'
2018-12-07 16:31:23 diagd 0.50.0 [P50TThreadPoolExecutor-0_3] ERROR: E32627D4-8486-4091-A419-A103CCF431B4: 127.0.0.1 "GET /ambassador/v0/diag/" 30ms 500 server error
@iNoahNothing
Copy link
Contributor

This is known and will be fixed in GA.

@iNoahNothing iNoahNothing added this to the 0.50.0 GA milestone Dec 10, 2018
@kflynn kflynn closed this as completed Dec 20, 2018
@kflynn
Copy link
Member

kflynn commented Dec 20, 2018

Fixed in -rc1.

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

3 participants