<div dir="ltr">worker/uniter/operation/runcommands.go:68... uses `context.ErrReboot` to indicate "there is a valid response value that should be handled, but we also need to queue a reboot". The change throws away the valid response.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 11, 2016 at 1:47 AM, Martin Packman <span dir="ltr"><<a href="mailto:martin.packman@canonical.com" target="_blank">martin.packman@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nicholas was struggling today to land his snapcraft pull request:<br>
<br>
<<a href="https://github.com/juju/juju/pull/5956" rel="noreferrer" target="_blank">https://github.com/juju/juju/<wbr>pull/5956</a>><br>
<br>
As a side effect this updates some dependencies, including a couple of<br>
changes to juju/utils, which it turns out, causes<br>
UniterSuite.<wbr>TestRebootFromJujuRun to fail.<br>
<br>
Here's a run of master, which passes:<br>
<br>
<<a href="http://paste.ubuntu.com/22963025/" rel="noreferrer" target="_blank">http://paste.ubuntu.com/<wbr>22963025/</a>><br>
<br>
Then the failure, just with utils updated to rev 8a9dea0:<br>
<br>
<<a href="http://paste.ubuntu.com/22965595/" rel="noreferrer" target="_blank">http://paste.ubuntu.com/<wbr>22965595/</a>><br>
<br>
I'm not clear on how the new exec behaviour is actually causing the<br>
test failure:<br>
<br>
<<a href="https://github.com/juju/utils/pull/203/files" rel="noreferrer" target="_blank">https://github.com/juju/<wbr>utils/pull/203/files</a>><br>
<br>
So, any insights or suggestions welcome.<br>
<br>
<br>
Note, the log also includes two other errors, but they appear in both<br>
the passing and failing log, so are not actually affecting the test<br>
outcome:<br>
<br>
[LOG] 0:01.631 ERROR juju.apiserver Unable to prime<br>
/tmp/check-<wbr>1447535164350529303/5/logsink.<wbr>log (proceeding anyway):<br>
chown /tmp/check-<wbr>1447535164350529303/5/logsink.<wbr>log: operation not<br>
permitted<br>
<br>
This code should probably just not be being run under unit test, is<br>
assuming root privs?<br>
<br>
[LOG] 0:03.078 ERROR juju.worker.uniter.context updating agent status:<br>
cannot set invalid status "rebooting"<br>
<br>
The status setting code in uniter is a twisty confusion, I don't know<br>
why this is happening or where the error is being swallowed.<br>
<span class="HOEnZb"><font color="#888888"><br>
Martin<br>
<br>
--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/juju-dev</a><br>
</font></span></blockquote></div><br></div>