bilelmsekni / OpenStack-Grizzly-Install-Guide

A full install guide for OpenStack Grizzly
352 stars 218 forks source link

VM does not get an IP #135

Closed dnepangue closed 11 years ago

dnepangue commented 11 years ago

Hi All,

First of all thank you for writing this guide https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/blob/OVS_SingleNode/OpenStack_Grizzly_Install_Guide.rst . I followed every pieces on it and successfully launched an instance . However I noticed that the VM doesn't get an IP. Im using Cirros image for testing.

ifconfig shows no IP assigned. But on the dashboard it shows it gets an IP. Anyone experienced this?

ifconfig

screen shot 2013-10-21 at 2 36 10 pm

Dashboard shows...

screen shot 2013-10-21 at 2 37 22 pm

ghost commented 11 years ago

I faced it and solved as below:

In the section "9. Your first VM"

Under the command elaboration: "Create a new subnet inside the new tenant network:"

quantum subnet-create --tenant-id $put_id_of_project_one net_proj_one 50.50.1.0/24 --dns_nameservers list=true 8.8.8.7 8.8.8.8

Replace above command with this:

quantum subnet-create --tenant-id $put_id_of_project_one net_proj_one 50.50.1.0/24 --dns_nameservers list=true 8.8.8.7 8.8.8.8 --enable_dhcp=True

It means since dhcp is not enabled your vm's will not get an ip.

dnepangue commented 11 years ago

Thank you Scott2099, will test it out.

mtasic85 commented 10 years ago

1) I had so much trouble using 50.50.1.0/24 as subnet because my compute nodes had access to internet at moment when I installed them. I suggest using private network 10.30.30.0/24 insetad.

2) You probably have problem with kernel and OVS. I suggest downgrading kernel to 3.2 and re-installing OVS as well. Here is explanation how to do to so: https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/issues/137#issuecomment-28564008

mtasic85 commented 10 years ago

I found a way to upgrade kernel to 3.8 and OVS to 1.9.0. Check https://github.com/mseknibilel/OpenStack-Grizzly-Install-Guide/issues/143#issuecomment-29198309

angeloudy commented 10 years ago

I met the same issue with linuxbridge.