Permalink
Browse files

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

0 comments on commit 5307a48

Please sign in to comment.