Closed Peter9192 closed 4 years ago
Status update:
Main jupyterhub/lab environment switched over to ewatercycle conda environment. Need to
@sverhoeven this is as far as I got before my holidays. Unfortunately I didn't have time to do a clean installation of the VM and then test whether the upgrade works with this playbook. My current testing VM might be a bit polluted.
Also installed hymuse in conda, but running https://github.com/eWaterCycle/HyMUSE/blob/master/examples/heat/heat_example.py cause 2 python process using 100% cpu and no progress so had to cancel it.
This PR also fixes #50
Final steps before marking ready for review
esmvaltool --help
For any reviewer I would suggest to use the same steps at https://github.com/eWaterCycle/infra/pull/55#issuecomment-659312725 to test if everything works.
During provisioning a vagrant machine from nothing to this branch I noticed some issues. These could also popup during review or deployment to production. I fixed them as I went through the provisioning from scratch.
As a next step, I build the system on the master branch (with the exception of the culler), switched to the "47" branch, and ran ansible. It seems to be unhappy:
TASK [jupyter : grpc4bmi Docker images] ****************************************************************
failed: [vagrant.localhost] (item={'docker': 'ewatercycle/walrus-grpc4bmi', 'singularity': 'ewatercycle-walrus-grpc4bmi.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "ewatercycle/walrus-grpc4bmi", "singularity": "ewatercycle-walrus-grpc4bmi.sif"}, "msg": "Cannot have both the docker-py and docker python modules (old and new version of Docker SDK for Python) installed together as they use the same namespace and cause a corrupt installation. Please uninstall both packages, and re-install only the docker-py or docker python module (for vagrant.localhost's Python /usr/bin/python3). It is recommended to install the docker module if no support for Python 2.6 is required. Please note that simply uninstalling one of the modules can leave the other module in a broken state."}
failed: [vagrant.localhost] (item={'docker': 'ewatercycle/pcrg-grpc4bmi', 'singularity': 'ewatercycle-pcrg-grpc4bmi.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "ewatercycle/pcrg-grpc4bmi", "singularity": "ewatercycle-pcrg-grpc4bmi.sif"}, "msg": "Cannot have both the docker-py and docker python modules (old and new version of Docker SDK for Python) installed together as they use the same namespace and cause a corrupt installation. Please uninstall both packages, and re-install only the docker-py or docker python module (for vagrant.localhost's Python /usr/bin/python3). It is recommended to install the docker module if no support for Python 2.6 is required. Please note that simply uninstalling one of the modules can leave the other module in a broken state."}
failed: [vagrant.localhost] (item={'docker': 'ewatercycle/wflow-grpc4bmi', 'singularity': 'ewatercycle-wflow-grpc4bmi.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "ewatercycle/wflow-grpc4bmi", "singularity": "ewatercycle-wflow-grpc4bmi.sif"}, "msg": "Cannot have both the docker-py and docker python modules (old and new version of Docker SDK for Python) installed together as they use the same namespace and cause a corrupt installation. Please uninstall both packages, and re-install only the docker-py or docker python module (for vagrant.localhost's Python /usr/bin/python3). It is recommended to install the docker module if no support for Python 2.6 is required. Please note that simply uninstalling one of the modules can leave the other module in a broken state."}
failed: [vagrant.localhost] (item={'docker': 'sverhoeven/marrmot', 'singularity': 'marrmot.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "sverhoeven/marrmot", "singularity": "marrmot.sif"}, "msg": "Cannot have both the docker-py and docker python modules (old and new version of Docker SDK for Python) installed together as they use the same namespace and cause a corrupt installation. Please uninstall both packages, and re-install only the docker-py or docker python module (for vagrant.localhost's Python /usr/bin/python3). It is recommended to install the docker module if no support for Python 2.6 is required. Please note that simply uninstalling one of the modules can leave the other module in a broken state."}
failed: [vagrant.localhost] (item={'docker': 'ewatercycle/hype-grpc4bmi', 'singularity': 'ewatercycle-hype-grpc4bmi.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "ewatercycle/hype-grpc4bmi", "singularity": "ewatercycle-hype-grpc4bmi.sif"}, "msg": "Cannot have both the docker-py and docker python modules (old and new version of Docker SDK for Python) installed together as they use the same namespace and cause a corrupt installation. Please uninstall both packages, and re-install only the docker-py or docker python module (for vagrant.localhost's Python /usr/bin/python3). It is recommended to install the docker module if no support for Python 2.6 is required. Please note that simply uninstalling one of the modules can leave the other module in a broken state."}
Should I manually un-install it?
The previous task should have installed it, but it was in wrong Python and old package, corrected it in commits. Could you try again?
The previous task should have installed it, but it was in wrong Python and old package, corrected it in commits. Could you try again?
I tried again, new error :-)
TASK [jupyter : Docker Python package] *****************************************************************
ok: [vagrant.localhost]
TASK [jupyter : Remove old Docker-py python2 package] **************************************************
ok: [vagrant.localhost]
TASK [jupyter : Remove old Docker-py python3 package] **************************************************
ok: [vagrant.localhost]
TASK [jupyter : grpc4bmi Docker images] ****************************************************************
failed: [vagrant.localhost] (item={'docker': 'ewatercycle/walrus-grpc4bmi', 'singularity': 'ewatercycle-walrus-grpc4bmi.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "ewatercycle/walrus-grpc4bmi", "singularity": "ewatercycle-walrus-grpc4bmi.sif"}, "msg": "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on vagrant.localhost's Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: cannot import name '__version__'"}
failed: [vagrant.localhost] (item={'docker': 'ewatercycle/pcrg-grpc4bmi', 'singularity': 'ewatercycle-pcrg-grpc4bmi.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "ewatercycle/pcrg-grpc4bmi", "singularity": "ewatercycle-pcrg-grpc4bmi.sif"}, "msg": "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on vagrant.localhost's Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: cannot import name '__version__'"}
failed: [vagrant.localhost] (item={'docker': 'ewatercycle/wflow-grpc4bmi', 'singularity': 'ewatercycle-wflow-grpc4bmi.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "ewatercycle/wflow-grpc4bmi", "singularity": "ewatercycle-wflow-grpc4bmi.sif"}, "msg": "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on vagrant.localhost's Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: cannot import name '__version__'"}
failed: [vagrant.localhost] (item={'docker': 'sverhoeven/marrmot', 'singularity': 'marrmot.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "sverhoeven/marrmot", "singularity": "marrmot.sif"}, "msg": "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on vagrant.localhost's Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: cannot import name '__version__'"}
failed: [vagrant.localhost] (item={'docker': 'ewatercycle/hype-grpc4bmi', 'singularity': 'ewatercycle-hype-grpc4bmi.sif'}) => {"ansible_loop_var": "item", "changed": false, "item": {"docker": "ewatercycle/hype-grpc4bmi", "singularity": "ewatercycle-hype-grpc4bmi.sif"}, "msg": "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on vagrant.localhost's Python /usr/bin/python3. Please read module documentation and install in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: cannot import name '__version__'"}
For Walrun notebook FileNotFoundError: [Errno 2] No such file or directory: 'svn': 'svn'
Successfully provisioned server, all checks pass
ewatercycle/walrus-grpc4bmi:v0.2.0
Docker image and added only_use_cftime_datetimes=False
to num2date()bokeh.sampledata.download()
esmvaltool --help
Wow! Great job Stefan, still so much more for me to learn about this
closes #47