VlanManager: nova-network does not assign ip from project's network range
Hi all,
I'm experiencing a problem with dhcp assigned ips in a vlan manager environment.
I'm testing a two node setup: both of them are ubuntu 11.04 running Diablo services.
Actual diablo milestone version is D4, but I found the problem on D3.
The first node runs as cloud controller and nova-network service, the second is a nova-compute node.
On my nova.conf I defined the fixed_range this way:
--fixed_
On this node I created a first project and then a network with the following command:
root@nova-
root@nova-
network netmask start address DNS1 DNS2 VlanID project
10.12.2.0/24 255.255.255.0 10.12.2.3 None None 12 None
As soon as I deploy a vm with my project's credentials, in the nova database I can see:
mysql> select * from networks \G;
*******
deleted: 0
id: 8
injected: 0
cidr: 10.12.2.0/24
netmask: 255.255.255.0
bridge: br102
gateway: 10.12.2.1
dns1: NULL
vlan: 102
host: nova-services2
cidr_v6: NULL
label: gcivitella_proj_net
dns2: NULL
uuid: d1e1eb15-
AFAIK this means that the network has been associated with the project without any further configuration. From now on the vms deployed by project's users should be linked to that project's network.
I would expect thath my first deployed vm woud get an ip between 10.12.2.3 and 10.12.2.255.
What really happens is that on both nodes vlans and bridges are created correctly. On nova-network node br102 gets 10.12.2.1 as ip (gateway's ip in this network sql record), but the vm gets as ip 10.12.1.5 and this makes it unreacheable.
In nova-network.log i can see:
2011-08-26 10:15:04,592 DEBUG nova.rpc [-] received {u'_context_
u'method': u'release_
2011-08-26 10:15:04,593 DEBUG nova.rpc [-] unpacked context: {'timestamp': u'2011-
pack_context /usr/lib/
2011-08-26 10:15:04,594 DEBUG nova.network.
2011-08-26 10:15:04,732 WARNING nova.network.
Dnsmasq gets started with the following command:
dnsmasq --strict-order --bind-interfaces --interface=br102 --conf-file= --domain=diablo.dev --pid-file=
in dhcp-hostsfile i get:
root@nova-
02:16:3e:
These are the networks that nova-manage shows:
root@nova-
id IPv4 IPv6 start address DNS1 DNS2 VlanID project uuid
8 10.12.2.0/24 None 10.12.2.3 None None 102 gcivitella_proj d1e1eb15-
9 10.12.3.0/24 None 10.12.3.3 None None 103 None 90ac68c8-
Any suggestion to get over the problem?
Thanks
Giuseppe
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Giuseppe Civitella
- Solved:
- Last query:
- Last reply: