Development #56079
erreur task bijoe : import-wcs-data script
0%
Description
Suite à des changements récents wcs-olap/bijoe (#56040) il n'y a plus de script import-wcs-data.sh
Résultat :
TASK [bijoe : import-wcs-data script] ****************************************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option fatal: [localhost]: FAILED! => {"changed": false, "msg": "Could not find or access '/home/testuser/src/bijoe/debian/import-wcs-data.sh' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"} to retry, use: --limit @/opt/publik-devinst/install.retry
Comme c'est géré depuis le processus uwsgi peut-être est-ce suffisant de retirer cette tâche. (je n'ai pas regardé attentivement).
Fichiers
Révisions associées
bijoe: add WCS_OLA_COMMAND to settings (#56079)
Historique
Mis à jour par Thomas Noël il y a plus de 2 ans
- Fichier 0001-bijoe-remove-import-wcs-data-installation-it-does-no.patch 0001-bijoe-remove-import-wcs-data-installation-it-does-no.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Le script import-wcs-data était juste posé dans le bin du virtualenv, aucune exécution automatique/régulière par ailleurs.
Ce patche retire donc juste cette installation et voilà.
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Statut changé de Solution proposée à En cours
Tant qu'on en est à parler de ça, il faudrait aussi intégrer cette modification pour que le cron uwsgi fonctionne :
diff --git a/roles/app-setup/templates/bijoe-settings.j2 b/roles/app-setup/templates/bijoe-settings.j2 index f356aa5..e1cac01 100644 --- a/roles/app-setup/templates/bijoe-settings.j2 +++ b/roles/app-setup/templates/bijoe-settings.j2 @@ -21,6 +21,8 @@ MELLON_USERNAME_TEMPLATE = '{attributes[name_id_content]}' MELLON_IDENTITY_PROVIDERS = [] +WCS_OLAP_COMMAND = '{{ virtualenv }}/bin/wcs-olap' + # Override default hobo agent INSTALLED_APPS = ('bijoe.hobo_agent',) + INSTALLED_APPS {% endblock %}
Par contre je ne suis pas certain de la présence de la variable virtualenv dans le template, je vais tester.
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Fichier 0002-bijoe-add-WCS_OLA_COMMAND-to-settings-56079.patch 0002-bijoe-add-WCS_OLA_COMMAND-to-settings-56079.patch ajouté
- Fichier 0001-bijoe-remove-import-wcs-data-installation-it-does-no.patch 0001-bijoe-remove-import-wcs-data-installation-it-does-no.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de En cours à Solution proposée
Voilà c'est testé avec les deux changements.
Mis à jour par Thomas Noël il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
Nickel
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit f68b0f45e3ab42408a61a75d878fdb16642c1d76 Author: Benjamin Dauvergne <bdauvergne@entrouvert.com> Date: Tue Aug 10 15:47:03 2021 +0200 bijoe: add WCS_OLA_COMMAND to settings (#56079) commit a85f4e46210f1ca9662ef6d818869f588f85ec32 Author: Thomas NOEL <tnoel@entrouvert.com> Date: Tue Aug 10 10:55:43 2021 +0200 bijoe: remove import-wcs-data installation, it does not exist anymore (#56079)
Mis à jour par Emmanuel Cazenave il y a plus de 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
bijoe: remove import-wcs-data installation, it does not exist anymore (#56079)