nova-novncproxy doesn't start when 'record' is specified

Bug #1559026 reported by Radoslav Gerganov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Radoslav Gerganov
Liberty
Fix Released
Undecided
Lee Yarwood
Mitaka
Fix Released
Undecided
Lee Yarwood

Bug Description

$ /usr/local/bin/nova-novncproxy --record --config-file /etc/nova/nova.conf --web /opt/stack/noVNC

2016-03-18 12:34:01.940 CRITICAL nova [-] AttributeError: 'bool' object has no attribute 'startswith'

2016-03-18 12:34:01.940 TRACE nova Traceback (most recent call last):
2016-03-18 12:34:01.940 TRACE nova File "/usr/local/bin/nova-novncproxy", line 10, in <module>
2016-03-18 12:34:01.940 TRACE nova sys.exit(main())
2016-03-18 12:34:01.940 TRACE nova File "/opt/stack/nova/nova/cmd/novncproxy.py", line 39, in main
2016-03-18 12:34:01.940 TRACE nova port=CONF.vnc.novncproxy_port)
2016-03-18 12:34:01.940 TRACE nova File "/opt/stack/nova/nova/cmd/baseproxy.py", line 73, in proxy
2016-03-18 12:34:01.940 TRACE nova RequestHandlerClass=websocketproxy.NovaProxyRequestHandler
2016-03-18 12:34:01.940 TRACE nova File "/usr/local/lib/python2.7/dist-packages/websockify/websocketproxy.py", line 265, in __init__
2016-03-18 12:34:01.940 TRACE nova websocket.WebSocketServer.__init__(self, RequestHandlerClass, *args, **kwargs)
2016-03-18 12:34:01.940 TRACE nova File "/usr/local/lib/python2.7/dist-packages/websockify/websocket.py", line 647, in __init__
2016-03-18 12:34:01.940 TRACE nova self.record = os.path.abspath(record)
2016-03-18 12:34:01.940 TRACE nova File "/usr/lib/python2.7/posixpath.py", line 367, in abspath
2016-03-18 12:34:01.940 TRACE nova if not isabs(path):
2016-03-18 12:34:01.940 TRACE nova File "/usr/lib/python2.7/posixpath.py", line 61, in isabs
2016-03-18 12:34:01.940 TRACE nova return s.startswith('/')
2016-03-18 12:34:01.940 TRACE nova AttributeError: 'bool' object has no attribute 'startswith'
2016-03-18 12:34:01.940 TRACE nova

The 'record' argument should be string, not boolean.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/294512

Changed in nova:
assignee: nobody → Radoslav Gerganov (rgerganov)
status: New → In Progress
Changed in nova:
importance: Undecided → Low
Revision history for this message
Matt Riedemann (mriedem) wrote :

What version of websockify are you using?

tags: added: console vnc
tags: added: novnc
removed: vnc
Revision history for this message
Matt Riedemann (mriedem) wrote :
Matt Riedemann (mriedem)
tags: added: mitaka-backport-potential
tags: added: liberty-backport-potential
Changed in nova:
assignee: Radoslav Gerganov (rgerganov) → Matt Riedemann (mriedem)
Matt Riedemann (mriedem)
Changed in nova:
assignee: Matt Riedemann (mriedem) → Radoslav Gerganov (rgerganov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/294512
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c5311439d6526006dd1354e09f2bfb86505d550d
Submitter: Jenkins
Branch: master

commit c5311439d6526006dd1354e09f2bfb86505d550d
Author: Radoslav Gerganov <email address hidden>
Date: Fri Mar 18 12:56:04 2016 +0200

    The 'record' option of the WebSocketProxy should be string

    If proxy service (VNC, spice, serial) is started with the 'record'
    option, an exception is thrown. This is because WebSocketProxy
    expects a file path for the record argument instead of boolean
    value. This patch fixes this by changing 'record' to be string
    option. An empty string means no recording.

    Closes-Bug: #1559026

    Change-Id: Id6cf7c65191bdaa579f7cdadea43230897436de6

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/304730

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/304733

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/mitaka)

Reviewed: https://review.openstack.org/304730
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=3c008718e15f0d2da717f04ff211e9da6d80ff2d
Submitter: Jenkins
Branch: stable/mitaka

commit 3c008718e15f0d2da717f04ff211e9da6d80ff2d
Author: Radoslav Gerganov <email address hidden>
Date: Fri Mar 18 12:56:04 2016 +0200

    The 'record' option of the WebSocketProxy should be string

    If proxy service (VNC, spice, serial) is started with the 'record'
    option, an exception is thrown. This is because WebSocketProxy
    expects a file path for the record argument instead of boolean
    value. This patch fixes this by changing 'record' to be string
    option. An empty string means no recording.

    Closes-Bug: #1559026

    Change-Id: Id6cf7c65191bdaa579f7cdadea43230897436de6
    (cherry picked from commit c5311439d6526006dd1354e09f2bfb86505d550d)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/liberty)

Reviewed: https://review.openstack.org/304733
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=79a49b3d6a4221ca3e09cb16008cc423f1902fe7
Submitter: Jenkins
Branch: stable/liberty

commit 79a49b3d6a4221ca3e09cb16008cc423f1902fe7
Author: Radoslav Gerganov <email address hidden>
Date: Fri Mar 18 12:56:04 2016 +0200

    The 'record' option of the WebSocketProxy should be string

    If proxy service (VNC, spice, serial) is started with the 'record'
    option, an exception is thrown. This is because WebSocketProxy
    expects a file path for the record argument instead of boolean
    value. This patch fixes this by changing 'record' to be string
    option. An empty string means no recording.

    Closes-Bug: #1559026

    Change-Id: Id6cf7c65191bdaa579f7cdadea43230897436de6
    (cherry picked from commit c5311439d6526006dd1354e09f2bfb86505d550d)

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/nova 14.0.0.0b1

This issue was fixed in the openstack/nova 14.0.0.0b1 development milestone.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/nova 12.0.4

This issue was fixed in the openstack/nova 12.0.4 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/nova 13.1.0

This issue was fixed in the openstack/nova 13.1.0 release.

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.