Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etcd 2.3.0 does not print anything #4993

Closed
alban opened this issue Apr 7, 2016 · 4 comments
Closed

etcd 2.3.0 does not print anything #4993

alban opened this issue Apr 7, 2016 · 4 comments

Comments

@alban
Copy link
Contributor

alban commented Apr 7, 2016

sudo rkt --debug run --stage1-name=coreos.com/rkt/stage1-coreos:1.3.0 coreos.com/etcd:v2.3.0

rkt starts etcd but it does not print anything. Same issue with v2.3.1.

Strace says that it is waiting on epoll_wait(4,

# ls -l /proc/7569/fd/
total 0
lr-x------. 1 root root 64 Apr  7 19:21 0 -> /dev/null
lrwx------. 1 root root 64 Apr  7 19:21 1 -> socket:[6659175]
lr-x------. 1 root root 64 Apr  7 19:21 10 -> /opt/stage2/etcd/rootfs/data-dir/member/wal/0000000000000000-0000000000000000.wal
lrwx------. 1 root root 64 Apr  7 19:21 2 -> socket:[6659175]
lrwx------. 1 root root 64 Apr  7 19:21 3 -> socket:[6657393]
lrwx------. 1 root root 64 Apr  7 19:21 4 -> anon_inode:[eventpoll]
lrwx------. 1 root root 64 Apr  7 19:21 5 -> socket:[6654658]
lrwx------. 1 root root 64 Apr  7 19:21 6 -> socket:[6654659]
lrwx------. 1 root root 64 Apr  7 19:21 7 -> socket:[6654678]
lrwx------. 1 root root 64 Apr  7 19:21 8 -> socket:[6654679]
l-wx------. 1 root root 64 Apr  7 19:21 9 -> /opt/stage2/etcd/rootfs/data-dir/member/wal/0000000000000000-0000000000000000.wal

When trying with an older version (coreos.com/etcd:v2.0.10), it successfully prints the usual output:

[347548.946795] etcd[4]: 2016/04/07 17:28:39 etcd: no data-dir provided, using default data-dir ./default.etcd
[347548.950747] etcd[4]: 2016/04/07 17:28:39 etcd: listening for peers on http://localhost:2380
...

Is there something preventing etcd from printing its usual output?

/cc @jonboulle

@alban
Copy link
Contributor Author

alban commented Apr 7, 2016

  • coreos.com/etcd:v2.3.1 works fine with rkt-v1.1.0 but it fails with rkt-v1.2.0 or rkt-v1.2.1 or more recent.
  • coreos.com/etcd:v2.0.10 works on all versions of rkt.

Recent images of etcd were built with acbuild. Maybe it's related?

It might not be a bug in etcd then...

@gyuho
Copy link
Contributor

gyuho commented Apr 7, 2016

sudo ./rkt trust --prefix coreos.com/etcd
sudo ./rkt --debug run --volume data-dir,kind=host,source=/tmp --mds-register=false coreos.com/etcd:v2.3.1;

This works with rkt 1.0.0, but no output with rkt 1.3.0

@xiang90
Copy link
Contributor

xiang90 commented Apr 8, 2016

@alban Shall we close this at etcd side? I feel this is probably a regression on rkt, given the fact rkt 1.0 works. We would like to look into this if you believe this is something that etcd needs to resolve.

@alban
Copy link
Contributor Author

alban commented Apr 13, 2016

@xiang90 ok, I filed rkt/rkt#2417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants