Giter Site home page Giter Site logo

roster-dns-management's People

Watchers

 avatar

roster-dns-management's Issues

Somewhere ttl is getting defaulted to 64

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

Random "Invalid data type IPv6IPAddress" Error

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

LDAP cert files should be optional

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

Dnsmkhost does not run properly.

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

Make all of the user tools grab a common config file

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

roster user tools install does not play nice with easy_install

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

Catch core errors in roster_client_lib

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

python-mysqldb not recognised by Core setup

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

No need to list zones in MakeHostFile in dnsuphost

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

Missing roster.conf for user tools

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

Better errors for missing server flags/config files in all user tools

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

Create unittest for rosterd

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

classes/init missing docstrings

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

Make better error with no reverse range zone assignment on GetPTRTarget

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

Make all required arguments

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.