Yes Sumit .. if I remember there was no PT created for the PTG J.
Unfortunately I do not have the system in the same state to re-verify
I will surely try to see how I re-manifest the issue
Regards
jishnu
-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Sumit Naiksatam
Sent: Monday, February 02, 2015 11:23 AM
To: Jishnu Banerjee (jbanerje)
Subject: [Bug 1416527] Re: GBP: PTG delete errors out
It seems that the PTG still had PTs in this case. Are you sure there were no other PTs apart from the one you mention here that was created for the VM?
Bug description:
Created a PTG(implicit L2policy), created a PT and instantiated a VM
Delete workflow:
-------------------------
1. Deleted the VM
2. Deleted the PT
3. Delete the PTG <<<< here it fails. Please refer the log file and search for the string "PTG_DELETE_LOG"
Here is the log sequence of workflow:
===================================
test@localhost:~/devstack$ nova list
+--------------------------------------+-------------+--------+------------+-------------+--------------------- ----+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------------+--------+------------+-------------+--------------------- ----+
| 3728859f-7923-4040-a6f9-aa2c29e60812 | client-vm-1 | ACTIVE | - | Running | l2p_client-1=10.0.0. 66 |
| 711d02e8-684c-470a-a334-07185e9abc9b | client-vm-2 | ACTIVE | - | Running | l2p_client-2=10.0.0. 130 |
| 529fc932-d7d5-4feb-8339-ad8640618779 | web-vm-1 | ACTIVE | - | Running | l2p_web=10.0.0.2 |
+--------------------------------------+-------------+--------+------------+-------------+--------------------- ----+
test@localhost:~/devstack$
test@localhost:~/devstack$
test@localhost:~/devstack$ nova delete client-vm-1
Request to delete server client-vm-1 has been accepted.
test@localhost:~/devstack$
test@localhost:~/devstack$ nova delete client-vm-2
Request to delete server client-vm-2 has been accepted.
test@localhost:~/devstack$
test@localhost:~/devstack$ nova delete web-vm-1
Request to delete server web-vm-1 has been accepted.
test@localhost:~/devstack$
test@localhost:~/devstack$
test@localhost:~/devstack$
test@localhost:~/devstack$
test@localhost:~/devstack$ nova list
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+
test@localhost:~/devstack$
test@localhost:~/devstack$ gbp policy-target-list
+--------------------------------------+-------------+-------------+--------------------------------------+
| id | name | description | policy_target_group_id |
+--------------------------------------+-------------+-------------+--------------------------------------+
| 66098ae4-9fca-411f-8be8-dabf59f9dc2f | web-pt-1 | | b5cb7cd1-a7fa-4a69-914e-25941aaa853b |
| 6f1c4d89-10fb-4c88-a33b-528a3fd6e9ea | client-pt-2 | | 3f6563c3-297f-4216-89e0-54db16fc04cd |
| acc533d3-269e-463f-a24c-3afd25023f90 | test-pt | | c2bdd707-48a6-4c17-bead-57b09fd5138f |
| fbb40cce-19ed-4acf-b917-63d69035d5df | client-pt-1 | | c3250194-14bf-4968-a4bc-4ef242748827 |
+--------------------------------------+-------------+-------------+--------------------------------------+
test@localhost:~/devstack$
test@localhost:~/devstack$ gbp policy-target-delete web-pt-1
Deleted policy_target: web-pt-1
test@localhost:~/devstack$ gbp policy-target-delete client-pt-1
Deleted policy_target: client-pt-1
test@localhost:~/devstack$ gbp policy-target-delete client-pt-2
Deleted policy_target: client-pt-2
test@localhost:~/devstack$
test@localhost:~/devstack$ gbp policy-target-delete test-pt
Deleted policy_target: test-pt
test@localhost:~/devstack$
test@localhost:~/devstack$ gbp policy-target-group-list
+--------------------------------------+---------+-------------+
| id | name | description |
+--------------------------------------+---------+-------------+
| 3f6563c3-297f-4216-89e0-54db16fc04cd | c2 | |
| 405253a4-5e81-4b01-a924-48d745784fde | J | |
| b5cb7cd1-a7fa-4a69-914e-25941aaa853b | web | |
| c2bdd707-48a6-4c17-bead-57b09fd5138f | testptg | |
| c3250194-14bf-4968-a4bc-4ef242748827 | c1 | |
+--------------------------------------+---------+-------------+
test@localhost:~/devstack$
test@localhost:~/devstack$ gbp policy-target-group-show web
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| consumed_policy_rule_sets | |
| description | |
| id | b5cb7cd1-a7fa-4a69-914e-25941aaa853b |
| l2_policy_id | dda4e553-32a3-4aa2-a4d9-e4449dfd2430 |
| name | web |
| network_service_policy_id | |
| policy_targets | |
| provided_policy_rule_sets | ac9aec17-7ff5-4720-8696-81bba83495ec |
| | e0b2ffd7-94fa-4608-b180-d30bc9e1be65 |
| shared | False |
| subnets | 5060400a-ed05-4383-ac39-358b8931e0dc |
| tenant_id | b3094e3ded7e4d6ea7b91b3641214a7a |
+---------------------------+--------------------------------------+
test@localhost:~/devstack$
test@localhost:~/devstack$ gbp policy-target-group-delete J
Internal Server Error (HTTP 500) (Request-ID: req-d2e9ea93-1693-499e-b6df-767325592697)
test@localhost:~/devstack$
Yes Sumit .. if I remember there was no PT created for the PTG J.
Unfortunately I do not have the system in the same state to re-verify
I will surely try to see how I re-manifest the issue
Regards
jishnu
-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Sumit Naiksatam
Sent: Monday, February 02, 2015 11:23 AM
To: Jishnu Banerjee (jbanerje)
Subject: [Bug 1416527] Re: GBP: PTG delete errors out
It seems that the PTG still had PTs in this case. Are you sure there were no other PTs apart from the one you mention here that was created for the VM?
-- /bugs.launchpad .net/bugs/ 1416527
You received this bug notification because you are subscribed to the bug report.
https:/
Title:
GBP: PTG delete errors out
Status in Group Based Policy:
New
Bug description: ------- ------- ------
Created a PTG(implicit L2policy), created a PT and instantiated a VM
Delete workflow:
-----
1. Deleted the VM
2. Deleted the PT
3. Delete the PTG <<<< here it fails. Please refer the log file and search for the string "PTG_DELETE_LOG"
Here is the log sequence of workflow: ======= ======= ======= ======= ==
=====
test@ localhost: ~/devstack$ nova list ------- ------- ------- ------- ------+ ------- ------+ ------- -+----- ------- +------ ------- +------ ------- ------- - ----+ ------- ------- ------- ------- ------+ ------- ------+ ------- -+----- ------- +------ ------- +------ ------- ------- - ----+ 7923-4040- a6f9-aa2c29e608 12 | client-vm-1 | ACTIVE | - | Running | l2p_client- 1=10.0. 0. 66 | 684c-470a- a334-07185e9abc 9b | client-vm-2 | ACTIVE | - | Running | l2p_client- 2=10.0. 0. 130 | d7d5-4feb- 8339-ad86406187 79 | web-vm-1 | ACTIVE | - | Running | l2p_web=10.0.0.2 | ------- ------- ------- ------- ------+ ------- ------+ ------- -+----- ------- +------ ------- +------ ------- ------- - ----+ localhost: ~/devstack$ localhost: ~/devstack$ localhost: ~/devstack$ nova delete client-vm-1 localhost: ~/devstack$ localhost: ~/devstack$ nova delete client-vm-2 localhost: ~/devstack$ localhost: ~/devstack$ nova delete web-vm-1 localhost: ~/devstack$ localhost: ~/devstack$ localhost: ~/devstack$ localhost: ~/devstack$ localhost: ~/devstack$ nova list +------ +------ --+---- ------- -+----- ------- -+----- -----+ +------ +------ --+---- ------- -+----- ------- -+----- -----+ +------ +------ --+---- ------- -+----- ------- -+----- -----+ localhost: ~/devstack$ localhost: ~/devstack$ gbp policy-target-list ------- ------- ------- ------- ------+ ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+ target_ group_id | ------- ------- ------- ------- ------+ ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+ 9fca-411f- 8be8-dabf59f9dc 2f | web-pt-1 | | b5cb7cd1- a7fa-4a69- 914e-25941aaa85 3b | 10fb-4c88- a33b-528a3fd6e9 ea | client-pt-2 | | 3f6563c3- 297f-4216- 89e0-54db16fc04 cd | 269e-463f- a24c-3afd25023f 90 | test-pt | | c2bdd707- 48a6-4c17- bead-57b09fd513 8f | 19ed-4acf- b917-63d69035d5 df | client-pt-1 | | c3250194- 14bf-4968- a4bc-4ef2427488 27 | ------- ------- ------- ------- ------+ ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+ localhost: ~/devstack$ localhost: ~/devstack$ gbp policy- target- delete web-pt-1 localhost: ~/devstack$ gbp policy- target- delete client-pt-1 localhost: ~/devstack$ gbp policy- target- delete client-pt-2 localhost: ~/devstack$ localhost: ~/devstack$ gbp policy- target- delete test-pt localhost: ~/devstack$ localhost: ~/devstack$ gbp policy- target- group-list ------- ------- ------- ------- ------+ ------- --+---- ------- --+ ------- ------- ------- ------- ------+ ------- --+---- ------- --+ 297f-4216- 89e0-54db16fc04 cd | c2 | | 5e81-4b01- a924-48d745784f de | J | | a7fa-4a69- 914e-25941aaa85 3b | web | | 48a6-4c17- bead-57b09fd513 8f | testptg | | 14bf-4968- a4bc-4ef2427488 27 | c1 | | ------- ------- ------- ------- ------+ ------- --+---- ------- --+ localhost: ~/devstack$ localhost: ~/devstack$ gbp policy- target- group-show web ------- ------- ------- --+---- ------- ------- ------- ------- ------+ ------- ------- ------- --+---- ------- ------- ------- ------- ------+ policy_ rule_sets | | a7fa-4a69- 914e-25941aaa85 3b | 32a3-4aa2- a4d9-e4449dfd24 30 | service_ policy_ id | | policy_ rule_sets | ac9aec17- 7ff5-4720- 8696-81bba83495 ec | 94fa-4608- b180-d30bc9e1be 65 | ed05-4383- ac39-358b8931e0 dc | ea7b91b3641214a 7a | ------- ------- ------- --+---- ------- ------- ------- ------- ------+ localhost: ~/devstack$ localhost: ~/devstack$ gbp policy- target- group-delete J 1693-499e- b6df-7673255926 97) localhost: ~/devstack$
+----
| ID | Name | Status | Task State | Power State | Networks |
+----
| 3728859f-
| 711d02e8-
| 529fc932-
+----
test@
test@
test@
Request to delete server client-vm-1 has been accepted.
test@
test@
Request to delete server client-vm-2 has been accepted.
test@
test@
Request to delete server web-vm-1 has been accepted.
test@
test@
test@
test@
test@
+----
| ID | Name | Status | Task State | Power State | Networks |
+----
+----
test@
test@
+----
| id | name | description | policy_
+----
| 66098ae4-
| 6f1c4d89-
| acc533d3-
| fbb40cce-
+----
test@
test@
Deleted policy_target: web-pt-1
test@
Deleted policy_target: client-pt-1
test@
Deleted policy_target: client-pt-2
test@
test@
Deleted policy_target: test-pt
test@
test@
+----
| id | name | description |
+----
| 3f6563c3-
| 405253a4-
| b5cb7cd1-
| c2bdd707-
| c3250194-
+----
test@
test@
+----
| Field | Value |
+----
| consumed_
| description | |
| id | b5cb7cd1-
| l2_policy_id | dda4e553-
| name | web |
| network_
| policy_targets | |
| provided_
| | e0b2ffd7-
| shared | False |
| subnets | 5060400a-
| tenant_id | b3094e3ded7e4d6
+----
test@
test@
Internal Server Error (HTTP 500) (Request-ID: req-d2e9ea93-
test@
To manage notifications about this bug go to: /bugs.launchpad .net/group- based-policy/ +bug/1416527/ +subscriptions
https:/