summaryrefslogtreecommitdiffstats
path: root/bin/nova-novncproxy
Commit message (Collapse)AuthorAgeFilesLines
* Delete unused bin directoryJoe Gordon2013-06-031-22/+0
| | | | | | | | | | | | Delete last bits of bin/. With the move to entrypoints these aren't needed anymore. Update CONF.bindir to default to os.path.join(sys.prefix, 'local', 'bin') Part of blueprint entrypoints-plugins Change-Id: I95250d3779433e7b85aaa889a873b16c86a7d2be
* Move console scripts to entrypoints.Monty Taylor2013-04-041-91/+14
| | | | | | | | | | | | As part of the move of plugins to entrypoints, take advantage of the entrypoints based console scripts, which will make our command line scripts available for unittesting. Part of blueprint entrypoints-plugins Co-authored-by: Michael Still <mikal@stillhq.com> Change-Id: I5f17348b7b3cc896c92263dd518abb128757d81f
* Remove gettext.install() from nova/__init__.pyMark McLoughlin2013-04-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The gettext.install() function installs a builtin _() function which translates a string in the translation domain supplied to the install() function. If gettext.install() is called multiple times, it's the last call to the function which wins and the last supplied translation domain which is used e.g. >>> import os >>> os.environ['LANG'] = 'ja.UTF-8' >>> import gettext >>> gettext.install('keystone', unicode=1, localedir='/opt/stack/keystone/keystone/locale') >>> print _('Invalid syslog facility') 無効な syslog ファシリティ >>> gettext.install('nova', unicode=1, localedir='/opt/stack/nova/nova/locale') >>> print _('Invalid syslog facility') Invalid syslog facility Usually this function is called early on in a toplevel script and we assume that no other code will call it and override the installed _(). However, in Nova, we have taken a shortcut to avoid having to call it explicitly from each script and instead call it from nova/__init__.py. This shortcut would be perfectly fine if we were absolutely sure that nova modules would never be imported from another program. It's probably quite incorrect for a program to use nova code (indeed, if we wanted to support this, Nova code shouldn't use the default _() function) but nevertheless there are some corner cases where it happens. For example, the keystoneclient auth_token middleware tries to import cfg from nova.openstack.common and this in turn causes gettext.install('nova') in other projects like glance or quantum. To avoid any doubt here, let's just rip out the shortcut and always call gettext.install() from the top-level script. Change-Id: If4125d6bcbde63df95de129ac5c83b4a6d6f130a
* Check CONF values *after* command line args are parsedDavanum Srinivas2013-03-071-3/+3
| | | | | | | | | CONF.ssl_only will contain the default value till parse_args is called. Fix for LP# 1123540 Change-Id: Ib80d39b883c8ce2d6b813ca2b76051dd95ffb2b6
* Update OpenStack LLC to FoundationKurt Taylor2013-02-261-1/+1
| | | | | | Update all references of "LLC" to "Foundation". Change-Id: I009e86784ef4dcf38882d64b0eff484576e04efe
* Use oslo-config-2013.1b4Mark McLoughlin2013-02-191-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The cfg API is now available via the oslo-config library, so switch to it and remove the copied-and-pasted version. Add the 2013.1b4 tarball to tools/pip-requires - this will be changed to 'oslo-config>=2013.1' when oslo-config is published to pypi. This will happen in time for grizzly final. Add dependency_links to setup.py so that oslo-config can be installed from the tarball URL specified in pip-requires. Remove the 'deps = pep8==1.3.3' from tox.ini as it means all the other deps get installed with easy_install which can't install oslo-config from the URL. Make tools/hacking.py include oslo in IMPORT_EXCEPTIONS like it already does for paste. It turns out imp.find_module() doesn't correct handle namespace packages. Retain dummy cfg.py file until keystoneclient middleware has been updated (I18c450174277c8e2d15ed93879da6cd92074c27a). Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
* Change ''' to """ in bin/nova-{novncproxy,spicehtml5proxy}Daniel P. Berrange2013-01-291-2/+2
| | | | | | | | | Standard practice is for doc comment strings to be enclosed in """ rather than '''. bin/nova-{novncproxy,spicehtml5proxy} were exceptions to this. Change-Id: I689063af2a51b26c971336b6fdbe60d5695b3ebc Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix bad imports that cause nova-novncproxy to failDavanum Srinivas2013-01-251-2/+2
| | | | | | | | | Looks like it was introduced with Iddba07ff13e10dc41a6930749044bb8c0572d279 Fixes LP# 1104907 Change-Id: Ie0c01af62a7fd20a6021b3c6fe89af88585e2fb2
* Fix hacking N302 import only modulesJoe Gordon2013-01-241-2/+3
| | | | | | | | * Includes some general tools/hacking cleanup * Fix several N302 cases * Disable N302 until all cases are fixed Change-Id: Iddba07ff13e10dc41a6930749044bb8c0572d279
* Sync latest cfg from oslo-incubatorMark McLoughlin2013-01-211-0/+1
| | | | | | | | | | The main change is: c5984ba Move logging config options into the log module Re-generate nova.conf.sample to reflect the options move. Change-Id: I3913ea54465658d93dc56e014dfe5d911b0541d6
* Pull NovaWebSocketProxy class out of nova-novncproxy binaryDaniel P. Berrange2013-01-161-81/+15
| | | | | | | | | | | | | To allow sharing of proxy code between nova-novncproxy and nova-spicehtml5proxy, pull the NovaWebSocketProxy class out of nova-novncproxy into a new nova/console/websocketproxy.py file Adds previously missing websockify dep to pip-requires. Blueprint: libvirt-spice Change-Id: If1334256680e7075598f00ce153cf6f021cc720f Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Clarify & fix docs for nova-novncproxyDaniel P. Berrange2013-01-031-2/+2
| | | | | | | Clarify docs for nova-novncproxy to indicate that it only serves noVNC web content. Also remove duplicated link from manpage Change-Id: Ia1f4aff21591132a5c41810a371d248ea0001e1f
* i18n raise Exception messagesChuck Short2012-12-101-2/+2
| | | | | | | | Provide i18n to some exceptions that were not provided before. Change-Id: Ia320ba5f12e82686c8ee7973a77f152eb4b02bd4 Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Remove nova.config.CONFMark McLoughlin2012-11-201-1/+1
| | | | | | | | | | | | | | | Modules import nova.config for two reasons right now - firstly, to reference nova.config.CONF and, secondly, if they use one of the options defined in nova.config. Often modules import nova.openstack.common.cfg and nova.config which is a bit pointless since they could just use cfg.CONF if they just want to nova.config in order to reference CONF. Let's just use cfg.CONF everywhere and we can explicitly state where we actually require options defined in nova.config. Change-Id: Ie4184a74e3e78c99658becb18dce1c2087e450bb
* Remove nova.flags imports from bin/*Chris Behrens2012-11-151-1/+0
| | | | | | | | | | nova.flags is no longer needed except to load nova config options shared across multiple daemons. This removes nova.flags from the bin programs and makes sure that nova.flags is imported in nova.config for now. Change-Id: If066ac0070387bee4b41e6a78ad972f7a0955c75
* Switch from FLAGS to CONF in binMark McLoughlin2012-11-041-16/+17
| | | | | | | | | | | Use the global CONF variable instead of FLAGS. This is purely a cleanup since FLAGS is already just another reference to CONF. We leave the nova.flags imports until a later cleanup commit since removing them may cause unpredictable problems due to config options not being registered. Change-Id: Id0c59b2dc8002ec89ccbc5e5d7986fb68d3a693d
* Move parse_args to nova.configMark McLoughlin2012-11-041-1/+2
| | | | | | | The flags module will eventually be removed and this is a first step towards that. Change-Id: I729b08900e53e2ae6db10633dcff3be59720fa6f
* Use consoleauth rpcapi in nova-novncproxy.Russell Bryant2012-10-171-3/+3
| | | | | | | | | | The nova-novncproxy service was using rpc.call directly when it should have been going through the rpcapi client proxy class. This patch fixes that. Fix bug 1067858. Change-Id: I626fb01ff61ff507520d528122358ef687d297b7
* Add missing argument to novncproxy websockify callThierry Carrez2012-09-061-0/+1
| | | | | | | | Current websockify constructor in nova-novncproxy requires target_path to be explicitely set. This commit adds the missing parameter. Fixes bug 1031998. Change-Id: I05e346b5df5bc1501b55ff606fc4cefdda889d60
* OpenStack capitalization added to HACKING.rstJoe Gordon2012-08-171-2/+2
| | | | | | Along with capitalization fixes to comments in code Change-Id: I72ddc582001f80d954ca5a121903c689f40d08d1
* Fix rpc import path in nova-novncproxyAnthony Young2012-07-061-1/+1
| | | | | | * Fixes bug 1021836 Change-Id: Ia50224d653e172311ec9ef86ea2809ad1dafff3d
* Fix missing nova.log change to nova.openstack.common.logJohannes Erdfelt2012-07-031-1/+1
| | | | | | | This appears to have slipped through the cracks in the recent move from nova.log to nova.openstack.common.log Change-Id: I4935c6e1ba0681a31c081b580f1afecc676c5697
* Fix import order of openstack.commonJoe Gordon2012-06-221-1/+1
| | | | Change-Id: Id80026ad9eb78c6d9a6bcae33e26ac8a4fdd6680
* Propose nova-novncproxy back into nove core.Anthony Young2012-06-191-0/+157
* Use https://github.com/kanaka/websockify instead of wsproxy (which ships with noVNC) * Fixes bug 1001098 * Looks for noVNC html files in /usr/share/novnc by default * Fix comments, and call utils.default_cfgfile() * use "except Exception" Change-Id: I73dfe26fde699bb79aa1145bb1ab33f3a148bf21