Advertisement
Guest User

Untitled

a guest
May 22nd, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.24 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2012-05-22 10:07:51.223698)
  2. Working directory: /opt/noc
  3. <type 'exceptions.AttributeError'>
  4. 'NoneType' object has no attribute 'prefix'
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/ip/apps/ipam/views.py (Line: 653)
  8. Function: view_change_prefix
  9. 646 # Process dual-stack linking
  10. 647 ds_prefix = form.cleaned_data["dual_stack_prefix"]
  11. 648 self.process_dual_stacking(prefix, ds_prefix)
  12. 649 return self.response_redirect("ip:ipam:vrf_index", vrf.id, afi,
  13. 650 prefix.prefix)
  14. 651 else:
  15. 652 if afi == "4":
  16. 653 ==> ds_prefix = prefix.ipv6_transition.prefix
  17. 654 else:
  18. 655 ds_prefix = prefix.ipv4_transition.prefix
  19. 656 initial={
  20. 657 "asn": prefix.asn.id,
  21. 658 "state": prefix.state.id,
  22. 659 "vc": prefix.vc.id if prefix.vc else None,
  23. Variables:
  24. afi = u'4'
  25. can_bind_vc = True
  26. get_form_class = <function get_form_class at 0x808f9d488>
  27. request = <WSGIRequest
  28. GET:<QueryDict: {}>,
  29. POST:<QueryDict: {}>,
  30. COOKIES:{'csrftoken': '15fc69f1ce3ad129e1695ed1affac5e2',
  31. 'sessionid': 'ea43713788bea92af05c2f2957188983'},
  32. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  33. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  34. 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
  35. 'HTTP_CONNECTION': 'close',
  36. 'HTTP_COOKIE': 'csrftoken=15fc69f1ce3ad129e1695ed1affac5e2; sessionid=ea43713788bea92af05c2f2957188983',
  37. 'HTTP_DNT': '1',
  38. 'HTTP_HOST': '127.0.0.1:8000',
  39. 'HTTP_REFERER': 'http://noc/ip/ipam/30/4/10.0.2.0/24/',
  40. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0',
  41. 'PATH_INFO': u'/ip/ipam/30/4/10.0.2.0/24/change/',
  42. 'QUERY_STRING': '',
  43. 'REMOTE_ADDR': '127.0.0.1',
  44. 'REQUEST_METHOD': 'GET',
  45. 'SCRIPT_NAME': u'',
  46. 'SERVER_NAME': '127.0.0.1',
  47. 'SERVER_PORT': '8000',
  48. 'SERVER_PROTOCOL': 'HTTP/1.0',
  49. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8040ec5d0>,
  50. 'wsgi.input': <_io.BytesIO object at 0x809248170>,
  51. 'wsgi.multiprocess': True,
  52. 'wsgi.multithread': False,
  53. 'wsgi.run_once': False,
  54. 'wsgi.url_scheme': 'http',
  55. 'wsgi.version': (1, 0)}>
  56. prefix = <Prefix: dlink(4): 10.0.2.0/24>
  57. form_class = <class 'noc.ip.apps.ipam.views.EditPrefixForm'>
  58. vrf_id = u'30'
  59. self = <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>
  60. vrf = <VRF: dlink>
  61. ------------------------------------------------------------------------
  62. File: /opt/noc/lib/app/site.py (Line: 225)
  63. Function: inner
  64. 218 for k, v in request.POST.lists())
  65. 219 elif request.method == "GET":
  66. 220 a = dict((k, v[0] if len(v) == 1 else v)
  67. 221 for k, v in request.GET.lists())
  68. 222 logging.debug("API %s %s %s" % (request.method,
  69. 223 request.path, a))
  70. 224 # Call handler
  71. 225 ==> r = v(request, *args, **kwargs)
  72. 226 # Dump SQL statements
  73. 227 if self.log_sql_statements:
  74. 228 from django.db import connections
  75. 229 tsc = 0
  76. 230 sc = defaultdict(int)
  77. 231 for conn in connections.all():
  78. Variables:
  79. args = ()
  80. view_map = {'PUT': <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>, 'POST': <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>, 'GET': <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>, 'DELETE': <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>}
  81. Form = <class 'django.forms.forms.Form'>
  82. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  83. self = <noc.lib.app.site.Site object at 0x806366250>
  84. v = <bound method IPAMAppplication.view_change_prefix of <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>>
  85. request = <WSGIRequest
  86. GET:<QueryDict: {}>,
  87. POST:<QueryDict: {}>,
  88. COOKIES:{'csrftoken': '15fc69f1ce3ad129e1695ed1affac5e2',
  89. 'sessionid': 'ea43713788bea92af05c2f2957188983'},
  90. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  91. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  92. 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
  93. 'HTTP_CONNECTION': 'close',
  94. 'HTTP_COOKIE': 'csrftoken=15fc69f1ce3ad129e1695ed1affac5e2; sessionid=ea43713788bea92af05c2f2957188983',
  95. 'HTTP_DNT': '1',
  96. 'HTTP_HOST': '127.0.0.1:8000',
  97. 'HTTP_REFERER': 'http://noc/ip/ipam/30/4/10.0.2.0/24/',
  98. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0',
  99. 'PATH_INFO': u'/ip/ipam/30/4/10.0.2.0/24/change/',
  100. 'QUERY_STRING': '',
  101. 'REMOTE_ADDR': '127.0.0.1',
  102. 'REQUEST_METHOD': 'GET',
  103. 'SCRIPT_NAME': u'',
  104. 'SERVER_NAME': '127.0.0.1',
  105. 'SERVER_PORT': '8000',
  106. 'SERVER_PROTOCOL': 'HTTP/1.0',
  107. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8040ec5d0>,
  108. 'wsgi.input': <_io.BytesIO object at 0x809248170>,
  109. 'wsgi.multiprocess': True,
  110. 'wsgi.multithread': False,
  111. 'wsgi.run_once': False,
  112. 'wsgi.url_scheme': 'http',
  113. 'wsgi.version': (1, 0)}>
  114. to_log_api_call = False
  115. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  116. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  117. kwargs = {'vrf_id': u'30', 'prefix': u'10.0.2.0/24', 'afi': u'4'}
  118. app = <noc.ip.apps.ipam.views.IPAMAppplication object at 0x808e58b10>
  119. ------------------------------------------------------------------------
  120. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement