Comment 3 for bug 1645641

Revision history for this message
Sandeep Sridhar (ssandeep) wrote :

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
contrail-alarm-gen:0 active
contrail-analytics-api active
contrail-analytics-nodemgr active
contrail-collector active
contrail-query-engine active
contrail-snmp-collector active
contrail-topology active

== Contrail Config ==
supervisor-config: active
contrail-api:0 active
contrail-config-nodemgr active
contrail-device-manager backup
contrail-discovery:0 active
contrail-schema backup
contrail-svc-monitor backup
ifmap active

== Contrail Web UI ==
supervisor-webui: active
contrail-webui active
contrail-webui-middleware active

== Contrail Database ==
contrail-database: active

== Contrail Supervisor Database ==
supervisor-database: active
contrail-database-nodemgr active
kafka active

== Contrail Support Services ==
supervisor-support-service: active
rabbitmq-server active

root@sv-1:~# service supervisor-webui restart
supervisor-webui stop/waiting
supervisor-webui start/running, process 31975
root@sv-1:~# netstat -natp | egrep "8080|8143"
tcp 0 0 0.0.0.0:8143 0.0.0.0:* LISTEN 31998/node
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 31998/node
root@sv-1:~#
------------------------------------------------------------------------------

Even running the following fab tasks instead of apt-get resolves the issue too.

fab uninstall_webui
fab install_webui
fab setup_webui

Please fix this.