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

Correctly handle absence of "eth0" for on-prem install #922

Closed
dmytro-ndp opened this issue Oct 7, 2016 · 7 comments
Closed

Correctly handle absence of "eth0" for on-prem install #922

dmytro-ndp opened this issue Oct 7, 2016 · 7 comments

Comments

@dmytro-ndp
Copy link
Contributor

dmytro-ndp commented Oct 7, 2016

Installation of Codenvy on-prem of version starting from 5.0.0-M1 fails if there is no "eth0" network interface on the machine. There is puppet error in time of installing like the follow:

2016-10-06 06:48:12 -0700 Puppet (err): Could not start Service[docker]: Execution of '/usr/bin/systemctl start docker' returned 1: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
2016-10-06 06:48:12 -0700 /Stage[main]/Third_party::Docker::Service/Service[docker]/ensure (err): change from stopped to running failed: Could not start Service[docker]: Execution of '/usr/bin/systemctl start docker' returned 1: Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
2016-10-06 06:48:15 -0700 /Stage[main]/All_in_one::Service/Service[codenvy] (notice): Dependency Service[docker] has failures: true
2016-10-06 06:48:15 -0700 /Stage[main]/All_in_one::Service/Service[codenvy] (warning): Skipping because of failed dependencies

Workaround: check does "eth0" network interface present in the system at the "Checking system pre-requisites" stage in Codenvy bootstrap script.
If "eth0" network interface doesn't present in system, hold on installation and ask user to enter correct network interface name in aim to fix docker_cluster_advertise codenvy property to have this name:

Your system doesn't have network interface "eth0". Codenvy on-prem requires a name of network interface that docker daemon instances should use when advertising itself to the cluster. Please, enter the replacement of "eth0": ...

Customer Nokia encountered this error.

@dmytro-ndp dmytro-ndp changed the title Work around non-"eth0" network interfaces in time of installing Codenvy on-prem Work around absence of "eth0" network interface in time of installing Codenvy on-prem Oct 7, 2016
@bmicklea
Copy link
Contributor

bmicklea commented Oct 7, 2016

The text for the error should be:

The Codenvy master node needs to advertise itself on a network interface. By default we use "eth0" but can't find that interface on this machine. Please enable "eth0" or enter the name of a network interface we can use:

@bmicklea
Copy link
Contributor

bmicklea commented Oct 7, 2016

This is high priority.

@bmicklea bmicklea changed the title Work around absence of "eth0" network interface in time of installing Codenvy on-prem Correctly handle absence of "eth0" for on-prem install Oct 7, 2016
@dmytro-ndp
Copy link
Contributor Author

dmytro-ndp commented Oct 7, 2016

@bmicklea: we can't provide two actions in the one prompt at once:

  • enabling "eth0", or
  • getting new name of a network interface.

The possible variant is:
... Please enter the name of a network interface we can use instead (empty for using "eth0" anyway):

@dmytro-ndp dmytro-ndp self-assigned this Oct 7, 2016
@bmicklea
Copy link
Contributor

bmicklea commented Oct 7, 2016

Ah, I see okay - then what about this:

The Codenvy master node needs to advertise itself on a network interface. By default we use "eth0" but can't find that interface on this machine. Please enable "eth0" and hit enter (leaving the name blank) or enter the name of an available network interface:

@dmytro-ndp
Copy link
Contributor Author

dmytro-ndp commented Oct 12, 2016

read-network-interface

Special option which admin could use to change default neadvertise network interface name to proper one:

--advertise-network-interface

@dmytro-ndp
Copy link
Contributor Author

dmytro-ndp commented Oct 13, 2016

@eivantsov: please, add new bootstrap script option "--advertise-network-interface=" in http://codenvy.readme.io/docs/installation#install

@ddementieva
Copy link

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

No branches or pull requests

4 participants