R1.06 to R1.20 upgrade:edit IP block for network throws error in horizon

Bug #1383927 reported by Shweta Naik
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Won't Fix
Critical
Raj Reddy
R1.30
Won't Fix
Critical
Rahul
Trunk
Fix Released
Critical
Raj Reddy

Bug Description

Upgraded from 1.06(build 82) to 1.20 (build 63) havana.

After creating the virtual network, I get error on clicking the "edit IP Bock” and I don’t see “add subnet” option in “more” in horizon.

Where as, same thing works in R1.10 (build 34) to R1.20 (build 63) havana upgrade

root@a5s312:/var/log/apache2# tail -f error.log
[Tue Oct 21 21:34:01 2014] [error] Internal Server Error: /horizon/project/networking/30c270d3-fec4-4d31-ae8e-e761be8fadd0/edit_ip_block/
[Tue Oct 21 21:34:01 2014] [error] Traceback (most recent call last):
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 115, in get_response
[Tue Oct 21 21:34:01 2014] [error] response = callback(request, *callback_args, **callback_kwargs)
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
[Tue Oct 21 21:34:01 2014] [error] return view_func(request, *args, **kwargs)
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
[Tue Oct 21 21:34:01 2014] [error] return view_func(request, *args, **kwargs)
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
[Tue Oct 21 21:34:01 2014] [error] return view_func(request, *args, **kwargs)
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68, in view
[Tue Oct 21 21:34:01 2014] [error] return self.dispatch(request, *args, **kwargs)
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 86, in dispatch
[Tue Oct 21 21:34:01 2014] [error] return handler(request, *args, **kwargs)
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/dashboards/projects/networking/views.py", line 468, in get
[Tue Oct 21 21:34:01 2014] [error] handled = self.construct_tables()
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 146, in construct_tables
[Tue Oct 21 21:34:01 2014] [error] handled = self.handle_table(table)
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 118, in handle_table
[Tue Oct 21 21:34:01 2014] [error] data = self._get_data_dict()
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 182, in _get_data_dict
[Tue Oct 21 21:34:01 2014] [error] self._data = {self.table_class._meta.name: self.get_data()}
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/dashboards/projects/networking/views.py", line 434, in get_data
[Tue Oct 21 21:34:01 2014] [error] _('Unable to retrieve IP Blocks.'))
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/dashboards/projects/networking/views.py", line 429, in get_data
[Tue Oct 21 21:34:01 2014] [error] network_id=net_id)
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/api/contrail_quantum.py", line 115, in ip_block_summary
[Tue Oct 21 21:34:01 2014] [error] return [ExtensionsContrailIPBlock(i) for i in ip_blocks]
[Tue Oct 21 21:34:01 2014] [error] File "/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_dashboard/api/contrail_quantum.py", line 101, in __init__
[Tue Oct 21 21:34:01 2014] [error] apiresource['inst_count'] = apiresource['contrail:instance_count']
[Tue Oct 21 21:34:01 2014] [error] KeyError: ‘contrail:instance_count'

Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :

contrail-openstack-dashboard is not getting upgraded. Because, we are always tagging contrail-openstack-dashboard with "2013.2-0ubuntu1” instead of BUILDTAG in all the releases.
Standard convention is, all contrail built packages needs to be version-ed with BUILDTAG

We should have used (BUILDTAG) instead of (2013.2-0ubuntu1) in https://github.com/Juniper/contrail-packaging/blob/R1.10/common/debian/contrail-openstack-dashboard/debian/havana/changelog.in

In the rules file we are correctly replacing BUILDTAG , However we didn’t specify BUILDTAG in the Changlog.in
https://github.com/Juniper/contrail-packaging/blob/R1.10/common/debian/contrail-openstack-dashboard/debian/havana/rules
override_dh_auto_build:
cat debian/changelog.in | sed 's,BUILDTAG,$(BUILDTAG),g' > debian/changelog

Revision history for this message
Ignatious Johnson Christopher (ijohnson-x) wrote :

Workaround :
===========
After upgrade, we should execute the following commands in the openstack node.

apt-get install --reinstall contrail-openstack-dashboard
service supervisor-openstack restart
service apache2 restart

Changed in juniperopenstack:
assignee: Ignatious Johnson Christopher (ijohnson-x) → nobody
information type: Proprietary → Public
tags: added: releasenote
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/4040
Committed: http://github.org/Juniper/contrail-packaging/commit/940e123e4ad834a618442c964e05f2b900831fc5
Submitter: Zuul
Branch: master

commit 940e123e4ad834a618442c964e05f2b900831fc5
Author: Raj Reddy <email address hidden>
Date: Wed Oct 22 21:25:21 2014 -0700

we need to distinguish the openstack-dashboard that we are building vs. the stock,
by suffixing the revision with .2contrail, just as we do for other nova packages.
for the contrail-openstack-dashboard with is our plugin, the rev/ver should be
same as other contrail-packages
Closes-Bug: #1383927

Change-Id: I8a13fcfc47d9ab7f989d1ee11ea22a586a5e1186

Revision history for this message
Nagendra Prasath (npchandran) wrote :
Revision history for this message
Sunil Bakhru (sbakhru) wrote : Re: [Bug 1383927] Re: R1.06 to R1.20 upgrade:edit IP block for network throws error in horizon
Download full text (4.8 KiB)

Hitachi does not have 1.6 and won¹t be doing an upgrade.

Sunil

On 10/28/14, 12:19 PM, "Nagendra Prasath" <email address hidden> wrote:

>Need fix in the R1.30 branch as well.
>https://github.com/Juniper/contrail-packaging/blob/R1.30/common/debian/con
>trail-openstack-dashboard/debian/havana/changelog.in
>
>--
>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/1383927
>
>Title:
> R1.06 to R1.20 upgrade:edit IP block for network throws error in
> horizon
>
>Status in Juniper Openstack distribution:
> New
>Status in Juniper Openstack r1.1 series:
> New
>Status in Juniper Openstack r1.30 series:
> New
>Status in Juniper Openstack trunk series:
> New
>
>Bug description:
> Upgraded from 1.06(build 82) to 1.20 (build 63) havana.
>
> After creating the virtual network, I get error on clicking the "edit
>IP Bock² and I don¹t see ³add subnet² option in ³more² in horizon.
>
> Where as, same thing works in R1.10 (build 34) to R1.20 (build 63)
> havana upgrade
>
>
> root@a5s312:/var/log/apache2# tail -f error.log
> [Tue Oct 21 21:34:01 2014] [error] Internal Server Error:
>/horizon/project/networking/30c270d3-fec4-4d31-ae8e-e761be8fadd0/edit_ip_b
>lock/
> [Tue Oct 21 21:34:01 2014] [error] Traceback (most recent call last):
> [Tue Oct 21 21:34:01 2014] [error] File
>"/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line
>115, in get_response
> [Tue Oct 21 21:34:01 2014] [error] response = callback(request,
>*callback_args, **callback_kwargs)
> [Tue Oct 21 21:34:01 2014] [error] File
>"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
> [Tue Oct 21 21:34:01 2014] [error] return view_func(request, *args,
>**kwargs)
> [Tue Oct 21 21:34:01 2014] [error] File
>"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
> [Tue Oct 21 21:34:01 2014] [error] return view_func(request, *args,
>**kwargs)
> [Tue Oct 21 21:34:01 2014] [error] File
>"/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
> [Tue Oct 21 21:34:01 2014] [error] return view_func(request, *args,
>**kwargs)
> [Tue Oct 21 21:34:01 2014] [error] File
>"/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 68,
>in view
> [Tue Oct 21 21:34:01 2014] [error] return self.dispatch(request,
>*args, **kwargs)
> [Tue Oct 21 21:34:01 2014] [error] File
>"/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 86,
>in dispatch
> [Tue Oct 21 21:34:01 2014] [error] return handler(request, *args,
>**kwargs)
> [Tue Oct 21 21:34:01 2014] [error] File
>"/usr/lib/python2.7/dist-packages/contrail_openstack_dashboard/openstack_d
>ashboard/dashboards/projects/networking/views.py", line 468, in get
> [Tue Oct 21 21:34:01 2014] [error] handled = self.construct_tables()
> [Tue Oct 21 21:34:01 2014] [error] File
>"/usr/lib/python2.7/dist-packages/horizon/tables/views.py", line 146, in
>construct_tables
> [Tue Oct 21 21:34:01 2014] [error] handled =
>self.handle_table(table)
> [Tue Oct 21 21:34:01 2014] [error] File...

Read more...

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.