libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Teemu Vesala (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LIBCLOUD-813) create_record of GoDaddy DNS driver throws exception
Date Thu, 21 Apr 2016 06:00:32 GMT
Teemu Vesala created LIBCLOUD-813:
-------------------------------------

             Summary: create_record of GoDaddy DNS driver throws exception
                 Key: LIBCLOUD-813
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-813
             Project: Libcloud
          Issue Type: Bug
          Components: DNS
         Environment: Linux with Python 2.7
            Reporter: Teemu Vesala


When trying to create new record to zone with GoDaddy DNS Driver it gives following stack
trace. (Note - The stacktrace  is from the version which fixes LIBCLOUD-811, because the whole
driver is unusable without that fix)

{noformat}
Traceback (most recent call last):
  File "replicate.py", line 62, in <module>
    driver.create_record(record.name, current_zone, RecordType.A, record.data)
  File "/home/vagrant/libcloud-test/libcloud/libcloud/dns/drivers/godaddy.py", line 191, in
create_record
    data=[new_record])
  File "/home/vagrant/libcloud-test/libcloud/libcloud/common/base.py", line 825, in request
    headers=headers)
  File "/usr/lib/python2.7/httplib.py", line 979, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python2.7/httplib.py", line 1013, in _send_request
    self.endheaders(body)
  File "/usr/lib/python2.7/httplib.py", line 975, in endheaders
    self._send_output(message_body)
  File "/usr/lib/python2.7/httplib.py", line 839, in _send_output
    self.send(message_body)
  File "/usr/lib/python2.7/httplib.py", line 811, in send
    self.sock.sendall(data)
  File "/usr/lib/python2.7/ssl.py", line 329, in sendall
    v = self.send(data[count:])
  File "/usr/lib/python2.7/ssl.py", line 298, in send
    v = self._sslobj.write(data)
TypeError: must be string or buffer, not list
{noformat}

The line at driver is:
{code}
        self.connection.request(
            '/v1/domains/%s/records' % (zone.domain), method='PATCH',
            data=[new_record])
        id = self._get_id_of_record(name, type)
{code}

Same kind of structure appears at update_record also, so it might be affected with the same
kind of bug also.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message