How to use juju-core with canonistack?
Andreas Hasenack
andreas at canonical.com
Thu Apr 25 13:20:00 UTC 2013
-----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-----
More information about the Juju
mailing list