Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Python by kost ( 13 years ago )
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: 29009
Children: 29012
Your Name: Code Language: