반응형
* Delete Load Balance
LB 생성시에는 정상적이지만 삭제시는 CLI로 삭제해야하며 모니터, 풀, 멤버, 리스너 모두 삭제를 해주어야 LB가 정상적으로 삭제가 된다.
* healthmonitor -> member -> pool -> listener -> LB 순으로 삭제
Delete healthmonitor
(neutron) lbaas-healthmonitor-list
+--------------------------------------------------------+---------+----------------------------------------------------+--------+------------------------+
| id | name | tenant_id | type | admin_state_up |
+--------------------------------------------------------+---------+----------------------------------------------------+--------+------------------------+
| 9201ca04-1e9a-47eb-b0c1-161853fdc4b1 | | e4cb70dd38b44665bd20dce52e5c8c51 | PING | True |
+--------------------------------------------------------+---------+----------------------------------------------------+--------+------------------------+
(neutron) lbaas-healthmonitor-delete 9201ca04-1e9a-47eb-b0c1-161853fdc4b1
Deleted lbaas_healthmonitor(s): 9201ca04-1e9a-47eb-b0c1-161853fdc4b1
Delet Member & Pool
### 삭제하려는 pool ID 확인
(neutron) lbaas-pool-list
+--------------------------------------------------------+---------+----------------------------------------------------+-----------------------+------------+---------------------+
| id | name | tenant_id | lb_algorithm | protocol | admin_state_up |
+--------------------------------------------------------+---------+----------------------------------------------------+-----------------------+------------+---------------------+
| c65fbc5a-2ff1-453d-8e52-9278288cf232 | Pool 1 | e4cb70dd38b44665bd20dce52e5c8c51 | ROUND_ROBIN | HTTP | True |
+--------------------------------------------------------+---------+----------------------------------------------------+-----------------------+------------+---------------------+
### pool의 멤버 확인
(neutron) lbaas-member-list c65fbc5a-2ff1-453d-8e52-9278288cf232
+--------------------------------------+------+----------------------------------+-----------+---------------+--------+--------------------------------------+----------------+
| id | name | tenant_id | address | protocol_port | weight | subnet_id | admin_state_up |
+--------------------------------------+------+----------------------------------+-----------+---------------+--------+--------------------------------------+----------------+
| f0c66904-9816-49af-ab42-d87c73914407 | | e4cb70dd38b44665bd20dce52e5c8c51 | 10.0.0.11 | 80 | 1 | da6d1aef-e1fa-4cf4-b475-ef80bcb5466f | True |
| 1057cb5d-e9c8-4c0e-ba36-8797fa54d1db | | e4cb70dd38b44665bd20dce52e5c8c51 | 10.0.0.18 | 80 | 1 | da6d1aef-e1fa-4cf4-b475-ef80bcb5466f | True |
+--------------------------------------+------+----------------------------------+-----------+---------------+--------+--------------------------------------+----------------+
### 해당 멤버 삭제
### 삭제시 lbaas-member-delete 'member id' 'pool id'형식
(neutron) lbaas-member-delete f0c66904-9816-49af-ab42-d87c73914407 c65fbc5a-2ff1-453d-8e52-9278288cf232
Deleted lbaas_member(s): f0c66904-9816-49af-ab42-d87c73914407
(neutron) lbaas-member-delete 1057cb5d-e9c8-4c0e-ba36-8797fa54d1db c65fbc5a-2ff1-453d-8e52-9278288cf232
Deleted lbaas_member(s): 1057cb5d-e9c8-4c0e-ba36-8797fa54d1db
### 해당 풀 삭제
(neutron) lbaas-pool-delete c65fbc5a-2ff1-453d-8e52-9278288cf232
Deleted lbaas_pool(s): c65fbc5a-2ff1-453d-8e52-9278288cf232
### listener 삭제
(neutron) lbaas-listener-list
+--------------------------------------+-----------------+------------+----------------------------------+----------+---------------+----------------+
| id | default_pool_id | name | tenant_id | protocol | protocol_port | admin_state_up |
+--------------------------------------+-----------------+------------+----------------------------------+----------+---------------+----------------+
| 19496e80-1af8-44d3-8028-7af2ade87a19 | | Listener 1 | e4cb70dd38b44665bd20dce52e5c8c51 | HTTP | 80 | True |
+--------------------------------------+-----------------+------------+----------------------------------+----------+---------------+----------------+
(neutron)
(neutron) lbaas-listener-delete 19496e80-1af8-44d3-8028-7af2ade87a19
Deleted listener(s): 19496e80-1af8-44d3-8028-7af2ade87a19
### Load Balance 삭제
(neutron) lbaas-loadbalancer-list
+--------------------------------------+-----------------+----------------------------------+-------------+---------------------+----------+
| id | name | tenant_id | vip_address | provisioning_status | provider |
+--------------------------------------+-----------------+----------------------------------+-------------+---------------------+----------+
| f6fe77ec-f6cf-47d7-adee-ed85454f05f0 | Load Balancer 1 | e4cb70dd38b44665bd20dce52e5c8c51 | 10.0.0.17 | ACTIVE | haproxy |
+--------------------------------------+-----------------+----------------------------------+-------------+---------------------+----------+
(neutron) lbaas-loadbalancer-delete f6fe77ec-f6cf-47d7-adee-ed85454f05f0
Deleted loadbalancer(s): f6fe77ec-f6cf-47d7-adee-ed85454f05f0
반응형