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

[BUG] - 'AWS_SECRET_ACCESS_KEY' requested on a digital ocean installation #1525

Closed
alibama opened this issue Oct 30, 2022 · 8 comments · Fixed by #1529
Closed

[BUG] - 'AWS_SECRET_ACCESS_KEY' requested on a digital ocean installation #1525

alibama opened this issue Oct 30, 2022 · 8 comments · Fixed by #1529

Comments

@alibama
Copy link

alibama commented Oct 30, 2022

OS system and architecture in which you are running QHub

ubuntu 20.04

Expected behavior

running

nebari init --guided-init and installing on DO

running on DO so i've provided the following variables=
SPACES_ACCESS_KEY_ID= ...
SPACES_SECRET_ACCESS_KEY= ...
DIGITALOCEAN_TOKEN= ...

Actual behavior

here's the output

anaconda3/lib/python3.9/site-packages/nebari/utils.py:163 in check_cloud_credentials

so you can see that it knows it's supposed to be pulling AWS info, but the variable must be getting requested somewhere?

│ │ │ 'jupyterhub': { │ │ │ │ │ │ │ 'hub_title': 'Nebari - nebari', │ │ │ │ │ │ │ 'hub_subtitle': 'Your open source data science platform, hosted on │ │ │ │ Digital Ocean', │ │ │ │ │ │ │ 'welcome': 'Welcome! Learn about Nebari\'s features and │ │ │ │ configurations in <a href="https://ww'+191, │ │ │ │ │ │ │ 'logo': │ │ │ │ 'https://raw.githubusercontent.com/nebari-dev/nebari-design/main/logo-mark/horiz… │ │ │ │ │ │ │ 'display_version': True │ │ │ │ │ │ } │ │ │ │ │ }, │ │ │ │ │ 'helm_extensions': [], │ │ │ │ │ 'monitoring': {'enabled': True}, │ │ │ │ │ ... +10 │ │ │ │ } │ │ │ │ variable = 'AWS_SECRET_ACCESS_KEY'

How to Reproduce the problem?

run this on DO with guided init on an ubuntu 20.xx box

Command output

No response

Versions and dependencies used.

No response

Compute environment

No response

Integrations

No response

Anything else?

No response

@alibama alibama added the type: bug 🐛 Something isn't working label Oct 30, 2022
@alibama
Copy link
Author

alibama commented Nov 1, 2022

so i added
AWS_ACCESS_KEY_ID and
AWS_SECRET_ACCESS_KEY
and gave them the same values as the DO variables to see whether that would fix the issue, but it's giving me the error below

AWS_ACCESS_KEY_ID and SPACES_ACCESS_KEY_ID must be equal

even though that's now the case (and even though i'm still on DO and assume that AWS defaults mean maybe i should start out testing this on AWS? glad to do it if that's the case?

thanks again

@iameskild
Copy link
Member

Hi @alibama, thanks for reaching out! I believe this is indeed a bug. Just to be clear, you encounter the issue when you try to deploy?

@iameskild iameskild mentioned this issue Nov 2, 2022
15 tasks
@alibama
Copy link
Author

alibama commented Nov 3, 2022

yes - tried a couple of different approaches to nebari init - pip is working fine thanks to some earlier support provided here :)

@iameskild iameskild linked a pull request Nov 3, 2022 that will close this issue
15 tasks
@iameskild
Copy link
Member

Thanks for the feedback @alibama! This issue should get fixed in the next release :)

@alibama
Copy link
Author

alibama commented Nov 3, 2022

hmmm - i made the edits to the init.py and main.py files but still getting the same error - should that work or am i missing something?

@viniciusdc
Copy link
Contributor

This is not a bug, this is an expected behavior of the DO terraform provider (unfortunately). Because we use a supported S3 bucket as the backend to the DigitalOcean deployment, the terraform resource requires us to pass the above variables. We had a PR to fix this #1344, due to some circumstances that time we couldn't include that on the release (there was a revert PR).

@iameskild
Copy link
Member

Hi @alibama this issue should have been fixed in the latest release 2022.11.1, if you're still running into trouble, please let us know :)

@iameskild
Copy link
Member

Closed by #1529

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants