<div dir="ltr">Right, I think it has to *know* about the target, which is obviously an issue here. But we still do *heavily* encourage (probably just outright require) cloud-archive:tools for running Juju agents on Precise.<div>
<br></div><div>John</div><div>=:-></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 10:46 AM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.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"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Mon, Sep 1, 2014 at 2:04 PM, John Meinel <span dir="ltr"><<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I thought --target-release was supposed to just change the priorities and prefer a target, not require it.<div>

We need it because we add cloud-archive:tools but we explicitly pin it to lower priority because we don't want to mess up charms that we are installing.</div></div></blockquote><div><br></div></div><div>Sorry, I should have included the error message.</div>

<div><br></div><div><div>andrew@precise:~$ sudo apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install --target-release precise-updates/cloud-tools mongodb-server</div>

<div>Reading package lists...</div><div>E: The value 'precise-updates/cloud-tools' is invalid for APT::Default-Release as such a release is not available in the sources</div></div><div><br></div><div>(if I "apt-add-repository cloud-archive:tools", it's happy)</div>
<div><div class="h5">
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>John</div><div>=:-></div>

</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 9:57 AM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">

<div>On Mon, Sep 1, 2014 at 1:50 PM, John Meinel <span dir="ltr"><<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">The version of mongodb in Precise is too old (2.2.4?),</div>



</blockquote><div><br></div></div><div>Ah, so it is. The entry in apt-cache I was looking at has "main" in it, but it's actually from the juju/stable PPA.</div><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div dir="ltr">we require a version at least 2.4.6 (which is in cloud-archive:tools and is what we use when bootstrapping Precise instances in the cloud).<div>It is recommended that if you are running local on Precise that you should have cloud-archive:tools in your apt list.</div>



</div></blockquote><div><br></div></div><div>The problem is, code-wise it's currently a requirement. Should we drop --target-release for local? I'm not apt-savvy enough to know what the right thing to do here is.</div>


<div><div><div>
 </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>John</div><div>=:-></div></div>



<div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 1, 2014 at 9:16 AM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">



<div>On Mon, Sep 1, 2014 at 12:53 PM, Andrew Wilkins <span dir="ltr"><<a href="mailto:andrew.wilkins@canonical.com" target="_blank">andrew.wilkins@canonical.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Works fine on my trusty laptop, but I'm also getting a new error when I try bootstrapping on precise:</div>





<div><br></div><div><div>2014-09-01 04:51:27 INFO juju.utils.apt apt.go:132 Running: [apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install --target-release precise-updates/cloud-tools mongodb-server]</div>






<div>2014-09-01 04:51:37 ERROR juju.utils.apt apt.go:166 apt-get command failed: unexpected error type *errors.errorString</div><div>args: []string{"apt-get", "--option=Dpkg::Options::=--force-confold", "--option=Dpkg::options::=--force-unsafe-io", "--assume-yes", "--quiet", "install", "--target-release", "precise-updates/cloud-tools", "mongodb-server"}</div>






<div><br></div><div>2014-09-01 04:51:37 ERROR juju.cmd supercommand.go:323 cannot install mongod: apt-get failed: unexpected error type *errors.errorString</div><div>Bootstrap failed, destroying environment</div></div><div>






<br></div><div>I'm looking into it at the moment.</div></div></blockquote><div><br></div></div><div>So that error message was unhelpful, and I'll fix that, but the underlying issue is that the agent is expecting to install mongodb-server from cloud-archive:tools, and the Makefile does not add that repo. I'm not sure it *should* add it either. Is there something wrong with the one in main? After all, that's where the juju-local package's dependency was resolved.</div>




<div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Cheers,</div><div>Andrew</div>



</div><div class="gmail_extra"><br><br><div class="gmail_quote">

<div><div>On Sat, Aug 30, 2014 at 8:19 PM, Matthew Williams <span dir="ltr"><<a href="mailto:matthew.williams@canonical.com" target="_blank">matthew.williams@canonical.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hi Folks,<div><br></div>



<div>I thought I'd try looking into the lxc failing to creates machines bug: <a href="https://bugs.launchpad.net/juju-core/+bug/1363143" target="_blank">https://bugs.launchpad.net/juju-core/+bug/1363143</a></div>




<div><br></div><div>If I wanted to do a local deploy using tip I thought it would be as simple as doing make install then juju bootstrap is that correct? It doesn't seem to work for me, are there any steps I'm missing</div>








<div><br></div><div>Just to be annoying - I've just shutdown my precise vm so I can't paste the errors I get here. I'll follow up with pastes next week</div><div><br></div><div>Matty</div></div>
<br></div></div><span><font color="#888888">--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></font></span></blockquote></div><br></div>
</blockquote></div></div><br></div></div>
<br>--<br>
Juju-dev mailing list<br>
<a href="mailto:Juju-dev@lists.ubuntu.com" target="_blank">Juju-dev@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju-dev" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>