Commit Graph

11717 Commits

Author SHA1 Message Date
Vishvananda Ishaya d06da5d652 Relax dependency on boto 1.9b and nova-adminclient
* change boto=1.9b to boto
 * fix the tests
 * remove nova-adminclient dependency
 * remove the useless smoketests for nova-adminclient

Change-Id: Ie191453941e64774496a912cb64d1417f3f1bea3
2011-12-08 11:19:47 -08:00
OpenStack Jenkins 5a84fd66db Merge "Imported Translations from Launchpad" 2011-12-08 17:09:08 +00:00
Jenkins 50a195bcca Merge "Updated the test runner module with a sys.path insert so that tests run in and outside a virtual environment." 2011-12-08 15:34:52 +00:00
Jenkins b855336b13 Merge "Add new cfg module" 2011-12-08 15:26:51 +00:00
Jenkins 4bdee9eb96 Merge "A more secure root-wrapper alternative" 2011-12-08 14:51:29 +00:00
OpenStack Jenkins 771286efcc Imported Translations from Launchpad
Change-Id: I9ef8ca3bbc93e436512de82ab6f5aeaf47bbb560
2011-12-08 01:13:59 +00:00
Brad Hall 35782f24fa Fix for bug 901459
Fix cut and paste error: change project_id to p['id'] as project_id
doesn't exist in this scope.

Also added project creation to the unit test which would have caught
this.

Change-Id: I1bd53265e3d622a59969eb286c3fbde471374c73
2011-12-07 23:41:55 +00:00
Duncan McGreggor ac0ac446aa Updated the test runner module with a sys.path insert so that tests run in and
outside a virtual environment.

This addresses bug 901387

Change-Id: I12a2b1eeaf0ce46796af6e42fd6537bccd6a4d8f
2011-12-07 15:26:14 -08:00
Jenkins 9985d1f951 Merge "Set instance['host'] to the original host value on revert resize." 2011-12-07 22:20:27 +00:00
Dan Prince 2706ec20f6 Set instance['host'] to the original host value on revert resize.
Fixes bug #901445

Change-Id: I8c112d92d6a54715073ef1119372d782c3be37c9
2011-12-07 16:58:45 -05:00
Johannes Erdfelt fb27cc6979 Fix race condition in XenAPI when using <object>.get_all
Fixes bug 887708

There are a handful of places where <object>.get_all is followed by a
<object>.get_record calls that are potentially racey. This patch fixes
all of these cases to use common code that is tolerant of HANDLE_INVALID
errors that would be indicative of a race between get_all and delete

Change-Id: Ib94adb6d21b6b55e7b26fc1da52ed46d9dba8275
2011-12-07 21:27:24 +00:00
Brian Waldon c3b7cce810 Clean up snapshot metadata
- Removed image_state from compute api snapshot (only needed by ec2/s3)
- Only set backup_type when image_type is 'backup'
- Add testing to verify snapshots/backups get the correct metadata

Change-Id: Ib5461f9aa790d7ed5629c591bbe1510443dbc2aa
2011-12-07 14:54:34 -05:00
Jenkins 8a8dd22aea Merge "Refactors periodic tasks to use a decorator." 2011-12-07 18:29:57 +00:00
Jenkins 42b571181b Merge "Update associate_floating_ip to use instance objs" 2011-12-07 18:22:00 +00:00
Jenkins 0b28e574af Merge "First steps towards consolidating testing infrastructure" 2011-12-07 18:13:48 +00:00
Rick Harris 2b42968a53 Refactors periodic tasks to use a decorator.
Additional work:

    1. Added support for tasks being scheduled at differing rates via the
       `ticks_between_runs` argument.

    2. Fixed `reclaim_queued_deletes` so that it doesn't run if
       `FLAGS.reclaim_instance_interval` is 0.

Change-Id: I18c01baf07bd06301a6fe26a7b29dc2452a4fa96
2011-12-07 18:07:08 +00:00
Mark McLoughlin fabebb356e Add new cfg module
As discussed on the mailing list and described here:

  http://wiki.openstack.org/CommonConfigModule

The module implements an API for defining configuration options and
reading values for those options that a user may have set in a config
file or on the command line.

The module will be part of openstack-common and glance will consume
it from there once openstack-common makes a release with an API
compatibility commitment.

Change-Id: Ib604c3de75d9066cd913c2de3007024b1f5ec9f8
2011-12-07 15:26:43 +00:00
Mark McLoughlin 0c78c2ed61 Remove extra_context support in Flags
This doesn't seem to be used at all any more.

Change-Id: I3a4a1eb271f547ad1723676dc47f1d8c8bad88ea
2011-12-07 15:25:47 +00: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 45e31ab90d Merge "Change cloudServersFault to computeFault" 2011-12-07 04:11:26 +00:00
Jenkins 3e3e378f83 Merge "vm_state:=error on driver exceptions during resize" 2011-12-07 02:39:42 +00:00
Joe Gordon d39d06e276 Remove bzr related code in tests/test_misc
Change-Id: If15b337d2150706162958e8fdf89e3bdae16a699
2011-12-06 15:48:08 -08:00
Alex Meade dca73f7c8c Change cloudServersFault to computeFault
Fixes bug 862649.

Change-Id: Ic7b24fcd706d18563d4addd0373a863697747d75
2011-12-06 17:12:14 -05:00
Jenkins b71afdb54a Merge "Remove some remnants of ChangeLog and vcsversion.py generation" 2011-12-06 21:35:40 +00:00
Jenkins 154cd05c84 Merge "Use system M2Crypto package on Oneiric, bug 892271" 2011-12-06 21:27:47 +00:00
Jenkins 2b4ece610e Merge "Remove remnants of babel i18n infrastructure" 2011-12-06 20:47:08 +00:00
Alex Meade 3d9f0ed000 Update associate_floating_ip to use instance objs
Related to blueprint internal-uuids.
Also cleans up some unused variables

Change-Id: I8adeceac8f4ab2894c48c1e1c7e1c7eab52e42d0
2011-12-06 15:33:33 -05:00
Mark Washenberger 8eb5af2d40 vm_state:=error on driver exceptions during resize
Set vm_state to error if a driver raises an exception (of any type)
during resize_instance and finish_resize.

I want to highlight that there is a slight behavioral change here.
Before, on a MigrationError the exception was not reraised in the
resize_instance function. However, based on my understanding it is not
a big deal to make this change. The worst case is log duplication in
a fairly rare error state.

Change-Id: Ifd1ea66cf3f2e59ee06714f666e357a99936b4e3
2011-12-06 15:29:28 -05:00
Adrian Smith dbbd6cf107 Use system M2Crypto package on Oneiric, bug 892271
Ubuntu Oneiric has a problem with the pip installed version of m2crypto.
This fix installs python-m2crypto via apt-get on Oneiric.

Change-Id: I8290a74b614eb0d0b8d620dbad19d2cc6843de8b
2011-12-06 19:45:21 +00:00
Dan Prince 882b1e475d Update compute manager so that finish_revert_resize runs on the source
compute host. Fixes bug #900849.

Change-Id: I838604a5c623a3970ce36cdb3d12279812eb8401
2011-12-06 13:49:51 -05:00
Duncan McGreggor f845891184 First steps towards consolidating testing infrastructure
This commit begins to implement blueprint consolidate-testing-infrastructure by
adding a 'testing' subpackage and moving some modules into it.

Change-Id: I04bf860bc386bd2016e7dbc5a6f6ef7379a855bb
2011-12-06 09:37:57 -08:00
Jenkins 82d80e5299 Merge "Pass '-r' option to 'collie cluster status'." 2011-12-06 16:31:34 +00:00
Jenkins c63685fcf4 Merge "Remove autogenerated pot file" 2011-12-06 16:21:33 +00:00
Jenkins 31eac6d9c0 Merge "Add NAT/gateway support to QuantumManager" 2011-12-06 12:25:59 +00:00
Mark McLoughlin 0bbb0e8cb1 Remove some remnants of ChangeLog and vcsversion.py generation
Since moving to bzr, we no longer generate ChangeLog and vcsversion.py
and since commit deb31cb55 we no longer even have the bzr specific code
for generating them. So, let's just remove any references to them.

Change-Id: I4f96b9be48e289f9129ae8e3ad4cbc1b22db07d2
2011-12-06 12:08:43 +00:00
Jenkins 48755d74c6 Merge changes Ia6debb64,I31786a20
* changes:
  Adding an install_requires to the setup call. Now you can pip install nova on a naked machine.
  Removing obsolete bzr-related clauses in setup.py
2011-12-06 12:07:34 +00:00
François Charlier fb0f0388de Pass '-r' option to 'collie cluster status'.
The  'collie  cluster  status'  default output  is  more  verbose  since
sheepdog 0.24.  The '-r' (raw)  option has  been added for  less verbose
output but won't be used to ensure compatibility with pre-0.24 sheepdog.

Change-Id: Ie31bdded928772250515e439016fc5c5beb00d83
2011-12-06 13:00:47 +01:00
Jenkins 0b0d573fd3 Merge "remove duplicate netaddr in nova/utils" 2011-12-06 11:57:48 +00:00
Jenkins d92d083253 Merge "Make admin_password keyword in compute manager run_instance method match what we send in the compute API. Fixes bug #900591." 2011-12-06 11:49:58 +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
François Charlier 35df6a4714 Fixes a typo preventing attaching RBD volumes.
A typo in spelling 'rbd' as 'rdb' prevents attaching RBD volumes
to instances.

Fixes bug 900359.

Change-Id: I872369a21b5935c37c4299f3f748d2d133a78bb3
2011-12-06 10:48:34 +01:00
Julien Danjou e6dc250296 Remove autogenerated pot file
Change-Id: I25c33e2a91458d2eaa41232eb54b2c1e4e273854
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-06 09:56:56 +01:00
Dan Prince f0e6bea08a Make admin_password keyword in compute manager run_instance method match
what we send in the compute API. Fixes bug #900591.

Change-Id: I857b7787189d454e8ed17a43654d6bf944da003e
2011-12-05 22:46:47 -05:00
Joe Gordon d9f9f42b84 remove duplicate netaddr in nova/utils
Change-Id: Ib9b7ddc619ce62010b5661579fe32cc55b68f7e6
2011-12-05 17:10:08 -08:00
Joe Gordon 803f6f6af7 cleanup: remove .bzrignore
Change-Id: I87ba2a419322c4746c61be114997b5bc86a3bab2
2011-12-05 15:40:41 -08:00
Jenkins 2f0f27dfd6 Merge "Document nova-tarball Jenkins job." 2011-12-05 21:32:36 +00:00
Jenkins 63593ff80b Merge "Add availabity_zone to the refresh list" 2011-12-05 21:24:44 +00:00
Jenkins e3ecd38deb Merge "Implement resize down for XenAPI" 2011-12-05 21:16:40 +00:00
Jenkins b3c9a019dc Merge "Bug #896997: nova-vncproxy's flash socket policy port is not configurable" 2011-12-05 19:42:22 +00:00
Jenkins d02c7d4717 Merge "EC2 rescue/unrescue is broken, bug 899225" 2011-12-05 19:02:34 +00:00