Bug 859127

Summary: cannot start openstack-nova-novncproxy (Folsom)
Product: [Fedora] Fedora Reporter: Gabriel Staicu <gabriel_staicu>
Component: openstack-novaAssignee: Nikola Dipanov <ndipanov>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 18CC: akscram, alexander.sakhnov, apevec, apevec, asalkeld, bfilippov, breu, eglynn, Jan.van.Eldik, jonathansteffan, jose.castro.leon, kklic, lmacken, markmc, matt_domsch, mlvov, p, rbryant, rkukura, sochotni
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: novnc-0.4-2.el6.noarch.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-05 07:15:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gabriel Staicu 2012-09-20 15:38:58 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
Allways

Steps to Reproduce:
1.systemctl start openstack-nova-novncproxy.service
2.systemctl status openstack-nova-novncproxy.service
3.
  
Actual results:
openstack-nova-novncproxy.service - OpenStack Nova NoVNC Proxy Server
	  Loaded: loaded (/usr/lib/systemd/system/openstack-nova-novncproxy.service; enabled)
	  Active: failed (Result: exit-code) since Thu, 20 Sep 2012 15:34:10 +0300; 1h 42min ago
	 Process: 15737 ExecStart=/usr/bin/nova-novncproxy --flagfile=/etc/nova/nova.conf --web /usr/share/novnc/ (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/openstack-nova-novncproxy.service

Sep 20 15:34:10 fedora17x64-folsom abrt[15737]: detected unhandled Python exception in '/usr/bin/nova-novncproxy'
Sep 20 15:34:10 fedora17x64-folsom nova-novncproxy[15737]: WARNING: no 'numpy' module, HyBi protocol is slower or disabled
Sep 20 15:34:10 fedora17x64-folsom nova-novncproxy[15737]: Traceback (most recent call last):
Sep 20 15:34:10 fedora17x64-folsom nova-novncproxy[15737]: File "/usr/bin/nova-novncproxy", line 33, in <module>
Sep 20 15:34:10 fedora17x64-folsom nova-novncproxy[15737]: from nova import rpc
Sep 20 15:34:10 fedora17x64-folsom nova-novncproxy[15737]: ImportError: cannot import name rpc


Expected results:
The service should start withot error.

Additional info:
[root@fedora17x64-folsom ~]# uname -r
3.5.3-1.fc17.x86_64

[root@fedora17x64-folsom ~]# yum info openstack-nova-novncproxy
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
Name        : openstack-nova-novncproxy
Arch        : noarch
Version     : 0.3
Release     : 11.fc17
Size        : 5.8 k
Repo        : installed
From repo   : updates
Summary     : Proxy server for noVNC traffic over Websockets
URL         : https://github.com/kanaka/noVNC
License     : GPLv3
Description : OpenStack Nova noVNC server that proxies VNC traffic over Websockets

Comment 1 Pádraig Brady 2012-09-20 16:41:39 UTC
Looks like for Folsom we'll need to move to the integrated proxy server within nova

Comment 2 Pádraig Brady 2012-09-27 09:27:14 UTC
To expand on this, the novnc package in F18 will probably need to remove its openstack-nova-novncproxy sub package in favor of the code within nova.

So within the nova package we could include everything in the openstack-nova-console subpackage that Provides openstack-nova-novncproxy, or have a separate subpackage that's in turn required by openstack-nova-console.

Comment 3 Pádraig Brady 2012-09-27 09:40:35 UTC
info for setup/testing 

https://fedoraproject.org/wiki/Getting_started_with_OpenStack_on_Fedora_17#VNC_access

Comment 4 Nikola Dipanov 2012-10-19 16:12:17 UTC
After looking into this further - the issue seems to be that current python-websockify and novnc packages we use, use upstream versions which are not compatible with nova folsom code (websockify 0.1.0 and novnc 0.3.0 while we need 0.2 and 0.4 respectively).

Simplest solution is to bump up the versions of source these packages download for distros that ship with folsom.

Comment 5 Yaniv Kaul 2012-10-21 15:27:55 UTC
(In reply to comment #3)
> info for setup/testing 
> 
> https://fedoraproject.org/wiki/
> Getting_started_with_OpenStack_on_Fedora_17#VNC_access

This does not work - we don't event have the file /etc/init.d/openstack-nova-consoleauth in the system.
Trying to install the previous version also results in an error:
Dependencies Resolved

===================================================================================================================================================================================================
 Package                                                    Arch                                    Version                                         Repository                                Size
===================================================================================================================================================================================================
Installing:
 openstack-nova-novncproxy                                  noarch                                  0.3-11.fc17                                     updates                                  7.7 k

Transaction Summary
===================================================================================================================================================================================================
Install  1 Package

Total size: 7.7 k
Installed size: 5.8 k
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Check
Running Transaction Test


Transaction Check Error:
  file /usr/share/man/man1/nova-novncproxy.1.gz from install of openstack-nova-novncproxy-0.3-11.fc17.noarch conflicts with file from package openstack-nova-common-2012.2-1.fc18.noarch

Comment 6 Fedora Update System 2012-10-24 12:50:21 UTC
novnc-0.4-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/novnc-0.4-2.fc18

Comment 7 Fedora Update System 2012-10-24 12:51:45 UTC
python-websockify-0.2.0-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-websockify-0.2.0-1.fc18

Comment 8 Fedora Update System 2012-10-24 16:18:19 UTC
Package novnc-0.4-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing novnc-0.4-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16807/novnc-0.4-2.fc18
then log in and leave karma (feedback).

Comment 9 Gabriel Staicu 2012-10-26 09:19:39 UTC
I used this package novnc-0.4-2.el6.noarch.rpm from this location http://repos.fedorapeople.org/repos/openstack/openstack-folsom/epel-6/ on centos6.2 and it works great. The problem can be considered closed.

Thanks

Comment 10 Alan Pevec 2012-10-26 09:32:49 UTC
Verified based on comment 9

Comment 11 Fedora Update System 2012-10-31 14:07:48 UTC
python-websockify-0.2.0-2.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/python-websockify-0.2.0-2.fc18

Comment 12 Fedora Update System 2012-10-31 18:09:41 UTC
Package novnc-0.4-2.fc18, python-websockify-0.2.0-2.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing novnc-0.4-2.fc18 python-websockify-0.2.0-2.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-16807/python-websockify-0.2.0-2.fc18,novnc-0.4-2.fc18
then log in and leave karma (feedback).

Comment 13 Nir Magnezi 2012-11-08 13:53:12 UTC
Verified Based on commenct 9.
Platform: RHEL 6.3 with EPEL and Fedora 17.

Steps to verify:
1. yum install openstack-nova-novncproxy (this will install novnc by dependency)
2. service openstack-nova-consoleauth start
3. service openstack-nova-novncproxy start
4. VNC Console now works.

RPMs:
novnc-0.4-2.el6.noarch
openstack-nova-novncproxy-0.4-2.el6.noarch

Comment 14 Fedora Update System 2012-12-05 07:15:24 UTC
novnc-0.4-2.fc18, python-websockify-0.2.0-2.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.