nova-spicehtml5proxy keeps restarting need to install dependency websockify

Bug #1638801 reported by prameswar on 2016-11-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Undecided
prameswar
Newton
Undecided
prameswar

Bug Description

nova-spicehtml5proxy container keeps on restarting. i build ubuntu binary with master .

4c4d952f237a kolla/ubuntu-binary-nova-conductor:3.0.0 "kolla_start" 18 hours ago Up 10 minutes nova_conductor
8eaac2156a0e kolla/ubuntu-binary-nova-spicehtml5proxy:3.0.0 "kolla_start" 18 hours ago Restarting (1) 26 seconds ago nova_spicehtml5proxy
504db273160d kolla/ubuntu-binary-nova-scheduler:3.0.0 "kolla_start" 18 hours ago Up 10 minutes nova_scheduler
d6f74e94d915 kolla/ubuntu-binary-nova-consoleauth:3.0.0 "kolla_start" 18 hours ago Up 10 minutes nova_consoleauth

sudo docker logs nova_spicehtml5proxy

INFO:__main__:Kolla config strategy set to: COPY_ONCE
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Copying service configuration files
INFO:__main__:Removing existing destination: /etc/nova/nova.conf
INFO:__main__:Copying /var/lib/kolla/config_files/nova.conf to /etc/nova/nova.conf
INFO:__main__:Setting permissions for /etc/nova/nova.conf
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/log/kolla/nova
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-api.log
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-manage.log
Running command: 'nova-spicehtml5proxy'
Traceback (most recent call last):
  File "/usr/bin/nova-spicehtml5proxy", line 6, in <module>
    from nova.cmd.spicehtml5proxy import main
  File "/usr/lib/python2.7/dist-packages/nova/cmd/spicehtml5proxy.py", line 23, in <module>
    from nova.cmd import baseproxy
  File "/usr/lib/python2.7/dist-packages/nova/cmd/baseproxy.py", line 28, in <module>
    from nova.console import websocketproxy
  File "/usr/lib/python2.7/dist-packages/nova/console/websocketproxy.py", line 27, in <module>
    import websockify
ImportError: No module named websockify
INFO:__main__:Kolla config strategy set to: COPY_ONCE
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:The config strategy prevents copying new configs
Running command: 'nova-spicehtml5proxy'
Traceback (most recent call last):
  File "/usr/bin/nova-spicehtml5proxy", line 6, in <module>
    from nova.cmd.spicehtml5proxy import main
  File "/usr/lib/python2.7/dist-packages/nova/cmd/spicehtml5proxy.py", line 23, in <module>
    from nova.cmd import baseproxy
  File "/usr/lib/python2.7/dist-packages/nova/cmd/baseproxy.py", line 28, in <module>
    from nova.console import websocketproxy
  File "/usr/lib/python2.7/dist-packages/nova/console/websocketproxy.py", line 27, in <module>
    import websockify

prameswar (prameswar) wrote :

centos based system installing python-websockify as dependency of nova package. so it is already installed so no need to install it in centos , but it give warning :

INFO:__main__:Setting permissions for /etc/nova/nova.conf
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/log/kolla/nova
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-scheduler.log
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-conductor.log
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-api.log
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-spicehtml5proxy.log
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-consoleauth.log
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-manage.log
INFO:__main__:Setting permission for /var/log/kolla/nova/nova-compute.log
Running command: 'nova-spicehtml5proxy'
WARNING: no 'numpy' module, HyBi protocol will be slower

so it can be installed using :
sudo yum install numpy

for ubuntu based :
we have to install package websockify:
sudo apt-get install websockify

it install numpy as dependency of websockify. but in centos we have to install externally.

Changed in kolla:
assignee: nobody → prameswar (prameswar)
Changed in kolla:
status: New → In Progress
Changed in kolla:
milestone: none → ocata-1

Reviewed: https://review.openstack.org/392896
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=246acc40f34dde7f88cf31cab0123b8a1880515d
Submitter: Jenkins
Branch: master

commit 246acc40f34dde7f88cf31cab0123b8a1880515d
Author: prameswar <email address hidden>
Date: Wed Nov 2 22:56:54 2016 +0530

    nova-spicehtml5proxy dependency package added

    centos based container already have python-websockify installed.
    but it gives warning to install numpy package.
    ubuntu based container need to install websockify package that will
    install both module websockify and its dependency numpy module. so no
    need to install numpy package externally in ubnutu but in centos
    it need to install.

    Closes-bug: #1638801

    Change-Id: Ic858543733ec86f55ab506edcd3631a6df1a086d

Changed in kolla:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/394151
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=d2ba21bc51ed814492ed96a68aa82b999810e78e
Submitter: Jenkins
Branch: stable/newton

commit d2ba21bc51ed814492ed96a68aa82b999810e78e
Author: prameswar <email address hidden>
Date: Wed Nov 2 22:56:54 2016 +0530

    nova-spicehtml5proxy dependency package added

    centos based container already have python-websockify installed.
    but it gives warning to install numpy package.
    ubuntu based container need to install websockify package that will
    install both module websockify and its dependency numpy module. so no
    need to install numpy package externally in ubnutu but in centos
    it need to install.

    Closes-bug: #1638801

    Change-Id: Ic858543733ec86f55ab506edcd3631a6df1a086d
    (cherry picked from commit 246acc40f34dde7f88cf31cab0123b8a1880515d)

This issue was fixed in the openstack/kolla 4.0.0.0b1 development milestone.

This issue was fixed in the openstack/kolla 3.0.2 release.

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

Other bug subscribers