SGApp: unsupported operand type(s) for +: 'int' and 'NoneType'

Bug #1664967 reported by Li Ma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DragonFlow
Invalid
High
Lihi Wishnitzer

Bug Description

2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher [-] Dragonflow application 'SGApp' failed in add_security_group_rule
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher Traceback (most recent call last):
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher File "/opt/stack/new/dragonflow/dragonflow/controller/dispatcher.py", line 46, in dispatch
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher handler(*args, **kwargs)
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher File "/opt/stack/new/dragonflow/dragonflow/controller/sg_app.py", line 1057, in add_security_group_rule
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher self._install_security_group_rule_flows(secgroup_id, secgroup_rule)
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher File "/opt/stack/new/dragonflow/dragonflow/controller/sg_app.py", line 597, in _install_security_group_rule_flows
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher secgroup_id)
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher File "/opt/stack/new/dragonflow/dragonflow/controller/sg_app.py", line 779, in _get_secgroup_conj_id_and_priority
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher return sg_unique_key, (SG_PRIORITY_OFFSET + sg_unique_key)
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
2017-02-15 11:52:49.616 6711 ERROR dragonflow.controller.dispatcher
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent [-] Exception occurred whenhandling db comparison: unsupported operand type(s) for +: 'int' and 'NoneType'
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent Traceback (most recent call last):
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/db/db_consistent.py", line 97, in _process_db_tables_comparison
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent self.handle_data_comparison(topics, table, direct)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/db/db_consistent.py", line 238, in handle_data_comparison
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent self._get_and_compare_df_and_local_data(table, direct, topic)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/db/db_consistent.py", line 234, in _get_and_compare_df_and_local_data
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent table, df_objects, local_objects, direct)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/db/db_consistent.py", line 218, in _compare_df_and_local_data
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent 'create', df_object)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/db/db_consistent.py", line 129, in _verify_object
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent self.controller, table, 'create', df_object)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/controller/df_db_objects_refresh.py", line 160, in process_object
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent handler(argument)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/controller/df_local_controller.py", line 354, in update_secgroup
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent self._add_new_security_group(secgroup)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/controller/df_local_controller.py", line 441, in _add_new_security_group
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent self._add_new_security_group_rule(secgroup, new_rule)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/controller/df_local_controller.py", line 452, in _add_new_security_group_rule
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent secgroup, secgroup_rule)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/controller/ryu_base_app.py", line 119, in notify_add_security_group_rule
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent secgroup_rule=secgroup_rule)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent File "/opt/stack/new/dragonflow/dragonflow/controller/dispatcher.py", line 55, in dispatch
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent raise exceptions.DFMultipleExceptions(errors)
2017-02-15 11:52:49.617 6711 ERROR dragonflow.db.db_consistent DFMultipleExceptions: unsupported operand type(s) for +: 'int' and 'NoneType'

Omer Anson (omer-anson)
Changed in dragonflow:
assignee: nobody → Lihi Wishnitzer (lihiwish)
importance: Undecided → High
Revision history for this message
Li Ma (nick-ma-z) wrote :

I haven't saw this problem in the recent running.

Changed in dragonflow:
status: New → Incomplete
Changed in dragonflow:
status: Incomplete → Invalid
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.