Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* [DNS] add support for wildcards

* [simple] fix bug with "MySQL has gone away"
* [REST] fix problem with get zones list for DNS_Admin users
  • Loading branch information...
commit 5307a480aa1da8b9ff71eeec3d4589c38cda7627 1 parent efba4e3
Nikita Savin nsavin authored
4 Changelog
... ... @@ -1,3 +1,7 @@
  1 +0.2.2 [Tue Apr 12 00:14:52 EET 2012]
  2 +* [DNS] add support for wildcards
  3 +* [simple] fix bug with "MySQL has gone away"
  4 +* [REST] fix problem with get zones list for DNS_Admin users
1 5 0.2.1 [Sun Mar 18 02:47:50 EET 2012]
2 6 * [doc] added documentation for PTR record management
3 7 0.2.0 [Sun Mar 18 02:15:23 EET 2012]
2  nova-dns.spec
@@ -5,7 +5,7 @@
5 5 %define mod_name nova_dns
6 6
7 7 Name: nova-dns
8   -Version: 0.2.1
  8 +Version: 0.2.2
9 9 Release: 1
10 10 Summary: REST API for DNS configuration and service to add records for fixed ips
11 11 License: GNU LGPL v2.1
2  nova_dns/__init__.py
... ... @@ -1,5 +1,5 @@
1 1
2   -__version__ = "0.2.1"
  2 +__version__ = "0.2.2"
3 3
4 4 try:
5 5 from nova import flags
2  nova_dns/dns.py
@@ -111,7 +111,7 @@ def __call__(self, req):
111 111 #with keystoneclient.tokens.authneticate - right now this is
112 112 #buggy - if token incorect, keystonectlient return amazing
113 113 #error 'maximum recursion depth exceeded in cmp'
114   - if not AUTH.can(req, args.get('zonename', None))[action_type]:
  114 + if not AUTH.can(req, args.get('zonename', ''))[action_type]:
115 115 raise Exception('unauthorized')
116 116 result={}
117 117
2  nova_dns/dnsmanager/__init__.py
@@ -108,7 +108,7 @@ def normtype(type):
108 108 @staticmethod
109 109 def normname(n):
110 110 name = str(n).lower()
111   - if name=="" or re.match(r'\A(?:[\w\d-]+\.)*(?:[\w\d-]+)\Z', name):
  111 + if name=="" or name=="*" or re.match(r'\A(?:[\w\d-]+\.)*(?:[\w\d-]+)\Z', name):
112 112 return name
113 113 else:
114 114 raise ValueError("Incorrect DNS name: " + name)
3  nova_dns/listener/simple/__init__.py
@@ -49,7 +49,8 @@
49 49 class Listener(AMQPListener):
50 50 def __init__(self):
51 51 self.pending={}
52   - self.conn=sqlalchemy.engine.create_engine(FLAGS.sql_connection)
  52 + self.conn=sqlalchemy.engine.create_engine(FLAGS.sql_connection,
  53 + pool_recycle=FLAGS.sql_idle_timeout, echo=False)
53 54 dnsmanager_class=utils.import_class(FLAGS.dns_manager);
54 55 self.dnsmanager=dnsmanager_class()
55 56 self.eventlet = eventlet.spawn(self._pollip)

0 comments on commit 5307a48

Please sign in to comment.
Something went wrong with that request. Please try again.