backupggcode / roster-dns-management Goto Github PK
View Code? Open in Web Editor NEWDNS Management system.
DNS Management system.
Add RFC2136 DNS updates support.
Original issue reported on code.google.com by [email protected]
on 17 Sep 2009 at 4:32
Add tests to db_access for thread safeness and testing the db locking
Original issue reported on code.google.com by [email protected]
on 22 Oct 2009 at 12:47
Unittest output:
.E
======================================================================
ERROR: testRemoveRecord (__main__.TestCliRecordLib)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./cli_record_lib_test.py", line 244, in testRemoveRecord
u'a', options, {u'assignment_ip': u'192.168.1.1'})
File "/usr/lib/python2.5/unittest.py", line 320, in failUnlessRaises
callableObj(*args, **kwargs)
File
"/localscratch/roster/roster-dns-management/roster-user-tools/roster_user_tools/
cli_record_lib.py",
line 208, in RemoveRecord
server_name=options.server, raise_errors=raise_errors)
File
"/localscratch/roster/roster-dns-management/roster-user-tools/roster_user_tools/
roster_client_lib.py",
line 84, in RunFunction
core_return = server.CoreRun(function, user_name, credstring, args, kwargs)
File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
verbose=self.__verbose
File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.5/xmlrpclib.py", line 1340, in _parse_response
return u.close()
File "/usr/lib/python2.5/xmlrpclib.py", line 787, in close
raise Fault(**self._stack[0])
Fault: <Fault 1: '<class \'roster_core.errors.CoreError\'>:Tried to find
record with ID "1" type "a" target "server" zone_name "test_zone" view
"test_view_dep" ttl "64" but could not.'>
Running RemoveRecord in cli_record_lib
Original issue reported on code.google.com by [email protected]
on 28 Oct 2009 at 4:59
Add --version flags to all of the user tools, this will help in debugging
issues
in the future.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2009 at 5:44
We shouldn't need this with our new system of server selection.
Original issue reported on code.google.com by [email protected]
on 30 Oct 2009 at 2:41
Running dnsmkacl alone with no arguments gives a mysterious warning:
# dnsmkacl
WARNING: ACL already exists.
Original issue reported on code.google.com by [email protected]
on 18 Dec 2009 at 1:47
we added some new user tool installation tools and we need to document
them and move all user tools installation stuff into a new wiki page
Original issue reported on code.google.com by [email protected]
on 2 Dec 2009 at 8:56
the rosterd stack traces for missing files are hard to read, lets make them
nicer so they say what files are missing
Original issue reported on code.google.com by [email protected]
on 15 Oct 2009 at 9:12
What steps will reproduce the problem?
1. Make a forward and reverse zones
2. Try adding a host
What is the expected output? What do you see instead?
I'm unsure why I couldn't add host 'bar' because of the error but could add
'bar2' to the same
zone.
What version of the product are you using? On what operating system?
Roster 0.10 and RHEL5.
Please provide any additional information below.
a@r:~$ dnslszones
zone_name view_name zone_type zone_origin zone_options
-----------------------------------------------------------------------
192.168.0.0/24 any master 0.168.192.in-addr.arpa.
bar any master bar.com.
foo any master foo.com.
128.0.2.0/24 any master 2.0.128.in-addr.arpa.
a@r:~$ dnsmkhost -i 128.0.2.25 -t bar -z foo
SERVER ERROR: <class 'roster_core.db_access.UnexpectedDataError'>:Invalid data
type
IPv6IPAddress: 128.0.2.25
a@r:~$ dnsmkhost -i 128.0.2.25 -t bar2 -z foo
ADDED A: bar2 zone_name: foo view_name: any ttl: 3600
assignment_ip: 128.0.2.25
ADDED PTR: 25.2.0.128.in-addr.arpa. zone_name: 128.0.2.0/24 view_name: any ttl:
3600
assignment_host: bar2.foo.com.
Original issue reported on code.google.com by [email protected]
on 18 Dec 2009 at 8:39
roster-server has an init script placeholder but no scripty goodness inside.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2009 at 5:37
Need docstrings for a few functions in db_access
Original issue reported on code.google.com by [email protected]
on 22 Oct 2009 at 3:13
Make this annotated to use the new general_ldap module.
Original issue reported on code.google.com by [email protected]
on 7 Oct 2009 at 7:16
in the server and database bootstrap certfiles should be optional and not
required to do TLS with ldap.
Also it would be nice to not require TLS and let people choose.
Original issue reported on code.google.com by [email protected]
on 2 Dec 2009 at 8:55
Some of the dnsrm* functions do not check the core return, though this is
not necessary it would be better to check.
Original issue reported on code.google.com by [email protected]
on 25 Sep 2009 at 4:56
After finishing the test in Issue 29 (r112) I found problems in db_access with
concurrency.
Original issue reported on code.google.com by [email protected]
on 21 Oct 2009 at 12:39
Please test these modules directly.
Original issue reported on code.google.com by [email protected]
on 19 Oct 2009 at 2:14
Ldap is pretty entrenched in the code and it should be extracted and an easy
interface/ldap module put in it's place.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2009 at 5:41
Running dnsmkhost raises an InvalidCredentials error.
Example output:
# dnsmkhost -i 192.168.1.101 -t machine1 -z private -v internal
Traceback (most recent call last):
File "/usr/local/bin/dnsmkhost", line 5, in <module>
pkg_resources.run_script('RosterUserTools==0.9', 'dnsmkhost')
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 489, in run_script
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1214, in run_script
File "/usr/local/bin/dnsmkhost", line 185, in <module>
File "/usr/local/bin/dnsmkhost", line 154, in main
File "build/bdist.linux-x86_64/egg/roster_user_tools/cli_record_lib.py", line 79, in MakeRecord
File "build/bdist.linux-x86_64/egg/roster_user_tools/roster_client_lib.py", line 83, in
RunFunction
roster_user_tools.roster_client_lib.InvalidCredentials: Credential file not
found.
[root@roster-demo python-ldap-2.3.5]# dnsmkhost -i 192.168.1.101 -t machine1 -z
private -
v internal
Traceback (most recent call last):
File "/usr/local/bin/dnsmkhost", line 5, in <module>
pkg_resources.run_script('RosterUserTools==0.9', 'dnsmkhost')
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 489, in run_script
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1214, in run_script
File "/usr/local/bin/dnsmkhost", line 185, in <module>
File "/usr/local/bin/dnsmkhost", line 154, in main
File "build/bdist.linux-x86_64/egg/roster_user_tools/cli_record_lib.py", line 79, in MakeRecord
File "build/bdist.linux-x86_64/egg/roster_user_tools/roster_client_lib.py", line 83, in
RunFunction
roster_user_tools.roster_client_lib.InvalidCredentials: Credential file not
found.
Original issue reported on code.google.com by [email protected]
on 16 Dec 2009 at 5:41
new options in the config file have been added, update database bootstrap to
reflect those
Original issue reported on code.google.com by [email protected]
on 11 Nov 2009 at 4:57
need a stress test that has many different users querying at once, perhaps
with a few db locks here and there, to test a "real world" situation.
Original issue reported on code.google.com by [email protected]
on 21 Oct 2009 at 2:38
Credentials should last 3600 seconds, but I just used one from yesterday.
Original issue reported on code.google.com by [email protected]
on 21 Oct 2009 at 2:08
In the config file allow them to specify the server and the placement of the
roster cookie.
Also maybe we should have a cascading config file placement, like you can
put on in /etc/roster-tools.conf or ~/.roster-tools.conf and the local one
would supersede the one in etc
Original issue reported on code.google.com by [email protected]
on 2 Oct 2009 at 1:52
See error below, this happened with command "sudo easy_install RosterUserTools"
Downloading
http://pypi.python.org/packages/source/R/RosterUserTools/RosterUserTools-
0.7.tar.gz#md5=7968f3e5cc628444410a8dc18fe87a3b
Processing RosterUserTools-0.7.tar.gz
Running RosterUserTools-0.7/setup.py -q bdist_egg --dist-dir /tmp/easy_install-
gFJkge/RosterUserTools-0.7/egg-dist-tmp-sgGzso
error: Setup script exited with error: SandboxViolation:
open('/etc/roster_user_tools.conf', 'wb') {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
---
Should move these to a /usr/share location and put it in the documentation.
Original issue reported on code.google.com by [email protected]
on 16 Nov 2009 at 9:24
I was catching core errors in roster_client_lib, but this actually turned
out to be a problem for some errors, so I removed it. When possible I would
like to re add it.
Original issue reported on code.google.com by [email protected]
on 30 Sep 2009 at 2:21
OS: Ubuntu 9.04
Even with installed package python-mysqldb 1.2.2 the RosterCore setup.py
will download python-mysql.
Instead it should recognise the installed package and not download and
install python-mysql.
Original issue reported on code.google.com by [email protected]
on 23 Sep 2009 at 11:04
For infinite credentials the string should be changed periodically.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2009 at 5:51
check for duplicate records in BatchRecordProcessing in core_helpers
Original issue reported on code.google.com by [email protected]
on 30 Nov 2009 at 1:45
Make sure that database_bootstrap won't overwrite a database that is already
there. Maybe give it a
--force flag that will enable it to.
Original issue reported on code.google.com by [email protected]
on 16 Nov 2009 at 8:39
This is mostly a style thing but we want to turn this into a class because all
of
the methods basically take the same three arguments
Original issue reported on code.google.com by [email protected]
on 16 Sep 2009 at 5:43
Either add the functionality to search using the arguments dictionary or
remove it from the command line
Original issue reported on code.google.com by [email protected]
on 19 Oct 2009 at 2:54
It seems like the zone origin could be added to the dictionary that comes
from ListRecordsByCIDRBlock so there would be no need to list zones in
MakeHostFile and pass it into Print Hosts. This would make it much easier to
use ListRecordsByCIDRBlock for other things.
Original issue reported on code.google.com by [email protected]
on 12 Oct 2009 at 2:31
Cannot find roster.conf for user tools anywhere in the tree, also should
probably call it something else as not to get it confused. Maybe
roster_tools.conf.
Original issue reported on code.google.com by [email protected]
on 12 Oct 2009 at 12:44
lets think this through and do the correct checking, perhaps more is needed.
Original issue reported on code.google.com by [email protected]
on 19 Oct 2009 at 5:51
In the user tools when a config file is not found, it fails with config file
not
found, it should not, it should check the flags and see if they are there for
the
server. if the server is found it should run regardless of the lacking config
file. Also if credfile is not found, it should default to a sane credfile
location.
Original issue reported on code.google.com by [email protected]
on 15 Oct 2009 at 9:53
After all the changes to rosterd it seems like we can unittest it easily, make
sure that the
lock file code is tested as well as all of the errors.
Original issue reported on code.google.com by [email protected]
on 21 Oct 2009 at 1:46
add default run levels to roster init script
Original issue reported on code.google.com by [email protected]
on 18 Nov 2009 at 3:09
Use threads to do at least 100 connections concurrently in a unittest, maybe
put this test in
the XML-rpc server test.
Original issue reported on code.google.com by [email protected]
on 20 Oct 2009 at 1:45
Need support for DNSSEC
Original issue reported on code.google.com by [email protected]
on 17 Sep 2009 at 1:06
Possibly make a core helper function.
Original issue reported on code.google.com by [email protected]
on 25 Sep 2009 at 4:51
I think this is a good thing to add, looks like it was started and never
finished
as there is a variable to run_function that is called that.
either create the functionality or remove the variable
Original issue reported on code.google.com by [email protected]
on 19 Oct 2009 at 2:49
make a new config file entry for the user to run rosterd as then add an
os.setuid to change it if the uid is 0
Original issue reported on code.google.com by [email protected]
on 19 Oct 2009 at 5:49
Create web interface based on mod_python for Roster
Original issue reported on code.google.com by [email protected]
on 17 Sep 2009 at 1:08
dnsrmhost is one of the first tools that was written and doesn't use the
cli_record_lib. This tool should be using the correct libraries.
Original issue reported on code.google.com by [email protected]
on 16 Sep 2009 at 5:46
this is exposed in xml_rpc_client_test
Original issue reported on code.google.com by [email protected]
on 22 Oct 2009 at 12:52
cli_record_lib and cli_common_lib contain classes that have no docstring and
also __init__ functions with no docstrings
also a class should be defined as subclassing object like this:
class myclass(object):
Original issue reported on code.google.com by [email protected]
on 19 Oct 2009 at 2:04
Add a section detailing what each of the columns is and what the '@' symbol
means if they see it in there.
Original issue reported on code.google.com by [email protected]
on 12 Oct 2009 at 1:10
Output of unittest:
E
======================================================================
ERROR: testMakeRecord (__main__.TestCliRecordLib)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./cli_record_lib_test.py", line 202, in testMakeRecord
u'ptr', options, {u'assignment_host': u'server.university.edu.'})
File
"/localscratch/roster/roster-dns-management/roster-user-tools/roster_user_tools/
cli_record_lib.py",
line 83, in MakeRecord
raise_errors=raise_errors)['core_return']
File
"/localscratch/roster/roster-dns-management/roster-user-tools/roster_user_tools/
roster_client_lib.py",
line 84, in RunFunction
core_return = server.CoreRun(function, user_name, credstring, args, kwargs)
File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request
verbose=self.__verbose
File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib/python2.5/xmlrpclib.py", line 1340, in _parse_response
return u.close()
File "/usr/lib/python2.5/xmlrpclib.py", line 787, in close
raise Fault(**self._stack[0])
Fault: <Fault 1: "<type 'exceptions.KeyError'>:None">
----------------------------------------------------------------------
Ran 1 test in 2.117s
FAILED (errors=1)
The function seems to return "None".
Runs fine when reverse range zone assignment is added.
Original issue reported on code.google.com by [email protected]
on 28 Oct 2009 at 1:13
Investigate the possibility of using cli_record_lib functions, it may be
less code reproduction.
Original issue reported on code.google.com by [email protected]
on 25 Sep 2009 at 4:55
add a --generate flag that can dump out a default config in ~/.rosterrc and
print out some
instructions on using the config file.
Original issue reported on code.google.com by [email protected]
on 15 Oct 2009 at 11:10
in dnsmkzone and dnsmkusergroup there is a help option that is called -m
--make-all Make all
required arguments.
This is confusing, please explain what this is better in the tool help. Also
this may affect other
tools.
Original issue reported on code.google.com by [email protected]
on 18 Dec 2009 at 7:28
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.