2012-08-02 23:21:06 DEBUG [quantum.db.db_base_plugin_v2] Gateway address (10.0.0.1/c2e2a2e4-3241-4763-9605-c4c41caf2ada) is not recycled
2012-08-02 23:21:06 ERROR [quantum.api.v2.resource] delete failed
Traceback (most recent call last):
File "/opt/stack/quantum/quantum/api/v2/resource.py", line 95, in resource
result = method(request=request, **args)
File "/opt/stack/quantum/quantum/api/v2/base.py", line 250, in delete
obj_deleter(request.context, id)
File "/opt/stack/quantum/quantum/db/db_base_plugin_v2.py", line 845, in delete_port
context.session.delete(port)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 391, in __exit__
self.commit()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 313, in commit
self._prepare_impl()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 297, in _prepare_impl
self.session.flush()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1547, in flush
self._flush(objects)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/session.py", line 1616, in _flush
flush_context.execute()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 328, in execute
rec.execute(self)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/unitofwork.py", line 428, in execute
self.dependency_processor.process_deletes(uow, states)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/dependency.py", line 522, in process_deletes
uowcommit, False)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/dependency.py", line 567, in _synchronize
sync.clear(dest, self.mapper, self.prop.synchronize_pairs)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/sync.py", line 50, in clear
(r, mapperutil.state_str(dest))
AssertionError: Dependency rule tried to blank-out primary key column 'ipallocations.port_id' on instance '<IPAllocation at 0x28d4650>'
Fix proposed to branch: master /review. openstack. org/11048
Review: https:/