Instance does not bring up network interfaces

Asked by Max Schilling

I've got a two server setup running Essex. One server solely runs nova-compute, the other runs the rest of the services. I can bring up instances and ssh into them using some Ubuntu Cloud Image, that I downloaded. I wanted to run a CentOs 6.2 image, which I managed to create and run after struggling a bit with the custom image creation.

The problem I encountered was that I was neither able to ping nor ssh into the CentOs instance. But with the vnc console I was able to login and have a look. There I noticed, that no eth* interface was up and I was not able to get eth0 up, which I had previously used when I created the image. I checked /etc/udev/rules.d/70-persistent-net.rules, which had two new eth* interfaces (I got two networks assigned). After creating eth1 and eth2 using "setup" in CentOs and a reboot I was able to ping and ssh into the instance.

Is there a way that OpenStack automatically can create the interfaces and bring them up correctly?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Vish Ishaya
Solved:
Last query:
Last reply:
Revision history for this message
Best Vish Ishaya (vishvananda) said :
#1

It should automatically bring up the interfaces and dhcp the new addresses. You probably have to delete persistent net rules in your image and make sure that the first interface is configured to dhcp.

On May 8, 2012, at 1:45 AM, Mark Gall wrote:

> New question #196462 on OpenStack Compute (nova):
> https://answers.launchpad.net/nova/+question/196462
>
> I've got a two server setup running Essex. One server solely runs nova-compute, the other runs the rest of the services. I can bring up instances and ssh into them using some Ubuntu Cloud Image, that I downloaded. I wanted to run a CentOs 6.2 image, which I managed to create and run after struggling a bit with the custom image creation.
>
> The problem I encountered was that I was neither able to ping nor ssh into the CentOs instance. But with the vnc console I was able to login and have a look. There I noticed, that no eth* interface was up and I was not able to get eth0 up, which I had previously used when I created the image. I checked /etc/udev/rules.d/70-persistent-net.rules, which had two new eth* interfaces (I got two networks assigned). After creating eth1 and eth2 using "setup" in CentOs and a reboot I was able to ping and ssh into the instance.
>
> Is there a way that OpenStack automatically can create the interfaces and bring them up correctly?
>
> --
> You received this question notification because you are a member of Nova
> Core, which is an answer contact for OpenStack Compute (nova).

Revision history for this message
Max Schilling (mx-chilly) said :
#2

Thanks for the answer, it was part of the problem and helped to solve it. The other part being network interface configuration of CentOS, which I was not very familiar with.

Revision history for this message
Max Schilling (mx-chilly) said :
#3

Thanks Vish Ishaya, that solved my question.