<div dir="ltr">I put in a couple of patches over the weekend which should make it a bit easier to deploy locally. Hopefully none of it is controversial.<div><br></div><div>John</div><div>=:-></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Apr 19, 2014 at 6:18 PM, Aaron Bentley <span dir="ltr"><<a href="mailto:aaron.bentley@canonical.com" target="_blank">aaron.bentley@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class=""><br>
On 14-04-18 02:04 PM, John Meinel wrote:<br>
> I did eventually manage to run the CI tests, though there are some<br>
> oddities:<br>
<br>
</div>Sorry about that.  The top-level 'upgrade-job' and 'deploy-job'<br>
scripts were never meant to run locally.  Originally, we entered these<br>
commands as configuration parameters in Jenkins, and then we extracted<br>
them to scripts to ensure they were consistent across different<br>
substrates and different Jenkins deploys.<br>
<br>
But please try the deploy_stack.py script.  It is much more<br>
user-friendly.  It takes options and arguments, not env variables.<br>
<div class=""><br>
> 2) You have to set LOCAL_JENKINS_URL to the ec2 instance<br>
<br>
</div>That was because on Canonistack, instances can't access their own<br>
public IP addresses.  We might be able to get rid of that now that<br>
we're on EC2, but we'd still need JENKINS_URL.<br>
<div class=""><br>
> 3) You have to set WORKSPACE, but you *also* have to have $PWD<br>
> already be in WORKSPACE.<br>
<br>
</div>Per Jenkins.<br>
<div class=""><br>
> 4) If you made a mistake with $PWD it also has the nice properties<br>
> of rm * -rf, which wipes out wherever you were running it.<br>
<br>
</div>Unfortunately, Jenkins doesn't have the option of starting with a<br>
clean workspace.<br>
<div class=""><br>
> 5) Even though I've set JUJU_HOME to $HOME/dev/juju-ci/cloud-city,<br>
> the first thing it does is override JUJU_HOME with $HOME/cloud-city<br>
> (or for manual source $HOME/cloud-city/ec2rc.)<br>
<br>
</div>Sure.  This is needed on Jenkins, and we do it here so we don't have<br>
to do it in every job configuration.  I think it would be fine to<br>
change it to only override JUJU_HOME if unset.<br>
<div class=""><br>
> 7) It uses a special SSH key which comes in cloud-city. But by<br>
> default the file is rw-rw... which is too open for SSH to let you<br>
> use the key.<br>
<br>
</div>This is an unfortunate consequence of managing cloud-city with Bazaar,<br>
which doesn't support full unix permissions.<br>
<div class=""><br>
> You can probably change the environments.yaml to a) not include a<br>
> key, or b) include your own key, or c) ssh-add the existing SSH key<br>
> from cloud-city.<br>
<br>
</div>Really, cloud-city is only if you need to use our credentials.  If<br>
you're not trying to use our credentials, then you wouldn't need it.<br>
<br>
Aaron<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iQEcBAEBAgAGBQJTUoXHAAoJEK84cMOcf+9hXfUH/AqS5BMgvDcMEPp/JWJI0KTD<br>
kgsNCpaH0LtDEyyE8kbz0c167EOzauKpw31+YKbBEeORElbMbnsiycnx0HMTso1B<br>
hzSVjeamK7S1woST87c0eLg+mJLW0ufQoFWnWsZ9TrAEpFYl8bOCn51viiPM7WF2<br>
1sRJ09WgoJQZmxKTsQA8BE3XwWfwokoWhSkzmLCESrzcYLpFJZz+Lc6i3JTl88/K<br>
sZWS1jLiaZbPVfbksBwhYJW5w2xtuciK8lgru2iJ/y8Tp4NStDSOSTKomUf3Xusv<br>
kCHLm+IM610nxydnN9hRkOiYEHDE7jTQ6FcHGk2unr71LPsyPR6J3YtJ9N2fNbU=<br>
=DHBU<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5"><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" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju-dev</a><br>
</div></div></blockquote></div><br></div>