Your network and fixed ips in the database are from the wrong range. I would suggest you delete your db and start over. Make sure you specify the correct range when you create your network.
Vish On Mar 29, 2012, at 12:59 AM, Michaël Van de Borne wrote: > Well, I changed /etc/network/interfaces accordingly (see below) and didn't > make any change in nova.conf, but the problem still remains. New VM are given > IPs from 10.18.9.2 (and not 10.18.9.33). What else can I check? > > > $ cat /etc/network/interfaces > # This file describes the network interfaces available on your system > # and how to activate them. For more information, see interfaces(5). > > # The loopback network interface > auto lo > iface lo inet loopback > > # The primary network interface > auto eth0 > #iface eth0 inet dhcp > 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.255.224 > network 10.18.9.0 > broadcast 10.18.9.31 > > Here's the output of ifconfig: > > localadmin@openstack1:~$ ifconfig > br100 Link encap:Ethernet HWaddr 5c:f3:fc:1d:4a:42 > inet addr:10.18.9.1 Bcast:10.18.9.31 Mask:255.255.255.224 > inet6 addr: fe80::bc06:73ff:fe85:2081/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:189404 errors:0 dropped:1001 overruns:0 frame:0 > TX packets:6063 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:12010565 (12.0 MB) TX bytes:1100566 (1.1 MB) > > eth0 Link encap:Ethernet HWaddr 5c:f3:fc:1d:4a:40 > inet addr:172.22.22.1 Bcast:172.22.255.255 Mask:255.255.0.0 > inet6 addr: fe80::5ef3:fcff:fe1d:4a40/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:473034 errors:0 dropped:1133 overruns:0 frame:0 > TX packets:168957 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:321962311 (321.9 MB) TX bytes:14763893 (14.7 MB) > Interrupt:30 Memory:fa000000-fa012800 > > eth1 Link encap:Ethernet HWaddr 5c:f3:fc:1d:4a:42 > inet6 addr: fe80::5ef3:fcff:fe1d:4a42/64 Scope:Link > UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 > RX packets:890 errors:0 dropped:132 overruns:0 frame:0 > TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:69871 (69.8 KB) TX bytes:1980 (1.9 KB) > Interrupt:37 Memory:92000000-92012800 > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > inet6 addr: ::1/128 Scope:Host > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:572149 errors:0 dropped:0 overruns:0 frame:0 > TX packets:572149 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:817303115 (817.3 MB) TX bytes:817303115 (817.3 MB) > > virbr0 Link encap:Ethernet HWaddr 8a:ae:91:b4:11:6b > inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0 > UP BROADCAST MULTICAST MTU:1500 Metric:1 > RX packets:0 errors:0 dropped:0 overruns:0 frame:0 > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) > > vnet0 Link encap:Ethernet HWaddr fe:16:3e:63:b4:35 > inet6 addr: fe80::fc16:3eff:fe63:b435/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:150 errors:0 dropped:0 overruns:0 frame:0 > TX packets:792 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:500 > RX bytes:15341 (15.3 KB) TX bytes:61254 (61.2 KB) > > > > 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 > > > Le 28/03/12 18:50, Vishvananda Ishaya a écrit : >> You have to create your network with the same range >> it looks like you created with something like 10.18.9.0/24 >> >> On Mar 28, 2012, at 8:33 AM, Michaël Van de Borne wrote: >> >>> 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 >>> >>> >>> _______________________________________________ >>> Mailing list: https://launchpad.net/~openstack >>> Post to : openstack@lists.launchpad.net >>> Unsubscribe : https://launchpad.net/~openstack >>> More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp