[Dovecot] Doveadm director flush/remove

Brandon Davidson brandond at uoregon.edu
Wed Jul 14 11:39:25 EEST 2010


I've got a couple more issues with the doveadm director interface:

1) If I use "doveadm director remove" to disable a host with active users,
the director seems to lose track of users mapped to that host. I guess I
would expect it to tear down any active sessions by killing the login
proxies, like I'd done 'doveadm direct add HOSTNAME 0 && doveadm director
flush HOSTNAME' before removing it? Here's what I see with an active open
connection:

[root at cc-popmap7 ~]# doveadm director status brandond
Current: 10.142.0.179 (expires 2010-07-14 01:26:14)
Hashed: 10.142.0.179
Initial config: 10.142.0.161
[root at cc-popmap7 ~]# doveadm director remove 10.142.0.179
[root at cc-popmap7 ~]# doveadm director status brandond
Current: not assigned
Hashed: 10.142.0.174
Initial config: 10.142.0.161


2) "doveadm director flush" returns the wrong usage:

[root at cc-popmap7 ~]# doveadm director flush
doveadm director remove [-a <director socket path>] <host>


3) "doveadm director flush" all breaks the ring:

[root at cc-popmap7 ~]# doveadm director flush all
Jul 14 01:26:33 cc-popmap7 dovecot: director: Error: Director
10.142.0.180:1234/right disconnected
Jul 14 01:26:33 cc-popmap7 dovecot: director: Error: Director
10.142.0.180:1234/left disconnected
Jul 14 01:26:33 oh-popmap7 dovecot: director: Error:
director(10.142.0.162:1234/left): Invalid HOST-FLUSH args
Jul 14 01:26:33 oh-popmap7 dovecot: director: Error:
director(10.142.0.162:1234/right): Invalid HOST-FLUSH args
 
For some reason, flushing a host address only disconnects one side:

[root at cc-popmap7 ~]# doveadm director flush 10.142.0.160
Jul 14 01:28:23 cc-popmap7 dovecot: director: Error: Director
10.142.0.180:1234/right disconnected
Jul 14 01:28:23 oh-popmap7 dovecot: director: Error:
director(10.142.0.162:1234/left): Invalid HOST-FLUSH args

-Brad



More information about the dovecot mailing list