rackspace/python-clouddns — Issue #7: Record update call returning another domains data in errors?
Author: ewanleith
Created: 2012-02-16 16:20:46+00:00
State: open

I've been doing some bulk updates on domains managed through CloudDNS, and come across a situation where it seems the update record command is returning data from another domain - I can't work out if this is an issue with my script, CloudDNS itself, or the python-clouddns script.

Essentially, I'm looping through all my domains looking for where record['data'] is equal to a specific IP, then changing it to a new IP. The script has been working the vast majority of the time, but I've had a few errors, where the error message has listed another domain. Re-running the script without alteration has worked each time I've had the issue.

In the error below, I am updating the domain millemiglia.co.uk and the domain drew.testingthisthingyout.com has nothing to do with me:

****** Domain name: millemiglia.co.uk id: 3123142 ******
****** Record name millemiglia.co.uk type A data 46.38.175.54 ttl 3600 id A-7912831 ******
newRecord millemiglia.co.uk

Traceback (most recent call last):
File "./rackspace_domainlist.py", line 95, in
check_all_domains()
File "./rackspace_domainlist.py", line 67, in check_all_domains
newRecord.update(data="178.79.160.89")
File "/usr/local/lib/python2.6/dist-packages/python_clouddns-0.0.0-py2.6.egg/clouddns/record.py", line 51, in update
output = self.domain.conn.wait_for_async_request(response)
File "/usr/local/lib/python2.6/dist-packages/python_clouddns-0.0.0-py2.6.egg/clouddns/connection.py", line 215, in wait_for_async_request
output['error']['details'])
clouddns.errors.ResponseError: 404: Couldn't find AddressRecord for id: 7912831 and zone: drew.testingthisthingyout.com

Any ideas? I've raised a support ticket with Rackspace too, to see if they think the problem is in Cloud DNS itself.

Thanks,
Ewan