← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1822960] [NEW] "delete l7 rule" Parameter Passing Error

 

Public bug reported:

Could not delete lbaas l7 rule from l7 policy properly.

In plugin side, we tried to delete the records of l7 rules in the database by the following code
"self.db.self.db.delete_l7policy_rule(context, id, l7policy_id)(context, id, l7policy_id)".

However, in db side, the func delete_l7policy_rule is defined as
" def delete_l7policy_rule(self, context, id):"

Therefore, the parameter "l7policy_id", could not be handled.

As a result, when delete lbaas l7 rule, the following mistakes will happen:
"TypeError: delete_l7policy_rule() takes exactly 3 arguments (4 given)"

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: lbaas

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1822960

Title:
  "delete l7 rule"  Parameter Passing Error

Status in neutron:
  New

Bug description:
  Could not delete lbaas l7 rule from l7 policy properly.

  In plugin side, we tried to delete the records of l7 rules in the database by the following code
  "self.db.self.db.delete_l7policy_rule(context, id, l7policy_id)(context, id, l7policy_id)".

  However, in db side, the func delete_l7policy_rule is defined as
  " def delete_l7policy_rule(self, context, id):"

  Therefore, the parameter "l7policy_id", could not be handled.

  As a result, when delete lbaas l7 rule, the following mistakes will happen:
  "TypeError: delete_l7policy_rule() takes exactly 3 arguments (4 given)"

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1822960/+subscriptions


Follow ups