Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)
Paste
Pasted as Python by kost ( 15 years ago )
root@island109:/var/log/nova# ps auxww | grep dns
root 7211 0.0 0.0 7624 936 pts/0 S+ 14:27 0:00 grep --color=auto dns
nobody 11871 0.0 0.0 16532 968 ? S 10:42 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=x.x.208.1 --except-interface=lo --dhcp-range=10.0.0.2,static,120s --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro
root 11872 0.0 0.0 16532 428 ? S 10:42 0:00 dnsmasq --strict-order --bind-interfaces --conf-file= --domain=novalocal --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=x.x.208.1 --except-interface=lo --dhcp-range=10.0.0.2,static,120s --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro
root@island109:/var/log/nova# mysql -pnova nova -e 'select * from networks;'
+---------------------+---------------------+------------+---------+----+----------+------------------+-----------------+--------+---------------+----------------+------+------+--------------------+-----------------+---------------------+------------+------------+-----------+---------+-----------+
| created_at | updated_at | deleted_at | deleted | id | injected | cidr | netmask | bridge | gateway | broadcast | dns | vlan | vpn_public_address | vpn_public_port | vpn_private_address | dhcp_start | project_id | host | cidr_v6 | ra_server |
+---------------------+---------------------+------------+---------+----+----------+------------------+-----------------+--------+---------------+----------------+------+------+--------------------+-----------------+---------------------+------------+------------+-----------+---------+-----------+
| 2011-02-15 20:43:23 | 2011-02-15 20:52:06 | NULL | 0 | 3 | 0 | x.x.208.0/28 | 255.255.255.240 | br100 | x.x.208.1 | x.x.208.15 | NULL | NULL | NULL | NULL | NULL | 10.0.0.2 | admin109 | island109 | NULL | NULL |
+---------------------+---------------------+------------+---------+----+----------+------------------+-----------------+--------+---------------+----------------+------+------+--------------------+-----------------+---------------------+------------+------------+-----------+---------+-----------+
from nova-network.log....
3098 2011-02-16 13:55:20,558 ERROR nova.root [-] Exception during message handling
3099 (nova.root): TRACE: Traceback (most recent call last):
3100 (nova.root): TRACE: File "/usr/lib/pymodules/python2.6/nova/rpc.py", line 192, in receive
3101 (nova.root): TRACE: rval = node_func(context=ctxt, **node_args)
3102 (nova.root): TRACE: File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 418, in allocate_fixed_ip
3103 (nova.root): TRACE: self.driver.update_dhcp(context, network_ref['id'])
3104 (nova.root): TRACE: TypeError: 'NoneType' object is unsubscriptable
3105 (nova.root): TRACE:
3106 2011-02-16 13:55:20,559 ERROR nova.rpc [-] Returning exception 'NoneType' object is unsubscriptable to caller
3107 2011-02-16 13:55:20,560 ERROR nova.rpc [-] ['Traceback (most recent call last):\n', ' File "/usr/lib/pymodules/python2.6/nova/rpc.py", l ine 192, in receive\n rval = node_func(context=ctxt, **node_args)\n', ' File "/usr/lib/pymodules/python2.6/nova/network/manager.py", line 418, in allocate_fixed_ip\n self.driver.update_dhcp(context, network_ref[\'id\'])\n', "TypeError: 'NoneType' object is unsubscrip table\n"]
----
it fails at line 416 b/c network_ref is null.
410 def allocate_fixed_ip(self, context, instance_id, *args, **kwargs):
411 """Setup dhcp for this network."""
412 address = super(FlatDHCPManager, self).allocate_fixed_ip(context,
413 instance_id,
414 *args,
415 **kwargs)
416 network_ref = db.fixed_ip_get_network(context, address)
417 if not FLAGS.fake_network:
418 self.driver.update_dhcp(context, network_ref['id'])
419 return address
Revise this Paste
Parent: 29010
Children: 29015