ASR1K plugin: "total floating_ips" in configuration report is incorrect after the controller/network node is rebooted

Bug #1502231 reported by Danny Choi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-cisco
New
Undecided
Unassigned

Bug Description

There is one VM launched with one interface and a floating IP associated:

[root@G10-QA4 ~(keystone_admin)]# nova list

+--------------------------------------+---------------+--------+------------+-------------+------------------------------------------+

| ID | Name | Status | Task State | Power State | Networks |

+--------------------------------------+---------------+--------+------------+-------------+------------------------------------------+

| e9dc7e55-47bf-405b-99a4-b085509d4390 | qa5-10net-vm1 | ACTIVE | - | Running | private-10net=10.10.10.5, 169.254.128.17 |

+--------------------------------------+---------------+--------+------------+-------------+—————————————————————+

[root@G10-QA4 ~(keystone_admin)]# neutron floatingip-list

+--------------------------------------+------------------+---------------------+--------------------------------------+

| id | fixed_ip_address | floating_ip_address | port_id |

+--------------------------------------+------------------+---------------------+--------------------------------------+

| 50e19688-7611-4ed1-8717-8b3c43f959d3 | 10.10.10.5 | 169.254.128.17 | a83b7d0e-2312-4c64-b22c-990eceb9da06 |

| aaeffe4b-1640-4144-b3bf-5d2ae8436d72 | | 169.254.128.41 | |

| bc8f3d13-d3aa-46fa-8e29-7309ff63f7d5 | | 169.254.128.18 | |

+--------------------------------------+------------------+---------------------+--------------------------------------+

[root@G10-QA4 ~(keystone_admin)]# mysql -e "use neutron; select * from floatingips;"

+----------------------------------+--------------------------------------+---------------------+--------------------------------------+--------------------------------------+--------------------------------------+------------------+--------------------------------------+--------------------------------------+--------+

| tenant_id | id | floating_ip_address | floating_network_id | floating_port_id | fixed_port_id | fixed_ip_address | router_id | last_known_router_id | status |

+----------------------------------+--------------------------------------+---------------------+--------------------------------------+--------------------------------------+--------------------------------------+------------------+--------------------------------------+--------------------------------------+--------+

| d79b738bdf524b3c9d14892f6f3ff01f | 50e19688-7611-4ed1-8717-8b3c43f959d3 | 169.254.128.17 | cae59642-fd1a-4d97-865b-c52cf1007610 | f5bc85df-89e7-417f-b0e9-04a914e5d5f4 | a83b7d0e-2312-4c64-b22c-990eceb9da06 | 10.10.10.5 | 6a8c8f95-f632-46ac-ab6f-b72679dfe7cf | NULL | ACTIVE |

| 4d04968def6d4a3e87b5a77cf97ce12c | aaeffe4b-1640-4144-b3bf-5d2ae8436d72 | 169.254.128.41 | cae59642-fd1a-4d97-865b-c52cf1007610 | 61106bb4-dffc-4bd4-85c2-8d3de3a98866 | NULL | NULL | NULL | NULL | DOWN |

| d79b738bdf524b3c9d14892f6f3ff01f | bc8f3d13-d3aa-46fa-8e29-7309ff63f7d5 | 169.254.128.18 | cae59642-fd1a-4d97-865b-c52cf1007610 | 11f178fd-89b5-4aa2-90dd-b9a56b6c4571 | NULL | NULL | NULL | 8e97dc78-aa9f-498d-b34c-207454da18fa | DOWN |

+----------------------------------+--------------------------------------+---------------------+--------------------------------------+--------------------------------------+--------------------------------------+------------------+--------------------------------------+--------------------------------------+--------+

The periodic cfg-agent configuration report lists one floating IP:

2015-09-30 09:44:17.857 2253 DEBUG neutron.plugins.cisco.cfg_agent.cfg_agent [-] State report data: {'agent_type': 'Cisco cfg agent',

 'binary': 'neutron-cisco-cfg-agent',

 'configurations': {'hosting_devices': {u'00000000-0000-0000-0000-000000000001': {'routers': 3},

                                        u'00000000-0000-0000-0000-000000000002': {'routers': 3}},

                    'non_responding_hosting_devices': [],

                    'service_agents': ['Cisco l3 cfg agent'],

                    'total ex_gw_ports': 6,

                    'total floating_ips': 1,

                    'total interfaces': 2,

                    'total routers': 6},

 'host': 'G10-QA4',

 'local_time': '2015-09-30 16:44:17.855894',

 'topic': 'cisco_cfg_agent'} _report_state /usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/cfg_agent.py:362

However, after the controller/network node is rebooted, the number of floating IP is changed to 2:

2015-09-30 09:50:09.366 2255 DEBUG neutron.plugins.cisco.cfg_agent.cfg_agent [-] State report data: {'agent_type': 'Cisco cfg agent',

 'binary': 'neutron-cisco-cfg-agent',

 'configurations': {'hosting_devices': {u'00000000-0000-0000-0000-000000000001': {'routers': 3},

                                        u'00000000-0000-0000-0000-000000000002': {'routers': 3}},

                    'non_responding_hosting_devices': [],

                    'service_agents': ['Cisco l3 cfg agent'],

                    'total ex_gw_ports': 6,

                    'total floating_ips': 2, <<<<<?????

                    'total interfaces': 2,

                    'total routers': 6},

 'host': 'G10-QA4',

 'local_time': '2015-09-30 16:50:09.365197',

 'topic': 'cisco_cfg_agent'} _report_state /usr/lib/python2.7/site-packages/neutron/plugins/cisco/cfg_agent/cfg_agent.py:362

Neutron database seems to be correct:

[root@G10-QA4 ~]# mysql -e "use neutron; select * from floatingips;"

+----------------------------------+--------------------------------------+---------------------+--------------------------------------+--------------------------------------+--------------------------------------+------------------+--------------------------------------+--------------------------------------+--------+

| tenant_id | id | floating_ip_address | floating_network_id | floating_port_id | fixed_port_id | fixed_ip_address | router_id | last_known_router_id | status |

+----------------------------------+--------------------------------------+---------------------+--------------------------------------+--------------------------------------+--------------------------------------+------------------+--------------------------------------+--------------------------------------+--------+

| d79b738bdf524b3c9d14892f6f3ff01f | 50e19688-7611-4ed1-8717-8b3c43f959d3 | 169.254.128.17 | cae59642-fd1a-4d97-865b-c52cf1007610 | f5bc85df-89e7-417f-b0e9-04a914e5d5f4 | a83b7d0e-2312-4c64-b22c-990eceb9da06 | 10.10.10.5 | 6a8c8f95-f632-46ac-ab6f-b72679dfe7cf | NULL | ACTIVE |

| 4d04968def6d4a3e87b5a77cf97ce12c | aaeffe4b-1640-4144-b3bf-5d2ae8436d72 | 169.254.128.41 | cae59642-fd1a-4d97-865b-c52cf1007610 | 61106bb4-dffc-4bd4-85c2-8d3de3a98866 | NULL | NULL | NULL | NULL | DOWN |

| d79b738bdf524b3c9d14892f6f3ff01f | bc8f3d13-d3aa-46fa-8e29-7309ff63f7d5 | 169.254.128.18 | cae59642-fd1a-4d97-865b-c52cf1007610 | 11f178fd-89b5-4aa2-90dd-b9a56b6c4571 | NULL | NULL | NULL | 8e97dc78-aa9f-498d-b34c-207454da18fa | DOWN |

+----------------------------------+--------------------------------------+---------------------+--------------------------------------+--------------------------------------+--------------------------------------+------------------+--------------------------------------+--------------------------------------+--------+

Tags: asr1k cisco
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.