Disassociating floating IP from Openstack Horizon actually deallocates.

Bug #1357509 reported by Steven Huynh
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenContrail
New
Undecided
Unassigned

Bug Description

Steps to reproduce
1) Allocate yourself some floating IPs in Contrail to your tenant.
2) Spin up a new vm
3) Attach floating IP to vm
4) Disassociate floating IP from VM
5) Verify that the Floating IP has been deallocated from your tenant in Horizon and Contrail

If you disassociate a Floating IP from a VM under the instances tab, it will deallocate the floating IP back to the general pool aka "releasing IP."
If you go to the Access & Security tab then to Floating IPs, you can successfully disassociate a floating IP from the VM.
So there must be some incorrect mapping in what the disassociate floating IP button does under Instances versus what is being done under the Access & Security tab.

This is what I saw in one of the contrail API logs when I tried to disassociate the Floating IP from the the instance:
172.24.0.10 - - [2014-08-14 18:38:36] "GET /floating-ip/168a04e9-51f7-4c72-b527-d28b32d18362?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1510 0.008264
172.24.0.10 - - [2014-08-14 18:38:36] "GET /floating-ip-pool/2908eff5-cd83-404f-afbf-3a5ecaba600c?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 916 0.006495
172.24.0.10 - - [2014-08-14 18:38:36] "GET /virtual-network/cab9d5e5-e4f0-43d4-8a13-c77dc881ede4?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1729 0.010227
172.24.0.10 - - [2014-08-14 18:38:36] "GET /floating-ip/78c37103-ab04-40d4-9fef-be9f25d582d9?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1224 0.006709
172.24.0.10 - - [2014-08-14 18:38:36] "GET /floating-ip-pool/2908eff5-cd83-404f-afbf-3a5ecaba600c?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 916 0.007232
172.24.0.10 - - [2014-08-14 18:38:36] "GET /virtual-network/cab9d5e5-e4f0-43d4-8a13-c77dc881ede4?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1729 0.010271
172.24.0.11 - - [2014-08-14 18:38:36] "GET /floating-ip/168a04e9-51f7-4c72-b527-d28b32d18362?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1510 0.008798
172.24.0.11 - - [2014-08-14 18:38:36] "GET /floating-ip-pool/2908eff5-cd83-404f-afbf-3a5ecaba600c?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 916 0.007563
172.24.0.11 - - [2014-08-14 18:38:36] "GET /virtual-network/cab9d5e5-e4f0-43d4-8a13-c77dc881ede4?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1729 0.009628
172.24.0.11 - - [2014-08-14 18:38:36] "GET /floating-ip/168a04e9-51f7-4c72-b527-d28b32d18362?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1510 0.008113
172.24.0.11 - - [2014-08-14 18:38:36] "PUT /floating-ip/168a04e9-51f7-4c72-b527-d28b32d18362 HTTP/1.1" 200 258 0.019274
172.24.0.11 - - [2014-08-14 18:38:36] "GET /floating-ip-pool/2908eff5-cd83-404f-afbf-3a5ecaba600c?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 916 0.005582
172.24.0.11 - - [2014-08-14 18:38:36] "GET /virtual-network/cab9d5e5-e4f0-43d4-8a13-c77dc881ede4?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1729 0.011882
172.24.0.10 - - [2014-08-14 18:38:36] "GET /floating-ip/168a04e9-51f7-4c72-b527-d28b32d18362?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1224 0.006581
172.24.0.10 - - [2014-08-14 18:38:36] "GET /floating-ip-pool/2908eff5-cd83-404f-afbf-3a5ecaba600c?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 916 0.006831
172.24.0.10 - - [2014-08-14 18:38:36] "GET /virtual-network/cab9d5e5-e4f0-43d4-8a13-c77dc881ede4?exclude_back_refs=True&exclude_children=True HTTP/1.1" 200 1729 0.008290
INFO:api-0:Sending request(xid=4791): Delete(path=u'/api-server/subnets/default-domain:admin:public:xxx.xxx.xxx.xxx/24/1747227853', version=-1)
INFO:api-0:Received response(xid=4791): True
INFO:api-0:Sending request(xid=4792): Delete(path=u'/fq-name-to-uuid/floating_ip:default-domain:admin:public:public:168a04e9-51f7-4c72-b527-d28b32d18362', version=-1)
ssions': {u'group': u'cloud-admin-group',
                                              u'group_access': 7,
                                              u'other_access': 7,
                                              u'owner': u'cloud-admin',
                                              u'owner_access': 7},
                             u'uuid': {u'uuid_lslong': 10143452360497205799L,
                                       u'uuid_mslong': 10400770707770789616L}},
               u'name': u'9056f5da-62f7-4ef0-8cc4-c82df7889227',
               u'parent_type': u'floating-ip-pool',
               u'project_refs': [{u'to': [u'default-domain',
                                          u'xxxxxx']}],
               u'uuid': u'9056f5da-62f7-4ef0-8cc4-c82df7889227'},
 u'oper': u'CREATE',
 u'parent_imid': u'contrail:floating-ip-pool:default-domain:admin:public:public',
 u'type': u'floating-ip',
 u'uuid': u'9056f5da-62f7-4ef0-8cc4-c82df7889227'}

Notification Message: {u'oper': u'UPDATE',
 u'type': u'access-control-list',
 u'uuid': u'dfee2eb2-0094-41f1-8e3e-1c46de40fb5f'}

Notification Message: {u'oper': u'UPDATE',
 u'type': u'access-control-list',
 u'uuid': u'dfee2eb2-0094-41f1-8e3e-1c46de40fb5f'}

Notification Message: {u'imid': u'contrail:floating-ip:default-domain:admin:public:public:78c37103-ab04-40d4-9fef-be9f25d582d9',
 u'obj_dict': {u'floating_ip_address': u'xxx.xxx.xxx.xxx',
               u'fq_name': [u'default-domain',
                            u'admin',
                            u'public',
                            u'public',
                            u'78c37103-ab04-40d4-9fef-be9f25d582d9'],
               u'id_perms': {u'created': u'2014-08-14T18:37:05.334786',
                             u'description': None,
                             u'enable': True,
                             u'last_modified': u'2014-08-14T18:37:05.334786',
                             u'permissions': {u'group': u'cloud-admin-group',
                                              u'group_access': 7,
                                              u'other_access': 7,
                                              u'owner': u'cloud-admin',
                                              u'owner_access': 7},
                             u'uuid': {u'uuid_lslong': 11524639562208215769L,
                                       u'uuid_mslong': 8701923165577953492}},
               u'name': u'78c37103-ab04-40d4-9fef-be9f25d582d9',
               u'parent_type': u'floating-ip-pool',
               u'project_refs': [{u'to': [u'default-domain',
                                          u'xxxxxx']}],
               u'uuid': u'78c37103-ab04-40d4-9fef-be9f25d582d9'},
 u'oper': u'CREATE',
 u'parent_imid': u'contrail:floating-ip-pool:default-domain:admin:public:public',
 u'type': u'floating-ip',
 u'uuid': u'78c37103-ab04-40d4-9fef-be9f25d582d9'}

Notification Message: {u'oper': u'UPDATE',
 u'type': u'floating-ip',
 u'uuid': u'168a04e9-51f7-4c72-b527-d28b32d18362'}

AddrMgmt: free FIP xxx.xxx.xxx.xxx for vn=[u'default-domain', u'admin', u'public']

Notification Message: {u'imid': u'contrail:floating-ip:default-domain:admin:public:public:168a04e9-51f7-4c72-b527-d28b32d18362',
 u'obj_dict': {u'floating_ip_address': u'xxx.xxx.xx.xxx',
               u'fq_name': [u'default-domain',
                            u'admin',
                            u'public',
                            u'public',
                            u'168a04e9-51f7-4c72-b527-d28b32d18362'],
               u'id_perms': {u'created': u'2014-08-13T22:51:54.294692',
                             u'description': None,
                             u'enable': True,
                             u'last_modified': u'2014-08-14T18:38:36.872416',
                             u'permissions': {u'group': u'cloud-admin-group',
                                              u'group_access': 7,
                                              u'other_access': 7,
                                              u'owner': u'cloud-admin',
                                              u'owner_access': 7INFO:api-0:Received error(xid=4792) NoNodeError((), {})
172.24.0.10 - - [2014-08-14 18:38:37] "DELETE /floating-ip/168a04e9-51f7-4c72-b527-d28b32d18362 HTTP/1.1" 200 115 0.048091
INFO:api-0:Sending request(xid=4793): Delete(path=u'/api-server/subnets/default-domain:admin:public:xxx.xxx.xxx.xxx/24/1747227853', version=-1)
INFO:api-0:Received error(xid=4793) NoNodeError((), {})

Version: contrail 1.05

Tags: config
Steven Huynh (stbven)
description: updated
Steven Huynh (stbven)
description: updated
tags: added: config
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.