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

'che-ip' tool returns an error in case when there is no 'ethn' interface #2284

Closed
dmytro-ndp opened this issue Aug 31, 2016 · 3 comments
Closed
Assignees
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Milestone

Comments

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Aug 31, 2016

There was an error on machine:

[vagrant@codenvy ~]$ sudo docker run --net host --rm codenvy/che-ip:4.7.0
unable to find a eth* interface

ifconfig output:

[vagrant@codenvy ~]$ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.42.1  netmask 255.255.0.0  broadcast 0.0.0.0
        inet6 fe80::42:d7ff:feeb:3d83  prefixlen 64  scopeid 0x20<link>
        ether 02:42:d7:eb:3d:83  txqueuelen 0  (Ethernet)
        RX packets 114  bytes 14302 (13.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 79  bytes 30342 (29.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::a00:27ff:fe11:c190  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:11:c1:90  txqueuelen 1000  (Ethernet)
        RX packets 1152376  bytes 1167010865 (1.0 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 368122  bytes 24073103 (22.9 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.56.110  netmask 255.255.255.0  broadcast 192.168.56.255
        inet6 fe80::a00:27ff:febe:11e3  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:be:11:e3  txqueuelen 1000  (Ethernet)
        RX packets 13789  bytes 1524580 (1.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 49449  bytes 88205553 (84.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 55767  bytes 192575199 (183.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 55767  bytes 192575199 (183.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
@dmytro-ndp dmytro-ndp added the kind/bug Outline of a bug - must adhere to the bug report template. label Aug 31, 2016
benoitf added a commit to benoitf/che-dockerfiles that referenced this issue Aug 31, 2016
on native we can use docker0

Change-Id: If44ddd1a1cee1a17f41a7a3ce3354368c9275ff9
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
benoitf added a commit to benoitf/che-dockerfiles that referenced this issue Aug 31, 2016
on native we can use docker0

Change-Id: If44ddd1a1cee1a17f41a7a3ce3354368c9275ff9
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@benoitf
Copy link
Contributor

benoitf commented Aug 31, 2016

benoitf added a commit to eclipse-che/che-dockerfiles that referenced this issue Aug 31, 2016
on native we can use docker0

Change-Id: If44ddd1a1cee1a17f41a7a3ce3354368c9275ff9
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@benoitf benoitf modified the milestones: 4.7.1, 4.8.0 Sep 1, 2016
@benoitf
Copy link
Contributor

benoitf commented Sep 3, 2016

@riuvshin so it seems you can update che-ip image @dmytro-ndp closed the issue

@dmytro-ndp
Copy link
Contributor Author

dmytro-ndp commented Sep 3, 2016

BTW: I tested it by changing IP interface names eth0 > p0, eth1 > p1.

(do it inside VirtualBox machine window): https://bbs.archlinux.org/viewtopic.php?id=109057

sudo su
docker run --net host --rm codenvy/che-ip:nightly
> 192.168.56.110

ip link set eth0 down
ip link set eth0 name p0
ip link set p0 up

ip link set eth1 down
ip link set eth1 name p1
ip link set p1 up

docker run --net host --rm codenvy/che-ip:nightly
> 172.17.42.1

@bmicklea bmicklea mentioned this issue Sep 6, 2016
25 tasks
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

2 participants