← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1334981] [NEW] [FWaaS]: Not able to delete the firewall with shared policy and unshared rule

 

Public bug reported:

Steps to reproduce:

1.  As admin, create a rule r1(unshared) and associate it to the shared policy p1
2. As a tenant1, try to create firewall f1 with policy p1
3. It thows error but f1 got created
4. We cann't even delete the created firewall f1

console:
===============
root@koti-icega-osc:/usr/share/pyshared/neutron# echo $OS_USERNAME
user1
root@koti-icega-osc:/usr/share/pyshared/neutron#
root@koti-icega-osc:/usr/share/pyshared/neutron# neutron firewall-policy-list
+--------------------------------------+------+----------------------------------------+
| id                                   | name | firewall_rules                         |
+--------------------------------------+------+----------------------------------------+
| 367ff338-1014-4788-9cd9-d9d60035dd52 | p1   | [d9247da7-b885-4a16-974a-2b56e76f89d1] |
+--------------------------------------+------+----------------------------------------+
root@koti-icega-osc:/usr/share/pyshared/neutron# neutron firewall-create p1 --name f1
404-{u'NeutronError': {u'message': u'Firewall Rule d9247da7-b885-4a16-974a-2b56e76f89d1 could not be found.', u'type': u'FirewallRuleNotFound', u'detail': u''}}<<<<<<<<<<<<<<<<<<<<<<<Got this error but still f1 got created

root@koti-icega-osc:/usr/share/pyshared/neutron# neutron firewall-list
+--------------------------------------+------+--------------------------------------+
| id                                   | name | firewall_policy_id                   |
+--------------------------------------+------+--------------------------------------+
| 6bd27e5f-c8d9-4d52-a556-2f86e7db5ea5 | f1   | 367ff338-1014-4788-9cd9-d9d60035dd52 |
+--------------------------------------+------+--------------------------------------+

root@koti-icega-osc:/usr/share/pyshared/neutron# neutron firewall-delete f1
404-{u'NeutronError': {u'message': u'Firewall Rule d9247da7-b885-4a16-974a-2b56e76f89d1 could not be found.', u'type': u'FirewallRuleNotFound', u'detail': u''}}<<<<<<<<<<<<<<<<<<<<<<<<this firewall f1 cann't be deleted. I logged into mysql and then deleted.

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: fwaas

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

Title:
  [FWaaS]: Not able to delete the firewall with shared policy and
  unshared rule

Status in OpenStack Neutron (virtual network service):
  New

Bug description:
  Steps to reproduce:

  1.  As admin, create a rule r1(unshared) and associate it to the shared policy p1
  2. As a tenant1, try to create firewall f1 with policy p1
  3. It thows error but f1 got created
  4. We cann't even delete the created firewall f1

  console:
  ===============
  root@koti-icega-osc:/usr/share/pyshared/neutron# echo $OS_USERNAME
  user1
  root@koti-icega-osc:/usr/share/pyshared/neutron#
  root@koti-icega-osc:/usr/share/pyshared/neutron# neutron firewall-policy-list
  +--------------------------------------+------+----------------------------------------+
  | id                                   | name | firewall_rules                         |
  +--------------------------------------+------+----------------------------------------+
  | 367ff338-1014-4788-9cd9-d9d60035dd52 | p1   | [d9247da7-b885-4a16-974a-2b56e76f89d1] |
  +--------------------------------------+------+----------------------------------------+
  root@koti-icega-osc:/usr/share/pyshared/neutron# neutron firewall-create p1 --name f1
  404-{u'NeutronError': {u'message': u'Firewall Rule d9247da7-b885-4a16-974a-2b56e76f89d1 could not be found.', u'type': u'FirewallRuleNotFound', u'detail': u''}}<<<<<<<<<<<<<<<<<<<<<<<Got this error but still f1 got created

  root@koti-icega-osc:/usr/share/pyshared/neutron# neutron firewall-list
  +--------------------------------------+------+--------------------------------------+
  | id                                   | name | firewall_policy_id                   |
  +--------------------------------------+------+--------------------------------------+
  | 6bd27e5f-c8d9-4d52-a556-2f86e7db5ea5 | f1   | 367ff338-1014-4788-9cd9-d9d60035dd52 |
  +--------------------------------------+------+--------------------------------------+

  root@koti-icega-osc:/usr/share/pyshared/neutron# neutron firewall-delete f1
  404-{u'NeutronError': {u'message': u'Firewall Rule d9247da7-b885-4a16-974a-2b56e76f89d1 could not be found.', u'type': u'FirewallRuleNotFound', u'detail': u''}}<<<<<<<<<<<<<<<<<<<<<<<<this firewall f1 cann't be deleted. I logged into mysql and then deleted.

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


Follow ups

References