-
Notifications
You must be signed in to change notification settings - Fork 23
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
Enable import via vsicurl #482
Conversation
Is it possible to set something by the |
I guess it would be easy to add it here. But then it would be a breaking change for actinia, no? If the importer behaves differently. |
As a heads-up: /vsicurl/ uses (or at least may use) userfaultfd syscalls that will fail in a docker container, unless that capability is added to the container /service with seccomp / capadd. Ran into that recently myself and have not properly solved that yet, but currently looking for a good solution for our stack deployment... |
Interesting. When I tested it locally with vscode / docker dev setup, all went fine! Used mundialis/actinia:latest and started actinia as root user there. |
If we add a parameter which can be set but have not be added then it would not be a breaking change, or? |
The issue I encountered seems to be format dependent. I tested your Geotiff and that works fine for me too. NetCDF however, does not seem to work... So, in a docker container, this will fail: |
Issue confirmed also with
|
OK, how I plan to tackle the issue in our swarm deployment (actinia-swarm.yml) is to add permissions / capabilities like this:
And here with context...
With that addition /vsicurl/ works in docker also with netcdf... My knowledge of Unix system admin stuff does not go deep enough to know if there is an option to allow only userfaultfd. A web search produced this: |
Map pixel limit check needed:
|
|
This PR enables the user to import online raster resources via vsicurl via importer. In comparison to the current raster import it skips the
wget
step and passes the URL directly tor.import
.The vsicurl URL can directly be specified in the process chain:
Output before without vsicurl URL:
This is still possible. But now with vsicurl:
These changes were tested with superadmin and normal user. The users limits were decreased to show the effect. For only 1 allowed pixel, v.import runs through but then the next step fails with
"message": "AsyncProcessError: Region too large, set a coarser resolution to minimum nsres: 343448.918425 ewres: 343448.918425 [num_cells: 11781980]",
. This might be critical as a large image could do harm to a running actinia installation? What do you think @anikaweinmann @neteler ?With only one second allowed for calculation, actinia behaves as it should:
"message": "AsyncProcessTimeLimit: Time (1 seconds) exceeded to run executable r.import",
.