<div dir="ltr"><div><div><div>I guess my question is more about where some of the options went.<br><br></div>For example, I assumed the line `util.StopBuildEndpointMatcher(role="admins")` in the example is equivalent to the old `stopBuild=True`.<br><br></div>What I'm confused by is how to replace the old options that don't appear to have any current equivalent.<br><br></div>How do I replace these options?<br><br>        useHttpHeader=True,<br>        gracefulShutdown=False,<br>        forceAllBuilds='auth',<br>        pingBuilder=False,<br>        stopAllBuilds=True,<br>        cancelPendingBuild=True,<br><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 15, 2017 at 3:41 AM, Pierre Tardy <span dir="ltr"><<a href="mailto:tardyp@gmail.com" target="_blank">tardyp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Chris,<div>The new buildbot authorization framework is much more powerful, but more complex than just setting some booleans.</div><div>I suggest to spend a bit of time understanding how it works. The first example config is more or less similar to the eight authz config you pasted.</div><div><br></div><div>Please come back with any specific question if something is still unclear. It is important for us to have very clear documentation so that people can be autonomous.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Pierre</div></font></span></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">Le mer. 15 févr. 2017 à 06:20, Chris Spencer <<a href="mailto:chrisspen@gmail.com" target="_blank">chrisspen@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_-7357568012789237468gmail_msg"><div class="m_-7357568012789237468gmail_msg">Is there any documentation for translating the old buildbot.status.web.authz.<wbr>Authz class to whatever the new alternative is? I'm assuming this is now a plugin, but it's unclear what the new call is like. I see some examples at:<br class="m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg">    <a href="http://buildbot.readthedocs.io/en/latest/manual/cfg-www.html#example-configs" class="m_-7357568012789237468gmail_msg" target="_blank">http://buildbot.readthedocs.<wbr>io/en/latest/manual/cfg-www.<wbr>html#example-configs</a><br class="m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg"></div><div class="m_-7357568012789237468gmail_msg">but the new Authz class doesn't seem to share any of the same arguments.<br class="m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg"></div><div class="m_-7357568012789237468gmail_msg">For example, how would I translate this?<br class="m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg">    authz_cfg=authz.Authz(<br class="m_-7357568012789237468gmail_msg">        auth=auth.HTPasswdAprAuth('/<wbr>usr/local/project/htpasswd'),<br class="m_-7357568012789237468gmail_msg">        useHttpHeader=True,<br class="m_-7357568012789237468gmail_msg">        gracefulShutdown=False,<br class="m_-7357568012789237468gmail_msg">        forceBuild='auth',<br class="m_-7357568012789237468gmail_msg">        forceAllBuilds='auth',<br class="m_-7357568012789237468gmail_msg">        pingBuilder=False,<br class="m_-7357568012789237468gmail_msg">        stopBuild=True,<br class="m_-7357568012789237468gmail_msg">        stopAllBuilds=True,<br class="m_-7357568012789237468gmail_msg">        cancelPendingBuild=True,<br class="m_-7357568012789237468gmail_msg">    )<br class="m_-7357568012789237468gmail_msg">    c['status'].append(html.<wbr>WebStatus(<br class="m_-7357568012789237468gmail_msg">         http_port=8010,<br class="m_-7357568012789237468gmail_msg">         authz=authz_cfg,<br class="m_-7357568012789237468gmail_msg">    ))<br class="m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg"></div></div><div class="gmail_extra m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg"><div class="gmail_quote m_-7357568012789237468gmail_msg">On Wed, Jan 11, 2017 at 6:24 AM, Chris Spencer <span dir="ltr" class="m_-7357568012789237468gmail_msg"><<a href="mailto:chrisspen@gmail.com" class="m_-7357568012789237468gmail_msg" target="_blank">chrisspen@gmail.com</a>></span> wrote:<br class="m_-7357568012789237468gmail_msg"><blockquote class="gmail_quote m_-7357568012789237468gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_-7357568012789237468gmail_msg">Thanks.<br class="m_-7357568012789237468gmail_msg"></div><div class="m_-7357568012789237468m_537050253321087186HOEnZb m_-7357568012789237468gmail_msg"><div class="m_-7357568012789237468m_537050253321087186h5 m_-7357568012789237468gmail_msg"><div class="gmail_extra m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg"><div class="gmail_quote m_-7357568012789237468gmail_msg">On Wed, Jan 11, 2017 at 3:10 AM, Pierre Tardy <span dir="ltr" class="m_-7357568012789237468gmail_msg"><<a href="mailto:tardyp@gmail.com" class="m_-7357568012789237468gmail_msg" target="_blank">tardyp@gmail.com</a>></span> wrote:<br class="m_-7357568012789237468gmail_msg"><blockquote class="gmail_quote m_-7357568012789237468gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_-7357568012789237468gmail_msg">Hi Chris,<div class="m_-7357568012789237468gmail_msg">Please see this section of the upgrade manual </div><div class="m_-7357568012789237468gmail_msg"><a href="http://buildbot.readthedocs.io/en/latest/manual/installation/nine-upgrade.html#web-status" class="m_-7357568012789237468gmail_msg" target="_blank">http://buildbot.readthedocs.<wbr>io/en/latest/manual/<wbr>installation/nine-upgrade.<wbr>html#web-status</a></div><div class="m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg"></div><div class="m_-7357568012789237468gmail_msg">Pierre<br class="m_-7357568012789237468gmail_msg"><div class="m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468gmail_msg"><div class="gmail_quote m_-7357568012789237468gmail_msg"><div class="m_-7357568012789237468gmail_msg"><div class="m_-7357568012789237468m_537050253321087186m_2131858221220992030h5 m_-7357568012789237468gmail_msg"><div dir="ltr" class="m_-7357568012789237468gmail_msg">Le mer. 11 janv. 2017 à 03:25, Chris Spencer <<a href="mailto:chrisspen@gmail.com" class="m_-7357568012789237468gmail_msg" target="_blank">chrisspen@gmail.com</a>> a écrit :<br class="m_-7357568012789237468gmail_msg"></div></div></div><blockquote class="gmail_quote m_-7357568012789237468gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-7357568012789237468gmail_msg"><div class="m_-7357568012789237468m_537050253321087186m_2131858221220992030h5 m_-7357568012789237468gmail_msg"><div dir="ltr" class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg"><div class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">I'm trying to test a Buildbot 0.8 config on the current Buildbot 0.9.2, and I'm getting the error:<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">    Traceback (most recent call last):<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">      File "/usr/local/myproject/.env/<wbr>local/lib/python2.7/site-<wbr>packages/twisted/python/<wbr>threadpool.py", line 262, in <lambda><br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">        inContext.theWork = lambda: context.call(ctx, func, *args, **kw)<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">      File "/usr/local/myproject/.env/<wbr>local/lib/python2.7/site-<wbr>packages/twisted/python/<wbr>context.py", line 118, in callWithContext<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">        return self.currentContext().<wbr>callWithContext(ctx, func, *args, **kw)<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">      File "/usr/local/myproject/.env/<wbr>local/lib/python2.7/site-<wbr>packages/twisted/python/<wbr>context.py", line 81, in callWithContext<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">        return func(*args,**kw)<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">      File "/usr/local/myproject/.env/<wbr>local/lib/python2.7/site-<wbr>packages/buildbot/config.py", line 162, in loadConfig<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">        self.basedir, self.configFileName)<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">    --- <exception caught here> ---<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">      File "/usr/local/myproject/.env/<wbr>local/lib/python2.7/site-<wbr>packages/buildbot/config.py", line 119, in loadConfigDict<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">        exec(f, localDict)<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">      File "/usr/local/myproject/src/<wbr>buildbot/master/master.cfg", line 131, in <module><br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">        from buildbot.status import html<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">    exceptions.ImportError: cannot import name html<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg"><br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg"></div>Presumably, some functionality was removed or refactored. However, I can't find any documentation on the site or through Google to explain where the "html" status went. Where can I find this?<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg"></div></div></div>
______________________________<wbr>_________________<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">
users mailing list<br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">
<a href="mailto:users@buildbot.net" class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg" target="_blank">users@buildbot.net</a><br class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="m_-7357568012789237468m_537050253321087186m_2131858221220992030m_7729019584194841228gmail_msg m_-7357568012789237468gmail_msg" target="_blank">https://lists.buildbot.net/<wbr>mailman/listinfo/users</a></blockquote></div></div></div></div>
</blockquote></div><br class="m_-7357568012789237468gmail_msg"></div>
</div></div></blockquote></div><br class="m_-7357568012789237468gmail_msg"></div>
</blockquote></div>
</div></div></blockquote></div><br></div>