You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working porting go supplementary network libraries https://godoc.org/golang.org/x/net on ppc64le architecture. I am using Ubuntu 15.10 on top of ppc64le hardware. I have successfully built go supplementary network repository on ppc64le but while running automated test cases I observe that ‘TestNonPrivilegedPing’ test case fail with ‘you may need to adjust the net.ipv4.ping_group_range kernel state / permission denied ‘messages. I am compiling and testing go networking repository as a root user so I don’t know why I am getting ‘permission denied’ message.
Below is the description of test case failure on Ubuntu 15.10,
--- FAIL: TestNonPrivilegedPing (0.00s)
ping_test.go:73: you may need to adjust the net.ipv4.ping_group_range kernel state
ping_test.go:80: socket: permission denied
ping_test.go:80: socket: permission denied
=== RUN TestPrivilegedPing
--- FAIL: TestPrivilegedPing (0.40s)
ping_test.go:101: write ip6 ::->2404:6800:4009:807::2004: sendto: network is unreachable
FAIL
FAIL golang.org/x/net/icmp 0.409s
=== RUN TestIDNA
I performed below steps for compiling / building go supplementary network library on Ubuntu 15.10 (ppc64le)
Step 1: Update repositories and install required packages to build go repository
$ apt-get update && apt-get install -y git golang-go
Step 2: Create workspace to build go network repository
$ mkdir workspace
$ cd workspace/
$ mkdir bin src pkg
$ cd src/
$ mkdir -p golang.org/x
$ cd golang.org/x
Step 5: build and test go networking repository
$ go test -v ./...
I followed same steps on Ubuntu 15.10 + amd64 combination and got exactly same result. ‘TestPrivilegedPing’ test case fails with same messages which I have seen on Ubuntu 15.10 + ppc64le combination
Any pointers/suggestions on failed test case will be great help.
Below is additional information required for debug / resolve /reproduce test case failure,
What version of Go are you using (go version)?
$ go version
go version go1.4.2 gccgo (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010 linux/ppc64le
What operating system and processor architecture are you using (go env)?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
$ uname -a
Linux 9de5feaaf936 3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:07:11 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
What did you do?
I am working porting go supplementary networking libraries https://godoc.org/golang.org/x/net on ppc64le architecture. Already provided steps to reproduce test case failure
What did you expect to see?
No test case failure on Ubuntu 15.10 + ppc64le combination
What did you see instead?
Automated test case execution failed due to failure of ‘TestPrivilegedPing’ test case
The text was updated successfully, but these errors were encountered:
Are you actually root with all capabilities, or are you user "root" in some restricted container?
bradfitz
changed the title
‘TestNonPrivilegedPing’ test failure on Ubuntu 15.10 (ppc64le) while building go supplementary network library
net: TestNonPrivilegedPing test failure on Ubuntu 15.10 (ppc64le) while building go supplementary network library
Apr 11, 2016
bradfitz
changed the title
net: TestNonPrivilegedPing test failure on Ubuntu 15.10 (ppc64le) while building go supplementary network library
x/net: TestNonPrivilegedPing test failure on Ubuntu 15.10 (ppc64le) while building go supplementary network library
Apr 11, 2016
mikioh
changed the title
x/net: TestNonPrivilegedPing test failure on Ubuntu 15.10 (ppc64le) while building go supplementary network library
x/net/icmp: TestNonPrivilegedPing test failure on Ubuntu 15.10 (ppc64le) while building go supplementary network library
Apr 11, 2016
I am compiling and testing go networking repository as a root user so I don’t know why I am getting ‘permission denied’ message.
I'd recommend having a look at the on-line manual.
ICMP(7) Linux Programmer's Manual ICMP(7)
ping_group_range (two integers; default: see below; since Linux 2.6.39)
Range of the group IDs (minimum and maximum group IDs,
inclusive) that are allowed to create ICMP Echo sockets. The
default is "1 0", which means no group is allowed to create
ICMP Echo sockets.
Hi All,
I am working porting go supplementary network libraries https://godoc.org/golang.org/x/net on ppc64le architecture. I am using Ubuntu 15.10 on top of ppc64le hardware. I have successfully built go supplementary network repository on ppc64le but while running automated test cases I observe that ‘TestNonPrivilegedPing’ test case fail with ‘you may need to adjust the net.ipv4.ping_group_range kernel state / permission denied ‘messages. I am compiling and testing go networking repository as a root user so I don’t know why I am getting ‘permission denied’ message.
Below is the description of test case failure on Ubuntu 15.10,
--- FAIL: TestNonPrivilegedPing (0.00s)
ping_test.go:73: you may need to adjust the net.ipv4.ping_group_range kernel state
ping_test.go:80: socket: permission denied
ping_test.go:80: socket: permission denied
=== RUN TestPrivilegedPing
--- FAIL: TestPrivilegedPing (0.40s)
ping_test.go:101: write ip6 ::->2404:6800:4009:807::2004: sendto: network is unreachable
FAIL
FAIL golang.org/x/net/icmp 0.409s
=== RUN TestIDNA
I performed below steps for compiling / building go supplementary network library on Ubuntu 15.10 (ppc64le)
Step 1: Update repositories and install required packages to build go repository
$ apt-get update && apt-get install -y git golang-go
Step 2: Create workspace to build go network repository
$ mkdir workspace
$ cd workspace/
$ mkdir bin src pkg
$ cd src/
$ mkdir -p golang.org/x
$ cd golang.org/x
Step 3: Clone go networking repository and other source for required building go network repository
$ git clone https://github.com/golang/text.git
$ git clone https://github.com/golang/crypto.git
$ git clone https://github.com/golang/net.git
$ cd /workspace/src
Step 4: Set environment variables required compile repository
$ export GOPATH=/workspace
$ export PATH=$PATH:$GOPATH/bin
Step 5: build and test go networking repository
$ go test -v ./...
I followed same steps on Ubuntu 15.10 + amd64 combination and got exactly same result. ‘TestPrivilegedPing’ test case fails with same messages which I have seen on Ubuntu 15.10 + ppc64le combination
Any pointers/suggestions on failed test case will be great help.
Below is additional information required for debug / resolve /reproduce test case failure,
go version
)?$ go version
go version go1.4.2 gccgo (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010 linux/ppc64le
go env
)?$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
$ go env
GOARCH="ppc64le"
GOBIN=""
GOCHAR="9"
GOEXE=""
GOHOSTARCH="ppc64le"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr"
GOTOOLDIR="/usr/lib/gcc/powerpc64le-linux-gnu/5"
CC="/usr/bin/gcc-5"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0"
CXX="/usr/bin/g++-5"
CGO_ENABLED="1"
$ uname -a
Linux 9de5feaaf936 3.16.0-30-generic #40-Ubuntu SMP Mon Jan 12 22:07:11 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux
I am working porting go supplementary networking libraries https://godoc.org/golang.org/x/net on ppc64le architecture. Already provided steps to reproduce test case failure
No test case failure on Ubuntu 15.10 + ppc64le combination
Automated test case execution failed due to failure of ‘TestPrivilegedPing’ test case
The text was updated successfully, but these errors were encountered: