juju bootstrap w/ gccgo built cli and tools

John Meinel john at arbash-meinel.com
Thu Dec 5 06:32:41 UTC 2013


It sounds like we should be bundling the libgo.so into the tar.gz that we
are building. Either statically (so we dont have to worry about system
skew) or just have it know to load it in the same dir as the executable. We
*could* try to use a system lib, but then we're back into dealing with
cross series version skew. (What version of libgo.so would we get on
precise,  vs trusty,  etc)

Also I was surprised that the tar.gz is significantly bigger even without
libgo.so in it. (Lasting time I uploaded tools it was 4.6MB, your log shows
it as 5.5MB, and juju-1.10 was like 2.4MB IIRC)

John
=:->
On Dec 5, 2013 10:11 AM, "David Cheney" <david.cheney at canonical.com> wrote:

> Good news, everyone!
>
> We are --->this<--- close to getting a gccgo build juju working.
>
> lucky(~/src/launchpad.net/juju-core) % juju bootstrap -v --upload-tools
>
> verbose is deprecated with the current meaning, use show-log
>
> 2013-12-05 05:57:50 INFO juju.environs open.go:156 environment info
> already exists; using New not Prepare
>
> 2013-12-05 05:57:50 INFO juju.provider.ec2 ec2.go:176 opening
> environment "ap-southeast-2"
>
> 2013-12-05 05:57:50 INFO juju.environs.tools build.go:162 found
> existing jujud: /home/dfc/bin/jujud
>
> 2013-12-05 05:57:50 INFO juju.environs.tools build.go:172 target:
> /tmp/juju-tools033710042/jujud
>
> ^^^^ compiled with gccgo
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:244 built
> 1.17.0.1-saucy-amd64 (5583kB)
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:70 listing available
> tools
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:94 found 2 tools
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:104 listing target
> bucket
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:117 found 0 tools
> in target; 2 tools to be copied
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:155 copying
> 1.17.0.1-precise-amd64 from
> file:///tmp/142843249/tools/releases/juju-1.17.0.1-precise-amd64.tgz
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:169 copying
> tools/releases/juju-1.17.0.1-precise-amd64.tgz
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:183 downloaded
> tools/releases/juju-1.17.0.1-precise-amd64.tgz (5583kB), uploading
>
> 2013-12-05 05:57:53 INFO juju.environs.sync sync.go:184 download
> 5583kB, uploading
>
> 2013-12-05 05:59:09 INFO juju.environs.sync sync.go:155 copying
> 1.17.0.1-saucy-amd64 from
> file:///tmp/142843249/tools/releases/juju-1.17.0.1-saucy-amd64.tgz
>
> 2013-12-05 05:59:09 INFO juju.environs.sync sync.go:169 copying
> tools/releases/juju-1.17.0.1-saucy-amd64.tgz
>
> 2013-12-05 05:59:09 INFO juju.environs.sync sync.go:183 downloaded
> tools/releases/juju-1.17.0.1-saucy-amd64.tgz (5583kB), uploading
>
> 2013-12-05 05:59:09 INFO juju.environs.sync sync.go:184 download
> 5583kB, uploading
>
> 2013-12-05 06:00:18 INFO juju.environs.sync sync.go:122 copied 2 tools
>
> 2013-12-05 06:00:18 INFO juju.environs.sync sync.go:124 generating
> tools metadata
>
> 2013-12-05 06:00:19 INFO juju.environs.tools simplestreams.go:357
> Writing tools/streams/v1/index.json
>
> 2013-12-05 06:00:19 INFO juju.environs.tools simplestreams.go:357
> Writing tools/streams/v1/com.ubuntu.juju:released:tools.json
>
> 2013-12-05 06:00:19 INFO juju.environs.sync sync.go:136 tools metadata
> written
>
> 2013-12-05 06:00:22 INFO juju.environs.bootstrap bootstrap.go:45
> bootstrapping environment "ap-southeast-2"
>
> 2013-12-05 06:00:22 INFO juju.environs.tools tools.go:85 reading tools
> with major.minor version 1.17
>
> 2013-12-05 06:00:22 INFO juju.environs.tools tools.go:93 filtering
> tools by version: 1.17.0.1
>
> 2013-12-05 06:00:22 INFO juju.environs.tools tools.go:96 filtering
> tools by series: precise
>
> 2013-12-05 06:00:22 INFO juju.environs.bootstrap bootstrap.go:57
> picked newest version: 1.17.0.1
>
> Launching instance
>
> 2013-12-05 06:00:29 INFO juju.provider.ec2 ec2.go:418 started instance
> "i-813692be"
>
>  - i-813692be
>
> Waiting for DNS name......................................
>
>  - ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com
>
> Attempting to connect to
> ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com:22....
>
> 2013-12-05 06:01:45 INFO juju.cloudinit.sshinit configure.go:24
> Provisioning machine agent on
> ubuntu at ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com
>
> Warning: Permanently added
> 'ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.com,54.253.221.206'
> (ECDSA) to the list of known hosts.
>
> Logging to /var/log/cloud-init-output.log on remote host
>
> Installing add-apt-repository
>
> Adding apt repository: deb
> http://ubuntu-cloud.archive.canonical.com/ubuntu
> precise-updates/cloud-tools main
>
> Running apt-get update
>
> Running apt-get upgrade
>
> Installing package: git
>
> Installing package: cpu-checker
>
> Installing package: mongodb-server
>
> Fetching tools: wget --no-verbose -O $bin/tools.tar.gz
> '
> https://s3-ap-southeast-2.amazonaws.com/juju-syd-en-ee-ii/tools/releases/juju-1.17.0.1-precise-amd64.tgz?AWSAccessKeyId=AKIAJ4SOKUWG25EDMAOA&Expires=1701756022&Signature=us5XxZbNtgjiPQ5kMVVyC1b9450%3D
> '
>
> Starting MongoDB server (juju-db)
>
> Bootstrapping Juju machine agent
>
> Connection to ec2-54-253-221-206.ap-southeast-2.compute.amazonaws.comclosed.
>
> Stopping instance...
>
> 2013-12-05 06:05:07 ERROR juju supercommand.go:282 exit status 1
>
> Unfortunately the agent will fail to start because
>
> lucky(~/src/launchpad.net/juju-core) % ldd $(which jujud)
>
>         linux-vdso.so.1 =>  (0x00007fffbc3fe000)
>
>         libgo.so.5 => /usr/lib/libgo.so.5 (0x00007f57fc52e000)
>
> ^^^ this library
>
>         libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007f57fc311000)
>
>         libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f57fc00c000)
>
>         libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
> (0x00007f57fbdf6000)
>
>         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f57fba2e000)
>
>         /lib64/ld-linux-x86-64.so.2 (0x00007f57fd337000)
>
> is not present on the target system.
>
> Cheers
>
> Dave
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju-dev/attachments/20131205/d74afb64/attachment.html>


More information about the Juju-dev mailing list