Tâche #29563
Distribution EOLE - Scénario #29849: Traitement express MEN (16-18)
lxc-attach ne renvoie pas le code d'erreur de la commande exécutée sur Ubuntu 20.04
Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
Début:
23/03/2020
Echéance:
10/04/2020
% réalisé:
100%
Restant à faire (heures):
0.0
Description
Je vais ouvrir un signalement sur Launchpad, le pb est déjà fixé :
Demandes liées
Révisions associées
workaround lxc-attach return code problem
Ref: #29563
postservice/30-eole-workstation-manager : cosmetic fix
Ref: #29563
Revert "workaround lxc-attach return code problem"
This reverts commit ec0d688d11ffc4afb42c7e8aded4e751923c5370.
Ref: #29563
Historique
#1 Mis à jour par Joël Cuissinat il y a environ 4 ans
root@scribe:~# lxc-start --version 3.0.4 root@scribe:~# lxc-attach --logpriority=DEBUG --name=addc -- exit lxc-attach: addc: attach.c: lxc_attach_run_command: 1489 No such file or directory - Failed to exec "exit" root@scribe:~# echo $? 0
=> https://bugs.launchpad.net/debian/+source/lxc/+bug/1861880
#2 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Tâche parente changé de #29463 à #29566
#3 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Tâche parente changé de #29566 à #29652
#4 Mis à jour par Joël Cuissinat il y a environ 4 ans
Cela n'a pas l'air prêt d'être corrigé !
Je propose d'appliquer un contournement sur ce bout de code en attendant...
00:20:50.291 run-parts: executing /usr/share/eole/postservice/30-eole-workstation-manager instance 00:20:50.291 Résolution du nom d'hôte "salt" en 192.168.0.26 : Record added successfully 00:20:56.307 Mise en conformité de l’utilisateur 'eole-workstation-manager'... 00:20:56.307 ERROR: Failed to set expiry for user 'eole-workstation-manager': Unable to find user "(&(objectClass=user)(sAMAccountName=eole-workstation-manager))" 00:20:56.307 ERROR(exception): Failed to add members "eole-workstation-manager" to group "Domain Admins" - Unable to find "eole-workstation-manager". Operation cancelled. 00:20:56.307 File "/usr/lib/python3/dist-packages/samba/netcmd/group.py", line 245, in run 00:20:56.307 samdb.add_remove_group_members(groupname, groupmembers, 00:20:56.307 File "/usr/lib/python3/dist-packages/samba/samdb.py", line 305, in add_remove_group_members 00:20:56.307 raise Exception('Unable to find "%s". Operation cancelled.' % member) 00:20:56.307 ERROR: Failed to set password for user 'eole-workstation-manager': Unable to find user "eole-workstation-manager" 00:20:56.307 Mise en conformité de l’utilisateur 'eole-workstation-reader'... 00:20:56.307 ERROR: Failed to set expiry for user 'eole-workstation-reader': Unable to find user "(&(objectClass=user)(sAMAccountName=eole-workstation-reader))" 00:20:56.307 ERROR: Failed to set password for user 'eole-workstation-reader': Unable to find user "eole-workstation-reader"
#5 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Release mis à EOLE 2.8.0
#6 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Tâche parente
#29652supprimé
#7 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Tracker changé de Tâche à Scénario
- Version cible
sprint 2020 10-12 Equipe MENSRsupprimé - Début
04/02/2020supprimé
#8 Mis à jour par Gilles Grandgérard il y a environ 4 ans
voir Fix commited ce jour : https://bugs.launchpad.net/bugs/1861880
#9 Mis à jour par Gilles Grandgérard il y a environ 4 ans
- Echéance mis à 10/04/2020
- Version cible mis à sprint 2020 13-15 Equipe MENSR
- Début mis à 23/03/2020
#10 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Assigné à mis à Joël Cuissinat
- Points de scénarios mis à 1.0
#11 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Projet changé de Distribution EOLE à eole-workstation
#12 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Tâche parente mis à #29849
#13 Mis à jour par Joël Cuissinat il y a environ 4 ans
C'est effectivement résolu, on peut enlever mon contournement :
root@scribe:~# lxc-start --version 4.0.1 root@scribe:~# lxc-attach --logpriority=DEBUG --name=addc -- exit lxc-attach: addc: attach.c: lxc_attach_run_command: 1452 No such file or directory - Failed to exec "exit" root@scribe:~# echo $? 127
#14 Mis à jour par Joël Cuissinat il y a environ 4 ans
- Statut changé de Nouveau à Résolu
- % réalisé changé de 0 à 100
#15 Mis à jour par Joël Cuissinat il y a presque 4 ans
- Statut changé de Résolu à Fermé
- Restant à faire (heures) mis à 0.0
#16 Mis à jour par Joël Cuissinat il y a plus de 3 ans
- Lié à Tâche #30698: eole-workstation : message inquiétant au reconfigure en 2.7.2 ajouté