bosh icon indicating copy to clipboard operation
bosh copied to clipboard

Stemcell 3262.5 fails to compile golang package in cf-services-contrib-release.tgz

Open gu-bin opened this issue 10 years ago • 3 comments

We found the golang package in cf-services-contrib-release.tgz can be compiled with stemcell 3262.4 and versions less than 3262.4, but can't be compiled with stemcell 3262.5. Compared to 3262.4, stemcell 3262.5 greatly upgrades the kernal to 4.4. Not sure if this causes the problem.

This is the bosh deploy failure info:

--- FAIL: TestDialTimeout (0.02 seconds)
    dial_test.go:96: all connections connected; expected some to time out
FAIL
FAIL    net 2.262s

This the full log:

   Failed compiling packages > golang/5ff5191f9af7401b14f1cb5cea6891f8fbb89c47: Action Failed get_task: Task 25516dd2-3575-44b0-6d1a-ca3dec5eb2c3 result: Compiling package golang: Running packaging script: Running packaging script: Command exited with 1; Stdout: , Stderr: + exec
+ source warden_helpers/compile_in_chroot_helper.sh
+ tar xzf golang/go1.1.1.src.tar.gz
+ compile_in_chroot /var/vcap/packages/rootfs_lucid64 '
  cd /var/vcap/data/compile/golang/go/src
  ./all.bash
  cd ../..
  cp -R go/* /var/vcap/packages/golang
'
+ local chroot=/var/vcap/packages/rootfs_lucid64
+ local 'script=
  cd /var/vcap/data/compile/golang/go/src
  ./all.bash
  cd ../..
  cp -R go/* /var/vcap/packages/golang
'
+ disable /var/vcap/packages/rootfs_lucid64/sbin/initctl
+ mv /var/vcap/packages/rootfs_lucid64/sbin/initctl /var/vcap/packages/rootfs_lucid64/sbin/initctl.back
+ ln -s /bin/true /var/vcap/packages/rootfs_lucid64/sbin/initctl
+ disable /var/vcap/packages/rootfs_lucid64/usr/sbin/invoke-rc.d
+ mv /var/vcap/packages/rootfs_lucid64/usr/sbin/invoke-rc.d /var/vcap/packages/rootfs_lucid64/usr/sbin/invoke-rc.d.back
+ ln -s /bin/true /var/vcap/packages/rootfs_lucid64/usr/sbin/invoke-rc.d
+ unshare -m /bin/bash
++ cat /var/vcap/packages/rootfs_lucid64/etc/environment
# Building C bootstrap tool.
cmd/dist

# Building compilers and Go bootstrap tool for host, linux/amd64.
lib9
libbio
libmach
misc/pprof
cmd/addr2line
cmd/cov
cmd/nm
cmd/objdump
cmd/pack
cmd/prof
cmd/cc
cmd/gc
cmd/6l
cmd/6a
cmd/6c
cmd/6g
pkg/runtime
pkg/errors
pkg/sync/atomic
pkg/sync
pkg/io
pkg/unicode
pkg/unicode/utf8
pkg/unicode/utf16
pkg/bytes
pkg/math
pkg/strings
pkg/strconv
pkg/bufio
pkg/sort
pkg/container/heap
pkg/encoding/base64
pkg/syscall
pkg/time
pkg/os
pkg/reflect
pkg/fmt
pkg/encoding/json
pkg/flag
pkg/path/filepath
pkg/path
pkg/io/ioutil
pkg/log
pkg/regexp/syntax
pkg/regexp
pkg/go/token
pkg/go/scanner
pkg/go/ast
pkg/go/parser
pkg/os/exec
pkg/os/signal
pkg/net/url
pkg/text/template/parse
pkg/text/template
pkg/go/doc
pkg/go/build
cmd/go

# Building packages and commands for linux/amd64.
runtime
errors
sync/atomic
unicode
unicode/utf8
math
sync
sort
io
syscall
hash
crypto
crypto/md5
container/heap
unicode/utf16
hash/crc32
bytes
strings
time
bufio
path
text/tabwriter
crypto/cipher
crypto/subtle
crypto/hmac
crypto/sha1
crypto/sha256
html
compress/bzip2
hash/adler32
strconv
math/rand
os
container/list
container/ring
crypto/sha512
hash/crc64
reflect
regexp/syntax
net/url
path/filepath
os/exec
io/ioutil
encoding/base64
crypto/aes
crypto/rc4
encoding/pem
regexp
os/signal
encoding/ascii85
fmt
encoding/binary
encoding/base32
hash/fnv
image/color
math/cmplx
debug/dwarf
crypto/des
index/suffixarray
image
runtime/race
flag
go/token
text/template/parse
log
go/scanner
debug/elf
debug/macho
go/ast
debug/pe
text/template
encoding/json
encoding/xml
compress/flate
go/doc
go/parser
go/printer
compress/gzip
math/big
encoding/hex
mime
go/build
archive/zip
cmd/cgo
go/format
crypto/elliptic
cmd/fix
cmd/api
crypto/ecdsa
crypto/rand
crypto/rsa
crypto/dsa
encoding/asn1
crypto/x509/pkix
encoding/gob
html/template
runtime/pprof
text/scanner
cmd/gofmt
cmd/vet
cmd/yacc
runtime/cgo
archive/tar
compress/lzw
compress/zlib
database/sql/driver
debug/gosym
database/sql
encoding/csv
image/draw
image/gif
image/jpeg
image/png
runtime/debug
testing
net
os/user
testing/iotest
testing/quick
crypto/x509
net/textproto
log/syslog
mime/multipart
net/mail
crypto/tls
net/http
net/smtp
cmd/go
expvar
net/http/pprof
net/http/cgi
net/http/cookiejar
cmd/godoc
net/http/httptest
net/http/fcgi
net/http/httputil
net/rpc
net/rpc/jsonrpc

# Testing packages.
ok      cmd/api 0.036s
?       cmd/cgo [no test files]
ok      cmd/fix 0.037s
ok      cmd/go  0.041s
?       cmd/godoc   [no test files]
ok      cmd/gofmt   0.064s
?       cmd/vet [no test files]
?       cmd/yacc    [no test files]
ok      archive/tar 0.018s
ok      archive/zip 0.063s
ok      bufio   0.108s
ok      bytes   0.131s
ok      compress/bzip2  0.076s
ok      compress/flate  0.619s
ok      compress/gzip   0.025s
ok      compress/lzw    0.123s
ok      compress/zlib   1.041s
ok      container/heap  0.015s
ok      container/list  0.020s
ok      container/ring  0.028s
?       crypto  [no test files]
ok      crypto/aes  0.043s
ok      crypto/cipher   0.020s
ok      crypto/des  0.029s
ok      crypto/dsa  0.024s
ok      crypto/ecdsa    0.033s
ok      crypto/elliptic 0.022s
ok      crypto/hmac 0.020s
ok      crypto/md5  0.020s
ok      crypto/rand 0.041s
ok      crypto/rc4  0.073s
ok      crypto/rsa  0.165s
ok      crypto/sha1 0.015s
ok      crypto/sha256   0.016s
ok      crypto/sha512   0.016s
ok      crypto/subtle   0.018s
ok      crypto/tls  0.303s
ok      crypto/x509 0.691s
?       crypto/x509/pkix    [no test files]
ok      database/sql    0.035s
ok      database/sql/driver 0.014s
ok      debug/dwarf 0.054s
ok      debug/elf   0.039s
ok      debug/gosym 0.401s
ok      debug/macho 0.016s
ok      debug/pe    0.019s
ok      encoding/ascii85    0.038s
ok      encoding/asn1   0.031s
ok      encoding/base32 0.016s
ok      encoding/base64 0.030s
ok      encoding/binary 0.018s
ok      encoding/csv    0.016s
ok      encoding/gob    0.040s
ok      encoding/hex    0.033s
ok      encoding/json   0.032s
ok      encoding/pem    0.016s
ok      encoding/xml    0.025s
ok      errors  0.033s
ok      expvar  0.023s
ok      flag    0.024s
ok      fmt 0.045s
ok      go/ast  0.020s
ok      go/build    0.135s
ok      go/doc  0.096s
ok      go/format   0.029s
ok      go/parser   0.051s
ok      go/printer  0.414s
ok      go/scanner  0.017s
ok      go/token    0.044s
?       hash    [no test files]
ok      hash/adler32    0.021s
ok      hash/crc32  0.014s
ok      hash/crc64  0.014s
ok      hash/fnv    0.015s
ok      html    0.065s
ok      html/template   0.063s
ok      image   0.130s
ok      image/color 0.019s
ok      image/draw  0.035s
ok      image/gif   0.023s
ok      image/jpeg  0.149s
ok      image/png   0.047s
ok      index/suffixarray   0.023s
ok      io  0.031s
ok      io/ioutil   0.017s
ok      log 0.016s
ok      log/syslog  2.043s
ok      math    0.029s
ok      math/big    0.210s
ok      math/cmplx  0.015s
ok      math/rand   0.033s
ok      mime    0.015s
ok      mime/multipart  0.396s
--- FAIL: TestDialTimeout (0.02 seconds)
    dial_test.go:96: all connections connected; expected some to time out
FAIL
FAIL    net 2.262s
ok      net/http    3.457s
ok      net/http/cgi    0.304s
ok      net/http/cookiejar  0.031s
ok      net/http/fcgi   0.023s
ok      net/http/httptest   0.023s
ok      net/http/httputil   0.029s
?       net/http/pprof  [no test files]
ok      net/mail    0.018s
ok      net/rpc 0.046s
ok      net/rpc/jsonrpc 0.038s
ok      net/smtp    0.021s
ok      net/textproto   0.018s
ok      net/url 0.023s
ok      os  0.046s
ok      os/exec 0.541s
ok      os/signal   0.459s
ok      os/user 0.029s
ok      path    0.018s
ok      path/filepath   0.068s
ok      reflect 0.079s
ok      regexp  0.113s
ok      regexp/syntax   0.637s
ok      runtime 10.751s
?       runtime/cgo [no test files]
ok      runtime/debug   0.016s
ok      runtime/pprof   0.475s
?       runtime/race    [no test files]
ok      sort    0.075s
ok      strconv 0.309s
ok      strings 0.143s
ok      sync    0.063s
ok      sync/atomic 0.036s
ok      syscall 0.061s
?       testing [no test files]
?       testing/iotest  [no test files]
ok      testing/quick   0.033s
ok      text/scanner    0.036s
ok      text/tabwriter  0.031s
ok      text/template   0.050s
ok      text/template/parse 0.036s
ok      time    2.425s
ok      unicode 0.022s
ok      unicode/utf16   0.015s
ok      unicode/utf8    0.018s
?       unsafe  [no test files]
 (00:01:21)

/cc @maximilien @mattcui @jianqiu

gu-bin avatar Aug 15 '16 10:08 gu-bin

@gu-bin seems like it's trying to run some test (dial_test.go:96: all connections connected; expected some to time out) that times out. may be compilation machine is too slow. i dont think this relates to the stemcell version.

cppforlife avatar Aug 18 '16 01:08 cppforlife

We only found this problem with stemcell 3262.5, no problem with 3262.2, 3262.4 and 3262.7. We will skip stemcell 3262.5 and use 3262.7 or later.

gu-bin avatar Aug 18 '16 01:08 gu-bin

@gu-bin cool. Closing this issue then.

maximilien avatar Aug 18 '16 18:08 maximilien