Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting policy from OpenStack doesnt delete from F5 #929

Open
anairatgithub opened this issue May 16, 2018 · 0 comments
Open

Deleting policy from OpenStack doesnt delete from F5 #929

anairatgithub opened this issue May 16, 2018 · 0 comments

Comments

@anairatgithub
Copy link

  • Title: Deleting policy from OpenStack doesnt delete from F5
  • Attachments:
  • Details: neutron lbaas-l7policy-create --name "policy1" --description "My Test Policy" --listener tenant1-lb2-vs1 --action redirect_to_pool --redirect-pool te
    nant1-pool1 --position 1
    Created a new l7policy:
    +------------------+--------------------------------------+
    | Field | Value |
    +------------------+--------------------------------------+
    | action | REDIRECT_TO_POOL |
    | admin_state_up | True |
    | description | My Test Policy |
    | id | 8bb662fb-29dd-4076-b097-c8aa62774580 |
    | listener_id | 4399c3b1-7570-466c-a252-78435aa852bf |
    | name | policy1 |
    | position | 1 |
    | redirect_pool_id | 3439b183-180b-4f4d-ad6b-aa05724e3a17 |
    | redirect_url | |
    | rules | |
    | tenant_id | 4bdd0a7518b8472aaf10c013dbba235c |
    +------------------+--------------------------------------+

neutron lbaas-l7rule-create --type path --compare-type starts_with --value "/api" policy1
Created a new rule:
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| admin_state_up | True |
| compare_type | STARTS_WITH |
| id | e7bc7a87-78d3-4a94-9f3b-f85027625bf7 |
| invert | False |
| key | |
| tenant_id | 4bdd0a7518b8472aaf10c013dbba235c |
| type | PATH |
| value | /api |
+----------------+--------------------------------------+

neutron lbaas-l7policy-list
+--------------------------------------+---------+------------------+--------------------------------------+----------+----------------+
| id | name | action | redirect_pool_id | position | admin_state_up |
+--------------------------------------+---------+------------------+--------------------------------------+----------+----------------+
| 8bb662fb-29dd-4076-b097-c8aa62774580 | policy1 | REDIRECT_TO_POOL | 3439b183-180b-4f4d-ad6b-aa05724e3a17 | 1 | True |
+--------------------------------------+---------+------------------+--------------------------------------+----------+----------------+

neutron lbaas-l7rule-delete e7bc7a87-78d3-4a94-9f3b-f85027625bf7 policy1
Deleted lbaas_l7rule(s): e7bc7a87-78d3-4a94-9f3b-f85027625bf7

neutron lbaas-l7policy-delete policy1
Deleted lbaas_l7policy(s): policy1

policy list in F5 ( in project partition )

/Project_4bdd0a7518b8472aaf10c013dbba235c/wrapper_policy_4399c3b1-7570-466c-a252-78435aa852bf

Rules:

Local Traffic ›› Policies : Policy List ›› /Project_4bdd0a7518b8472aaf10c013dbba235c/wrapper_policy_4399c3b1-7570-466c-a252-78435aa852bf:policy1

Agent Version

f5-sdk-2.3.3-1.noarch
f5-lbaasv2-shim-10.1.0-1.noarch
f5-icontrol-rest-1.3.3-1.noarch
f5-openstack-lbaasv2-driver-10.2.0.b1-1.noarch
f5-openstack-agent-10.2.0.b1-1.noarch

Operating System

Linux 3.10.0-693.17.1.el7.x86_64 #1 SMP Sun Jan 14 10:36:03 EST 2018 x86_64 x86_64 x86_64 GNU/Linux

OpenStack Release

Newton

Bug Severity

3

Description

Deleting policy from OpenStack doesnt delete from F5

Deployment

<Explain in reasonable detail your OpenStack deployment, the F5 OpenStack agent, and BIG-IP(s)>
<Example: Single OpenStack controller with one F5 agent managing a cluster of 4 BIG-IP VEs>
<Example: Three OpenStack controllers in HA, each with one standalone F5 agent managing a single BIG-IP appliance>

3 controller - Newton/RHOSP

  • Details: neutron lbaas-l7policy-create --name "policy1" --description "My Test Policy" --listener tenant1-lb2-vs1 --action redirect_to_pool --redirect-pool te
    nant1-pool1 --position 1
    Created a new l7policy:
    +------------------+--------------------------------------+
    | Field | Value |
    +------------------+--------------------------------------+
    | action | REDIRECT_TO_POOL |
    | admin_state_up | True |
    | description | My Test Policy |
    | id | 8bb662fb-29dd-4076-b097-c8aa62774580 |
    | listener_id | 4399c3b1-7570-466c-a252-78435aa852bf |
    | name | policy1 |
    | position | 1 |
    | redirect_pool_id | 3439b183-180b-4f4d-ad6b-aa05724e3a17 |
    | redirect_url | |
    | rules | |
    | tenant_id | 4bdd0a7518b8472aaf10c013dbba235c |
    +------------------+--------------------------------------+

neutron lbaas-l7rule-create --type path --compare-type starts_with --value "/api" policy1
Created a new rule:
+----------------+--------------------------------------+
| Field | Value |
+----------------+--------------------------------------+
| admin_state_up | True |
| compare_type | STARTS_WITH |
| id | e7bc7a87-78d3-4a94-9f3b-f85027625bf7 |
| invert | False |
| key | |
| tenant_id | 4bdd0a7518b8472aaf10c013dbba235c |
| type | PATH |
| value | /api |
+----------------+--------------------------------------+

neutron lbaas-l7policy-list
+--------------------------------------+---------+------------------+--------------------------------------+----------+----------------+
| id | name | action | redirect_pool_id | position | admin_state_up |
+--------------------------------------+---------+------------------+--------------------------------------+----------+----------------+
| 8bb662fb-29dd-4076-b097-c8aa62774580 | policy1 | REDIRECT_TO_POOL | 3439b183-180b-4f4d-ad6b-aa05724e3a17 | 1 | True |
+--------------------------------------+---------+------------------+--------------------------------------+----------+----------------+

neutron lbaas-l7rule-delete e7bc7a87-78d3-4a94-9f3b-f85027625bf7 policy1
Deleted lbaas_l7rule(s): e7bc7a87-78d3-4a94-9f3b-f85027625bf7

neutron lbaas-l7policy-delete policy1
Deleted lbaas_l7policy(s): policy1

policy list in F5 ( in project partition )

/Project_4bdd0a7518b8472aaf10c013dbba235c/wrapper_policy_4399c3b1-7570-466c-a252-78435aa852bf

Rules:

Local Traffic ›› Policies : Policy List ›› /Project_4bdd0a7518b8472aaf10c013dbba235c/wrapper_policy_4399c3b1-7570-466c-a252-78435aa852bf:policy1

OpenStack Release

Newton

Description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant