Ask Your Question
5

Instances do not get IPs by DHCP

asked 2013-09-25 07:33:41 -0500

muehsi gravatar image

updated 2013-09-26 17:45:45 -0500

smaffulli gravatar image

I am using Openstack with Neutron. I created a precise Image and launched instances with it. Unfortunately my instances do not get IPs by DHCP.

Here is my localrc:

DATABASE_PASSWORD=changed
RABBIT_PASSWORD=changed
SERVICE_TOKEN=changed
SERVICE_PASSWORD=changed
ADMIN_PASSWORD=changed
MYSQL_PASSWORD=changed

# VERBOSE=True
# LOGFILE=/opt/stack/data/stack.log
LOGDAYS=14
SCREEN_LOGDIR=/opt/stack/data/log
RECLONE=yes

FLOATING_RANGE=172.16.34.128/25
FIXED_RANGE=10.11.12.0/24
FIXED_NEDTWORK_SIZE=256
FLAT_INTERFACE=eth0

HOST_IP=172.16.34.10

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service mysql
enable_service n-vol
enable_service n-cpu
enable_service rabbit
enable_service n-api
enable_service glance
enable_service neutron
enable_service n-sch
disable_service tempest

#SCHEDULER=nova.scheduler.simple.SimpleScheduler

MULTI_HOST=True

#Floodlight: http://floodlight.openflowhub.org/quantum-and-openstack/

#BS_FL_CONTROLLERS_PORT=172.16.150.26:8080

ifconfig on server:

stack@server01:~/devstack$ ifconfig
br-ex     Link encap:Ethernet  Hardware Adresse 6e:66:34:30:fe:4d  
          inet Adresse:172.24.4.225  Bcast:0.0.0.0  Maske:255.255.255.128
          inet6-Adresse: fe80::6c66:34ff:fe30:fe4d/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX-Bytes:1314 (1.3 KB)  TX-Bytes:468 (468.0 B)

eth0      Link encap:Ethernet  Hardware Adresse 00:1e:68:9a:c9:f2  
          inet Adresse:172.16.34.10  Bcast:172.16.34.255  Maske:255.255.255.0
          inet6-Adresse: fe80::21e:68ff:fe9a:c9f2/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:234913 errors:0 dropped:0 overruns:0 frame:0
          TX packets:318507 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX-Bytes:279694404 (279.6 MB)  TX-Bytes:303031330 (303.0 MB)
          Interrupt:18 Speicher:fc5e0000-fc600000 

lo        Link encap:Lokale Schleife  
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:65536  Metrik:1
          RX packets:160695 errors:0 dropped:0 overruns:0 frame:0
          TX packets:160695 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX-Bytes:317800471 (317.8 MB)  TX-Bytes:317800471 (317.8 MB)

qbr484cb36f-91 Link encap:Ethernet  Hardware Adresse c2:3a:45:dc:24:97  
          inet6-Adresse: fe80::8cf3:8bff:fee2:437b/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX-Bytes:8564 (8.5 KB)  TX-Bytes:468 (468.0 B)

qvb484cb36f-91 Link encap:Ethernet  Hardware Adresse c2:3a:45:dc:24:97  
          inet6-Adresse: fe80::c03a:45ff:fedc:2497/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metrik:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX-Bytes:468 (468.0 B)  TX-Bytes:9522 (9.5 KB)

qvo484cb36f-91 Link encap:Ethernet ...
(more)
edit retag flag offensive close merge delete

Comments

i am having same problem :(

ftahir gravatar imageftahir ( 2013-09-27 09:16:57 -0500 )edit

PLEASE let me know if you find a fix/workaround..

muehsi gravatar imagemuehsi ( 2013-10-03 09:01:25 -0500 )edit

Looks like this is the same problem I am facing https://ask.openstack.org/en/question/6925/havana-instance-not-getting-an-ip/ I can see error --ERROR neutron.agent.dhcp_agent [-] Unable to enable dhcp in dhcp-agent.log of my setup

sngirame gravatar imagesngirame ( 2013-11-12 06:19:32 -0500 )edit

4 answers

Sort by » oldest newest most voted
2

answered 2013-11-13 04:07:41 -0500

muehsi gravatar image

I got it working by this localrc: http://paste.org/68525

edit flag offensive delete link more

Comments

sorry where can i fidn the localrc file ... i have the same problem but i can not find the localrc file to try to set up this parameters

malascom gravatar imagemalascom ( 2016-02-15 03:28:25 -0500 )edit
1

answered 2014-01-03 02:07:04 -0500

chaoya gravatar image

I am facing the same problem, 10.0.0.1 can't be connected

edit flag offensive delete link more

Comments

can you explain bit more on this ? Is it a multi node setup or single node setup ? Is it nova-network or neutron ?

dheeru gravatar imagedheeru ( 2014-01-03 02:50:47 -0500 )edit

Its multi node setup and neutron is used !!!

sankalp82 gravatar imagesankalp82 ( 2014-01-06 03:24:42 -0500 )edit

Ubuntu ? Every instance does not get the IP address ?

dheeru gravatar imagedheeru ( 2014-01-06 04:59:48 -0500 )edit
1

answered 2014-05-29 00:40:32 -0500

shengchao liu gravatar image

yes,i use Ubuntu and the single flat network,i also could't get the ip,why?

edit flag offensive delete link more
0

answered 2013-11-26 06:52:48 -0500

sankalp82 gravatar image

updated 2013-11-26 06:53:29 -0500

I am also facing same problem

edit flag offensive delete link more

Comments

If the solution doesn't work for you, please ask a new question giving more details.

smaffulli gravatar imagesmaffulli ( 2014-01-03 16:56:44 -0500 )edit

Its multi node setup and neutron is used !!!

sankalp82 gravatar imagesankalp82 ( 2014-01-06 03:24:45 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-09-25 07:33:41 -0500

Seen: 4,960 times

Last updated: May 29 '14