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

Do not expose additional ports #331

Merged
merged 26 commits into from
Aug 10, 2023
Merged

Do not expose additional ports #331

merged 26 commits into from
Aug 10, 2023

Conversation

mishaschwartz
Copy link
Collaborator

@mishaschwartz mishaschwartz commented May 29, 2023

Overview

Docker compose no longer exposes any container ports outside the default network except for ports 80 and 443 from the proxy container. This ensures that ports that are not intended for external access are not exposed to the wider internet even if firewall rules are not set correctly.

Note that if the monitoring component is used then port 9100 will be exposed from the node-exporter container. This is because this container must be run on the host machine's network and unfortunately there is no known workaround that would not require this port to be exposed on the host machine.

Changes

Non-breaking changes

  • Changes all internal URL references to components

Breaking changes

  • removes the lb_flyingpigeon endpoint because it requires direct access to an exposed port

Related Issue / Discussion

Additional Information

Links to other issues or sources.

@github-actions github-actions bot added ci/tests Issues or changes related to tests scripts component/geoserver Related to GeoServer or one of its underlying services component/jupyterhub Related to JupyterHub as development frontend with notebooks component/magpie Related to https://github.com/Ouranosinc/Magpie component/THREDDS Features or components related to THREDDS component/twitcher Related to https://github.com/bird-house/twitcher component/weaver Related to https://github.com/crim-ca/weaver documentation Improvements or additions to documentation feature/WPS Feature or service related to Web Processing Service labels May 29, 2023
@github-actions github-actions bot added the ci/operations Continuous Integration components label May 29, 2023
@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1578/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-90.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1137/

NOTEBOOK TEST RESULTS
    
[2023-05-29T19:24:21.034Z] ============================= test session starts ==============================
[2023-05-29T19:24:21.034Z] platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
[2023-05-29T19:24:21.034Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master@2
[2023-05-29T19:24:21.034Z] plugins: anyio-3.6.2, dash-2.7.0, nbval-0.9.6, tornasync-0.6.0.post2
[2023-05-29T19:24:21.034Z] collected 268 items
[2023-05-29T19:24:21.034Z] 
[2023-05-29T19:24:30.333Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-05-29T19:24:40.033Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .......        [  6%]
[2023-05-29T19:24:50.021Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [  8%]
[2023-05-29T19:25:01.953Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 11%]
[2023-05-29T19:25:11.298Z] pavics-sdi-master/docs/source/notebooks/WPS_example.ipynb .......FFF     [ 15%]
[2023-05-29T19:35:12.534Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 20%]
[2023-05-29T19:35:12.534Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 20%]
[2023-05-29T19:35:21.613Z] ...............                                                          [ 26%]
[2023-05-29T19:35:35.574Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-05-29T19:35:46.761Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-05-29T19:36:10.665Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-05-29T19:36:12.580Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 32%]
[2023-05-29T19:36:34.210Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 35%]
[2023-05-29T19:36:41.348Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 37%]
[2023-05-29T19:40:16.493Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 42%]
[2023-05-29T19:41:32.910Z] .............                                                            [ 47%]
[2023-05-29T19:41:36.239Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 49%]
[2023-05-29T19:41:38.843Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 52%]
[2023-05-29T19:42:04.431Z] .................                                                        [ 58%]
[2023-05-29T19:42:11.932Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb .....           [ 60%]
[2023-05-29T19:42:13.324Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 60%]
[2023-05-29T19:43:25.762Z] ......FFF                                                                [ 64%]
[2023-05-29T19:43:30.014Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 68%]
[2023-05-29T19:43:40.632Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 70%]
[2023-05-29T19:44:17.635Z] finch-master/docs/source/notebooks/subset.ipynb ....................ss.  [ 79%]
[2023-05-29T19:44:20.172Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 79%]
[2023-05-29T19:44:28.683Z] ......                                                                   [ 81%]
[2023-05-29T19:47:20.239Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 82%]
[2023-05-29T19:48:34.799Z] .............                                                            [ 86%]
[2023-05-29T19:48:52.926Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 87%]
[2023-05-29T19:51:22.014Z] ....s.                                                                   [ 89%]
[2023-05-29T19:51:32.039Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 89%]
[2023-05-29T19:51:38.172Z] ...                                                                      [ 91%]
[2023-05-29T19:51:56.310Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 91%]
[2023-05-29T19:52:23.607Z] ......                                                                   [ 93%]
[2023-05-29T19:52:27.058Z] notebooks/hummingbird.ipynb .......FFF..                                 [ 98%]
[2023-05-29T19:56:01.269Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-05-29T19:56:01.269Z] 
[2023-05-29T19:56:01.269Z] =================================== FAILURES ===================================
    
  

@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1579/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-126.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1138/

NOTEBOOK TEST RESULTS
    
[2023-05-29T19:29:32.810Z] ============================= test session starts ==============================
[2023-05-29T19:29:32.810Z] platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
[2023-05-29T19:29:32.810Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master@3
[2023-05-29T19:29:32.810Z] plugins: anyio-3.6.2, dash-2.7.0, nbval-0.9.6, tornasync-0.6.0.post2
[2023-05-29T19:29:32.810Z] collected 268 items
[2023-05-29T19:29:32.810Z] 
[2023-05-29T19:29:41.751Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-05-29T19:29:55.946Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .......        [  6%]
[2023-05-29T19:30:11.924Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [  8%]
[2023-05-29T19:30:23.858Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 11%]
[2023-05-29T19:30:27.530Z] pavics-sdi-master/docs/source/notebooks/WPS_example.ipynb .......FFF     [ 15%]
[2023-05-29T19:39:51.298Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 20%]
[2023-05-29T19:39:51.298Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 20%]
[2023-05-29T19:39:51.298Z] ...............                                                          [ 26%]
[2023-05-29T19:39:58.018Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-05-29T19:40:06.247Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-05-29T19:40:25.167Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-05-29T19:40:26.559Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 32%]
[2023-05-29T19:40:32.426Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 35%]
[2023-05-29T19:40:39.652Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 37%]
[2023-05-29T19:43:27.234Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 42%]
[2023-05-29T19:44:50.698Z] .............                                                            [ 47%]
[2023-05-29T19:44:56.802Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 49%]
[2023-05-29T19:45:00.193Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 52%]
[2023-05-29T19:45:38.779Z] .................                                                        [ 58%]
[2023-05-29T19:45:45.237Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb .....           [ 60%]
[2023-05-29T19:45:47.156Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 60%]
[2023-05-29T19:46:59.380Z] ......FFF                                                                [ 64%]
[2023-05-29T19:47:02.465Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 68%]
[2023-05-29T19:47:13.989Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 70%]
[2023-05-29T19:48:05.789Z] finch-master/docs/source/notebooks/subset.ipynb ....................ss.  [ 79%]
[2023-05-29T19:48:08.337Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 79%]
[2023-05-29T19:48:19.149Z] ......                                                                   [ 81%]
[2023-05-29T19:50:40.703Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 82%]
[2023-05-29T19:51:27.921Z] .............                                                            [ 86%]
[2023-05-29T19:51:42.858Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 87%]
[2023-05-29T19:54:10.536Z] ....s.                                                                   [ 89%]
[2023-05-29T19:54:20.529Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 89%]
[2023-05-29T19:54:25.640Z] ...                                                                      [ 91%]
[2023-05-29T19:54:43.748Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 91%]
[2023-05-29T19:55:12.420Z] ......                                                                   [ 93%]
[2023-05-29T19:55:15.857Z] notebooks/hummingbird.ipynb .......FFF..                                 [ 98%]
[2023-05-29T19:58:50.060Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-05-29T19:58:50.060Z] 
[2023-05-29T19:58:50.060Z] =================================== FAILURES ===================================
    
  

@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1581/
Result : success

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-101.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1139/

NOTEBOOK TEST RESULTS
    
[2023-05-30T13:35:05.722Z] ============================= test session starts ==============================
[2023-05-30T13:35:05.723Z] platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
[2023-05-30T13:35:05.723Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master
[2023-05-30T13:35:05.723Z] plugins: anyio-3.6.2, dash-2.7.0, nbval-0.9.6, tornasync-0.6.0.post2
[2023-05-30T13:35:05.723Z] collected 268 items
[2023-05-30T13:35:05.723Z] 
[2023-05-30T13:35:14.720Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-05-30T13:35:23.956Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .......        [  6%]
[2023-05-30T13:35:32.368Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [  8%]
[2023-05-30T13:35:38.348Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 11%]
[2023-05-30T13:35:41.197Z] pavics-sdi-master/docs/source/notebooks/WPS_example.ipynb ..........     [ 15%]
[2023-05-30T13:43:42.087Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 20%]
[2023-05-30T13:43:42.088Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 20%]
[2023-05-30T13:43:42.088Z] ...............                                                          [ 26%]
[2023-05-30T13:43:46.878Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-05-30T13:43:54.463Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-05-30T13:44:11.506Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-05-30T13:44:12.899Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 32%]
[2023-05-30T13:44:17.615Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 35%]
[2023-05-30T13:44:24.216Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 37%]
[2023-05-30T13:47:52.310Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 42%]
[2023-05-30T13:49:07.264Z] .............                                                            [ 47%]
[2023-05-30T13:49:11.475Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 49%]
[2023-05-30T13:49:14.086Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 52%]
[2023-05-30T13:49:36.179Z] .................                                                        [ 58%]
[2023-05-30T13:49:42.032Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb .....           [ 60%]
[2023-05-30T13:49:43.423Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 60%]
[2023-05-30T13:49:53.641Z] .........                                                                [ 64%]
[2023-05-30T13:50:06.234Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 68%]
[2023-05-30T13:50:16.531Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 70%]
[2023-05-30T13:50:48.399Z] finch-master/docs/source/notebooks/subset.ipynb ....................ss.  [ 79%]
[2023-05-30T13:50:50.320Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 79%]
[2023-05-30T13:50:54.694Z] ......                                                                   [ 81%]
[2023-05-30T13:51:41.428Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 82%]
[2023-05-30T13:52:00.312Z] .............                                                            [ 86%]
[2023-05-30T13:52:10.314Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 87%]
[2023-05-30T13:53:12.190Z] ....s.                                                                   [ 89%]
[2023-05-30T13:53:20.352Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 89%]
[2023-05-30T13:53:26.742Z] ...                                                                      [ 91%]
[2023-05-30T13:53:41.691Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 91%]
[2023-05-30T13:54:08.997Z] ......                                                                   [ 93%]
[2023-05-30T13:54:11.320Z] notebooks/hummingbird.ipynb ............                                 [ 98%]
[2023-05-30T13:57:46.097Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-05-30T13:57:46.097Z] 
[2023-05-30T13:57:46.097Z] ================= 265 passed, 3 skipped in 1356.47s (0:22:36) ==================
    
  

Copy link
Collaborator

@fmigneault fmigneault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 2 to 22
grafana:
url: http://grafana:3000
title: Grafana
public: true
c4i: false
type: api
sync_type: api
prometheus:
url: http://prometheus:9090
title: Prometheus
public: true
c4i: false
type: api
sync_type: api
alertmanager:
url: http://alertmanager:9093
title: AlertManager
public: true
c4i: false
type: api
sync_type: api
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious if this works (UI-wise, everything responds/reacts correctly)?
Have you tried validating access to those endpoints?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of yesterday, no ...I was still working on it but everything should be working now. I'm not too familiar with what these pages should necessarily look like so if @tlvu can take a look and let me know if anything looks off, I'd appreciate it.

url: http://${PAVICS_FQDN}:8083/twitcher/ows/proxy/thredds
url: http://thredds:8080/twitcher/ows/proxy/thredds
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will need to check with @tlvu.

There was an issue regarding THREDDS that needed the full ${PAVICS_FQDN_PUBLIC}${TWITCHER_PROTECTED_PATH} to be defined as Magpie's URL so that Twitcher could redirect in the right location. Not sure if this impacts the catalog browsing/listing/access or not.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually didn't even mean to make this change since catalog is being deprecated. It must have slipped in from the cherry-pick from the other branch.

I'm ok to either revert this change or leave it as is (since catalog is deprecated)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it works with thredds:8080, then it is better to change it.
It is guaranteed to fail with ${PAVICS_FQDN}:8083 after changes are applied.

proxy_pass http://${PAVICS_FQDN}:8087;
proxy_pass http://geoserver:8080/geoserver/;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That bypasses the whole Magpie/Twitcher auth. It should be adjusted to use the protected proxy location while we are modifying this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I didn't make any changes to which services were behind twitcher in this PR. As we discussed in #328 that feels like a change that should happen in a different PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the monitoring routes were an exception to that rule since putting those behind twitcher was the only way I could think to not expose the monitoring ports and still protect those routes.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It's ok if done through a subsequent PR. I just want to make sure we don't forget about it.

Copy link
Collaborator

@fmigneault fmigneault Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To Do: #333

proxy_pass http://${PAVICS_FQDN}:8800/jupyter/;
proxy_pass http://jupyterhub:8000/jupyter/;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bypasses the Magpie/Twitcher auth.
Is JupyterHub sufficient by itself to form the Magpie login through the UI?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes jupyter can handle its own authentication by communicating with magpie directly. I'd love to figure out how to put jupyterhub behind twitcher eventually but I spent a few days trying to figure it out and didn't come up with a good solution so I put it back on the to-do list for later.

(also, I didn't make any changes to which services are behind twitcher in this PR, see my comment above)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To Do: #334

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bypasses the Magpie/Twitcher auth.

@fmigneault FYI Jupyter has never been behind Twitcher since day one, it has its own authentication.

proxy_pass http://${PAVICS_FQDN}:9000/;
proxy_pass http://portainer:9000/;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bypasses Magpie/Twitcher auth.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.... portainer does manage its own authorization so this is not necessarily insecure but we could make it more secure by putting it behind twitcher as well. I'd be open to double-protecting portainer since its such a powerful tool.

(also, I didn't make any changes to which services are behind twitcher in this PR, see my comment above)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To Do: #335

birdhouse/config/proxy/default.env Outdated Show resolved Hide resolved
CHANGES.md Show resolved Hide resolved
@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1589/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-90.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1143/

NOTEBOOK TEST RESULTS
    
[2023-05-31T14:44:19.614Z] ============================= test session starts ==============================
[2023-05-31T14:44:19.614Z] platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
[2023-05-31T14:44:19.615Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master
[2023-05-31T14:44:19.615Z] plugins: anyio-3.6.2, dash-2.7.0, nbval-0.9.6, tornasync-0.6.0.post2
[2023-05-31T14:44:19.615Z] collected 268 items
[2023-05-31T14:44:19.615Z] 
[2023-05-31T14:44:28.600Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-05-31T14:44:37.168Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .......        [  6%]
[2023-05-31T14:44:45.032Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [  8%]
[2023-05-31T14:44:52.088Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 11%]
[2023-05-31T14:44:54.949Z] pavics-sdi-master/docs/source/notebooks/WPS_example.ipynb ..........     [ 15%]
[2023-05-31T14:53:12.544Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 20%]
[2023-05-31T14:53:12.544Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb F [ 20%]
[2023-05-31T14:53:12.544Z] FFFFFFFFFFFFFFF                                                          [ 26%]
[2023-05-31T14:53:14.730Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb F.FFF    [ 27%]
[2023-05-31T14:53:22.293Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-05-31T14:53:38.932Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-05-31T14:53:40.852Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 32%]
[2023-05-31T14:53:45.893Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 35%]
[2023-05-31T14:53:52.025Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 37%]
[2023-05-31T14:56:37.437Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 42%]
[2023-05-31T14:57:58.195Z] .............                                                            [ 47%]
[2023-05-31T14:58:01.772Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 49%]
[2023-05-31T14:58:04.004Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 52%]
[2023-05-31T14:58:25.115Z] .................                                                        [ 58%]
[2023-05-31T14:58:32.914Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb .....           [ 60%]
[2023-05-31T14:58:34.301Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 60%]
[2023-05-31T14:58:50.635Z] .........                                                                [ 64%]
[2023-05-31T14:59:00.640Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 68%]
[2023-05-31T14:59:11.520Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 70%]
[2023-05-31T14:59:43.423Z] finch-master/docs/source/notebooks/subset.ipynb ....................ss.  [ 79%]
[2023-05-31T14:59:45.333Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 79%]
[2023-05-31T14:59:49.468Z] ......                                                                   [ 81%]
[2023-05-31T15:00:28.215Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 82%]
[2023-05-31T15:00:54.864Z] .............                                                            [ 86%]
[2023-05-31T15:01:07.109Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 87%]
[2023-05-31T15:02:02.258Z] ....s.                                                                   [ 89%]
[2023-05-31T15:02:10.401Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 89%]
[2023-05-31T15:02:16.775Z] ...                                                                      [ 91%]
[2023-05-31T15:02:31.692Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 91%]
[2023-05-31T15:02:58.985Z] ......                                                                   [ 93%]
[2023-05-31T15:03:01.431Z] notebooks/hummingbird.ipynb ............                                 [ 98%]
[2023-05-31T15:06:35.929Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-05-31T15:06:35.929Z] 
[2023-05-31T15:06:35.929Z] =================================== FAILURES ===================================
    
  

@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1590/
Result : success

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-126.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1144/

NOTEBOOK TEST RESULTS
    
[2023-05-31T15:12:11.161Z] ============================= test session starts ==============================
[2023-05-31T15:12:11.161Z] platform linux -- Python 3.8.16, pytest-7.2.0, pluggy-1.0.0
[2023-05-31T15:12:11.161Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master@2
[2023-05-31T15:12:11.161Z] plugins: anyio-3.6.2, dash-2.7.0, nbval-0.9.6, tornasync-0.6.0.post2
[2023-05-31T15:12:11.161Z] collected 268 items
[2023-05-31T15:12:11.161Z] 
[2023-05-31T15:12:20.151Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-05-31T15:12:29.092Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .......        [  6%]
[2023-05-31T15:12:37.761Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [  8%]
[2023-05-31T15:12:44.501Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 11%]
[2023-05-31T15:12:47.519Z] pavics-sdi-master/docs/source/notebooks/WPS_example.ipynb ..........     [ 15%]
[2023-05-31T15:20:37.494Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 20%]
[2023-05-31T15:20:37.494Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 20%]
[2023-05-31T15:21:01.893Z] ...............                                                          [ 26%]
[2023-05-31T15:21:32.630Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-05-31T15:21:40.582Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-05-31T15:21:58.675Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-05-31T15:22:00.066Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 32%]
[2023-05-31T15:22:05.511Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 35%]
[2023-05-31T15:22:12.765Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 37%]
[2023-05-31T15:24:57.148Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 42%]
[2023-05-31T15:26:17.973Z] .............                                                            [ 47%]
[2023-05-31T15:26:21.743Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 49%]
[2023-05-31T15:26:24.068Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 52%]
[2023-05-31T15:26:46.748Z] .................                                                        [ 58%]
[2023-05-31T15:26:52.542Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb .....           [ 60%]
[2023-05-31T15:26:53.928Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 60%]
[2023-05-31T15:27:03.588Z] .........                                                                [ 64%]
[2023-05-31T15:27:16.221Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 68%]
[2023-05-31T15:27:26.378Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 70%]
[2023-05-31T15:27:57.088Z] finch-master/docs/source/notebooks/subset.ipynb ....................ss.  [ 79%]
[2023-05-31T15:27:58.488Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 79%]
[2023-05-31T15:28:02.979Z] ......                                                                   [ 81%]
[2023-05-31T15:28:49.730Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 82%]
[2023-05-31T15:29:12.977Z] .............                                                            [ 86%]
[2023-05-31T15:29:25.234Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 87%]
[2023-05-31T15:30:11.266Z] ....s.                                                                   [ 89%]
[2023-05-31T15:30:21.298Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 89%]
[2023-05-31T15:30:26.439Z] ...                                                                      [ 91%]
[2023-05-31T15:30:44.584Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 91%]
[2023-05-31T15:31:11.286Z] ......                                                                   [ 93%]
[2023-05-31T15:31:13.778Z] notebooks/hummingbird.ipynb ............                                 [ 98%]
[2023-05-31T15:34:48.528Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-05-31T15:34:48.528Z] 
[2023-05-31T15:34:48.528Z] ================= 265 passed, 3 skipped in 1349.09s (0:22:29) ==================
    
  

@tlvu
Copy link
Collaborator

tlvu commented Aug 8, 2023

@tlvu are you ok if we merge this one?

Let me try it again today. I had some trouble logging into Grafana last time but did not have time to investigate.

… prometheus and alertmanager

PAVICS_FQDN_PUBLIC is the prefered public hostname over PAVICS_FQDN
anyways.
@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1922/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-46.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1247/

NOTEBOOK TEST RESULTS
    
[2023-08-08T20:16:50.608Z] ============================= test session starts ==============================
[2023-08-08T20:16:50.608Z] platform linux -- Python 3.9.16, pytest-7.3.1, pluggy-1.0.0
[2023-08-08T20:16:50.608Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master
[2023-08-08T20:16:50.608Z] plugins: anyio-3.6.1, dash-2.10.0, nbval-0.9.6, tornasync-0.6.0.post2, xdist-3.3.1
[2023-08-08T20:16:50.609Z] collected 236 items
[2023-08-08T20:16:50.609Z] 
[2023-08-08T20:16:57.912Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-08-08T20:17:03.993Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .FFFFF.        [  7%]
[2023-08-08T20:17:14.097Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [ 10%]
[2023-08-08T20:17:23.113Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 13%]
[2023-08-08T20:25:16.159Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 18%]
[2023-08-08T20:25:18.703Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 19%]
[2023-08-08T20:25:28.914Z] ...............                                                          [ 25%]
[2023-08-08T20:25:39.363Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-08-08T20:25:46.037Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-08-08T20:26:02.321Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-08-08T20:26:03.713Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 33%]
[2023-08-08T20:26:12.320Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 36%]
[2023-08-08T20:26:16.820Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 38%]
[2023-08-08T20:30:09.133Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 44%]
[2023-08-08T20:31:27.711Z] .............                                                            [ 50%]
[2023-08-08T20:31:32.066Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 51%]
[2023-08-08T20:31:34.387Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 55%]
[2023-08-08T20:31:52.405Z] .................                                                        [ 62%]
[2023-08-08T20:32:00.515Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb ......          [ 64%]
[2023-08-08T20:32:01.909Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 65%]
[2023-08-08T20:32:11.008Z] .FFF.....                                                                [ 69%]
[2023-08-08T20:32:21.356Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 73%]
[2023-08-08T20:32:30.748Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 76%]
[2023-08-08T20:32:32.665Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 76%]
[2023-08-08T20:32:35.993Z] ......                                                                   [ 79%]
[2023-08-08T20:32:44.147Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 79%]
[2023-08-08T20:33:02.935Z] .............                                                            [ 85%]
[2023-08-08T20:33:15.202Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 85%]
[2023-08-08T20:33:54.998Z] ....s.                                                                   [ 88%]
[2023-08-08T20:34:03.167Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 88%]
[2023-08-08T20:34:18.687Z] ...                                                                      [ 89%]
[2023-08-08T20:34:33.596Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 90%]
[2023-08-08T20:34:57.471Z] ......                                                                   [ 92%]
[2023-08-08T20:35:00.208Z] notebooks/hummingbird.ipynb ............                                 [ 97%]
[2023-08-08T20:38:04.382Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-08-08T20:38:04.382Z] 
[2023-08-08T20:38:04.382Z] =================================== FAILURES ===================================
    
  

@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1923/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-69.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1248/

NOTEBOOK TEST RESULTS
    
[2023-08-08T21:01:15.671Z] ============================= test session starts ==============================
[2023-08-08T21:01:15.671Z] platform linux -- Python 3.9.16, pytest-7.3.1, pluggy-1.0.0
[2023-08-08T21:01:15.671Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master
[2023-08-08T21:01:15.671Z] plugins: anyio-3.6.1, dash-2.10.0, nbval-0.9.6, tornasync-0.6.0.post2, xdist-3.3.1
[2023-08-08T21:01:15.671Z] collected 236 items
[2023-08-08T21:01:15.671Z] 
[2023-08-08T21:01:23.864Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-08-08T21:01:28.737Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .FFFFF.        [  7%]
[2023-08-08T21:01:39.083Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [ 10%]
[2023-08-08T21:01:46.243Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 13%]
[2023-08-08T21:13:24.610Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 18%]
[2023-08-08T21:13:24.610Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 19%]
[2023-08-08T21:13:32.609Z] ...............                                                          [ 25%]
[2023-08-08T21:13:46.344Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-08-08T21:13:57.650Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-08-08T21:14:18.064Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-08-08T21:14:19.979Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 33%]
[2023-08-08T21:14:26.928Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 36%]
[2023-08-08T21:14:32.085Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 38%]
[2023-08-08T21:18:35.628Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 44%]
[2023-08-08T21:19:56.695Z] .............                                                            [ 50%]
[2023-08-08T21:20:01.641Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 51%]
[2023-08-08T21:20:04.250Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 55%]
[2023-08-08T21:20:24.181Z] .................                                                        [ 62%]
[2023-08-08T21:20:31.945Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb ......          [ 64%]
[2023-08-08T21:20:33.331Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 65%]
[2023-08-08T21:20:34.958Z] .FFFFFFFF                                                                [ 69%]
[2023-08-08T21:20:46.748Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 73%]
[2023-08-08T21:20:56.261Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 76%]
[2023-08-08T21:20:57.903Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 76%]
[2023-08-08T21:21:01.473Z] ......                                                                   [ 79%]
[2023-08-08T21:21:11.473Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 79%]
[2023-08-08T21:21:29.740Z] .............                                                            [ 85%]
[2023-08-08T21:21:41.984Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 85%]
[2023-08-08T21:22:26.310Z] ....s.                                                                   [ 88%]
[2023-08-08T21:22:36.309Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 88%]
[2023-08-08T21:22:51.840Z] ...                                                                      [ 89%]
[2023-08-08T21:23:06.738Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 90%]
[2023-08-08T21:23:34.276Z] ......                                                                   [ 92%]
[2023-08-08T21:23:37.272Z] notebooks/hummingbird.ipynb ............                                 [ 97%]
[2023-08-08T21:26:32.391Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-08-08T21:26:32.391Z] 
[2023-08-08T21:26:32.391Z] =================================== FAILURES ===================================
    
  

@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1924/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-20.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1249/

NOTEBOOK TEST RESULTS
    
[2023-08-08T21:07:08.875Z] ============================= test session starts ==============================
[2023-08-08T21:07:08.875Z] platform linux -- Python 3.9.16, pytest-7.3.1, pluggy-1.0.0
[2023-08-08T21:07:08.875Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master@2
[2023-08-08T21:07:08.875Z] plugins: anyio-3.6.1, dash-2.10.0, nbval-0.9.6, tornasync-0.6.0.post2, xdist-3.3.1
[2023-08-08T21:07:08.875Z] collected 236 items
[2023-08-08T21:07:08.875Z] 
[2023-08-08T21:07:17.564Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-08-08T21:07:23.421Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .FFFFF.        [  7%]
[2023-08-08T21:07:39.138Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [ 10%]
[2023-08-08T21:07:49.957Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 13%]
[2023-08-08T21:15:46.722Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 18%]
[2023-08-08T21:15:50.940Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 19%]
[2023-08-08T21:16:03.205Z] ...............                                                          [ 25%]
[2023-08-08T21:16:16.660Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-08-08T21:16:24.056Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-08-08T21:16:41.044Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-08-08T21:16:42.430Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 33%]
[2023-08-08T21:16:51.972Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 36%]
[2023-08-08T21:16:56.995Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 38%]
[2023-08-08T21:19:43.112Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 44%]
[2023-08-08T21:20:59.621Z] .............                                                            [ 50%]
[2023-08-08T21:21:04.837Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 51%]
[2023-08-08T21:21:07.462Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 55%]
[2023-08-08T21:21:26.662Z] .................                                                        [ 62%]
[2023-08-08T21:21:34.372Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb ......          [ 64%]
[2023-08-08T21:21:35.757Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 65%]
[2023-08-08T21:21:44.705Z] ..F......                                                                [ 69%]
[2023-08-08T21:21:55.563Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 73%]
[2023-08-08T21:22:05.577Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 76%]
[2023-08-08T21:22:07.491Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 76%]
[2023-08-08T21:22:11.312Z] ......                                                                   [ 79%]
[2023-08-08T21:22:21.325Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 79%]
[2023-08-08T21:22:40.813Z] .............                                                            [ 85%]
[2023-08-08T21:22:53.064Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 85%]
[2023-08-08T21:23:37.451Z] ....s.                                                                   [ 88%]
[2023-08-08T21:23:45.583Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 88%]
[2023-08-08T21:24:01.122Z] ...                                                                      [ 89%]
[2023-08-08T21:24:16.029Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 90%]
[2023-08-08T21:24:42.676Z] ......                                                                   [ 92%]
[2023-08-08T21:24:45.437Z] notebooks/hummingbird.ipynb ............                                 [ 97%]
[2023-08-08T21:27:46.579Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-08-08T21:27:46.579Z] 
[2023-08-08T21:27:46.579Z] =================================== FAILURES ===================================
    
  

@tlvu
Copy link
Collaborator

tlvu commented Aug 8, 2023

@mishaschwartz We have a problem. All the Grafana graphs are broken in this PR. I have ensured they worked properly before updating to this PR.

Screenshot from 2023-08-08 19-04-18

I honestly do not want to delay this PR longer since we have way too many opened already.

How about you undo only the part about Grafana, keeping Prometheus and Alertmanager, those are working fine. The rest is fine too.

Grafana happens to already have its own authentication so that's not unsecure, which is the spirit of this PR.

@tlvu
Copy link
Collaborator

tlvu commented Aug 9, 2023

I managed to find a fix for the Grafana dashboard but now I am losing stats for 4 of the graphs. It's as if Prometheus is unable to access node-exporter which make no sense since it is able to still get some stats from it.

I still think we might want to rollback the changes for all the monitoring components so we can merge this PR. I do not have time to look more into those broken 4 broken graphs (Load, Unused Disk Space, Available Memory, Disk I/O) currently.

Screenshot from 2023-08-08 23-39-12

@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1927/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-46.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1250/

NOTEBOOK TEST RESULTS
    
[2023-08-09T03:41:33.689Z] ============================= test session starts ==============================
[2023-08-09T03:41:33.689Z] platform linux -- Python 3.9.16, pytest-7.3.1, pluggy-1.0.0
[2023-08-09T03:41:33.689Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master
[2023-08-09T03:41:33.689Z] plugins: anyio-3.6.1, dash-2.10.0, nbval-0.9.6, tornasync-0.6.0.post2, xdist-3.3.1
[2023-08-09T03:41:33.689Z] collected 236 items
[2023-08-09T03:41:33.689Z] 
[2023-08-09T03:41:41.026Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-08-09T03:41:49.224Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .......        [  7%]
[2023-08-09T03:41:59.302Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [ 10%]
[2023-08-09T03:42:06.831Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 13%]
[2023-08-09T03:49:34.216Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 18%]
[2023-08-09T03:49:34.216Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 19%]
[2023-08-09T03:49:47.366Z] ...............                                                          [ 25%]
[2023-08-09T03:49:58.063Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-08-09T03:50:07.186Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-08-09T03:50:23.872Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-08-09T03:50:25.798Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 33%]
[2023-08-09T03:50:31.193Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 36%]
[2023-08-09T03:50:35.712Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 38%]
[2023-08-09T03:54:34.740Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 44%]
[2023-08-09T03:55:52.779Z] .............                                                            [ 50%]
[2023-08-09T03:55:55.890Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 51%]
[2023-08-09T03:55:58.107Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 55%]
[2023-08-09T03:56:15.931Z] .................                                                        [ 62%]
[2023-08-09T03:56:24.071Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb ......          [ 64%]
[2023-08-09T03:56:25.980Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 65%]
[2023-08-09T03:56:27.019Z] .FFFFFFFF                                                                [ 69%]
[2023-08-09T03:56:37.558Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 73%]
[2023-08-09T03:56:47.041Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 76%]
[2023-08-09T03:56:48.425Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 76%]
[2023-08-09T03:56:51.727Z] ......                                                                   [ 79%]
[2023-08-09T03:56:59.876Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 79%]
[2023-08-09T03:57:16.291Z] .............                                                            [ 85%]
[2023-08-09T03:57:28.532Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 85%]
[2023-08-09T03:58:10.631Z] ....s.                                                                   [ 88%]
[2023-08-09T03:58:18.761Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 88%]
[2023-08-09T03:58:34.308Z] ...                                                                      [ 89%]
[2023-08-09T03:58:49.213Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 90%]
[2023-08-09T03:59:13.710Z] ......                                                                   [ 92%]
[2023-08-09T03:59:16.682Z] notebooks/hummingbird.ipynb ............                                 [ 97%]
[2023-08-09T04:02:22.073Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-08-09T04:02:22.073Z] 
[2023-08-09T04:02:22.073Z] =================================== FAILURES ===================================
    
  

@mishaschwartz
Copy link
Collaborator Author

@tlvu this looks like a problem caused by the fact that the node-exporter container is on the host network:

  node-exporter:
    image: quay.io/prometheus/node-exporter:v1.0.0
    container_name: node-exporter
    volumes:
      - /:/host:ro,rslave
    network_mode: "host"
    pid: "host"
    command: --path.rootfs=/host
    restart: always

which makes it inaccessible to other containers (in this case it needs to be visible to prometheus). I'll make a fix for this

@tlvu
Copy link
Collaborator

tlvu commented Aug 9, 2023

this looks like a problem caused by the fact that the node-exporter container is on the host network:

Then this is even more weird because if prometheus is unable to access node-exporter completely, why only 4 graphs lose data? All the graphs in the top 2 rows should all lose data !!!

I vaguely remember node-exporter needs to use the host networking because it needs to monitor the entire machine. Maybe a newer version has different way without using host networking.

@mishaschwartz
Copy link
Collaborator Author

Then this is even more weird because if prometheus is unable to access node-exporter completely, why only 4 graphs lose data? All the graphs in the top 2 rows should all lose data !!!

The data from cadvisor was always working, just the data from node-exporter was not accessible to prometheus.

See the fix here: d4ee23f

Unfortunately it means that this one port is available outside of the docker network (9100) but its a requirement of node-exporter and there's nothing we can do about that if we want to use it.

@mishaschwartz
Copy link
Collaborator Author

@tlvu Here is what my test machine's grafana looks like now:

image

@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1931/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-69.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1252/

NOTEBOOK TEST RESULTS
    
[2023-08-09T20:09:57.448Z] ============================= test session starts ==============================
[2023-08-09T20:09:57.448Z] platform linux -- Python 3.9.16, pytest-7.3.1, pluggy-1.0.0
[2023-08-09T20:09:57.448Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master
[2023-08-09T20:09:57.448Z] plugins: anyio-3.6.1, dash-2.10.0, nbval-0.9.6, tornasync-0.6.0.post2, xdist-3.3.1
[2023-08-09T20:09:57.448Z] collected 236 items
[2023-08-09T20:09:57.448Z] 
[2023-08-09T20:10:06.173Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-08-09T20:10:17.500Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .......        [  7%]
[2023-08-09T20:10:27.845Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [ 10%]
[2023-08-09T20:10:35.018Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ......FF       [ 13%]
[2023-08-09T20:18:23.059Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 18%]
[2023-08-09T20:18:25.603Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 19%]
[2023-08-09T20:18:35.330Z] ...............                                                          [ 25%]
[2023-08-09T20:18:45.493Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-08-09T20:18:53.735Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb ......            [ 30%]
[2023-08-09T20:19:11.403Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-08-09T20:19:12.810Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 33%]
[2023-08-09T20:19:20.498Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 36%]
[2023-08-09T20:19:25.278Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 38%]
[2023-08-09T20:23:56.659Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 44%]
[2023-08-09T20:25:17.372Z] .............                                                            [ 50%]
[2023-08-09T20:25:21.817Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 51%]
[2023-08-09T20:25:24.387Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 55%]
[2023-08-09T20:25:42.165Z] .................                                                        [ 62%]
[2023-08-09T20:25:49.895Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb ......          [ 64%]
[2023-08-09T20:25:51.285Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 65%]
[2023-08-09T20:26:06.832Z] ..F......                                                                [ 69%]
[2023-08-09T20:26:16.306Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 73%]
[2023-08-09T20:26:26.053Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 76%]
[2023-08-09T20:26:27.967Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 76%]
[2023-08-09T20:26:31.314Z] ......                                                                   [ 79%]
[2023-08-09T20:26:39.443Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 79%]
[2023-08-09T20:26:59.696Z] .............                                                            [ 85%]
[2023-08-09T20:27:09.699Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 85%]
[2023-08-09T20:27:50.457Z] ....s.                                                                   [ 88%]
[2023-08-09T20:27:58.620Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 88%]
[2023-08-09T20:28:13.406Z] ...                                                                      [ 89%]
[2023-08-09T20:28:28.359Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 90%]
[2023-08-09T20:28:53.899Z] ......                                                                   [ 92%]
[2023-08-09T20:28:56.584Z] notebooks/hummingbird.ipynb ............                                 [ 97%]
[2023-08-09T20:32:00.807Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-08-09T20:32:00.807Z] 
[2023-08-09T20:32:00.807Z] =================================== FAILURES ===================================
    
  

@tlvu
Copy link
Collaborator

tlvu commented Aug 9, 2023

@mishaschwartz thanks for finding this. I confirm your fix worked on my side as well.

Screenshot from 2023-08-09 17-05-15

Copy link
Collaborator

@tlvu tlvu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good for me, just a little update needed for the changelog.

Merge away when ready.

- Do not expose additional ports:
- Docker compose no longer exposes any container ports outside the default network except for ports 80 and 443 from
the proxy container. This ensures that ports that are not intended for external access are not exposed to the wider
internet even if firewall rules are not set correctly.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a note that node-exporter bind on host networking so its port is also exposed.

@crim-jenkins-bot
Copy link
Collaborator

E2E Test Results

DACCS-iac Pipeline Results

Build URL : http://daccs-jenkins.crim.ca:80/job/DACCS-iac-birdhouse/1933/
Result : failure

BIRDHOUSE_DEPLOY_BRANCH : remove-external-ports
DACCS_CONFIGS_BRANCH : master
PAVICS_E2E_WORKFLOW_TESTS_BRANCH : master
PAVICS_SDI_BRANCH : master

DESTROY_INFRA_ON_EXIT : true
PAVICS_HOST : https://host-140-69.rdext.crim.ca

PAVICS-e2e-workflow-tests Pipeline Results

Tests URL : http://daccs-jenkins.crim.ca:80/job/PAVICS-e2e-workflow-tests/job/master/1253/

NOTEBOOK TEST RESULTS
    
[2023-08-10T13:09:48.770Z] ============================= test session starts ==============================
[2023-08-10T13:09:48.770Z] platform linux -- Python 3.9.16, pytest-7.3.1, pluggy-1.0.0
[2023-08-10T13:09:48.770Z] rootdir: /home/jenkins/agent/workspace/PAVICS-e2e-workflow-tests_master
[2023-08-10T13:09:48.770Z] plugins: anyio-3.6.1, dash-2.10.0, nbval-0.9.6, tornasync-0.6.0.post2, xdist-3.3.1
[2023-08-10T13:09:48.770Z] collected 236 items
[2023-08-10T13:09:48.770Z] 
[2023-08-10T13:09:56.290Z] notebooks-auth/test_thredds.ipynb ...........                            [  4%]
[2023-08-10T13:10:05.994Z] pavics-sdi-master/docs/source/notebooks/WCS_example.ipynb .......        [  7%]
[2023-08-10T13:10:16.444Z] pavics-sdi-master/docs/source/notebooks/WFS_example.ipynb ......         [ 10%]
[2023-08-10T13:10:27.209Z] pavics-sdi-master/docs/source/notebooks/WMS_example.ipynb ........       [ 13%]
[2023-08-10T13:18:27.065Z] pavics-sdi-master/docs/source/notebooks/climex.ipynb ............        [ 18%]
[2023-08-10T13:18:27.065Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-climate-stations.ipynb . [ 19%]
[2023-08-10T13:18:32.241Z] ...............                                                          [ 25%]
[2023-08-10T13:18:42.416Z] pavics-sdi-master/docs/source/notebooks/eccc-geoapi-xclim.ipynb .....    [ 27%]
[2023-08-10T13:18:47.247Z] pavics-sdi-master/docs/source/notebooks/esgf-dap.ipynb FFFFFF            [ 30%]
[2023-08-10T13:19:04.418Z] pavics-sdi-master/docs/source/notebooks/forecasts.ipynb ......           [ 32%]
[2023-08-10T13:19:05.808Z] pavics-sdi-master/docs/source/notebooks/jupyter_extensions.ipynb .       [ 33%]
[2023-08-10T13:19:14.460Z] pavics-sdi-master/docs/source/notebooks/opendap.ipynb .......            [ 36%]
[2023-08-10T13:19:19.224Z] pavics-sdi-master/docs/source/notebooks/pavics_thredds.ipynb .....       [ 38%]
[2023-08-10T13:23:05.403Z] pavics-sdi-master/docs/source/notebooks/regridding.ipynb ............... [ 44%]
[2023-08-10T13:24:25.259Z] .............                                                            [ 50%]
[2023-08-10T13:24:29.987Z] pavics-sdi-master/docs/source/notebooks/rendering.ipynb ....             [ 51%]
[2023-08-10T13:24:32.324Z] pavics-sdi-master/docs/source/notebooks/subset-user-input.ipynb ........ [ 55%]
[2023-08-10T13:24:49.079Z] .................                                                        [ 62%]
[2023-08-10T13:24:57.169Z] pavics-sdi-master/docs/source/notebooks/subsetting.ipynb ......          [ 64%]
[2023-08-10T13:24:58.552Z] pavics-sdi-master/docs/source/notebook-components/weaver_example.ipynb . [ 65%]
[2023-08-10T13:25:13.812Z] ..F......                                                                [ 69%]
[2023-08-10T13:25:23.546Z] finch-master/docs/source/notebooks/dap_subset.ipynb ...........          [ 73%]
[2023-08-10T13:25:33.061Z] finch-master/docs/source/notebooks/finch-usage.ipynb ......              [ 76%]
[2023-08-10T13:25:34.982Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-1DataAccess.ipynb . [ 76%]
[2023-08-10T13:25:38.047Z] ......                                                                   [ 79%]
[2023-08-10T13:25:46.193Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-2Subsetting.ipynb . [ 79%]
[2023-08-10T13:26:01.719Z] .............                                                            [ 85%]
[2023-08-10T13:26:13.963Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-3Climate-Indicators.ipynb . [ 85%]
[2023-08-10T13:26:52.777Z] ....s.                                                                   [ 88%]
[2023-08-10T13:27:00.910Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-4Ensembles.ipynb . [ 88%]
[2023-08-10T13:27:16.453Z] ...                                                                      [ 89%]
[2023-08-10T13:27:31.390Z] PAVICS-landing-master/content/notebooks/climate_indicators/PAVICStutorial_ClimateDataAnalysis-5Visualization.ipynb . [ 90%]
[2023-08-10T13:27:58.088Z] ......                                                                   [ 92%]
[2023-08-10T13:28:00.772Z] notebooks/hummingbird.ipynb ............                                 [ 97%]
[2023-08-10T13:30:55.463Z] notebooks/stress-tests.ipynb .....                                       [100%]
[2023-08-10T13:30:55.463Z] 
[2023-08-10T13:30:55.463Z] =================================== FAILURES ===================================
    
  

@tlvu
Copy link
Collaborator

tlvu commented Aug 10, 2023

Forgot to say, please bump minor and not patch on this one since anyone relying on those open ports internally will have to change their habit/scripts.

@mishaschwartz
Copy link
Collaborator Author

@tlvu I don't want to merge this yet because it will mess up the order unless the version is correctly bumped from #297.
@matprov can we please resolve that soon? If you don't have time let me know and I will do it.

@matprov
Copy link
Collaborator

matprov commented Aug 10, 2023

can we please resolve that soon? If you don't have time let me know and I will do it.

@mishaschwartz Yes please, I would appreciate if you could bump it. I've seen the request related to the bump but I won't be able to work on DACCS until next week. Thanks a lot

@mishaschwartz
Copy link
Collaborator Author

@matprov no worries. All done #364

@matprov
Copy link
Collaborator

matprov commented Aug 10, 2023

Thanks @mishaschwartz !

@mishaschwartz mishaschwartz merged commit 134dc8a into master Aug 10, 2023
3 checks passed
@mishaschwartz mishaschwartz deleted the remove-external-ports branch August 10, 2023 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/operations Continuous Integration components ci/tests Issues or changes related to tests scripts component/geoserver Related to GeoServer or one of its underlying services component/jupyterhub Related to JupyterHub as development frontend with notebooks component/magpie Related to https://github.com/Ouranosinc/Magpie component/THREDDS Features or components related to THREDDS component/twitcher Related to https://github.com/bird-house/twitcher component/weaver Related to https://github.com/crim-ca/weaver documentation Improvements or additions to documentation feature/WPS Feature or service related to Web Processing Service security Issues or features related to security concerns
Projects
None yet
Development

Successfully merging this pull request may close these issues.

💡 [Feature] Protected ports by design
5 participants