Hi Sanjeev
As you can see below, all my networks with F5 are already "removed" but I still
can't delete the F5 device. I went ahead and deleted the 3 rows in the
ntwk_service_map and still no luck.
mysql> select * from ntwk_service_map where provider like 'F5%';
+------+------------+---------+----------+---------------------+
| id | network_id | service | provider | created |
+------+------------+---------+----------+---------------------+
| 1537 | 357 | Lb | F5BigIp | 2014-05-05 15:10:37 |
| 1545 | 358 | Lb | F5BigIp | 2014-05-05 15:59:27 |
| 1553 | 359 | Lb | F5BigIp | 2014-05-05 21:53:10 |
+------+------------+---------+----------+---------------------+
mysql> select * from networks where LOWER(name) LIKE '%f5%';
+-----+-----------------+--------------------------------------+-----------------+--------------+-----------------------+---------------+------------+---------------+------+---------------------+---------------------+----------------+--------------------------+---------+---------+-----------+------------+----------------+------+-----------+------------+----------+-------------------+--------------------------------------+------------+------------------+---------------------+---------------------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| id | name | uuid | display_text
| traffic_type | broadcast_domain_type | broadcast_uri | gateway | cidr
| mode | network_offering_id | physical_network_id | data_center_id |
guru_name | state | related | domain_id | account_id | dns1
| dns2 | guru_data | set_fields | acl_type | network_domain |
reservation_id | guest_type | restart_required | created
| removed | specify_ip_ranges | vpc_id | ip6_gateway |
ip6_cidr | network_cidr | display_network | network_acl_id |
+-----+-----------------+--------------------------------------+-----------------+--------------+-----------------------+---------------+------------+---------------+------+---------------------+---------------------+----------------+--------------------------+---------+---------+-----------+------------+----------------+------+-----------+------------+----------+-------------------+--------------------------------------+------------+------------------+---------------------+---------------------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
| 357 | Network with F5 | 5c323bd2-07af-4f54-bab2-2c7f9bf9eb7a | Network with
F5 | Guest | Vlan | NULL | 10.0.16.1 |
10.0.16.0/20 | Dhcp | 15 | 202 |
1 | ExternalGuestNetworkGuru | Destroy | 357 | 1 | 2 |
208.67.222.222 | NULL | NULL | 0 | Account | cs2cloud.internal |
fd620153-db82-4155-98af-451a291f681c | Isolated | 0 |
2014-05-05 15:10:37 | 2014-05-05 16:28:27 | 0 | NULL | NULL
| NULL | NULL | 1 | NULL |
| 358 | pashaf5 | 3dd4c6ea-006d-42a0-b02b-88f1f94ecf2a | pasha f5
| Guest | Vlan | NULL | 10.0.128.1 |
10.0.128.0/20 | Dhcp | 15 | 202 |
1 | ExternalGuestNetworkGuru | Destroy | 358 | 1 | 2 |
208.67.222.222 | NULL | NULL | 0 | Account | cs2cloud.internal |
24e21406-2d71-4660-8537-cd2093f6e637 | Isolated | 0 |
2014-05-05 15:59:27 | 2014-05-05 16:28:33 | 0 | NULL | NULL
| NULL | NULL | 1 | NULL |
| 359 | MyF5Network | 46e0bc3e-f0aa-454c-b7e2-3a4f900ccf26 | My F5 Network
| Guest | Vlan | NULL | 10.1.16.1 |
10.1.16.0/20 | Dhcp | 16 | 202 |
1 | ExternalGuestNetworkGuru | Destroy | 359 | 1 | 2 |
208.67.222.222 | NULL | NULL | 0 | Account | cs2cloud.internal |
c3a8fa38-4fe5-49ff-9176-fa8d99372a44 | Isolated | 0 |
2014-05-05 21:53:10 | 2014-05-06 14:52:16 | 0 | NULL | NULL
| NULL | NULL | 1 | NULL |
+-----+-----------------+--------------------------------------+-----------------+--------------+-----------------------+---------------+------------+---------------+------+---------------------+---------------------+----------------+--------------------------+---------+---------+-----------+------------+----------------+------+-----------+------------+----------+-------------------+--------------------------------------+------------+------------------+---------------------+---------------------+-------------------+--------+-------------+----------+--------------+-----------------+----------------+
2014-05-06 11:25:37,067 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null)
===START=== 172.16.0.133 -- GET
command=deleteF5LoadBalancer&lbdeviceid=e7b5e8ef-e448-4db0-88b0-443965e70803&response=json&sessionkey=SvKOSc%2BT%2FHwtmw0sZfebHO8fcRU%3D&_=1399389936996
2014-05-06 11:25:37,098 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-17:null) submit async job-1090 = [
e3e47da1-56bd-4ff9-ad24-117e35b9f58a ], details: AsyncJobVO {id:1090, userId:
2, accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd:
com.cloud.api.commands.DeleteF5LoadBalancerCmd, cmdOriginator: null, cmdInfo:
{"response":"json","sessionkey":"SvKOSc+T/Hwtmw0sZfebHO8fcRU\u003d","cmdEventType":"LB.DELETE","ctxUserId":"2","httpmethod":"GET","_":"1399389936996","ctxAccountId":"2","ctxStartEventId":"9709","lbdeviceid":"e7b5e8ef-e448-4db0-88b0-443965e70803"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 345052500519,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2014-05-06 11:25:37,099 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-14:job-1090 = [ e3e47da1-56bd-4ff9-ad24-117e35b9f58a ]) Executing
com.cloud.api.commands.DeleteF5LoadBalancerCmd for job-1090 = [
e3e47da1-56bd-4ff9-ad24-117e35b9f58a ]
2014-05-06 11:25:37,106 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null)
===END=== 172.16.0.133 -- GET
command=deleteF5LoadBalancer&lbdeviceid=e7b5e8ef-e448-4db0-88b0-443965e70803&response=json&sessionkey=SvKOSc%2BT%2FHwtmw0sZfebHO8fcRU%3D&_=1399389936996
2014-05-06 11:25:37,113 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-14:job-1090 = [ e3e47da1-56bd-4ff9-ad24-117e35b9f58a ]) Complete
async job-1090 = [ e3e47da1-56bd-4ff9-ad24-117e35b9f58a ], jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Delete can not be done as
there are networks using this load balancer device
________________________________
From: Sanjeev Neelarapu <[email protected]>
To: "[email protected]" <[email protected]>; Amin Pashapour
<[email protected]>
Sent: Tuesday, May 6, 2014 12:09 AM
Subject: RE: Cannot delete F5 device
Hi Amin,
ntwk_service_map table in cluod DB shows the service providers in each network.
You can get the network id where F5 is being used as LB service provider. Then
look for that network in networks table.
-Sanjeev
-----Original Message-----
From: Amin Pashapour [mailto:[email protected]]
Sent: Monday, May 05, 2014 11:30 PM
To: [email protected]
Subject: Cannot delete F5 device
Hi All
Using CS 4.2.1. I have an F5 device (v11.1) below network service providers.
I can't delete the device and CS keeps saying:
2014-05-05 13:51:09,656 DEBUG [cloud.api.ApiServlet] (catalina-exec-11:null)
===END=== 172.16.0.65 -- GET
command=deleteF5LoadBalancer&lbdeviceid=34d40985-ddfa-483b-947b-e921876c7378&response=json&sessionkey=nUrC%2F3wjrR9V3qtkfe9ppZSh%2BwM%3D&_=1399312269638
2014-05-05 13:51:09,661 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-139:job-1076 = [ 0bc3de98-e8e4-49da-8c49-89cd181c0d48 ]) Complete
async job-1076 = [ 0bc3de98-e8e4-49da-8c49-89cd181c0d48 ], jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Delete can not be done as
there are networks using this load balancer device
I have no networks whatsoever and I even deleted the network offering that used
F5BigIP for LB.
How can I find out what network is holding things up?
Thanks.
Amin
p.s. When I tried to create a VM using the network offering with this F5. Not
sure what the issue is here, but want to start fresh now.
I kept getting no free capacity F5:
2014-05-05 12:23:00,599 DEBUG [cloud.network.NetworkManagerImpl]
(Job-Executor-113:job-1051 = [ 7abb900c-b564-40ad-8ab6-a658c52f5814 ]) Lock is
released for network id 358 as a part of network implement
2014-05-05 12:23:00,599 INFO [cloud.vm.VirtualMachineManagerImpl]
(Job-Executor-113:job-1051 = [ 7abb900c-b564-40ad-8ab6-a658c52f5814 ]) Unable
to contact resource.
com.cloud.exception.ResourceUnavailableException: Resource [DataCenter:1] is
unreachable: There are no F5 load balancer devices with the free capacity for
implementing this network
at
com.cloud.network.element.F5ExternalLoadBalancerElement.implement(F5ExternalLoadBalancerElement.java:157)
at
com.cloud.network.NetworkManagerImpl.implementNetworkElementsAndResources(NetworkManagerImpl.java:2043)
at
com.cloud.network.NetworkManagerImpl.implementNetwork(NetworkManagerImpl.java:1948)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125