<div dir="ltr">Hi Linus,<div><br></div><div>There is not yet official way to cleanup old masters. </div><div>Buildbot 0.9.7 introduced the Janitor for that purpose, which for now only clean's up old logs.</div><div>The idea is that we should implement cleanup for the other data over time.</div><div>Any help will be greatly appreciated to implement the remaining bits.</div><div><br></div><div>Pierre</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, May 18, 2017 at 12:01 AM Linus Arver <<a href="mailto:linusarver@gmail.com">linusarver@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello list,<br>
<br>
I am running buildbot 0.9.6 in a Docker container, where it talks to a<br>
persistent Postgres instance that runs directly on the host. Each time I<br>
recreate and restart the container (thus getting a new container id,<br>
which is also the hostname of thet container), I get a new entry in the<br>
`masters' table in Postgres, like this<br>
<br>
    bb=> select * from masters;<br>
     id |              name              |                name_hash                 | active | last_active<br>
    ----+--------------------------------+------------------------------------------+--------+-------------<br>
      3 | 8ca58cb394eb:/var/lib/buildbot | e9be010d83a1ba038d7588f827c45596cadc30f0 |      1 |  1495054677<br>
      1 | 79a58211314a:/var/lib/buildbot | 82957e4bd1448caeec776b9f1627e4e17727ff11 |      0 |           0<br>
      2 | bf927d013d62:/var/lib/buildbot | a9c43dc195ada6bd95ee5a46f04f54c743a647c5 |      0 |           0<br>
    (3 rows)<br>
<br>
. In the web interface these obsolete buildmasters show up as having<br>
been active 47 years ago (because the UNIX timestamp is 0 for these).<br>
<br>
Is there a way to delete these old buildmasters, without manually going<br>
into Postgres (with `delete from masters where last_active = 0;')? I<br>
just find it annoying that the web interface displays these old<br>
buildmasters with no way to delete them.<br>
<br>
Best,<br>
Linus<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@buildbot.net" target="_blank">users@buildbot.net</a><br>
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a><br>
</blockquote></div>