Project

General

Profile

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

Added by Joël Cuissinat over 1 year ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/23/2020
Due date:
04/10/2020
% Done:

100%

Remaining (hours):
0.0

Description

Je vais ouvrir un signalement sur Launchpad, le pb est déjà fixé :

Related issues

Related to Distribution EOLE - Tâche #30698: eole-workstation : message inquiétant au reconfigure en 2.7.2 Fermé 09/24/2020

Associated revisions

Revision ec0d688d (diff)
Added by Joël Cuissinat over 1 year ago

workaround lxc-attach return code problem

Ref: #29563

Revision 77141954 (diff)
Added by Joël Cuissinat over 1 year ago

postservice/30-eole-workstation-manager : cosmetic fix

Ref: #29563

Revision f8ac72f3 (diff)
Added by Joël Cuissinat over 1 year ago

Revert "workaround lxc-attach return code problem"

This reverts commit ec0d688d11ffc4afb42c7e8aded4e751923c5370.

Ref: #29563

History

#1 Updated by Joël Cuissinat over 1 year ago

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 Updated by Joël Cuissinat over 1 year ago

  • Parent task changed from #29463 to #29566

#3 Updated by Joël Cuissinat over 1 year ago

  • Parent task changed from #29566 to #29652

#4 Updated by Joël Cuissinat over 1 year ago

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 Updated by Joël Cuissinat over 1 year ago

  • Release set to EOLE 2.8.0

#6 Updated by Joël Cuissinat over 1 year ago

  • Parent task deleted (#29652)

#7 Updated by Joël Cuissinat over 1 year ago

  • Tracker changed from Tâche to Scénario
  • Target version deleted (sprint 2020 10-12 Equipe MENSR)
  • Start date deleted (02/04/2020)

#8 Updated by Gilles Grandgérard over 1 year ago

voir Fix commited ce jour : https://bugs.launchpad.net/bugs/1861880

#9 Updated by Gilles Grandgérard over 1 year ago

  • Due date set to 04/10/2020
  • Target version set to sprint 2020 13-15 Equipe MENSR
  • Start date set to 03/23/2020

#10 Updated by Joël Cuissinat over 1 year ago

  • Assigned To set to Joël Cuissinat
  • Story points set to 1.0

#11 Updated by Joël Cuissinat over 1 year ago

  • Project changed from Distribution EOLE to eole-workstation

#12 Updated by Joël Cuissinat over 1 year ago

  • Parent task set to #29849

#13 Updated by Joël Cuissinat over 1 year ago

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 Updated by Joël Cuissinat over 1 year ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#15 Updated by Joël Cuissinat over 1 year ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

#16 Updated by Joël Cuissinat 12 months ago

  • Related to Tâche #30698: eole-workstation : message inquiétant au reconfigure en 2.7.2 added

Also available in: Atom PDF