Project

General

Profile

Tâche #30607

Scénario #30419: Vérifier/corriger le fonctionnement du proxy sur Amon 2.8.0

Seul le dernier site à ne pas authentifier ajouté via l'EAD est présent dans les fichiers domaines_noauth_user générés

Added by Joël Cuissinat over 3 years ago. Updated over 3 years ago.

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

100%

Remaining (hours):
0.0

Description

Configuration générale => Cache et Authentification => Destinations
  • ajout "a.a"
    root@amon:~# cat /var/lib/eole/domaines_noauth_user;echo "--";cat /etc/squid/domaines_noauth_user;echo "--";cat /etc/guardian/common/domaines_noauth_user 
    
    .a.a
    --
    .a.a
    --
    a.a
    
  • ajout "b.b"
    root@amon:~# cat /var/lib/eole/domaines_noauth_user;echo "--";cat /etc/squid/domaines_noauth_user;echo "--";cat /etc/guardian/common/domaines_noauth_user 
    
    .a.a
    .b.b
    --
    .b.b
    --
    b.b
    

Associated revisions

Revision 4e6fe091 (diff)
Added by Benjamin Bohard over 3 years ago

Append to file while adding site to exception list.

Ref #30607

Revision 8cf5dd53 (diff)
Added by Benjamin Bohard over 3 years ago

Add end of line after deleting entries.

Ref #30607

Revision f5465bae (diff)
Added by Benjamin Bohard over 3 years ago

Add end of line after deleting entries to the right file.

Ref #30607

Revision 3248769f (diff)
Added by Benjamin Bohard over 3 years ago

Add end of line only if there are data in file.

Ref #30607

History

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

  • Status changed from Nouveau to En cours

#2 Updated by Joël Cuissinat over 3 years ago

  • Description updated (diff)
  • Assigned To set to Benjamin Bohard

#3 Updated by Joël Cuissinat over 3 years ago

  • Status changed from En cours to Nouveau

C'est mieux mais maintenant il y a une erreur lors de la suppression !

2020-09-11T11:24:56.149081+02:00 amon.etb1.lan ead-server[105883]: #011Traceback (most recent call last):
2020-09-11T11:24:56.149133+02:00 amon.etb1.lan ead-server[105883]: #011  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 321, in addCallback
2020-09-11T11:24:56.149165+02:00 amon.etb1.lan ead-server[105883]: #011    return self.addCallbacks(callback, callbackArgs=args,
2020-09-11T11:24:56.149195+02:00 amon.etb1.lan ead-server[105883]: #011  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 311, in addCallbacks
2020-09-11T11:24:56.149225+02:00 amon.etb1.lan ead-server[105883]: #011    self._runCallbacks()
2020-09-11T11:24:56.149254+02:00 amon.etb1.lan ead-server[105883]: #011  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
2020-09-11T11:24:56.149291+02:00 amon.etb1.lan ead-server[105883]: #011    current.result = callback(current.result, *args, **kw)
2020-09-11T11:24:56.149321+02:00 amon.etb1.lan ead-server[105883]: #011  File "/usr/share/ead2/backend/lib/execute_wrapper.py", line 18, in wrapper
2020-09-11T11:24:56.149362+02:00 amon.etb1.lan ead-server[105883]: #011    return func(self)
2020-09-11T11:24:56.149391+02:00 amon.etb1.lan ead-server[105883]: #011--- <exception caught here> ---
2020-09-11T11:24:56.149693+02:00 amon.etb1.lan ead-server[105883]: #011  File "/usr/share/ead2/backend/actions/amon/squid_list.py", line 200, in execute
2020-09-11T11:24:56.149729+02:00 amon.etb1.lan ead-server[105883]: #011    datas = self.valid_del(self.params['todel'][0].strip(),
2020-09-11T11:24:56.150260+02:00 amon.etb1.lan ead-server[105883]: #011  File "/usr/share/ead2/backend/actions/amon/squid_list.py", line 343, in valid_del
2020-09-11T11:24:56.150293+02:00 amon.etb1.lan ead-server[105883]: #011    del_site(sitename, _type)
2020-09-11T11:24:56.150325+02:00 amon.etb1.lan ead-server[105883]: #011  File "/usr/share/ead2/backend/actions/amon/squid_list.py", line 100, in del_site
2020-09-11T11:24:56.150355+02:00 amon.etb1.lan ead-server[105883]: #011    if del_entry('.%s' % site, _type):
2020-09-11T11:24:56.150725+02:00 amon.etb1.lan ead-server[105883]: #011  File "/usr/share/ead2/backend/actions/amon/squid_list.py", line 85, in del_entry
2020-09-11T11:24:56.150758+02:00 amon.etb1.lan ead-server[105883]: #011    entries_fd_squid.write('\n')
2020-09-11T11:24:56.150826+02:00 amon.etb1.lan ead-server[105883]: #011builtins.ValueError: I/O operation on closed file.

Je profite de cette validation pour rédiger un test squash : https://dev-eole.ac-dijon.fr/squash/test-cases/6898/info

#4 Updated by Joël Cuissinat over 3 years ago

  • Status changed from Nouveau to Fermé
  • % Done changed from 0 to 100
  • Remaining (hours) set to 0.0

OK avec les paquets : eole-ead 2.8.0-32

Also available in: Atom PDF