Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exports fail on zones with failover records #82

Closed
jpreboot opened this issue Jun 9, 2014 · 9 comments
Closed

Exports fail on zones with failover records #82

jpreboot opened this issue Jun 9, 2014 · 9 comments

Comments

@jpreboot
Copy link

jpreboot commented Jun 9, 2014

When I try to export a zone (cli53 export zonename.com) with failover records in it, it stops exporting on the record before the failover and bombs out with this error:

Traceback (most recent call last):
File "/usr/local/bin/cli53", line 976, in
main()
File "/usr/local/bin/cli53", line 971, in main
args.func(args)
File "/usr/local/bin/cli53", line 630, in cmd_export
zone.to_file(sys.stdout, relativize=not args.full)
File "/usr/local/lib/python2.7/dist-packages/dns/zone.py", line 499, in to_file
relativize=relativize)
File "/usr/local/lib/python2.7/dist-packages/dns/node.py", line 53, in to_text
print >> s, rds.to_text(name, *_kw)
File "/usr/local/lib/python2.7/dist-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'

I believe I have the most current version of the script (updated today). Is there a fix for this? Am I doing something wrong on my end?

@pchaganti
Copy link

Getting the same error with the latest version of cli53. Anyone else seeing this?

Traceback (most recent call last):
  File "/usr/local/bin/cli53", line 976, in <module>
    main()
  File "/usr/local/bin/cli53", line 971, in main
    args.func(args)
  File "/usr/local/bin/cli53", line 630, 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'

thanks!

@pchaganti
Copy link

Support for failover was reverted recently - 55e099b. Maybe that is why this is failing?

@sdunne
Copy link

sdunne commented Dec 19, 2014

I'm getting the same thing as of today and ver. 0.4.4

@swoodford
Copy link

I'm also seeing an error trying to export a zone with failover records, as soon as I changed the routing policy to simple it exported just fine.

cli53 export mydomain.com
$ORIGIN mydomain.com.
Traceback (most recent call last):
  File "/usr/local/bin/cli53", line 10, in <module>
    main()
  File "/usr/local/lib/python2.7/site-packages/cli53/client.py", line 992, in main
    args.func(args, r53=connection)
  File "/usr/local/lib/python2.7/site-packages/cli53/client.py", line 610, in cmd_export
    zone.to_file(sys.stdout, relativize=not args.full)
  File "/usr/local/lib/python2.7/site-packages/dns/zone.py", line 503, in to_file
    relativize=relativize)
  File "/usr/local/lib/python2.7/site-packages/dns/node.py", line 53, in to_text
    print >> s, rds.to_text(name, **kw)
  File "/usr/local/lib/python2.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'

@bhcopeland
Copy link

I am running version 0.5.0 and still get this error:

Traceback (most recent call last):
  File "/usr/local/bin/cli53", line 10, in <module>
    main()
  File "/usr/local/lib/python2.7/dist-packages/cli53/client.py", line 1103, in main
    args.func(args, r53=connection)
  File "/usr/local/lib/python2.7/dist-packages/cli53/client.py", line 670, in cmd_export
    zone.to_file(sys.stdout, relativize=not args.full)
  File "/usr/lib/python2.7/dist-packages/dns/zone.py", line 499, in to_file
    relativize=relativize)
  File "/usr/lib/python2.7/dist-packages/dns/node.py", line 53, in to_text
    print >> s, rds.to_text(name, **kw)
  File "/usr/lib/python2.7/dist-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'

@barnybug
Copy link
Owner

barnybug commented Oct 5, 2015

Could someone provide a reproduction case - ie the exact parameters of the record that cause the failure? Thanks

@bhcopeland
Copy link

So I just had a look at the record that was causing the issue and it was a geolocation record (with health check).

I removed the geolocation record, and now cli53 exports okay... So it wasn't to do with failover, but geolocation.

@barnybug
Copy link
Owner

barnybug commented Oct 6, 2015

ah ok - covered by #98

@barnybug
Copy link
Owner

barnybug commented Oct 6, 2015

I'll close this issue

@barnybug barnybug closed this as completed Oct 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants