Segnalazione #342
octonet 0.2.21-1 impossibile accedere
Start date:
07/05/2017
Due date:
% Done:
100%
Estimated time:
Description
Environment: Request Method: GET Request URL: http://192.168.10.1:13402/ Django Version: 1.8.16 Python Version: 3.4.2 Installed Applications: ['django.contrib.sessions', 'django.contrib.messages', 'whitenoise.runserver_nostatic', 'django.contrib.staticfiles', 'octonet', 'hostqueue.apps.HostQueue', 'firewall.apps.Firewall', 'dhcp.apps.Dhcp', 'dansguardian.apps.DansGuardian', 'host.apps.Host', 'polygen.apps.Polygen', 'upgrade.apps.Upgrade', 'asterisk.apps.Asterisk', 'samba.apps.Samba', 'users.apps.Users', 'script.apps.Script', 'quota.apps.Quota', 'printers.apps.Printers', 'auth.apps.Auth'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'whitenoise.middleware.WhiteNoiseMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.locale.LocaleMiddleware', 'octonet.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Template error: In template /usr/share/octonet/octonet/templates/octonet/home.html, error at line 41 Reverse for 'host_edit' with arguments '()' and keyword arguments '{'name': ''}' not found. 1 pattern(s) tried: ['host/edit/(?P<name>[^/]+)$'] 31 : </tr> 32 : {% endfor %} 33 : </table> 34 : {% if last_seen_clients %} 35 : <h3>{% trans "Last seen clients" %}</h3> 36 : <table class="table table-condensed"> 37 : {% for client in last_seen_clients %} 38 : <tr> 39 : <td> 40 : {% with hostname=client.0 %} 41 : <a href=" {% url 'host:host_edit' name=hostname %} ">{{hostname}}</a> 42 : {% endwith %} 43 : </td> 44 : <td>{{client.1}}</td> 45 : </tr> 46 : {% endfor %} 47 : </table> 48 : {% endif %} 49 : <h3>{% trans "Filesystems" %}</h3> 50 : <div class="row"> 51 : {% for fs,val in filesystems.items %} Traceback: File "/usr/lib/python3/dist-packages/django/core/handlers/base.py" in get_response 164. response = response.render() File "/usr/lib/python3/dist-packages/django/template/response.py" in render 158. self.content = self.rendered_content File "/usr/lib/python3/dist-packages/django/template/response.py" in rendered_content 135. content = template.render(context, self._request) File "/usr/lib/python3/dist-packages/django/template/backends/django.py" in render 74. return self.template.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 210. return self._render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in _render 202. return self.nodelist.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 905. bit = self.render_node(node, context) File "/usr/lib/python3/dist-packages/django/template/debug.py" in render_node 79. return node.render(context) File "/usr/lib/python3/dist-packages/django/template/loader_tags.py" in render 135. return compiled_parent._render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in _render 202. return self.nodelist.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 905. bit = self.render_node(node, context) File "/usr/lib/python3/dist-packages/django/template/debug.py" in render_node 79. return node.render(context) File "/usr/lib/python3/dist-packages/django/template/loader_tags.py" in render 135. return compiled_parent._render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in _render 202. return self.nodelist.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 905. bit = self.render_node(node, context) File "/usr/lib/python3/dist-packages/django/template/debug.py" in render_node 79. return node.render(context) File "/usr/lib/python3/dist-packages/django/template/loader_tags.py" in render 65. result = block.nodelist.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 905. bit = self.render_node(node, context) File "/usr/lib/python3/dist-packages/django/template/debug.py" in render_node 79. return node.render(context) File "/usr/lib/python3/dist-packages/django/template/loader_tags.py" in render 65. result = block.nodelist.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 905. bit = self.render_node(node, context) File "/usr/lib/python3/dist-packages/django/template/debug.py" in render_node 79. return node.render(context) File "/usr/lib/python3/dist-packages/django/template/defaulttags.py" in render 329. return nodelist.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 905. bit = self.render_node(node, context) File "/usr/lib/python3/dist-packages/django/template/debug.py" in render_node 79. return node.render(context) File "/usr/lib/python3/dist-packages/django/template/defaulttags.py" in render 329. return nodelist.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 905. bit = self.render_node(node, context) File "/usr/lib/python3/dist-packages/django/template/debug.py" in render_node 79. return node.render(context) File "/usr/lib/python3/dist-packages/django/template/defaulttags.py" in render 217. nodelist.append(node.render(context)) File "/usr/lib/python3/dist-packages/django/template/defaulttags.py" in render 576. return self.nodelist.render(context) File "/usr/lib/python3/dist-packages/django/template/base.py" in render 905. bit = self.render_node(node, context) File "/usr/lib/python3/dist-packages/django/template/debug.py" in render_node 79. return node.render(context) File "/usr/lib/python3/dist-packages/django/template/defaulttags.py" in render 507. six.reraise(*exc_info) File "/usr/lib/python3/dist-packages/django/utils/six.py" in reraise 686. raise value File "/usr/lib/python3/dist-packages/django/template/defaulttags.py" in render 493. url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app) File "/usr/lib/python3/dist-packages/django/core/urlresolvers.py" in reverse 578. return force_text(iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))) File "/usr/lib/python3/dist-packages/django/core/urlresolvers.py" in _reverse_with_prefix 495. (lookup_view_s, args, kwargs, len(patterns), patterns)) Exception Type: NoReverseMatch at / Exception Value: Reverse for 'host_edit' with arguments '()' and keyword arguments '{'name': ''}' not found. 1 pattern(s) tried: ['host/edit/(?P<name>[^/]+)$']
Associated revisions
History
Updated by Christopher R. Gabriel over 7 years ago
- Status changed from Nuovo to In elaborazione
- Assignee changed from TRUELITE to Christopher R. Gabriel
Updated by Christopher R. Gabriel over 7 years ago
- Status changed from In elaborazione to Commenti
- Assignee changed from Christopher R. Gabriel to Michael Guggenberg
Risulta che nella configurazione del cluster ci sia un host senza nome (sul perche' ci sia non te lo so dire, andrebbe analizzata l'installazione specifica)
Ho pubblicato un pacchetto aggiornato di octonet per gestire il caso e non sollevare l'errore.
Updated by Michael Guggenberg over 7 years ago
- Assignee changed from Michael Guggenberg to Christopher R. Gabriel
risolto, grazie.
output di /etc/clusters:
sostegno 250201wsost11.adanegri.blz 250201wsost01.adanegri.blz 250201wsost05.adanegri.blz 250201wsost10.adanegri.blz 250201wsost12.adanegri.blz 250201wsost02.adanegri.blz 250201wsost06.adanegri.blz 250201wsost07.adanegri.blz 250201wsost03.adanegri.blz 250201wsost08.adanegri.blz 250201wsost09.adanegri.blz info 250201winfo16.adanegri.blz 250201winfo01.adanegri.blz 250201winfo21.adanegri.blz 250201winfo12.adanegri.blz 250201winfo05.adanegri.blz 250201winfo07.adanegri.blz 250201winfo14.adanegri.blz 250201winfo20.adanegri.blz 250201winfo06.adanegri.blz 250201winfo18.adanegri.blz 250201winfo22.adanegri.blz 250201winfo17.adanegri.blz 250201winfo13.adanegri.blz 250201winfo19.adanegri.blz 250201winfo03.adanegri.blz 250201winfo09.adanegri.blz 250201winfo04.adanegri.blz 250201winfo10.adanegri.blz 250201winfo24.adanegri.blz 250201winfo02.adanegri.blz 250201winfodocente01.adanegri.blz 250201wsost04.adanegri.blz 250201winfo08.adanegri.blz 250201winfo11.adanegri.blz 250201winfo23.adanegri.blz 250201winfo15.adanegri.blz
Updated by Michael Guggenberg over 7 years ago
- Status changed from Commenti to Risolto
- % Done changed from 0 to 100
refs #342
handle empty host names