Skip to content

Use dask-gateway 2022.10.0 and rely on mounted api-token from jupyterhub chart, also revert the workaround removing the hub NetworkPolicy#1769

Merged
yuvipanda merged 4 commits into
2i2c-org:masterfrom
consideRatio:pr/update-to-dg-2022.10.0-and-remove-apitoken-stuff
Oct 17, 2022
Merged

Use dask-gateway 2022.10.0 and rely on mounted api-token from jupyterhub chart, also revert the workaround removing the hub NetworkPolicy#1769
yuvipanda merged 4 commits into
2i2c-org:masterfrom
consideRatio:pr/update-to-dg-2022.10.0-and-remove-apitoken-stuff

Conversation

@consideRatio

@consideRatio consideRatio commented Oct 13, 2022

Copy link
Copy Markdown
Contributor

Relies on dask/dask-gateway#612 released in 2022.10.0 so we don't have to set this explicitly.

While I've tested this in the JMTE hub. I've not tested the adjustments I've made to the binderhub chart that includes another dask-gateway installation. I made the changes I think is required for it though and think it should work fine there as well.


I'd be thankful if someone else can go for a merge of this and ensure that things work in all the 2i2c hubs. I opted to go for a PR as that felt like a clear way of documenting what I thought should be done to resolve #1754.

@consideRatio
consideRatio requested review from sgibson91 and yuvipanda and removed request for yuvipanda October 13, 2022 14:41
@github-actions

github-actions Bot commented Oct 13, 2022

Copy link
Copy Markdown
Contributor

Merging this PR will trigger the following deployment actions.

Support and Staging deployments

Cloud Provider Cluster Name Upgrade Support? Reason for Support Redeploy Upgrade Staging? Reason for Staging Redeploy
gcp awi-ciroh No Yes Core infrastructure has been modified
aws openscapes No Yes Core infrastructure has been modified
gcp leap No Yes Core infrastructure has been modified
kubeconfig utoronto No Yes Core infrastructure has been modified
gcp meom-ige No Yes Core infrastructure has been modified
gcp m2lines No Yes Core infrastructure has been modified
aws uwhackweeks No Yes Core infrastructure has been modified
gcp cloudbank No Yes Core infrastructure has been modified
gcp 2i2c-uk No Yes Core infrastructure has been modified
aws carbonplan No Yes Core infrastructure has been modified
gcp callysto No Yes Core infrastructure has been modified
gcp 2i2c No Yes Core infrastructure has been modified
gcp pangeo-hubs No Yes Core infrastructure has been modified
gcp linked-earth No Yes Core infrastructure has been modified

Production deployments

Cloud Provider Cluster Name Hub Name Reason for Redeploy
gcp awi-ciroh prod Core infrastructure has been modified
aws openscapes prod Core infrastructure has been modified
gcp leap prod Core infrastructure has been modified
kubeconfig utoronto prod Core infrastructure has been modified
gcp meom-ige prod Core infrastructure has been modified
gcp m2lines prod Core infrastructure has been modified
aws uwhackweeks snowex Core infrastructure has been modified
gcp cloudbank spelman Core infrastructure has been modified
gcp cloudbank ccsf Core infrastructure has been modified
gcp cloudbank elcamino Core infrastructure has been modified
gcp cloudbank glendale Core infrastructure has been modified
gcp cloudbank howard Core infrastructure has been modified
gcp cloudbank miracosta Core infrastructure has been modified
gcp cloudbank skyline Core infrastructure has been modified
gcp cloudbank canada Core infrastructure has been modified
gcp cloudbank demo Core infrastructure has been modified
gcp cloudbank fresno Core infrastructure has been modified
gcp cloudbank lassen Core infrastructure has been modified
gcp cloudbank clovis Core infrastructure has been modified
gcp cloudbank sbcc Core infrastructure has been modified
gcp cloudbank mills Core infrastructure has been modified
gcp cloudbank palomar Core infrastructure has been modified
gcp cloudbank pasadena Core infrastructure has been modified
gcp cloudbank sjcc Core infrastructure has been modified
gcp cloudbank tuskegee Core infrastructure has been modified
gcp cloudbank avc Core infrastructure has been modified
gcp cloudbank csu Core infrastructure has been modified
gcp 2i2c-uk lis Core infrastructure has been modified
aws carbonplan prod Core infrastructure has been modified
gcp callysto prod Core infrastructure has been modified
gcp 2i2c demo Core infrastructure has been modified
gcp 2i2c ohw Core infrastructure has been modified
gcp 2i2c pfw Core infrastructure has been modified
gcp 2i2c peddie Core infrastructure has been modified
gcp 2i2c catalyst-cooperative Core infrastructure has been modified
gcp 2i2c earthlab Core infrastructure has been modified
gcp 2i2c paleohack2021 Core infrastructure has been modified
gcp 2i2c aup Core infrastructure has been modified
gcp 2i2c temple Core infrastructure has been modified
gcp pangeo-hubs prod Core infrastructure has been modified
gcp pangeo-hubs coessing Core infrastructure has been modified
gcp linked-earth prod Core infrastructure has been modified

@consideRatio consideRatio changed the title Use dask-gateway 2022.10.0 and rely on mounted api-token from jupyterhub chart Use dask-gateway 2022.10.0 and rely on mounted api-token from jupyterhub chart, also revert the workaround removing the hub NetworkPolicy Oct 13, 2022
@yuvipanda

Copy link
Copy Markdown
Member

Thanks @consideRatio. The one question I have is - does this require upgrade to dask-gateway version in the user image? Thank you for doing the PR, I think once I've an answer to that we can figure out next steps.

@consideRatio

Copy link
Copy Markdown
Contributor Author

No need to update the dask-gateway client in the user images, the chart can be updated first by itself!

@yuvipanda

Copy link
Copy Markdown
Member

Thanks, @consideRatio!

@TomNicholas

Copy link
Copy Markdown

Hey everyone, will this change allow me to use dask/distributed#7128 (reply in thread)

on the LEAP hub?? I'm itching to try out some of these changes 🙏

@dhruvbalwada

Copy link
Copy Markdown
Contributor

Same here, when will this be visible on the m2lines hub?

@yuvipanda

Copy link
Copy Markdown
Member

@TomNicholas @dhruvbalwada let me deploy this on m2lines, and you can test it out, and if that works ok i can roll it out everywhere?

@consideRatio

consideRatio commented Oct 13, 2022

Copy link
Copy Markdown
Contributor Author

Note that the conda-forge release of the dask-gateway client, that includes some bugfixes etc, isn't yet released. Besides that, I'm not sure if there should be any notable difference for users of the old installation vs the new.

https://gateway.dask.org/changelog.html


When a PR is opened to https://github.com/conda-forge/dask-gateway-feedstock/pulls I'll quickly get the dask-gateway client 2022.10.0 released as well.

@TomNicholas and @dhruvbalwada I suspect you need to ensure that you use a modern version of distributed as installed in your configured image, and if you have that, you get that feature.

@yuvipanda

Copy link
Copy Markdown
Member

Actually, since m2lines still has the new GPU stuff deployed but not merged yet, I've deployed this to leap.2i2c.cloud. @TomNicholas and @dhruvbalwada can you try it out and let me know if it works fine?

@dhruvbalwada

Copy link
Copy Markdown
Contributor

I don't have access to the leap cloud. Who do I ask to get access to that?

@yuvipanda

Copy link
Copy Markdown
Member

@dhruvbalwada ah i'm not sure actually. I've just deployed this on m2lines too now, so test it out there. It's no longer deployed on LEAP

@dhruvbalwada

Copy link
Copy Markdown
Contributor

I don't see it yet, I still see the dask version to be
'2022.9.1'

@yuvipanda yuvipanda assigned yuvipanda and unassigned consideRatio Oct 14, 2022
@yuvipanda
yuvipanda force-pushed the pr/update-to-dg-2022.10.0-and-remove-apitoken-stuff branch from fcc2fc0 to 9e5ed2e Compare October 14, 2022 18:41
Brings in newer dask client version
@yuvipanda

Copy link
Copy Markdown
Member

@dhruvbalwada try now? You might have to start and stop your server.

@TomNicholas

Copy link
Copy Markdown

I just looked on the LEAP hub but only see dask=2022.9.1 and distributed=2022.9.1

@yuvipanda

Copy link
Copy Markdown
Member

@TomNicholas try again now? You might have to start / stop your server.

@consideRatio

Copy link
Copy Markdown
Contributor Author

Dask-gateway is just what helps start dask workers. I think its entirely unrelated to dask itself, distributed, and other dask software releases.

@yuvipanda

Copy link
Copy Markdown
Member

@consideRatio yep! To help these folks test, I've augmented this PR with an image bump that also increases the dask version in the images.

@TomNicholas

Copy link
Copy Markdown

I still don't see it on the LEAP hub - I'm logging on, starting a terminal and typing
(notebook) jovyan@jupyter-tomnicholas:~$ conda list. Is there something else I should be doing?

@dhruvbalwada

Copy link
Copy Markdown
Contributor

I see the 2022.9.2 on m2lines hub now.

@TomNicholas

Copy link
Copy Markdown

Oh scratch that I see 2022.9.2 on LEAP now too!

@TomNicholas

TomNicholas commented Oct 17, 2022

Copy link
Copy Markdown

BTW I'm now seeing this bug with dask-gateway when I try and display by client widget dask/dask-gateway#607

I think to fix it we need dask-gateway=2022.10.0, but we have 2022.6.1 currently.

EDIT: Is dask-gateway something I can change the version of just in my environment/notebook myself safely? I thought I couldn't change distributed at least.

@yuvipanda
yuvipanda merged commit 08e6b8b into 2i2c-org:master Oct 17, 2022
@github-actions

Copy link
Copy Markdown
Contributor

@yuvipanda

Copy link
Copy Markdown
Member

@TomNicholas I've opened conda-forge/pangeo-dask-feedstock#97 to bump the version in the image itself. However, the infrastructure is up to the latest dask-gateway now! Thanks a lot, @consideRatio!

yuvipanda added a commit to yuvipanda/pilot-hubs that referenced this pull request Oct 18, 2022
Brings in pangeo-data/pangeo-docker-images#395,
which brings in conda-forge/pangeo-dask-feedstock#96,
which brings in newer versions of dask and dask-gateway.

Follow-up to 2i2c-org#1769
yuvipanda added a commit to yuvipanda/pilot-hubs that referenced this pull request Oct 18, 2022
Brings in pangeo-data/pangeo-docker-images#395,
which brings in conda-forge/pangeo-dask-feedstock#96,
which brings in newer versions of dask and dask-gateway.

Follow-up to 2i2c-org#1769
@yuvipanda

Copy link
Copy Markdown
Member

@TomNicholas @dhruvbalwada ok, the image updates have come through now and this is what I see:

image

(pasting an image as JupyterLab terminal doesn't want me to copy from it?! WT><CJKHlkhga).

Anyway, let me know if things work now?

@dhruvbalwada

Copy link
Copy Markdown
Contributor

Works.

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

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Adjust to modern dask-gateway Helm chart and avoid needing to manage an api token

4 participants