Contrail Upgrade from 2.21.2 to 3.1.1 failed to upgrade nodejs packages

Bug #1645641 reported by Sandeep Sridhar
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
High
asbalaji
Trunk
Fix Committed
High
asbalaji

Bug Description

We tried Contrail upgrade from 2.21.2-Build 36 to to 3.1.1.0-Build 45. This was on Mitaka/Ubuntu.

Post upgrading Contrail, here is the nodejs version:
---------------------
root@sv-1:~# dpkg -l | grep nodejs
ii nodejs 0.8.15-1contrail1 amd64 Node.js event-based server-side javascript engine
root@sv-1:~# netstat -natp | egrep "8080|8143"
root@sv-1:~#
root@sv-1:~# contrail-version | grep webui
contrail-openstack-webui 3.1.1.0-45 45
——————————————————————————————————————————————

After re-installation of webUI due to this problem ( uninstall_webui / install_webui and setup_webui ), here is the nodejs version.
--------------------------------------------------------------------------------------------
root@sv-1:~# dpkg -l | grep nodejs
ii nodejs 0.10.35-1contrail1 amd64 Node.js event-based server-side javascript engine
root@sv-1:~# netstat -natp | egrep "8080|8143"
tcp 0 0 0.0.0.0:8143 0.0.0.0:* LISTEN 16202/node
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 16202/node
root@sv-1:~# contrail-version | grep webui
contrail-openstack-webui 3.1.1.0-45 45
--------------------------------------------------------------------------------------------
Please let us know the reason behind the failure.

Tags: ui
information type: Proprietary → Public
Revision history for this message
Rahul (rahuls) wrote :

Issue seen with general upgrade failure.

Changed in juniperopenstack:
assignee: nobody → Rahul (rahuls)
Revision history for this message
Sandeep Sridhar (ssandeep) wrote :

I guess this has got to do with the dependency on contrail-web-core package.

Revision history for this message
Sandeep Sridhar (ssandeep) wrote :
Download full text (4.4 KiB)

I guess this has to do with the dependency on contrail-web-core package.

contrail-web-core_3.1.1.0-45_amd64.de should depend on nodejs (>= 0.10.35-1contrail1),
but it actually depends on nodejs (>= 0.8.15-1contrail1).

------------------------------------------------------------
(after upgrade)
root@sv-1:~# nodejs -v
v0.8.15
root@sv-1:~# dpkg -s contrail-web-core
Package: contrail-web-core
Status: install ok installed
Priority: extra
Section: contrail-web-core
Installed-Size: 83765
Maintainer: swamy <email address hidden>
Architecture: amd64
Version: 3.1.1.0-45
Replaces: contrail-webui
Depends: redis-server (>= 2:2.6.13-1), nodejs (>= 0.8.15-1contrail1) <<< this
Conflicts: contrail-webui
Conffiles:
/etc/contrail/config.global.js 486b3a720c0c15880d04800b464dff85
/etc/contrail/contrail-webui-userauth.js 96d429539030e61e9f719675a7ac8017
Description: Contrail Systems Web UI
------------------------------------------------------------

So, nodejs package is not updated during upgrade.

upgrade_2.21to3.1.0.log:
------------------------------------------------------------------------------
2016-11-28 09:25:13:051824: [root@10.0.0.201] out: The following extra packages will be installed:
2016-11-28 09:25:13:067773: [root@10.0.0.201] out: contrail-web-controller contrail-web-core opscenter
2016-11-28 09:25:13:067938: [root@10.0.0.201] out: The following NEW packages will be installed:
2016-11-28 09:25:13:071481: [root@10.0.0.201] out: opscenter
2016-11-28 09:25:13:071584: [root@10.0.0.201] out: The following packages will be upgraded:
2016-11-28 09:25:13:075102: [root@10.0.0.201] out: contrail-openstack-webui contrail-web-controller contrail-web-core
2016-11-28 09:25:13:085830: [root@10.0.0.201] out: 3 upgraded, 1 newly installed, 0 to remove and 247 not upgraded.
------------------------------------------------------------------------------

Upgrading nodejs package resolved the issue.

------------------------------------------------------------------------------
root@sv-1:~# apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
jsvc libcommons-daemon-java libjna-java librdkafka1
Use 'apt-get autoremove' to remove them.
The following packages will be upgraded:
nodejs
1 upgraded, 0 newly installed, 0 to remove and 250 not upgraded.
Need to get 0 B/3,937 kB of archives.
After this operation, 4,140 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
nodejs
Authentication warning overridden.
(Reading database ... 128369 files and directories currently installed.)
Preparing to unpack .../nodejs_0.10.35-1contrail1_amd64.deb ...
Unpacking nodejs (0.10.35-1contrail1) over (0.8.15-1contrail1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up nodejs (0.10.35-1contrail1) ...
root@sv-1:~# contrail-status
== Contrail Control ==
supervisor-control: active
contrail-control active
contrail-control-nodemgr active
contrail-dns active
contrail-named active

== Contrail Analytics ==
supervisor-analytics: active
c...

Read more...

Rahul (rahuls)
Changed in juniperopenstack:
assignee: Rahul (rahuls) → asbalaji (asbalaji)
Jeba Paulaiyan (jebap)
no longer affects: juniperopenstack/r3.2
Revision history for this message
asbalaji (asbalaji) wrote :

Fix committed as part of https://review.opencontrail.org/#/c/26917/

Related Bug: #1636206

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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