After updating OS from ubuntu 20 to 22 and all apt packages @tomuben observed failing tests.
In joint analysis with @ckunki we could not find any explanation why these tests could have been successful before.
The tests are examining files in /home/jupyter and obviously some of the files can only be read by user jupyter, which is OK from product-perspective IMHO. Though, we could think about relaxing the permissions.
In order to make these tests succeed, we changed the tests to user jupyter, especially in docker exec.
After updating OS from ubuntu 20 to 22 and all apt packages @tomuben observed failing tests. In joint analysis with @ckunki we could not find any explanation why these tests could have been successful before.
The tests are examining files in
/home/jupyter
and obviously some of the files can only be read by userjupyter
, which is OK from product-perspective IMHO. Though, we could think about relaxing the permissions.In order to make these tests succeed, we changed the tests to user
jupyter
, especially indocker exec
.ubuntu
with role ansible_access.general_setup_tasks.yml
docker_user
.ubuntu
as the default user for the Docker image.Modified tests and accessed files:
test_import_notebook_connector
:/home/jupyter/jupyterenv/bin/python
test_install_notebooks
:/home/jupyter/notebooks
test_docker_socket_access
:docker ps
This only applies for the examination within the tests - the creation of the files (production code) remains unchanged.
The current ticket requests to
Owners and permissions for
exasol/ai-lab:2.0.0
Result
Apparently from version 20 to 22 ubuntu changed the default permissions for home directories:
See also
Note: This deviates from official documentation.
Rating
This perfectly explains our observations and tests results.