70 Commits

Author SHA1 Message Date
Adam Gandelman
89c652d762 setup.py: Fix doc building
Commit 5702f80a0 updated local_BuildDoc's parameters without
also updating references to the original parameters.  This fixes
the issue and gets './setup.py build_sphinx' working again.

Change-Id: I3483c906c13347a718e1794786830f06af700ebd
2012-03-07 11:07:45 -08:00
Yuriy Taraday
01a938f7fe HACKING fixes, all but sqlalchemy.
Looks like this fixes all HACKING problems that were around.
Thanks to Dina Belova and Alexander Kovalev for this work.

Change-Id: I8157f0d4890184c1216aab63ef7180ee8b7a184d
2012-03-07 12:51:39 +04:00
Monty Taylor
b54179438e Move translations to babel locations.
If we structure things like this, we can get things
actually, you know, installed.

Locales ast and oc aren't supported by babel. We'll re-import them
from Launchpad once we get babel updated.

If you want translations installed, run:

  python setup.py compile_catalog

Before you run either setup.py sdist or setup.py install

More work is needed to actually properly use the installed translations, but
we're closer.

Change-Id: I4a4bedd982c89063aa09688c9cbcf97054bcb34b
2012-02-08 19:30:39 -08:00
Monty Taylor
4a4c274c83 Get rid of distutils.extra.
We moved to DistUtilsExtra because it promised a more automatic workflow
from setup.py. It doesn't actually deliver though, and it also vomits
warnings during setup.py usage, and also breaks pip integration.

So this is going back to babel. Mostly folks shouldn't need to know
anything about this. We'll need to update the translations import
jobs in Jenkins, and we might need to add a corresponding translations
upload job that runs post-merge.

Translations installation doesn't fully work - but it actually wasn't fully
working before. Getting this part of the project done now though is a
pre-requisite for using tox for multi-python testing (tox starts by
creating an sdist tarball and then installing it into the venv, which
is just 100% broken with DistUtilsExtra)

Change-Id: I126e1bcfab0656eab6ca10de67d3d2aaa8b844f3
2012-02-08 19:30:39 -08:00
Thierry Carrez
71410724cd Remove ajaxterm from Nova
Removes copy of ajaxterm code, nova-ajax-console-proxy,
and support for get_ajax_console from Nova proper.

Implements blueprint remove-ajaxterm
Fixes bug 917963

Change-Id: I2c0ff427c53c0f63a18b10475d6b4cbe9a085d83
2012-02-07 21:14:31 +01:00
Vishvananda Ishaya
0c5273c85e Create nova cert worker for x509 support
* Adds new worker for cert management
 * Makes decrypt use an rpc to the worker
 * Moves CA filesystem creation out of cloud.setup
 * Moves test for X509 into crypto
 * Adds test for encrypting and decrypting using cert
 * Cleans up extra code in cloudpipe
 * Fixes bug 918563
 * Prepares for a future patch that will fix bug 903345

Change-Id: I4693c50c8f432706f97395af39e736f49d60e719
2012-01-24 15:10:34 -08:00
Anthony Young
8d010cacb5 Implements blueprint vnc-console-cleanup
* 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
2012-01-17 14:18:31 -08:00
Mark McLoughlin
d72109e711 Add missing scripts to setup.py (lp#917676)
If distutils-extra is installed, all scripts are automatically included
in the tarball. We should explicitly include them in setup.py to avoid
confusion.

As an example, the 2011.3 tarballs appear to have been generated with
distutils-extra but the 2011.3.1/2012.1 tarballs are now being
generated in a venv. So, these newer tarballs are missing scripts which
were included in 2011.3.

Change-Id: I2a85418b84b93e041f6c7d31833b09acdcb29daa
2012-01-17 15:07:58 +00:00
Vishvananda Ishaya
20b4d89512 Remove a whole bunch of unused imports
Change-Id: I6759e5b6250c48cc0deb4b198b44c948c64c47d1
2012-01-13 13:55:38 -08:00
Anthony Young
60ff2e3b72 Implements blueprint separate-nova-volumeapi
* Moves openstack/v2 directory to compute and fixes tests accordingly
 * Moves some code from api/openstack/compute to shared location, for use by volume api
 * Implements basic volume functionality for types, volumes, and snapshots
 * Changes service name from osapi to osapi_compute (and adds osapi_volume)
 * Renames nova-api-os to nova-api-os-compute, adds nove-api-os-volume
 * Separate extension mechanism for compute and volume
 ** Removes flag osapi_extension and replaces with osapi_compute_extension and osapi_volume_extension
 * Updates the paste config
 * Fixes setup.py to include nova-os-api-compute and nova-os-api-volume
 * Fix bug in volume version code that occurred as result of trunk merge
 * Update integrated/test_volumes.py to use new endpoint

Change-Id: I4c2e57c3cafd4e1a9e2ff3ce201c8cf28326afcd
2012-01-13 09:06:55 -08:00
Monty Taylor
10372e7e9a Remove install_requires processing.
Loading install_requires with the contents of pip-requires
isn't getting us any real beneift and is causing issues.

a) It can conflict with installing nova into an environment
   where deps have been installed from packages (devstack)
b) It breaks the ability to use -e git urls in pip-requires
   which we want to start using for python-novaclient and
   python-keystoneclient
c) It causes spurious network traffic when we're trying to
   test things.

At the same time, since we are not expecting anyone to
install nova from setup.py for production, the normal benefit
of the feature is not needed.

Change-Id: I402f975c652dc1c2b54b0c362b8abbb6886f8844
2012-01-04 12:41:49 -08:00
Joe Gordon
51e7bcf5f4 'except:' to 'except Exception:' as per HACKING
Change-Id: I6e372152946dc7b51a4d84d6f4b893774e7d1a1d
2011-12-27 12:07:06 -08:00
Thierry Carrez
3c87de7c12 A more secure root-wrapper alternative
Alternative to using a sudoers file to limit which commands can be run as
root in Nova. This one makes use of command filters defined in Nova code
itself, which can be customized to deeply inspect command arguments before
allowing a command to be executed.

This change puts the infrastructure in place, together with command filters
that replicate the level of filtering provided by a sudoers file (no deep
argument inspection yet). An example of an advanced filter (RegExpFilter) is
also provided. This new root wrapper is not active by default (root_helper
still defaults to "sudo"). Implements blueprint nova-rootwrap.

Change-Id: I7ad723b55e9446758876f21b4fbb09374a910425
2011-12-07 15:10:04 +01:00
Jenkins
2b4ece610e Merge "Remove remnants of babel i18n infrastructure" 2011-12-06 20:47:08 +00:00
Mark McLoughlin
3de787b58c Remove remnants of babel i18n infrastructure
We use distutils-extra now instead of babel.

Change-Id: I10625cc4ef2ac8eefd46ee09e36f8cfaef85061f
2011-12-06 11:31:02 +00:00
Ben McGraw
89e9231b98 Adding an install_requires to the setup call. Now you can pip install nova on a naked machine.
Change-Id: Ia6debb6422be2769efbc6628e760f23dbf5099dc
2011-11-28 23:31:46 +00:00
Ben McGraw
deb31cb558 Removing obsolete bzr-related clauses in setup.py
Change-Id: I31786a20c85ad65f340627320f6f5bf3c4e08d79
2011-11-28 23:30:20 +00:00
Vishvananda Ishaya
e6073532e5 Separate metadata api into its own service
part 1 of blueprint separate-nova-metadata

 * adds api/metadata/ and moves code from ec2
 * moves metadata into separate binary
 * changes metadata forward to use metadata host and port
 * moves the metadata accept rule to the metadata api
 * adds nova-api-* to setup.py

Change-Id: I7f5d8e6cafc55b5c383cd88991f29c6059fb8d82
2011-11-15 13:27:58 -08:00
Matthew Hooker
651ff37524 These fixes are the result of trolling the pylint violations here
https://jenkins.openstack.org/job/nova-pylint-errors/violations/
2011-08-10 14:53:53 +00:00
Soren Hansen
5ad921d7ae Pass py_modules=[] to setup to avoid installing run_tests.py as a top-level module. 2011-08-10 10:09:50 +01:00
Matthew Hooker
1fc7164eca remove obsolete script from setup.py 2011-08-08 15:37:23 -04:00
Brian Waldon
07646e8584 removing compute monitor 2011-08-02 10:09:58 -04:00
jaypipes@gmail.com
c95aaaaefe Make the import of distutils.extra non-mandatory in setup.py. Just print a warning that i18n commands are not available... 2011-04-26 14:17:09 -07:00
Brian Waldon
7168812fdf adding gettext to setup.py 2011-04-22 13:30:13 -04:00
Soren Hansen
7285694cb8 Add a find_data_files method to setup.py. Use it to get tools/ installed under /usr/(local/)/share/nova 2011-04-05 14:53:56 +02:00
Anthony Young
9513458c3e add nova-vncproxy to setup.py 2011-03-29 15:34:25 -07:00
Thierry Carrez
912e762c9b Also remove nova-combined from setup.py 2011-02-22 17:37:12 +01:00
jaypipes@gmail.com
8b30a903a4 PEP8 errors and remove check in authors file for nova-core, since nova-core owns the translation export branch 2011-02-21 13:10:45 -05:00
jaypipes@gmail.com
6facb35c26 Merge trunk and re-run build_i18n 2011-02-21 10:04:32 -05:00
jaypipes@gmail.com
322b145dcd Adds Distutils.Extra support, removes Babel support, which is half-baked at best. 2011-02-15 11:04:47 -05:00
Thierry Carrez
a6ec10460b Adding missing scripts and files to setup.py / MANIFEST.in 2011-02-15 15:02:50 +01:00
jaypipes@gmail.com
3e412a5f34 Merge Distutils.Extra changes for automating translation message catalog compilation 2011-02-14 11:04:45 -05:00
Monty Taylor
dd7008e4ed Fixed a pep8 spacing issue. 2011-01-27 23:53:46 -08:00
Monty Taylor
9a3d84b29e Adds conditional around sphinx inclusion. 2011-01-25 11:41:49 -08:00
Soren Hansen
50ec058cc7 Refactor run_tests.sh to allow us to run an extra command after the tests.
Run pep8 after unit tests in run_tests.sh.

Fix setup.py to be PEP-8 compliant.
2011-01-19 10:50:54 +01:00
Andy Smith
d91229f7a3 revert live_migration branch 2011-01-18 11:01:16 -08:00
masumotok
41a9ad538c Get reviewed and fixed based on comments.
Merged latest version.
2011-01-14 03:02:17 +09:00
Monty Taylor
00808c08c6 Added babel/gettext build support. 2011-01-10 11:26:38 -08:00
Soren Hansen
a29bba7e9f s/canonical_version/canonical_version_string/g 2011-01-08 00:02:24 +01:00
Soren Hansen
8b3925e4d4 Less code generation. 2011-01-07 15:17:03 +01:00
Todd Willey
13b1374897 Track version info, and make available for logging. 2011-01-06 15:08:26 -05:00
Todd Willey
c7305af780 Apply logging changes as a giant patch to work around the cloudpipe delete + add issue in the original patch. 2011-01-04 00:23:35 -05:00
masumotok
bf7bc8725f merge recent revision(version of 2010/12/28)
Change: 
   1. Use greenthread instead of defer at nova.virt.libvirt_conn.live_migration.
   2. Move nova.scheduler.manager.live_migration to nova.scheduler.driver
   3. Move nova.scheduler.manager.has_enough_resource to nova.scheduler.driver
   4. Any check routine in nova-manage.instance.live_migration is moved to
      nova.scheduler.driver.schedule_live_migration.
2010-12-31 04:03:37 +09:00
Monty Taylor
c273c2b934 Added reference in setup.py so that python setup.py test works now. 2010-12-23 08:57:04 -08:00
masumotok
2925ca3ac3 rev439ベースにライブマイグレーションの機能をマージ
このバージョンはEBSなし、CPUフラグのチェックなし
2010-12-07 19:25:43 +09:00
Soren Hansen
a7fe9d8cbc Add include_package_data=True to setup.py.
This makes sure the various templates get installed into the python path when running "python setup.py install".
2010-11-29 14:02:03 +01:00
Soren Hansen
d3be61f254 Fix typo "nova.util" -> "nova.utils" 2010-11-24 15:14:55 +01:00
Soren Hansen
33dd63eaa0 Merge with trunk. 2010-11-22 22:27:15 +01:00
Anne Gentle
acf8800d73 Adds images (only links one in), start for a nova-manage man file, and also documents all nova-manage commands. Can we merge it in even though the man page build isn't working? 2010-11-19 22:04:37 +00:00
Soren Hansen
609c50578f Overwrite build_sphinx, making it run once for each of the html and man builders. 2010-11-18 11:11:30 +01:00