Giter Site home page Giter Site logo

Comments (2)

rasjani avatar rasjani commented on August 17, 2024

Had a quick look into this issue today and while im not really a python dev nor familar with either bogo nor dnspython packages, it looks like that boto lib returns document warning message (from r53 api) which causes dnspython to throw exception because stored data is not valid (NoneType)

I think this issue boils down to the fact that boto uses r53 api version that does not support failover feature, it receives error and dnspython then throws exception as the data passed to it from cli53 is not in shape that it can create bind export output..

And in the end, afaik failover definition in r53 is not standard bind feature, it might not be even "exportable" as it is functioning in aws dns - maybe it should just returning multiple ip addresses for a record and let the admin take care of possible rrset options ?

-- EDIT:
There's a pull request here against boto: boto/boto#1496 will make boto to return proper rrset but that does not fix the issue as the input data from R53 is not recognized by other libs and cli53 itself ..

Example of of recordset retrieved from R53:

< Record:testtest.baz.:A:555.555.555.555 (Failover id=Primary, Failover Type=PRIMARY, Health Check id=$LONG_UUID_HERE) >,< Record:testtest.baz.:A:666.666.666.666 (Failover id=Secondary, Failover Type=SECONDARY, Health Check id=None) >

Fast hack to make things work would propably be to just remove the "(.*)" from the end of Record ?

from cli53.

cliff-wakefield avatar cliff-wakefield commented on August 17, 2024

Any progress on this issue, just installed cli53 under OS X (using pip so received v0.3.6) and my first domain I try and export from Route53 comes up with this error.

cli53 export subdomain.parentdomain.com

$ORIGIN subdomain.parentdomain.com.
@ 172800 IN NS ns-572.awsdns-07.net.
@ 172800 IN NS ns-1275.awsdns-31.org.
@ 172800 IN NS ns-1962.awsdns-53.co.uk.
@ 172800 IN NS ns-277.awsdns-34.com.
@ 900 IN SOA ns-572.awsdns-07.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
Traceback (most recent call last):
File "/usr/local/bin/cli53", line 749, in
main()
File "/usr/local/bin/cli53", line 746, in main
args.func(args)
File "/usr/local/bin/cli53", line 541, in cmd_export
zone.to_file(sys.stdout, relativize=not args.full)
File "/Library/Python/2.7/site-packages/dns/zone.py", line 499, in to_file
relativize=relativize)
File "/Library/Python/2.7/site-packages/dns/node.py", line 53, in to_text
print >> s, rds.to_text(name, *_kw)
File "/Library/Python/2.7/site-packages/dns/rdataset.py", line 214, in to_text
rd.to_text(origin=origin, relativize=relativize, *_kw))
AttributeError: 'NoneType' object has no attribute 'to_text'

from cli53.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.