Exception when creating metadata service

Bug #1446661 reported by Gary Kotton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vmware-nsx
Fix Released
Critical
Gary Kotton

Bug Description

When creating the metadata LB we get the following exception:

2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/neutron/neutron/api/v2/router.py", line 75, in __init__
2015-04-21 05:20:50.231 TRACE neutron plugin = manager.NeutronManager.get_plugin()
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/neutron/neutron/manager.py", line 222, in get_plugin
2015-04-21 05:20:50.231 TRACE neutron return weakref.proxy(cls.get_instance().plugin)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/neutron/neutron/manager.py", line 216, in get_instance
2015-04-21 05:20:50.231 TRACE neutron cls._create_instance()
2015-04-21 05:20:50.231 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 445, in inner
2015-04-21 05:20:50.231 TRACE neutron return f(*args, **kwargs)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/neutron/neutron/manager.py", line 202, in _create_instance
2015-04-21 05:20:50.231 TRACE neutron cls._instance = cls()
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/neutron/neutron/manager.py", line 117, in __init__
2015-04-21 05:20:50.231 TRACE neutron plugin_provider)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/neutron/neutron/manager.py", line 143, in _get_plugin_instance
2015-04-21 05:20:50.231 TRACE neutron return plugin_class()
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v.py", line 145, in __init__
2015-04-21 05:20:50.231 TRACE neutron if has_metadata_cfg else None)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v_md_proxy.py", line 62, in __init__
2015-04-21 05:20:50.231 TRACE neutron self.proxy_edge_ips = self._get_proxy_edges()
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v_md_proxy.py", line 186, in _get_proxy_edges
2015-04-21 05:20:50.231 TRACE neutron cfg.CONF.nsxv.mgt_net_proxy_ips):
2015-04-21 05:20:50.231 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/eventlet/greenpool.py", line 238, in next
2015-04-21 05:20:50.231 TRACE neutron val = self.waiters.get().wait()
2015-04-21 05:20:50.231 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 175, in wait
2015-04-21 05:20:50.231 TRACE neutron return self._exit_event.wait()
2015-04-21 05:20:50.231 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 121, in wait
2015-04-21 05:20:50.231 TRACE neutron return hubs.get_hub().switch()
2015-04-21 05:20:50.231 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 294, in switch
2015-04-21 05:20:50.231 TRACE neutron return self.greenlet.switch()
2015-04-21 05:20:50.231 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
2015-04-21 05:20:50.231 TRACE neutron result = function(*args, **kwargs)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v_md_proxy.py", line 313, in _get_proxy_edge
2015-04-21 05:20:50.231 TRACE neutron "for metadata service"), e)
2015-04-21 05:20:50.231 TRACE neutron File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-04-21 05:20:50.231 TRACE neutron six.reraise(self.type_, self.value, self.tb)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v_md_proxy.py", line 235, in _get_proxy_edge
2015-04-21 05:20:50.231 TRACE neutron allow_metadata=False)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v.py", line 1222, in create_router
2015-04-21 05:20:50.231 TRACE neutron context, lrouter['id'], gw_info)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/vmware-nsx/vmware_nsx/neutron/plugins/vmware/plugins/nsx_v_drivers/exclusive_router_driver.py", line 70, in _update_router_gw_info
2015-04-21 05:20:50.231 TRACE neutron context, router_id, info, router=router)
2015-04-21 05:20:50.231 TRACE neutron File "/opt/stack/neutron/neutron/db/l3_gwmode_db.py", line 60, in _update_router_gw_info
2015-04-21 05:20:50.231 TRACE neutron enable_snat = not info or info.get('enable_snat', router.enable_snat)
2015-04-21 05:20:50.231 TRACE neutron AttributeError: 'object' object has no attribute 'get'

Gary Kotton (garyk)
Changed in vmware-nsx:
assignee: nobody → Gary Kotton (garyk)
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to vmware-nsx (master)

Fix proposed to branch: master
Review: https://review.openstack.org/175865

Changed in vmware-nsx:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to vmware-nsx (master)

Reviewed: https://review.openstack.org/175865
Committed: https://git.openstack.org/cgit/stackforge/vmware-nsx/commit/?id=25aa94b7ea85f6096d32490a7a544729b050be63
Submitter: Jenkins
Branch: master

commit 25aa94b7ea85f6096d32490a7a544729b050be63
Author: Gary Kotton <email address hidden>
Date: Tue Apr 21 06:39:19 2015 -0700

    Address exception when creating metadata service

    Commit 1b1f7a0c964f9abf74fd99bc80f98480bda574ee introduced the
    issue.

    Ensure that the gw_info is set correctly.

    Change-Id: I1db5e4f8c9a0836ab752a8a69409cdd3796f59dd
    Closes-bug: #1446661

Changed in vmware-nsx:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to vmware-nsx (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/176179

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to vmware-nsx (stable/kilo)

Reviewed: https://review.openstack.org/176179
Committed: https://git.openstack.org/cgit/stackforge/vmware-nsx/commit/?id=8912744b5e98bcb48385f4d81ab5cc0d52abc045
Submitter: Jenkins
Branch: stable/kilo

commit 8912744b5e98bcb48385f4d81ab5cc0d52abc045
Author: Gary Kotton <email address hidden>
Date: Tue Apr 21 06:39:19 2015 -0700

    Address exception when creating metadata service

    Commit 1b1f7a0c964f9abf74fd99bc80f98480bda574ee introduced the
    issue.

    Ensure that the gw_info is set correctly.

    Change-Id: I1db5e4f8c9a0836ab752a8a69409cdd3796f59dd
    Closes-bug: #1446661
    (cherry picked from commit 25aa94b7ea85f6096d32490a7a544729b050be63)

tags: added: in-stable-kilo
Adit Sarfaty (asarfaty)
Changed in vmware-nsx:
status: Fix Committed → Fix Released
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.