I added this to 773308, but because it claims to be a duplicate of this one, I figured I should add it here as well:
A very similar error appears to be happening when attempting to apply euca-authorize rules to running nodes.
If I start a new node in a group with existing rules, everything works as expected. However if I have a VM running in a group (let's say default), and I attempt to update or create a new rule in that group I receive the following exception in the nova-compute.log:
2011-05-11 19:56:48,889 ERROR nova.exception [-] Uncaught exception
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 87, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/compute/manager.py", line 205, in refresh_security_group_rules
(nova.exception): TRACE: return self.driver.refresh_security_group_rules(security_group_id)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 1382, in refresh_security_group_rules
(nova.exception): TRACE: self.firewall_driver.refresh_security_group_rules(security_group_id)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 2173, in refresh_security_group_rules
(nova.exception): TRACE: self.do_refresh_security_group_rules(security_group)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/utils.py", line 604, in inner
(nova.exception): TRACE: retval = f(*args, **kwargs)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 2180, in do_refresh_security_group_rules
(nova.exception): TRACE: self.add_filters_for_instance(instance)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 2044, in add_filters_for_instance(nova.exception): TRACE: network_info)(nova.exception): TRACE: File "/usr/lib/pymodules/python2.6/nova/virt/libvirt_conn.py", line 2018, in _filters_for_instance
(nova.exception): TRACE: ips_v4 = [ip['ip'] for (_n, mapping) in network_info(nova.exception): TRACE: TypeError: 'NoneType' object is not iterable
(nova.exception): TRACE:
2011-05-11 19:56:48,890 ERROR nova [-] Exception during message handling
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/rpc.py", line 198, in _receive
(nova): TRACE: rval = node_func(context=ctxt, **node_args)
(nova): TRACE: File "/usr/lib/pymodules/python2.6/nova/exception.py", line 93, in _wrap
(nova): TRACE: raise Error(str(e))
(nova): TRACE: Error: 'NoneType' object is not iterable
(nova): TRACE:
I added this to 773308, but because it claims to be a duplicate of this one, I figured I should add it here as well:
A very similar error appears to be happening when attempting to apply euca-authorize rules to running nodes.
If I start a new node in a group with existing rules, everything works as expected. However if I have a VM running in a group (let's say default), and I attempt to update or create a new rule in that group I receive the following exception in the nova-compute.log:
2011-05-11 19:56:48,889 ERROR nova.exception [-] Uncaught exception pymodules/ python2. 6/nova/ exception. py", line 87, in _wrap pymodules/ python2. 6/nova/ compute/ manager. py", line 205, in refresh_ security_ group_rules refresh_ security_ group_rules( security_ group_id) pymodules/ python2. 6/nova/ virt/libvirt_ conn.py" , line 1382, in refresh_ security_ group_rules driver. refresh_ security_ group_rules( security_ group_id) pymodules/ python2. 6/nova/ virt/libvirt_ conn.py" , line 2173, in refresh_ security_ group_rules refresh_ security_ group_rules( security_ group) pymodules/ python2. 6/nova/ utils.py" , line 604, in inner pymodules/ python2. 6/nova/ virt/libvirt_ conn.py" , line 2180, in do_refresh_ security_ group_rules filters_ for_instance( instance) pymodules/ python2. 6/nova/ virt/libvirt_ conn.py" , line 2044, in add_filters_ for_instance( nova.exception) : TRACE: network_ info)(nova. exception) : TRACE: File "/usr/lib/ pymodules/ python2. 6/nova/ virt/libvirt_ conn.py" , line 2018, in _filters_ for_instance info(nova. exception) : TRACE: TypeError: 'NoneType' object is not iterable pymodules/ python2. 6/nova/ rpc.py" , line 198, in _receive context= ctxt, **node_args) pymodules/ python2. 6/nova/ exception. py", line 93, in _wrap
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return self.driver.
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: self.firewall_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: self.do_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: retval = f(*args, **kwargs)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: self.add_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: ips_v4 = [ip['ip'] for (_n, mapping) in network_
(nova.exception): TRACE:
2011-05-11 19:56:48,890 ERROR nova [-] Exception during message handling
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/lib/
(nova): TRACE: rval = node_func(
(nova): TRACE: File "/usr/lib/
(nova): TRACE: raise Error(str(e))
(nova): TRACE: Error: 'NoneType' object is not iterable
(nova): TRACE: