using source groups (-o) with security groups causes a lazy load exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Vish Ishaya | ||
Diablo |
Fix Released
|
Undecided
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
When launching an instance in a security group with a source group set (using euca-authorize -o) I am seeing the following error:
2011-09-25 17:52:00,337 DEBUG nova.virt.
2011-09-25 17:52:00,344 ERROR nova.exception [-] Uncaught exception
(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: ipv4_rules, ipv6_rules = self.instance_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: for instance in rule['grantee_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: return getattr(self, key)
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: instance_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: value = callable_
(nova.exception): TRACE: File "/usr/lib/
(nova.exception): TRACE: (mapperutil.
(nova.exception): TRACE: DetachedInstanc
(nova.exception): TRACE:
2011-09-25 17:52:00,344 ERROR nova.rpc [-] Exception during message handling
(nova.rpc): TRACE: Traceback (most recent call last):
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: rval = node_func(
(nova.rpc): TRACE: File "/usr/lib/
(nova.rpc): TRACE: raise Error(str(e))
(nova.rpc): TRACE: Error: Parent instance <SecurityGroup at 0x3ec0810> is not bound to a Session; lazy load operation of attribute 'instances' cannot proceed
(nova.rpc): TRACE:
This causes the rules to stop applying at this point, causing problems with security groups.
tags: | added: diablo-backport |
Changed in nova: | |
importance: | Undecided → High |
status: | New → In Progress |
assignee: | nobody → Vish Ishaya (vishvananda) |
Changed in nova (Ubuntu): | |
milestone: | none → ubuntu-11.10 |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → essex-1 |
tags: | removed: diablo-backport |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | essex-1 → 2012.1 |
Fix for this is waiting for review in gerrit:
https:/ /review. openstack. org/#change, 651