[Bug 1526197] Re: [1.10] 'nodes new' CLI command crashes in twisted

Blake Rouse blake.rouse at canonical.com
Tue Dec 15 16:04:22 UTC 2015


This issue is fixed in 15.5.0 of twisted.

https://twistedmatrix.com/trac/changeset/45893

** Also affects: twisted (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: twisted (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to twisted in Ubuntu.
https://bugs.launchpad.net/bugs/1526197

Title:
  [1.10] 'nodes new' CLI command crashes in twisted

Status in MAAS:
  In Progress
Status in twisted package in Ubuntu:
  Confirmed

Bug description:
  Found in regiond.log:

  2015-12-15 00:10:09 [HTTPChannel,0,127.0.0.1] Unhandled Error
          Traceback (most recent call last):
            File "/usr/lib/python3/dist-packages/twisted/python/log.py", line 101, in callWithLogger
              return callWithContext({"system": lp}, func, *args, **kw)
            File "/usr/lib/python3/dist-packages/twisted/python/log.py", line 84, in callWithContext
              return context.call({ILogContext: newCtx}, func, *args, **kw)
            File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 118, in callWithContext
              return self.currentContext().callWithContext(ctx, func, *args, **kw)
            File "/usr/lib/python3/dist-packages/twisted/python/context.py", line 81, in callWithContext
              return func(*args,**kw)
          --- <exception caught here> ---
            File "/usr/lib/python3/dist-packages/twisted/internet/posixbase.py", line 597, in _doReadOrWrite
              why = selectable.doRead()
            File "/usr/lib/python3/dist-packages/twisted/internet/tcp.py", line 209, in doRead
              return self._dataReceived(data)
            File "/usr/lib/python3/dist-packages/twisted/internet/tcp.py", line 215, in _dataReceived
              rval = self.protocol.dataReceived(data)
            File "/usr/lib/python3/dist-packages/twisted/protocols/basic.py", line 578, in dataReceived
              why = self.rawDataReceived(data)
            File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 1763, in rawDataReceived
              self._transferDecoder.dataReceived(data)
            File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 1436, in dataReceived
              finishCallback(data[contentLength:])
            File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 1694, in _finishRequestBody
              self.allContentReceived()
            File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 1757, in allContentReceived
              req.requestReceived(command, path, version)
            File "/usr/lib/python3/dist-packages/maasserver/webapp.py", line 74, in requestReceived
              command, path, version)
            File "/usr/lib/python3/dist-packages/twisted/web/http.py", line 810, in requestReceived
              args.update(cgi.parse_multipart(self.content, pdict))
            File "/usr/lib/python3.5/cgi.py", line 235, in parse_multipart
              nextpart = b"--" + boundary
          builtins.TypeError: can't concat bytes to str

  Nicer version here: http://paste.ubuntu.com/14025131/

  It seems the fix was submitted upstream to Twisted ~8 weeks ago:

      https://twistedmatrix.com/trac/ticket/8052

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



More information about the foundations-bugs mailing list