← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1172006] Re: update-port error if port does not exist in nvp

 

** Changed in: quantum
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to quantum.
https://bugs.launchpad.net/bugs/1172006

Title:
  update-port error if port does not exist in nvp

Status in OpenStack Quantum (virtual network service):
  Fix Released

Bug description:
  2013-04-23 00:48:06    DEBUG [quantum.openstack.common.rpc.amqp] Making synchronous call on q-plugin ...
  2013-04-23 00:48:06    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 4f4d2e3d418248d0bae5a04185dc8b43
  2013-04-23 00:48:06    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is d7525395aba7411ab03ac9940d4cb8df.
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] Making synchronous call on q-plugin ...
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is fba389134f5448418a32e0d5bc3de199
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is 61fd8177dbbc4c3e950c553451951811.
  2013-04-23 00:48:10     INFO [quantum.agent.dhcp_agent] Synchronizing state
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] Making synchronous call on q-plugin ...
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 06f1c953e0cb43d6bf623ab6deb4e274
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is f2e5ae5f903d4a2c8bdc9b25e3d3b2dd.
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] Pool creating new connection
  2013-04-23 00:48:10     INFO [quantum.openstack.common.rpc.common] Connected to AMQP server on 10.127.1.202:5672
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] Making synchronous call on q-plugin ...
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 8a53238faabf4f0ba0df8dfb2773cb98
  2013-04-23 00:48:10    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is f16adecd70324844a2fcefe0a2b57bc7.
  2013-04-23 00:48:10    DEBUG [quantum.agent.linux.utils] Running command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'cat', '/proc/985/cmdline']
  2013-04-23 00:48:11    DEBUG [quantum.agent.linux.utils] 
  Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'cat', '/proc/985/cmdline']
  Exit code: 0
  Stdout: 'dnsmasq\x00--no-hosts\x00--no-resolv\x00--strict-order\x00--bind-interfaces\x00--interface=tapd76a8c89-82\x00--except-interface=lo\x00--pid-file=/var/lib/quantum/dhcp/e92e4a71-c1f3-424a-a302-b247f5a2b5bc/pid\x00--dhcp-hostsfile=/var/lib/quantum/dhcp/e92e4a71-c1f3-424a-a302-b247f5a2b5bc/host\x00--dhcp-optsfile=/var/lib/quantum/dhcp/e92e4a71-c1f3-424a-a302-b247f5a2b5bc/opts\x00--dhcp-script=/usr/bin/quantum-dhcp-agent-dnsmasq-lease-update\x00--leasefile-ro\x00--dhcp-range=set:tag0,10.0.0.0,static,120s\x00--conf-file=\x00--domain=openstacklocal\x00'
  Stderr: ''
  2013-04-23 00:48:11    DEBUG [quantum.agent.linux.utils] Running command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-e92e4a71-c1f3-424a-a302-b247f5a2b5bc', 'kill', '-9', '985']
  2013-04-23 00:48:11    DEBUG [quantum.agent.linux.utils] 
  Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-e92e4a71-c1f3-424a-a302-b247f5a2b5bc', 'kill', '-9', '985']
  Exit code: 1
  Stdout: ''
  Stderr: 'seting the network namespace failed: Invalid argument\n'
  2013-04-23 00:48:11    ERROR [quantum.agent.dhcp_agent] Unable to restart dhcp.
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 129, in call_driver
      getattr(driver, action)()
    File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py", line 86, in restart
      self.disable(retain_port=True)
    File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py", line 132, in disable
      ip_wrapper.netns.execute(cmd)
    File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/ip_lib.py", line 407, in execute
      check_exit_code=check_exit_code)
    File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/utils.py", line 61, in execute
      raise RuntimeError(m)
  RuntimeError: 
  Command: ['sudo', 'quantum-rootwrap', '/etc/quantum/rootwrap.conf', 'ip', 'netns', 'exec', 'qdhcp-e92e4a71-c1f3-424a-a302-b247f5a2b5bc', 'kill', '-9', '985']
  Exit code: 1
  Stdout: ''
  Stderr: 'seting the network namespace failed: Invalid argument\n'
  2013-04-23 00:48:11    DEBUG [quantum.openstack.common.rpc.amqp] Making synchronous call on q-plugin ...
  2013-04-23 00:48:11    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 6ae33c05b64744bb9708d5d163e1351b
  2013-04-23 00:48:11    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is cebf3a49dccb407b9b4fe93a1066c979.
  2013-04-23 00:48:11    DEBUG [quantum.openstack.common.rpc.amqp] Making synchronous call on q-plugin ...
  2013-04-23 00:48:11    DEBUG [quantum.openstack.common.rpc.amqp] MSG_ID is 011b4067a35d4a3f87c4fdb11498c86c
  2013-04-23 00:48:11    DEBUG [quantum.openstack.common.rpc.amqp] UNIQUE_ID is def876d33472455aa5a987324e7023af.
  2013-04-23 00:48:11    ERROR [quantum.agent.dhcp_agent] Unable to enable dhcp.
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 129, in call_driver
      getattr(driver, action)()
    File "/usr/lib/python2.7/dist-packages/quantum/agent/linux/dhcp.py", line 117, in enable
      reuse_existing=True)
    File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 528, in setup
      port = self.plugin.get_dhcp_port(network.id, device_id)
    File "/usr/lib/python2.7/dist-packages/quantum/agent/dhcp_agent.py", line 377, in get_dhcp_port
      topic=self.topic))
    File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/proxy.py", line 80, in call
      return rpc.call(context, self._get_topic(topic), msg, timeout)
    File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/__init__.py", line 140, in call
      return _get_impl().call(CONF, context, topic, msg, timeout)
    File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/impl_kombu.py", line 798, in call
      rpc_amqp.get_connection_pool(conf, Connection))
    File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/amqp.py", line 613, in call
      rv = list(rv)
    File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/amqp.py", line 562, in __iter__
      raise result
  TypeError: coercing to Unicode: need string or buffer, NoneType found
  Traceback (most recent call last):

    File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/amqp.py", line 430, in _process_data
      rval = self.proxy.dispatch(ctxt, version, method, **args)

    File "/usr/lib/python2.7/dist-packages/quantum/common/rpc.py", line 43, in dispatch
      quantum_ctxt, version, method, **kwargs)

    File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/rpc/dispatcher.py", line 133, in dispatch
      return getattr(proxyobj, method)(ctxt, **kwargs)

    File "/usr/lib/python2.7/dist-packages/quantum/db/dhcp_rpc_base.py", line 104, in get_dhcp_port
      dict(port=port))

    File "/usr/lib/python2.7/dist-packages/quantum/plugins/nicira/nicira_nvp_plugin/QuantumPlugin.py", line 1448, in update_port
      ret_port[ext_qos.QUEUE])

    File "/usr/lib/python2.7/dist-packages/quantum/plugins/nicira/nicira_nvp_plugin/nvplib.py", line 760, in update_port
      path = "/ws.v1/lswitch/" + lswitch_uuid + "/lport/" + lport_uuid

  TypeError: coercing to Unicode: need string or buffer, NoneType found

To manage notifications about this bug go to:
https://bugs.launchpad.net/quantum/+bug/1172006/+subscriptions