← Back to team overview

openstack team mailing list archive

wrong IP given by flat network dhcp

 

Hello,

I installed Essex on Ubuntu 12.04 Server, and I had a problem with VM IP.

The IP given to the VM (10.18.9.2) isn't in the fixed_range. Here's a portion of nova.conf:

# cat /etc/nova/nova.conf
[...]
--network_manager=nova.network.manager.FlatDHCPManager
--public_interface=eth0
--flat_interface=eth1
--flat_network_bridge=br100
--fixed_range=10.18.9.32/27
--floating_range=172.22.22.32/27
--network_size=32
--flat_network_dhcp_start=10.18.9.33

and here's the host network config:

# cat /etc/network/interfaces
auto eth0
iface eth0 inet static
address 172.22.22.1
gateway 172.22.0.1
netmask 255.255.0.0
network 172.22.0.0
broadcast 172.22.255.255

auto eth1
iface eth1 inet static
address 10.18.9.1
netmask 255.255.0.0
network 10.18.0.0
broadcast 10.18.255.255

Then I deployed another VM, and I was given IP 10.18.9.3. Here's an excerpt of /var/log/nova/nova-network.log when I deployed this machine:

2012-03-28 17:29:16 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_context_request_id': u'req-aa77b53c-be43-4b4e-bf82-98f62bff7f52', u'_context_read_deleted': u'no', u'args': {u'address': u'10.18.9.3'}, u'_context_auth_token': None, u'_context_is_admin': True, u'_context_project_id': None, u'_context_timestamp': u'2012-03-28T15:29:16.569136', u'_context_user_id': None, u'method': u'lease_fixed_ip', u'_context_remote_address': None} from (pid=17249) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:144 2012-03-28 17:29:16 DEBUG nova.rpc.amqp [req-aa77b53c-be43-4b4e-bf82-98f62bff7f52 None None] unpacked context: {'request_id': u'req-aa77b53c-be43-4b4e-bf82-98f62bff7f52', 'user_id': None, 'roles': [u'admin'], 'timestamp': '2012-03-28T15:29:16.569136', 'is_admin': True, 'auth_token': None, 'project_id': None, 'remote_address': None, 'read_deleted': u'no'} from (pid=17249) unpack_context /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:188 2012-03-28 17:29:16 DEBUG nova.network.manager [req-aa77b53c-be43-4b4e-bf82-98f62bff7f52 None None] Leased IP |10.18.9.3| from (pid=17249) lease_fixed_ip /usr/lib/python2.7/dist-packages/nova/network/manager.py:1222 2012-03-28 17:29:16 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_msg_id': u'ba410b9f98c04023b68f6ea6e95d775e', u'_context_read_deleted': u'no', u'_context_request_id': u'req-11a728d5-d7f5-4c65-a2ce-6d958585e574', u'args': {u'address': u'10.18.9.3'}, u'_context_auth_token': None, u'_context_is_admin': True, u'_context_project_id': None, u'_context_timestamp': u'2012-03-28T15:29:16.820602', u'_context_user_id': None, u'method': u'get_fixed_ip_by_address', u'_context_remote_address': None} from (pid=17249) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:144 2012-03-28 17:29:16 DEBUG nova.rpc.amqp [req-11a728d5-d7f5-4c65-a2ce-6d958585e574 None None] unpacked context: {'request_id': u'req-11a728d5-d7f5-4c65-a2ce-6d958585e574', 'user_id': None, 'roles': [u'admin'], 'timestamp': '2012-03-28T15:29:16.820602', 'is_admin': True, 'auth_token': None, 'project_id': None, 'remote_address': None, 'read_deleted': u'no'} from (pid=17249) unpack_context /usr/lib/python2.7/dist-packages/nova/rpc/amqp.py:188 2012-03-28 17:29:40 DEBUG nova.rpc.amqp [-] received {u'_context_roles': [u'admin'], u'_msg_id': u'50999ff995cd4f7e8e441885d3ada543', u'_context_read_deleted': u'no', u'_context_request_id': u'req-563547e8-6f6f-43b1-9449-681ff43dad33', u'args': {u'instance_id': 3, u'instance_uuid': u'b7ec8623-e002-4682-a37b-50e1d047c134', u'host': u'openstack1', u'project_id': u'0a9e24ccc1ac46eea75154c85bb4052e', u'rxtx_factor': 1.0}, u'_context_auth_token': None, u'_context_is_admin': True, u'_context_project_id': None, u'_context_timestamp': u'2012-03-28T15:29:31.151885', u'_context_user_id': None, u'method': u'get_instance_nw_info', u'_context_remote_address': None} from (pid=17249) _safe_log /usr/lib/python2.7/dist-packages/nova/rpc/common.py:144


what am I doing wrong?


--
Michaël Van de Borne
R&D Engineer, SOA team, CETIC
Phone: +32 (0)71 49 07 45 Mobile: +32 (0)472 69 57 16, Skype: mikemowgli
www.cetic.be, rue des Frères Wright, 29/3, B-6041 Charleroi



Follow ups