How to use juju-core with canonistack?

John Meinel john at arbash-meinel.com
Thu Apr 25 14:04:45 UTC 2013


There is a public bucket on Canonistack that we uploaded the tools to. We
mentioned it in the release notes, I don't have the exact URL offhand. You
can set public-bucket-url in your environments.yaml, and juju can then
download the tools from there.
Alternatively, you can run "juju sync-tools", which will download the tools
from the official ec2 bucket and copy them into your private object storage
(swift on canonistack).

Due to some internal limitations, you have to have Ec2 credentials to do
this (our ec2 code requires creds even though the bucket is public).

--upload-tools is really only for developers.

John
=:->
On Apr 25, 2013 5:20 PM, "Andreas Hasenack" <andreas at canonical.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I'm trying to use juju-core with canonistack but it's not working. I
> believe I have the correct section in environments.yaml, but I get:
>
> andreas at nsn7:~$ juju bootstrap -v
> 2013/04/25 10:10:52 INFO environs/openstack: opening environment
> "canonistack"
> 2013/04/25 10:10:52 INFO environs/openstack: bootstrapping environment
> "canonistack"
> 2013/04/25 10:11:03 INFO environs: reading tools with major version 1
> 2013/04/25 10:11:03 INFO environs: falling back to public bucket
> 2013/04/25 10:11:04 ERROR command failed: no tools available
> error: no tools available
>
>
> I then tried --upload-tools, but that failed spectacularly:
> andreas at nsn7:~$ juju bootstrap -v --upload-tools
> 2013/04/25 10:11:20 INFO environs/openstack: opening environment
> "canonistack"
> 2013/04/25 10:11:20 ERROR command failed: build command "go" failed:
> exit status 1; go/src/launchpad.net/juju-core/state/api/client.go:4:2:
> import "code.google.com/p/go.net/websocket": cannot find package
> go/src/launchpad.net/juju-core/state/annotator.go:5:2: import
> "labix.org/v2/mgo": cannot find package
> ...
>
> Then I cleared up my $GOPATH and fetched the code according to the
> README instructions:
>
> andreas at nsn7:~$ rm -rf go
> andreas at nsn7:~$ go get launchpad.net/juju-core/
> package launchpad.net/juju-core
>         imports launchpad.net/juju-core
>         imports launchpad.net/juju-core: no Go source files in
> /home/andreas/go/src/launchpad.net/juju-core
> andreas at nsn7:~$ echo $GOPATH
> /home/andreas/go
>
> So I'm a bit lost now. "go/src/launchpad.net/juju-core/" exists and
> has the bzr branch for juju-core:
>
> andreas at nsn7:~$ bzr info go/src/launchpad.net/juju-core/
> Standalone tree (format: 2a)
> Location:
>   branch root: go/src/launchpad.net/juju-core
>
> Related branches:
>   parent branch: http://bazaar.launchpad.net/~juju/juju-core/trunk/
>
> I don't know what it means with "no Go source files". The README also
> said that the "go get" command would fetch all the needed
> dependencies, but I only see juju-core in that src directory and
> nothing else like the labix.org/v2/mgo package.
>
> So how is someone with a private cloud supposed to bootstrap
> juju-core? Does a cloud admin and go-juju expert (i.e., not me) need
> to build and upload something to a very specific bucket so that juju
> users can start bootstrapping?
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with undefined - http://www.enigmail.net/
>
> iEYEARECAAYFAlF5LX0ACgkQeEJZs/PdwpC3vgCg2tHDJkmfev3O/OtVfoCmjJ1u
> YfcAnR5LFTFo9iCAMIXiXHftN1Uds1Og
> =O9/j
> -----END PGP SIGNATURE-----
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20130425/0fc6d38d/attachment.html>


More information about the Juju mailing list