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

Swagger UI is broken on prod #3090

Closed
hannes-ucsc opened this issue May 28, 2021 · 2 comments
Closed

Swagger UI is broken on prod #3090

hannes-ucsc opened this issue May 28, 2021 · 2 comments
Assignees
Labels
bug [type] A defect preventing use of the system as specified infra [subject] Project infrastructure like CI/CD, build and deployment scripts no demo [process] Not to be demonstrated at the end of the sprint orange [process] Done by the Azul team

Comments

@hannes-ucsc
Copy link
Member

hannes-ucsc commented May 28, 2021

$ http 'https://service.azul.data.humancellatlas.org/'
HTTP/1.1 500 Internal Server Error
Access-Control-Allow-Headers: Authorization,Content-Type,X-Amz-Date,X-Amz-Security-Token,X-Api-Key
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 533
Content-Type: text/plain
Date: Fri, 28 May 2021 16:49:23 GMT
Via: 1.1 8bea8b04906ba221e865eddf4b64cf2f.cloudfront.net (CloudFront)
X-Amz-Cf-Id: YBOPmQk4G5X1qlpvs79nNIZT46oF7Kn-FLbOJM1rRorThci7rt96QQ==
X-Amz-Cf-Pop: LAX3-C4
X-Amzn-Trace-Id: Root=1-60b11f13-620adf800f2713643e243e19;Sampled=0
X-Cache: Error from cloudfront
x-amz-apigw-id: ADHLAGz4IAMFxGA=
x-amzn-RequestId: 922e8094-49a3-48e4-bd57-c1a58cdae250

Traceback (most recent call last):
  File "/var/task/chalice/app.py", line 1135, in _get_view_function_response
    response = view_function(**function_args)
  File "/var/task/app.py", line 453, in swagger_ui
    'OAUTH2_CLIENT_ID': config.google_oauth2_client_id,
  File "/var/task/azul/__init__.py", line 821, in google_oauth2_client_id
    return os.environ['AZUL_GOOGLE_OAUTH2_CLIENT_ID']
  File "/var/lang/lib/python3.8/os.py", line 675, in __getitem__
    raise KeyError(key) from None
KeyError: 'AZUL_GOOGLE_OAUTH2_CLIENT_ID'

Related to #3088

Also causes IT to fail

https://gitlab.azul.data.humancellatlas.org/ucsc/azul/-/jobs/2831

@hannes-ucsc
Copy link
Member Author

Set the variable in deployments/prod/environment.py to 473200283737-h5e1l7neunbuesrtgjf8b12lb7o3jf1m.apps.googleusercontent.com and add a FIXME referring to #3088 to unset it again.

@hannes-ucsc
Copy link
Member Author

To work around this, I manually set the variable on the azul-service-prod lambda function. Until this ticket lands in prod, the workaround will be need to be performed after every deployment to prod.

@hannes-ucsc hannes-ucsc added bug [type] A defect preventing use of the system as specified infra [subject] Project infrastructure like CI/CD, build and deployment scripts thereifixedit labels May 28, 2021
@nadove-ucsc nadove-ucsc added the base [process] Another PR needs to be rebased before merging this one label Jun 1, 2021
@nadove-ucsc nadove-ucsc removed the base [process] Another PR needs to be rebased before merging this one label Jun 1, 2021
@theathorn theathorn added the no demo [process] Not to be demonstrated at the end of the sprint label Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [type] A defect preventing use of the system as specified infra [subject] Project infrastructure like CI/CD, build and deployment scripts no demo [process] Not to be demonstrated at the end of the sprint orange [process] Done by the Azul team
Projects
None yet
Development

No branches or pull requests

3 participants