Exception 'unicode' object has no attribute 'rules'

Bug #1560922 reported by Yuli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
Fix Released
Critical
ding bo

Bug Description

Hello

I was testing the fullstack tests (tox -e fullstack) and got an exception in dragonflow log:

2016-03-23 12:48:14.906 WARNING dragonflow.controller.df_local_controller [-] run_db_poll - suppressing exception
2016-03-23 12:48:14.906 ERROR dragonflow.controller.df_local_controller [-] 'unicode' object has no attribute 'rules'
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller Traceback (most recent call last):
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/df_local_controller.py", line 120, in run_db_poll
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller self.read_security_groups()
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/df_local_controller.py", line 383, in read_security_groups
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller self._delete_old_security_group(secgroup_to_remove)
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller File "/opt/stack/dragonflow/dragonflow/controller/df_local_controller.py", line 403, in _delete_old_security_group
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller for rule in secgroup.rules:
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller AttributeError: 'unicode' object has no attribute 'rules'
2016-03-23 12:48:14.906 TRACE dragonflow.controller.df_local_controller

Yuli (stremovsky)
Changed in dragonflow:
importance: Undecided → High
Revision history for this message
Li Ma (nick-ma-z) wrote :

The bug is fixed. Please check the commit:
https://github.com/openstack/dragonflow/commit/183d3ad99fb6b71711e9fe775d659578bd3517a1

You can try again.

Gal Sagie (gal-sagie)
Changed in dragonflow:
assignee: nobody → ding bo (longddropt)
importance: High → Critical
Revision history for this message
Gal Sagie (gal-sagie) wrote :

Verified that nick-ma fixes this, i cant reproduce this same error

Changed in dragonflow:
status: New → Fix Committed
Revision history for this message
Yuli (stremovsky) wrote :

I do not have this problem.

Closing this bug.

Changed in dragonflow:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.