Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

import zone file and nothing happens with no ouput #47

Closed
Sebster7 opened this Issue · 12 comments

2 participants

@Sebster7

Python 2.7.2, installed via pip today on Windows.

I can create zones, delete zones, list zones and create records OK.

But if I try and import my DNS file, nothing happens in Route53, and there is no output from the CLI other than a carriage return / blank line before my prompt returns.

Originally, it complained about no origin, but I fixed that in the file. I've tried the replace, editauth, dump and wait options. None of them make any difference, unless I have replace and editauth together in which case I get a traceback with a 400 back from AWS with "A HostedZone must contain at least one NS record for the zone itself." I've already substituted my original DNS servers with some that Route53 assigned originally, so it does have the NS records. I've also tried taking out all the comments in the file, and all the sub-domain entries. I've looked through the source for a debug option, but I can't see one.

Please help! Thanks.

@barnybug
Owner

Hey, seems likely it's a windows specific issue - I've not heard of anyone running cli53 on windows before. Any chance you could try on a linux host / vm with the same zone file and see if you get different results?

@Sebster7

Trying it on Debian Python 2.5.2, I get this error:
Please install latest boto:
pip install boto
(error was: No module named json)

boto was already installed via pip when I installed cli53, but I tried again and it said 'Requirement already satisfied'.

FYI, just retried on Windows converting file to UNIX format, but no change.

@barnybug
Owner

try:
pip install json
or
pip install simplejson
If that doesn't work,
pip install -U boto

@Sebster7

Maybe I should mention that I installed pip in a virtualenv called AWS. Hope this is OK!

(AWS)hostname:~# pip install json
Downloading/unpacking json
Could not find any downloads that satisfy the requirement json
No distributions at all found for json
Storing complete log in /root/.pip/pip.log
(AWS)hostname:~# pip install -U boto
Requirement already up-to-date: boto in ./AWS/lib/python2.5/site-packages
Cleaning up...

@barnybug
Owner

Sorry "pip install simplejson"

@Sebster7

OK, done. New error:

Traceback (most recent call last):
File "/root/AWS/bin/cli53", line 191, in
r53 = boto.route53.Route53Connection()
File "/root/AWS/lib/python2.5/site-packages/boto/route53/connection.py", line 66, in init
validate_certs=validate_certs)
File "/root/AWS/lib/python2.5/site-packages/boto/connection.py", line 480, in init
"SSL server certificate validation is enabled in boto "
boto.exception.BotoClientError: BotoClientError: SSL server certificate validation is enabled in boto configuration, but Python dependencies required to support this feature are not available. Certificate validation is only supported when running under Python 2.6 or later.

I can't see anything in the BotoConfig about SSL server certificate validation, so I'm not sure how to turn this off...

@barnybug
Owner

https://github.com/boto/boto
"Efforts are made to keep boto compatible with Python 2.5.x but no guarantees are made."

So looks like boto may not run python 2.5 - you'll have to try a newer o/s.

@Sebster7

OK, I disabled SSL server certificate validation with:
https://groups.google.com/forum/?fromgroups=#!topic/boto-users/6k_KA9UeQ5E
but changing True to False.

I now get the same result as on Windows! i.e. nothing.

@barnybug
Owner

Perhaps you could produce a minimal zone file that reproduces on a new zone - hide any confidential details.

@Sebster7

Sure. I created a zone called sebster7test.com and used a previous output of "cli53 list" prefixed with the origin line and with a testhost at the bottom:

$ORIGIN sebster7test.com
@ 172800 IN NS ns-699.awsdns-23.net.
@ 172800 IN NS ns-306.awsdns-38.com.
@ 172800 IN NS ns-1553.awsdns-02.co.uk.
@ 172800 IN NS ns-1436.awsdns-51.org.
@ 900 IN SOA ns-699.awsdns-23.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
testhost 900 A 1.2.3.4

@barnybug
Owner

Add a dot after your origin:
"$ORIGIN sebster7test.com."

@barnybug barnybug closed this
@Sebster7

Oops! Many thanks! It works fine with the final period. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.