summaryrefslogtreecommitdiffstats
path: root/nova/vnc
Commit message (Collapse)AuthorAgeFilesLines
* Remove trivial cases of unused variables (1)Stanislaw Pitucha2013-06-131-3/+2
| | | | | | | | | | | Kill some of the variables marked as unused by flakes8. This should allow to enable F841 check in the future. Only trivial cases with no function calls and obviously pure functions (like datetime.now(), or len()) are cleaned up here. Part 1, split to reduce conflicts. Change-Id: I82854349574ec4bcb9336aba626eefdaed81a8c8
* Update OpenStack LLC to FoundationKurt Taylor2013-02-262-2/+2
| | | | | | Update all references of "LLC" to "Foundation". Change-Id: I009e86784ef4dcf38882d64b0eff484576e04efe
* Use oslo-config-2013.1b4Mark McLoughlin2013-02-192-2/+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
* Remove obsolete VCS version info completelyDaniel P. Berrange2012-12-191-1/+1
| | | | | | | | | | | | | | | | | | The VCS version string in nova/version.py has been hardcoded to 'LOCALBRANCH:LOCALVERSION' since change 0bbb0e8cb1daa351af91cf97b2bcababfc0c7f9f The only places which use this info are some logging calls, and since 'nova-manager version' command. The latter would more usefully output the distro specific package string. Delete the VCS related methods in version.py and replace their usage with a new method version_string_with_package() which appends the distro-specific package tag Change-Id: I972b79c329198cb5376d537c6b672830094cd759 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Fix typos in vncserver_listen config param help descriptionDaniel P. Berrange2012-12-181-1/+1
| | | | | | | | Fix missing space between words, and capitalize "IP" fully in vncserver_listen config param Change-Id: Ica525910a883e8ff99793e950316d640e1750f98 Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
* Remove nova.config.CONFMark McLoughlin2012-11-202-4/+2
| | | | | | | | | | | | | | | 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.flagsMark McLoughlin2012-11-172-2/+0
| | | | | | | | Now that options have all moved from nova.flags to nova.config, we can safely remove the nova.flags imports and replace them with nova.config imports. Change-Id: Ic077a72dd6419bbf1e1babe71acfa43c4e8b55c8
* Switch from FLAGS to CONF in misc modulesMark McLoughlin2012-11-042-6/+8
| | | | | | | | | | | 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: Ib110ba8d1837780e90b0d3fe13f8e6b68ed15f65
* Switch to common logging.Andrew Bogott2012-07-021-1/+1
| | | | | | I only just moved logging from nova to common, so behavior should remain the same. Change-Id: I1d7304ca200f9d024bb7244d25be2f9a670318fb
* Unused imports cleanup (folsom-2)Zhongyue Luo2012-06-031-1/+0
| | | | | | Fixes bug #1008023 Change-Id: Ifb8ecbb7430fdabd7b5d81ab23df66942abd9cb7
* Update pep8 dependency to v1.1Brian Waldon2012-05-241-5/+5
| | | | | | | | The latest release of pep8 adds stricter rules for extraneous whitespace within lines. This patch also addresses these new violations acoss the codebase. Change-Id: Ib7e50281870473df1704ed50868c5c2e26bdb02e
* Add version to consoleauth rpc API.Russell Bryant2012-05-171-5/+3
| | | | | | Part of blueprint versioned-rpc-apis. Change-Id: I9682bdbd06d744141b94385992b37cd2e55b8f5e
* Fix OpenStack CapitalizationJoe Gordon2012-03-152-2/+2
| | | | | | | Openstack => OpenStack for nova/*py Change-Id: Ibcfae4776422a515a109e59510fc84f8b63c00b9
* Standardize logging delaration and useJason Kölker2012-02-141-1/+1
| | | | | | * Make modules use getLogger(__name__) and log to the result Change-Id: Ib6d69b4be140ec89affc86ed11e65e422d551df1
* Remove the last of the gflags shim layerMark McLoughlin2012-02-102-2/+2
| | | | | | | Make FLAGS a ConfigOpts instance and fix up all the places where we expected FlagValues behaviour. Change-Id: I8f96f42e0d8d30ba6b362d29861e717cf0fa9e89
* Move cfg to nova.openstack.commonMark McLoughlin2012-02-032-2/+2
| | | | | | | | | | | | | | | Move it here so that it can be kept in sync with openstack-common using the new update.py script for code in openstack-common's incubation area. See here for more details: http://wiki.openstack.org/CommonLibrary#Incubation Note: this commit just moves the existing code in Nova with no other changes. A subsequent commit will sync it with latest openstack-common so that it is easier see the new changes. Change-Id: If88d678b1b9bad3d37117de7f7159d7fea8ab4c8
* Refactor away the flags.DEFINE_* helpersMark McLoughlin2012-01-282-22/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | The next obvious step in porting to cfg is to define all options using cfg schemas directly rather than using the flags.DEFINE_* helpers. This is a large change, but it is almost entirely pure refactoring and does not result in any functional changes. The only change to note is that the default values for glance_host, glance_api_servers and default_publisher_id options are now using opt value interpolation i.e. -glance_host=_get_my_ip() +glance_host='$my_ip' -glance_api_servers=['%s:%d' % (FLAGS.glance_host, FLAGS.glance_port)] +glance_api_servers=['$glance_host:$glance_port'] -default_publisher_id=FLAGS.host +default_publisher_id='$host' Also note that the lower_bound check on the {report,periodic}_interval options are no more, but this has been true since cfg was first added. Change-Id: Ia58c8f0aaf61628bb55b1b8485118a2a9852ed17
* Fix missing imports and bad call caught by pyflakesVishvananda Ishaya2012-01-181-4/+2
| | | | Change-Id: Ib2735fff18d76152baa7f9c61af7ddf4594c722b
* Allow config of vncserver_proxyclient_address.Anthony Young2012-01-181-2/+6
| | | | | | | | | * Improves deployment flexibility by allowing deployers to choose which address proxies like nova-xvpvncserver should use to to connect to instance proxies. For xenserver, this will generally be the management ip of dom0. For libvirt, this will be the management ip of the host. * Fixes bug 918451 * Renames vncserver_host to vncserver_listen for slightly better usage clarity * Updates docs Change-Id: I85c9850c57ffac3dfecaec4510eb808a6a2af79c
* Implements blueprint vnc-console-cleanupAnthony Young2012-01-175-371/+189
| | | | | | | | | | | | | | | * Creates a unified way to access vnc consoles for xenserver and libvirt * Now supports both java and websocket clients * Removes nova-vncproxy - a replacement version of this (nova-novncproxy) can be found as described in vncconsole.rst * Adds nova-xvpvncproxy, which supports a java vnc client * Adds api extension to access java and novnc access_urls * Fixes proxy server to close/shutdown sockets more cleanly * Address style feedback * Use new-style extension format * Fix setup.py * utils.gen_uuid must be wrapped like str(utils.gen_uuid()) or it can't be serialized Change-Id: I5e42e2f160e8e3476269bd64b0e8aa77e66c918c
* Remove a whole bunch of unused importsVishvananda Ishaya2012-01-131-1/+0
| | | | Change-Id: I6759e5b6250c48cc0deb4b198b44c948c64c47d1
* Bug #896997: nova-vncproxy's flash socket policy port is not configurableEwan Mellor2011-11-291-2/+6
| | | | | | | | Add flags called vncproxy_flash_socket_policy_port and vncproxy_flash_socket_policy_host, to allow the admin to configure the Flash socket policy listener. Change-Id: If42839ccd86f1c8723221049d7c76b6f5ad0aa2d
* Add nova-all to run all servicesVishvananda Ishaya2011-09-282-4/+97
| | | | | | | * Cleans up service for objectstore and vncproxy * Fixes virt.fake to be runnable via a flag Change-Id: I18e05a4d727bbbd3481063623dc3b6ad52e233d4
* Remove instances of the "diaper pattern"Matthew Hooker2011-08-031-2/+2
| | | | | | | | Anywhere "except:" occurs, I tried to replace it with an explicit except on known error types. If none were known, Except was used. In the process I've been able to unearth a few evasive bugs and clean up some adjacent code.
* Add vnc_keymap flag and enable setting keymap for vnc console.Masanori Itoh2011-05-171-0/+2
|
* fix localization for multiple replacement stringsVishvananda Ishaya2011-03-291-3/+5
|
* add lineAnthony Young2011-03-291-0/+1
|
* incorporate feedback from termieAnthony Young2011-03-293-6/+4
|
* move functions aroundAnthony Young2011-03-291-13/+13
|
* move flags per termie's feedbackAnthony Young2011-03-292-1/+37
|
* fix flag namesAnthony Young2011-03-291-1/+1
|
* use manager pattern for auth token proxyAnthony Young2011-03-292-43/+63
|
* add hook for osapiAnthony Young2011-03-241-2/+2
|
* make everything work with trunk againAnthony Young2011-03-241-9/+11
|
* incorporate feedback from termieAnthony Young2011-03-242-18/+19
|
* clean some pep8 issuesAnthony Young2011-03-231-2/+1
|
* general cleanup, use whitelist for webserver securityAnthony Young2011-03-232-15/+47
|
* more progressAnthony Young2011-03-232-14/+32
|
* use the nova Server objectAnthony Young2011-03-231-1/+1
|
* separating out components of vnc consoleAnthony Young2011-03-233-0/+194