Skip to content

Instantly share code, notes, and snippets.

View mkumatag's full-sized avatar
:octocat:
Coding...

Manjunath Kumatagi mkumatag

:octocat:
Coding...
  • IBM India Pvt. Ltd., Red Hat
  • Bangalore, India
  • 14:52 (UTC +05:30)
  • X @mkumatag
View GitHub Profile
@mkumatag
mkumatag / gist:4ec4b1eabd3bdb0d91f24e39ebd4c7ca
Created January 20, 2017 07:27
etcd test results on ppc64le platform
localhost:~/etcd$ ./test
Checking gofmt...
Checking govet...
Checking 'go tool vet -shadow'...
Skipping goword...
Skipping gosimple...
Skipping unused...
Checking for license header...
Checking commit titles...
Checking package dependencies...
[root@localhost origin]# ./hack/build-base-images.sh
[WARNING] Unable to locate 'imagebuilder' on PATH, falling back to Docker build
Sending build context to Docker daemon 8.192 kB
Step 1/3 : FROM ppc64le/centos:centos7
centos7: Pulling from ppc64le/centos
d2664d978557: Pull complete
Digest: sha256:d66a1c7b875106bde4079ea322bb72b8c9f5d643863a3c522e5bb806f73966f2
Status: Downloaded newer image for ppc64le/centos:centos7
---> 3d0ded8c6f42
Step 2/3 : RUN INSTALL_PKGS="which git tar wget hostname sysvinit-tools util-linux bsdtar epel-release socat ethtool device-mapper iptables tree findutils nmap-ncat e2fsprogs xfsprogs lsof device-mapper-persistent-data ceph-common" && yum install -y epel-release && yum install -y $INSTALL_PKGS && rpm -V $INSTALL_PKGS && yum clean all && mkdir -p /var/lib/origin
@mkumatag
mkumatag / integration.tests
Created March 23, 2017 09:38
kubernetes integration tests
This file has been truncated, but you can view the full file.
root@localhost:~/k8s_ws/src/k8s.io/kubernetes# make test-integration KUBE_GOFLAGS="-v"
+++ [0323 05:23:56] Checking etcd is on PATH
/root/etcd/etcd-v3.1.3-linux-amd64/etcd
+++ [0323 05:23:56] Starting etcd instance
etcd --advertise-client-urls http://127.0.0.1:2379 --data-dir /tmp/tmp.lBmIea33aZ --listen-client-urls http://127.0.0.1:2379 --debug > "/dev/null" 2>/dev/null
Waiting for etcd to come up.
+++ [0323 05:23:57] On try 1, etcd: : http://127.0.0.1:2379
{"action":"set","node":{"key":"/_test","value":"","modifiedIndex":4,"createdIndex":4}}
+++ [0323 05:23:57] Running integration test cases
Running tests for APIVersion: v1,apps/v1beta1,authentication.k8s.io/v1,authentication.k8s.io/v1beta1,authorization.k8s.io/v1,authorization.k8s.io/v1beta1,autoscaling/v1,autoscaling/v2alpha1,batch/v1,batch/v2alpha1,certificates.k8s.io/v1beta1,extensions/v1beta1,imagepolicy.k8s.io/v1alpha1,policy/v1beta1,rbac.authorization.k8s.io/v1beta1,rbac.authorization.k8s.io/v1alpha1,settings.k8s.io/v1alpha1,storage.k8s.io/v1beta1,st
[root@ localhost kubernetes]# cluster/kubectl.sh run nginx --image=nginx
deployment "nginx" created
[root@ localhost kubernetes]# cluster/kubectl.sh get pods
NAME READY STATUS RESTARTS AGE
nginx-2371676037-3pnt4 0/1 ContainerCreating 0 8s
[root@ localhost kubernetes]#
[root@ localhost kubernetes]# docker version
Client:
root@localhost:~/ingress_ws/ingress/images/ubuntu-slim# ARCH=arm make container
docker rmi -f gcr.io/google_containers/ubuntu-slim:0.9 || true
Error response from daemon: No such image: gcr.io/google_containers/ubuntu-slim:0.9
docker rmi -f ubuntu-build || true
Error response from daemon: No such image: ubuntu-build:latest
docker rm -f ubuntu-build || true
Error response from daemon: No such container: ubuntu-build
rm -f rootfs.tar
cp ./* /tmp/tmp.wsYRUUtLkB
cd /tmp/tmp.wsYRUUtLkB && sed -i 's|BASEIMAGE|armhf/ubuntu:16.04|g' Dockerfile.build
root@563f76fdb266:~/go/misc/cgo/testcarchive# LD_DEBUG=all ./testnoshared 3
16653:
16653: WARNING: Unsupported flag value(s) of 0x8000000 in DT_FLAGS_1.
16653:
16653: file=libpthread.so.0 [0]; needed by ./testnoshared [0]
16653: find library=libpthread.so.0 [0]; searching
16653: search cache=/etc/ld.so.cache
16653: trying file=/lib/powerpc64le-linux-gnu/libpthread.so.0
16653:
16653: file=libpthread.so.0 [0]; generating link map
This file has been truncated, but you can view the full file.
root@f8a013615ac5:~/go/misc/cgo/testcarchive# readelf -r --wide ./testnoshared
Relocation section '.rela.dyn' at offset 0x900 contains 28921 entries:
Offset Info Type Symbol's Value Symbol's Name + Addend
000000000012b928 0000000000000016 R_PPC64_RELATIVE aa8d0
000000000012b930 0000000000000016 R_PPC64_RELATIVE 12b740
000000000012b938 0000000000000016 R_PPC64_RELATIVE 12b820
0000000000152420 0000000000000016 R_PPC64_RELATIVE aa760
0000000000152428 0000000000000016 R_PPC64_RELATIVE f91f0
0000000000152430 0000000000000016 R_PPC64_RELATIVE aa710

Keybase proof

I hereby claim:

  • I am mkumatag on github.
  • I am mkumatag (https://keybase.io/mkumatag) on keybase.
  • I have a public key ASDdnzJ5ydcjvFMN5s-0Qg1Jo9Z-IyKB70gBp_x2lp9uGgo

To claim this, I am signing this object:

root@localhost:~/go-build# make all-build
make build ARCH=amd64
make[1]: Entering directory '/root/go-build'
docker run --rm --privileged multiarch/qemu-user-static:register --reset
Unable to find image 'multiarch/qemu-user-static:register' locally
register: Pulling from multiarch/qemu-user-static
57310166fe88: Pull complete
7cab1bf504ea: Pull complete
8c56d6432632: Pull complete
Digest: sha256:5093446ef7c097151b82a11248d1713ca3d30223005ddaaa643ecedc6fb9ec29
root@some-hostname:~/calico_ws/src/github.com/projectcalico/calico-upgrade# make build-all
CALICOCTL_VER = master
CALICOCTL_V2_VER = v1.6.x-series
make build ARCH=amd64 OS=linux
make[1]: Entering directory '/root/calico_ws/src/github.com/projectcalico/calico-upgrade'
CALICOCTL_VER = master
CALICOCTL_V2_VER = v1.6.x-series
# Ensure that the glide cache directory exists.
mkdir -p /root/.glide
# To build without Docker just run "glide install -strip-vendor"