initial mirror scan should fully enable a mirror #59

Closed
poeml opened this Issue Jun 5, 2015 · 0 comments

1 participant

@poeml
Owner
                                                                                     [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue59

Title    initial mirror scan should fully enable a mirror
 Priority   wish             Status        resolved
Superseder                  Nosy List      poeml
Assigned To poeml           Keywords       scanner

msg227 (view) Author: poeml Date: 2010-09-06.09:59:35

After enabling a new mirror (mb scan -e), it is not really enabled, because it
first needs to be marked "online" by the (separately running) mirrorprobe. This is
something that new users frequently run into.

The mb scan command could mark the mirror online right away. The only reason not
to do so is to prevent harm from typos, and from the mirror going offline.

If the mirrorprobe is already configured to run every minute, it would disable a
broken URL soon anyway.

Users may miss to set up the mirrorprobe in general; but forcing them there by the
above situation is not really nice.

msg231 (view) Author: poeml Date: 2010-09-06.15:39:27

I have implemented auto-enable now.

Here's a console transcript showing the new functionality.

(#:~/mirrorbrain)- mb/mb.py disable ftp4
(root@mbwork)(1580/pts/3)(05:27pm:09/06/10)-
(#:~/mirrorbrain)- mb/mb.py show ftp4 | grep statusBaseur
statusBaseurl : False
(root@mbwork)(1581/pts/3)(05:27pm:09/06/10)-
(#:~/mirrorbrain)- mb/mb.py scan -e ftp4
Mon Sep 6 17:27:43 2010 ftp4.gwdg.de: starting
Mon Sep 6 17:27:43 2010 ftp4.gwdg.de: total files before scan: 1109
Mon Sep 6 17:27:44 2010 ftp4.gwdg.de: scanned 1109 files (1372/s) in 0s
Mon Sep 6 17:27:44 2010 ftp4.gwdg.de: files to be purged: 0
Mon Sep 6 17:27:44 2010 ftp4.gwdg.de: total files after scan: 1109
Mon Sep 6 17:27:44 2010 ftp4.gwdg.de: purged old files in 0s.
Mon Sep 6 17:27:44 2010 ftp4.gwdg.de: now enabled.
Mon Sep 6 17:27:44 2010 ftp4.gwdg.de: done.
Mon Sep 6 17:27:44 2010 ftp4.gwdg.de: testing status of base URL...
Mon Sep 6 17:27:44 2010 ftp4.gwdg.de: OK. Mirror is online now.
Completed in 1 seconds
(root@mbwork)(1582/pts/3)(05:27pm:09/06/10)-
(#:~/mirrorbrain)- mb/mb.py show ftp4 | grep statusBaseur
statusBaseurl : True

I think that this is the best path to go -- following the principle of least surprise.

Committed in r8116.
http://svn.mirrorbrain.org/viewvc/mirrorbrain?view=revision&revision=8116

Marking as resolved.

History
         Date         User  Action            Args
2010-09-06 15:39:27 poeml set    status: unread -> resolved
                                   messages: + msg231
2010-09-06 09:59:35 poeml create

(end of migrated issue)
@poeml poeml closed this Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment