dnstreeexport errors

5 views
Skip to first unread message

Kevin Brooks

unread,
May 21, 2012, 6:48:47 PM5/21/12
to roster-discussion
There seems to be some bug with the soa origin and the domain origin.
I can't pass a "." to the -t option of dnsmkrecord soa..." The -t
option seems to map to origin for the SOA record. When you create the
zone using "dnsmkzone reverse -z private_rev -v internal --type master
--origin 1.168.192.in-addr.arpa. you need to pass in the trailing "."
to the --origin option. The end result is that you can't export the
db using dnstreeexport. It fails with and error such as:

"roster_config_manager.zone_exporter_lib.Error: SOA origin
"170.214.202.in-addr.arpa" and zone origin "170.214.202.in-addr.arpa."
do not match.

Manually updating the "record_target" using the db seems to solve that
issue but now I get the following error when I try to run
dnstreeexport (is this because I didn't import any global conf data?):

root@cns1 [~/roster/RosterUserTools-0.16/scripts]# dnstreeexport
Traceback (most recent call last):
File "/usr/bin/dnstreeexport", line 5, in <module>
pkg_resources.run_script('RosterConfigManager==0.16',
'dnstreeexport')
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461,
in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194,
in run_script
execfile(script_filename, namespace, namespace)
File "/usr/lib/python2.6/site-packages/RosterConfigManager-0.16-
py2.6.egg/EGG-INFO/scripts/dnstreeexport", line 82, in <module>
main(sys.argv[1:])
File "/usr/lib/python2.6/site-packages/RosterConfigManager-0.16-
py2.6.egg/EGG-INFO/scripts/dnstreeexport", line 72, in main
tree_exporter_instance.ExportAllBindTrees(force=options.force)
File "/usr/lib/python2.6/site-packages/RosterConfigManager-0.16-
py2.6.egg/roster_config_manager/tree_exporter.py", line 269, in
ExportAllBindTrees
dns_server_set)
File "/usr/lib/python2.6/site-packages/RosterConfigManager-0.16-
py2.6.egg/roster_config_manager/tree_exporter.py", line 410, in
MakeNamedConf
data, dns_server_set)
File "/usr/lib/python2.6/site-packages/RosterConfigManager-0.16-
py2.6.egg/roster_config_manager/tree_exporter.py", line 394, in
ListLatestNamedConfGlobalOptions
return iscpy.Deserialize(newest_config)
File "/usr/lib/python2.6/site-packages/iscpy-1.0.3-py2.6.egg/iscpy/
iscpy_core/core.py", line 240, in Deserialize
return u'%s' % MakeISC(cPickle.loads(str(serialized_string)))
cPickle.UnpicklingError: could not find MARK

Stephen Harrell

unread,
May 21, 2012, 6:56:44 PM5/21/12
to roster-d...@googlegroups.com
We autogenerate the zone stanzas in the named.conf. I think you have put in your own in the named conf options?

-stephen
Reply all
Reply to author
Forward
0 new messages