Ask Your Question
0

No IP adress attributed to instance with DHCP [closed]

asked 2013-05-13 04:26:00 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello, I've a little problem, when I run an instance, I've no IP address in interface of my instance. I currently have a single node installation of openstack grizzly running

I put in /etc/nova/nova.conf

dhcpbridge = /usr/bin/nova-dhcpbridge

dhcpbridgeflagfile =/etc/nova/nova.conf metadatahost =172.16.118.200

network_host=172.16.118.200

routingsourceip=172.16.118.200

fixed_range=10.12.0.0/24

network_size=256

flatnetworkbridge=br0

flat_interface=eth0

flat_injected=False

I can launch, display and configure an IP address to my interface eth0 but I can find my adress with the DHCP.

Somebody have maybe an idea?

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by Ph4nToM
close date 2013-06-13 03:50:28.542072

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-05-13 07:59:04 -0500

Did you create network:

nova-manage network create private --fixed_range_v4=10.12.0.0/24 --bridge_interface=br0 --num_networks=1 --network_size=256

Also in above configuration put:

network_manager=nova.network.manager.FlatDHCPManager
edit flag offensive delete link more

Comments

yes I created the network before and I have the line network_manager=nova.network.manager.FlatDHCPManager in /etc/nova.conf

Ph4nToM gravatar imagePh4nToM ( 2013-05-13 08:01:07 -0500 )edit
0

answered 2013-05-13 08:13:51 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

To deploy my instance I did:

nova-manage floating create 172.16.118.201

nova-manage network create private --fixedrangev4=10.12.0.0/24 --numnetworks=1 --bridge=br0 --bridgeinterface=eth2 --network_size=256

-- Creation of keypair --

nova keypair-add keypairtest > keypairtest.pem

chmod 600 keypair_test.pem

nova boot --image 083a52e0-b333-42c0-811f-41265dba7883 --flavor 0d16c089-2fd4-455e-bef5-f521f945a2f8 --key_name test instance1 --poll

nova floating-ip-create

nova add-floating-ip instance1 172.16.118.201

My file nova.conf is: image description

But it not work....

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2013-05-13 04:26:00 -0500

Seen: 1,364 times

Last updated: May 14 '13