[1.10-Build 63] On Icehouse, Horizon has internal server error, when Networking is clicked.

Bug #1390315 reported by Daisuke Nakajima
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
Undecided
Atul Moghe

Bug Description

On Icehouse, Horizon has internal server error, when Networking is clicked. Because 'Client' object has no attribute 'list_policys'.
This error is not seen on Havana.

The test environment:
Base OS: Ubuntu 1204/1404

here is /var/log/apache2/error.log
[Fri Nov 07 04:59:56.394414 2014] [:error] [pid 5086:tid 140562634581760] Internal Server Error: /horizon/project/networking/
[Fri Nov 07 04:59:56.394935 2014] [:error] [pid 5086:tid 140562634581760] Traceback (most recent call last):
[Fri Nov 07 04:59:56.395014 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
[Fri Nov 07 04:59:56.395180 2014] [:error] [pid 5086:tid 140562634581760] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Fri Nov 07 04:59:56.395290 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
[Fri Nov 07 04:59:56.395441 2014] [:error] [pid 5086:tid 140562634581760] return view_func(request, *args, **kwargs)
[Fri Nov 07 04:59:56.395543 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
[Fri Nov 07 04:59:56.395694 2014] [:error] [pid 5086:tid 140562634581760] return view_func(request, *args, **kwargs)
[Fri Nov 07 04:59:56.395772 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
[Fri Nov 07 04:59:56.396041 2014] [:error] [pid 5086:tid 140562634581760] return view_func(request, *args, **kwargs)
[Fri Nov 07 04:59:56.396120 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
[Fri Nov 07 04:59:56.396211 2014] [:error] [pid 5086:tid 140562634581760] return view_func(request, *args, **kwargs)
[Fri Nov 07 04:59:56.396283 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
[Fri Nov 07 04:59:56.396355 2014] [:error] [pid 5086:tid 140562634581760] return self.dispatch(request, *args, **kwargs)
[Fri Nov 07 04:59:56.396426 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
[Fri Nov 07 04:59:56.396498 2014] [:error] [pid 5086:tid 140562634581760] return handler(request, *args, **kwargs)
[Fri Nov 07 04:59:56.396598 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 145, in get
[Fri Nov 07 04:59:56.396672 2014] [:error] [pid 5086:tid 140562634581760] context = self.get_context_data(**kwargs)
[Fri Nov 07 04:59:56.396684 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 107, in get_context_data
[Fri Nov 07 04:59:56.396690 2014] [:error] [pid 5086:tid 140562634581760] context = super(MultiTableMixin, self).get_context_data(**kwargs)
[Fri Nov 07 04:59:56.396695 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 56, in get_context_data
[Fri Nov 07 04:59:56.396700 2014] [:error] [pid 5086:tid 140562634581760] exceptions.handle(self.request)
[Fri Nov 07 04:59:56.396704 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/tabs/views.py", line 54, in get_context_data
[Fri Nov 07 04:59:56.396709 2014] [:error] [pid 5086:tid 140562634581760] context["tab_group"].load_tab_data()
[Fri Nov 07 04:59:56.396713 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/tabs/base.py", line 122, in load_tab_data
[Fri Nov 07 04:59:56.396777 2014] [:error] [pid 5086:tid 140562634581760] exceptions.handle(self.request)
[Fri Nov 07 04:59:56.396783 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/tabs/base.py", line 119, in load_tab_data
[Fri Nov 07 04:59:56.396788 2014] [:error] [pid 5086:tid 140562634581760] tab._data = tab.get_context_data(self.request)
[Fri Nov 07 04:59:56.396792 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/tabs/base.py", line 446, in get_context_data
[Fri Nov 07 04:59:56.396797 2014] [:error] [pid 5086:tid 140562634581760] self.load_table_data()
[Fri Nov 07 04:59:56.396801 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/horizon/tabs/base.py", line 431, in load_table_data
[Fri Nov 07 04:59:56.396806 2014] [:error] [pid 5086:tid 140562634581760] table.data = data_func()
[Fri Nov 07 04:59:56.396810 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/dashboards/project/networking/tabs.py", line 73, in get_policy_data
[Fri Nov 07 04:59:56.396815 2014] [:error] [pid 5086:tid 140562634581760] _('Unable to retrieve network policies.'))
[Fri Nov 07 04:59:56.396820 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/dashboards/project/networking/tabs.py", line 69, in get_policy_data
[Fri Nov 07 04:59:56.396825 2014] [:error] [pid 5086:tid 140562634581760] policy = policy_summary_for_tenant(self.request, tenant_id)
[Fri Nov 07 04:59:56.396830 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/api/contrail_quantum.py", line 153, in policy_summary_for_tenant
[Fri Nov 07 04:59:56.396834 2014] [:error] [pid 5086:tid 140562634581760] policies = policy_summary(request, tenant_id=tenant_id, **params)
[Fri Nov 07 04:59:56.396847 2014] [:error] [pid 5086:tid 140562634581760] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/api/contrail_quantum.py", line 142, in policy_summary
[Fri Nov 07 04:59:56.396852 2014] [:error] [pid 5086:tid 140562634581760] policies = neutronclient(request).list_policys(**params).get('policys')
[Fri Nov 07 04:59:56.396857 2014] [:error] [pid 5086:tid 140562634581760] AttributeError: 'Client' object has no attribute 'list_policys'

Tags: packaging
information type: Proprietary → Public
information type: Public → Private
description: updated
description: updated
information type: Private → Public
Revision history for this message
Daisuke Nakajima (dnakajima) wrote :

This issue is seen in Project -> Other -> Networking TAB but that is not seen in Admin -> Other -> Networking TAB.

Revision history for this message
Daisuke Nakajima (dnakajima) wrote :

This issue is only seen at Ubuntu14.04.1 with Icehouse.
/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py is different with Ubuntu1204.
client.py which is downloaded from 1404 repository does not have 'list_policys' Class.

I replaced client.py which is downloaded from 1204 repository, this error did not seem.

Please confirm following two repository.
http://ubuntu-repo.opencontrail.org.s3-website-us-east-1.amazonaws.com opencontrail-stock-ubuntu1404-icehouse main
http://ubuntu-repo.opencontrail.org.s3-website-us-east-1.amazonaws.com opencontrail-r120-icehouse main

Revision history for this message
Peter C. Norton (spacey-launchpad-net) wrote :

Do you have version or git has info for the working fersion of neutron/v2_0/client.py for icehouse on 12.04? I have a new 12.04 installation and I'm seeing this problem with the following sources:

root@kvm-openstack-5:~# cat /etc/apt/sources.list.d/opencontrail.list
deb [arch=amd64] http://ubuntu-repo.opencontrail.org.s3-website-us-east-1.amazonaws.com opencontrail-stock-ubuntu1204-icehouse main
deb [arch=amd64] http://ubuntu-repo.opencontrail.org.s3-website-us-east-1.amazonaws.com opencontrail-r120-icehouse main

Revision history for this message
Peter C. Norton (spacey-launchpad-net) wrote :

Here's a quick workaround:

https://gist.github.com/pcn/9684bde1f8c9bd965596

This removes calls to what are probably depricated neutron API calls.

Revision history for this message
Atul Moghe (moghea) wrote : Re: [Bug 1390315] Re: [1.10-Build 63] On Icehouse, Horizon has internal server error, when Networking is clicked.
Download full text (7.6 KiB)

Hi Peter,
This particular build R1.10/63 was for 12.04/icehouse not for 14.04.
14.04/icehouse is targeted to release with contrail 2.0

Thanks,
Atul

On 12/5/14 6:53 AM, "Peter C. Norton" <email address hidden> wrote:

>Do you have version or git has info for the working fersion of
>neutron/v2_0/client.py for icehouse on 12.04? I have a new 12.04
>installation and I'm seeing this problem with the following sources:
>
>root@kvm-openstack-5:~# cat /etc/apt/sources.list.d/opencontrail.list
>deb [arch=amd64]
>http://ubuntu-repo.opencontrail.org.s3-website-us-east-1.amazonaws.com
>opencontrail-stock-ubuntu1204-icehouse main
>deb [arch=amd64]
>http://ubuntu-repo.opencontrail.org.s3-website-us-east-1.amazonaws.com
>opencontrail-r120-icehouse main
>
>--
>You received this bug notification because you are a member of Contrail
>Systems engineering, which is subscribed to Juniper Openstack.
>https://bugs.launchpad.net/bugs/1390315
>
>Title:
> [1.10-Build 63] On Icehouse, Horizon has internal server error, when
> Networking is clicked.
>
>Status in Juniper Openstack distribution:
> New
>
>Bug description:
> On Icehouse, Horizon has internal server error, when Networking is
>clicked. Because 'Client' object has no attribute 'list_policys'.
> This error is not seen on Havana.
>
> The test environment:
> Base OS: Ubuntu 1204/1404
>
> here is /var/log/apache2/error.log
> [Fri Nov 07 04:59:56.394414 2014] [:error] [pid 5086:tid
>140562634581760] Internal Server Error: /horizon/project/networking/
> [Fri Nov 07 04:59:56.394935 2014] [:error] [pid 5086:tid
>140562634581760] Traceback (most recent call last):
> [Fri Nov 07 04:59:56.395014 2014] [:error] [pid 5086:tid
>140562634581760] File
>"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line
>112, in get_response
> [Fri Nov 07 04:59:56.395180 2014] [:error] [pid 5086:tid
>140562634581760] response = wrapped_callback(request, *callback_args,
>**callback_kwargs)
> [Fri Nov 07 04:59:56.395290 2014] [:error] [pid 5086:tid
>140562634581760] File
>"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
> [Fri Nov 07 04:59:56.395441 2014] [:error] [pid 5086:tid
>140562634581760] return view_func(request, *args, **kwargs)
> [Fri Nov 07 04:59:56.395543 2014] [:error] [pid 5086:tid
>140562634581760] File
>"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
> [Fri Nov 07 04:59:56.395694 2014] [:error] [pid 5086:tid
>140562634581760] return view_func(request, *args, **kwargs)
> [Fri Nov 07 04:59:56.395772 2014] [:error] [pid 5086:tid
>140562634581760] File
>"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
> [Fri Nov 07 04:59:56.396041 2014] [:error] [pid 5086:tid
>140562634581760] return view_func(request, *args, **kwargs)
> [Fri Nov 07 04:59:56.396120 2014] [:error] [pid 5086:tid
>140562634581760] File
>"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 86, in dec
> [Fri Nov 07 04:59:56.396211 2014] [:error] [pid 5086:tid
>140562634581760] return view_func(request, *args, **kwargs)
> [Fri Nov 07 04:59:56.396283 2014] [:error] [pid 5086:tid
>140562634581760] File
>"/us...

Read more...

Revision history for this message
Martin Gerhard Loschwitz (martin-loschwitz) wrote :

This is still happening on 14.04 with Icehouse and Contrail R2.0.

Revision history for this message
Martin Gerhard Loschwitz (martin-loschwitz) wrote :

Installing the neutronclient package from https://github.com/Juniper/python-neutronclient/tree/contrail/icehouse makes it work.

Revision history for this message
Martin Gerhard Loschwitz (martin-loschwitz) wrote :

Well, sort of. I now see:

2014-12-16 12:32:48,333 9568 WARNING horizon.exceptions Recoverable error: 404 Not Found

The resource could not be found.

Revision history for this message
Martin Gerhard Loschwitz (martin-loschwitz) wrote :

I managed to make the thing work. The packages available from https://launchpad.net/~syseleven-platform/+archive/ubuntu/contrail-1.20 will lead to a working Horizon on Icehouse with the Contrail plugin enabled.

Rahul (rahuls)
Changed in juniperopenstack:
assignee: nobody → Atul Moghe (moghea)
tags: added: packaging
Revision history for this message
Atul Moghe (moghea) wrote :

working with contrail horizon

Changed in juniperopenstack:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.