error in deleting vm that is created with port

Bug #1567139 reported by Shinji YANAGIDA
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-nec
Fix Released
Medium
Shinji YANAGIDA

Bug Description

Error is occurred in deleting vm that is create with port.
  $ nova boot --flavor 1 --image cirros --security-group default --nic port-id=$PORT vm1
  $ nova delete vm1

08:24:33.952 ERROR oslo_messaging.rpc.dispatcher [req-518670ba-6f41-4ee9-90a5-b032bd065cbc neutron 7e84dd1a8b7e465e96a94e9df0702d9f] Exception during mes
ng: coercing to Unicode: need string or buffer, NoneType found
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher Traceback (most recent call last):
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch

08:24:33.952 TRACE oslo_messaging.rpc.dispatcher incoming.message))
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 183, in _dispatch
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher return self._do_dispatch(endpoint, method, ctxt, args)
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispa

08:24:33.952 TRACE oslo_messaging.rpc.dispatcher result = func(ctxt, **new_args)
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/networking-nec/networking_nec/nwa/l2/rpc/nwa_proxy_callback.py", line 44, in delete_g

08:24:33.952 TRACE oslo_messaging.rpc.dispatcher return self.agent.delete_general_dev(context, **kwargs)
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/usr/local/lib/python2.7/dist-packages/oslo_log/helpers.py", line 46, in wrapper
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher return method(*args, **kwargs)
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/networking-nec/networking_nec/nwa/agent/proxy_tenant.py", line 30, in wrapper
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher return method(obj, context, **kwargs)
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/networking-nec/networking_nec/nwa/agent/proxy_l2.py", line 433, in delete_general_dev
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher gd_count = check_segment_gd(network_id, resource_group_name, nwa_data)
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/networking-nec/networking_nec/nwa/agent/proxy_l2.py", line 75, in check_segment_gd
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher nwa_const.NWA_DEVICE_GDV)
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher File "/opt/stack/networking-nec/networking_nec/nwa/agent/proxy_l2.py", line 61, in check_segment
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher dev_pat = re.compile(r'DEV_.*_' + network_id + '_' + res_name)
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher TypeError: coercing to Unicode: need string or buffer, NoneType found
08:24:33.952 TRACE oslo_messaging.rpc.dispatcher

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-nec (master)

Reviewed: https://review.openstack.org/302523
Committed: https://git.openstack.org/cgit/openstack/networking-nec/commit/?id=06a26a4c68dea4529932647ea66d0b5cdaa43ca1
Submitter: Jenkins
Branch: master

commit 06a26a4c68dea4529932647ea66d0b5cdaa43ca1
Author: Shinji YANAGIDA <email address hidden>
Date: Thu Apr 7 08:47:18 2016 +0900

    Fixed bug of deleting vm that is created with port

    If resource group name is empty when the port is deleted,
    get it from nwa_data.
    The resource group name is corresponding with MAC address of the port.

    Change-Id: I1fecef6dae0edf4484bc5d160b17d1e7a430b3bf
    Closes-Bug: #1567139

Changed in networking-nec:
status: New → Fix Released
Akihiro Motoki (amotoki)
Changed in networking-nec:
importance: Undecided → Medium
milestone: none → 2.0.0
assignee: nobody → Shinji YANAGIDA (s-yanagida)
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.