Comments (2)
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.
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)
- BIND zone import automatically appending PTR value HOT 1
- Add format support for YAML
- can't invoke on alpine HOT 3
- cli53 on EKS using service account with linked iam role HOT 1
- feature request: accept --healthcheck as synonym for --health-check
- possible to create multiple NS records without import? HOT 6
- A trailing dot is added to the value when exporting/importing domains HOT 2
- Not updating via IPv6
- "rrcreate" command not considering the --role-arn option
- InvalidChangeBatch with Geolocation A Records
- build docker image from Dockerfile doesn't work as expected HOT 1
- pip3 install cli53 error: metadata-generation-failed HOT 1
- Update to work with AWS China HOT 1
- cli53 timeout option feature to avoid 6 hours to wait HOT 6
- File overwrite question
- exec /usr/local/bin/cli53: exec format error HOT 3
- ConvertRRSetToBind() function exports AWS ALIAS A records which vanilla bind can't import
- Fails Silently When Using IAM Identity Center Setup HOT 1
- Sort or Dedupe for better diff
- Return of rrlist (or something similar)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli53.