Commit Graph

19595 Commits

Author SHA1 Message Date
kashivreddy a577fc5f77 add .idea folder to .gitignore pycharm creates this folder
Change-Id: Icbeabe1d3e102d9e447f46be96280e61aa364b74
2013-03-07 17:00:22 -06:00
Jenkins e23769827d Merge "Add missing action_start if deleting resized inst." 2013-03-07 19:57:19 +00:00
Jenkins 23af156a77 Merge "Read baremetal images from extra_specs namespace." 2013-03-07 18:23:11 +00:00
Jenkins 436282fad2 Merge "Update tox.ini to support RHEL 6.x." 2013-03-07 18:22:54 +00:00
Jenkins f0ed72072b Merge "Remove uses of instance['instance_type'] from xenapi driver." 2013-03-07 17:38:36 +00:00
Jenkins 0cc1cd10c3 Merge "Remove duplicate API logging." 2013-03-07 16:54:22 +00:00
Dan Prince 0b2e8d6e06 Update tox.ini to support RHEL 6.x.
In order to support running unit tests on RHEL 6.x we need to patch
eventlet with contrib/redhat-eventlet.patch. We already
have support for this in the tools/install_venv_common.py but we need
to make a couple changes to allow tox to consume this:

1) Sync in the latest intall_venv_common.py from oslo. This changes
 patch to use the -N option (ignore already applied patches) and makes
 it safe to call the patching function more than once.

2) Add a new patch_tox_venv.py script in tools.

3) Update tox.ini to call patch_tox_venv.py before it runs tests and
coverage.

Change-Id: I3e2b07c3f718e4aede5c5f231ff0cdb7721ec885
2013-03-07 11:25:25 -05:00
Jenkins ca490d48a7 Merge "Remove unnecessary setUp() and tearDown() methods" 2013-03-07 04:04:31 +00:00
Davanum Srinivas 4ab80d8132 Tiny typo
virtualizated -> virtualized

Change-Id: Ie5006f2fdd1d6963b35c63e749ffe939d5fb9bcc
2013-03-06 20:42:40 -05:00
Johannes Erdfelt bb6fbb9627 Remove unnecessary setUp() and tearDown() methods
It's unnecessary to implement setUp() and tearDown() when they only call
the parent class method of the same name.

Change-Id: I8a2c7f50e17def87ada8d4f1c1b554eb916afbd1
2013-03-06 23:58:59 +00:00
Joe Gordon 0890645060 Remove duplicate API logging.
Before each API call logged the same data three times on INFO level. We only need to log the information once.

Fix bug 975589

Change-Id: I24131cf9f1c27030ecc99e638e9f4126096a0b96
2013-03-06 14:47:27 -08:00
Jenkins 2ed9ea6504 Merge "Fix instance_system_metadata deleted columns" 2013-03-06 22:10:37 +00:00
Dan Smith 2f414f316c Remove uses of instance['instance_type'] from xenapi driver.
Note that this includes a fix to tests/db/fakes.py to make the fake
instance_type structures look like the database models.

This is one change in a series aimed at removing the use of instance-linked
instance_type objects, in favor of the decoupled type data in
system_metadata. See bug 1140119 for more details.

Change-Id: Ieb107fbaf0f3b5a42681aefc0ffdefdb8c0f98a5
2013-03-06 16:30:28 -05:00
Jenkins 4a1f477df0 Merge "Don't traceback in the API on invalid keypair." 2013-03-06 19:08:48 +00:00
Jenkins 34a64499df Merge "Fix issues with re-raising exceptions." 2013-03-06 19:04:33 +00:00
Jenkins 6fa49879a9 Merge "Updating powervm driver snapshot with update_task_state flow" 2013-03-06 17:13:56 +00:00
Jenkins 48c6d3712b Merge "Remove parameters containing passwords from Notifications." 2013-03-06 16:56:03 +00:00
Jenkins 4203ae186d Merge "Switch to oslo.config." 2013-03-06 16:28:53 +00:00
Dan Prince 81e2eef87e Switch to oslo.config.
The oslo-config package has been renamed. Switch to the new
version. (should fix SmokeStack).

Change-Id: I6a0fa803b0076bc5338c996e21bbcef54e1d75cd
2013-03-05 22:25:01 -05:00
Chris Behrens 12d362b4ca Fix instance_system_metadata deleted columns
Migration 153 adds instance_type data to sys_meta, but creates entries
with the default value of deleted.. which is NULL.  This means these
entries do not get pulled in on a join when querying an instance, as
there is a condition of deleted=0.

This converts 'deleted' NULL entries to be 0.

Fixes bug 1147839

Change-Id: I3caf92b3992b22089a2653c2e7220585d616a102
2013-03-05 18:48:18 -08:00
Jenkins 6ac76afa89 Merge "Adjusts reclaim instance interval of deferred delete tests" 2013-03-06 01:04:46 +00:00
Jenkins a04c7bb65e Merge "Rename source_(group_id/ip_prefix) to remote_(group_id/ip_prefix)" 2013-03-06 01:04:26 +00:00
Jenkins 33fb5f861b Merge "Moves Hyper-V options to the hyperv section" 2013-03-06 01:04:08 +00:00
Jenkins 63e9a7edd9 Merge "Fixes disk size issue during image boot on Hyper-V" 2013-03-06 01:03:51 +00:00
Sandy Walsh 1d5154ed0d Remove parameters containing passwords from Notifications.
compute.manager methods often takes password parameters in methods
that are wrapped with exception handlers and notifiers. What can
happen is these passwords will get bundled up and sent outside of
the system.

This patch will strip out any parameter with *_pass* in the name.

The side effect of this is that all notification will have the
error parameters in the 'args' part of the notification payload.
Previously only the positional args were in the 'args' part and
keyword args were placed in the payload directly.

This may affect consumers of the error notifications.

Change-Id: I2e7822eb5416d315ceb690f739e4dba9d52a7954
2013-03-05 16:27:29 -04:00
Jenkins 05bc166ce9 Merge "Imporove db.sqlalchemy.api._validate_unique_server_name method" 2013-03-05 18:03:22 +00:00
Dan Prince 4e118a45e7 Add missing action_start if deleting resized inst.
When trying to delete a resized instance Nova will automatically
call confirm on the resized instance to help clean things
up. With some of the recent action event changes in grizzly this
code path was broken due to a missing record_action_start
call on the confirm_resize operation.

Fixes LP Bug #1147387.

Change-Id: I23e84de8675c980656a71b71e34ffa0a0801f389
2013-03-05 12:59:11 -05:00
Russell Bryant 2f98379357 Fix issues with re-raising exceptions.
There is complication with re-raising exceptions and our usage of
eventlet.  If the code in the exception handler accesses the db or rpc
in the exception handler, it will no longer be able to re-raise the
exception.  Using excutils.save_and_reraise_exception() works aorund
this issue.

The most common error is calling LOG.error() or LOG.exception(), as it
is possible for these to go access rpc.  There is an option to turn on
notifications for these errors.

Fix bug 845866.

Change-Id: Icfca2af63805711229249aa7abe60a938edd1b35
2013-03-05 10:57:55 -05:00
Russell Bryant adbccac10a Don't traceback in the API on invalid keypair.
When trying to get a keypair that did not exist, a traceback would end
up in the nova-api log.  Handle this exception in the API extension so
that it doesn't make a mess of the log.

Also add a unit test for this particular scenario.

Fix bug 1145545.

Change-Id: Id1647d4ac56629c2931099320d271e34fc2f99b9
2013-03-05 10:13:44 -05:00
Alessandro Pilotti eed3bce425 Moves Hyper-V options to the hyperv section
Fixes Bug: 1140778

Due to the large number of options available in Nova, in order to
achieve better option organization and naming (e.g. avoid the hyperv_*
prefix) and to avoid option name clashes, options specific to the
Hyper-V driver are moved to a section named "hyperv".

Backwards compatibility is mantained by providing the "deprecated_group"
argument in option definitions.

For case consistency the group name as been changed to "hyperv" for options
introduced in Grizzly belonging to the group "HYPERV"

Change-Id: If2710822cdf6e4ae108a6d1e7977735ac8104a2e
2013-03-05 16:57:50 +02:00
Jenkins ad57a303f1 Merge "Fix 'to integer' conversion of max and min count values" 2013-03-05 14:48:06 +00:00
Jenkins 84d8ba574b Merge "Ensure that FORWARD rule also supports DHCP" 2013-03-05 14:06:23 +00:00
Jenkins 97ae92b50c Merge "Baremetal deploy helper sets ODIRECT." 2013-03-05 13:55:13 +00:00
Jenkins 6a6c750f6d Merge "Rename VMWare to VMware" 2013-03-05 13:54:58 +00:00
Jenkins 1a83c02299 Merge "Standarize ip validation along the code" 2013-03-05 13:26:37 +00:00
Mauro S. M. Rodrigues 6b3bba9141 Fix 'to integer' conversion of max and min count values
Until now when you used values non-integer to max_count and/or min_count the
coercion worked like: min_count = int(2.5) so min_count received 2 instead of
raise bad request.

Convert to string before coerce to int solves the problem since int coercion
cannot convert from a string which is not a perfect int.

Change-Id: Ifaa9910e13614554d1769e71e8eba9587ec5a13b
2013-03-05 08:00:54 -05:00
Mauro S. M. Rodrigues 481c314d6a Standarize ip validation along the code
Details:
 - Use the nova/utils.py validations along the code
 - refactor ipv4 validator to looks like ipv6 validator
 - interprets ip validations exceptions as Invalid IP values

Change-Id: Ia506c00510a066e167d3dcd9dd371a371129a9dd
2013-03-05 06:56:08 -05:00
Jenkins 899d518aec Merge "Fix an error in compute api snapshot_volume_backed bdm code" 2013-03-05 11:01:09 +00:00
Hans Lindgren f980121740 Adjusts reclaim instance interval of deferred delete tests
All deferred delete tests set reclaim_instance_interval to 1. This is
fine for the test_deferred_delete test that depends on the periodic
task _reclaim_queued_deletes to run.

For the other tests however, in the unlikely event that the periodic
task do run before the tests are done, it will interfere with the tests
by terminating the instance in the middle of it.

By setting the interval longer than the actual test run, this can be
avoided.

Resolves bug 1146510.

Change-Id: I606cd9f3277cc86cf4f9811da2a10efc7433b9d0
2013-03-05 11:02:46 +01:00
OpenStack Jenkins b581c63d10 Merge "Imported Translations from Transifex" 2013-03-05 08:53:02 +00:00
Sean Chen 8cafe0d0ea Rename VMWare to VMware
DocImpact

VMware compute drivers include VMwareESXDriver and VMwareVCDriver

Change-Id: I2e02560831fbac254d6daf2cb8fbe2c80568ba3a
2013-03-04 21:46:23 -08:00
Jenkins bf1f758958 Merge "Prevent reboot of rescued instance." 2013-03-05 04:09:32 +00:00
Jenkins 5571889cb4 Merge "Put options in a list." 2013-03-05 04:09:16 +00:00
Jenkins dbf5e13c3a Merge "Bump instance updated_at on network change." 2013-03-05 04:08:25 +00:00
Jenkins 6072ddab97 Merge "Catching InstanceNotFound exception during reboot instance" 2013-03-05 04:08:09 +00:00
Jenkins 71047567ee Merge "Fixes live migration with attached volumes issue" 2013-03-05 03:14:12 +00:00
Jenkins 87b8e04abb Merge "Return proper error messages while disassociating floating IP" 2013-03-05 02:59:45 +00:00
Jenkins 1ba9da7ef9 Merge "Remove completed FIXME." 2013-03-05 02:40:58 +00:00
Russell Bryant ff483d683a Put options in a list.
Update nova.notifications configuration options to be in a list, like
pretty much everywhere else.  For some reason when I saw this it buged
me so ... I changed it.

Change-Id: I551aba4eaceed2d1a8925e9ab621a030af83eeca
2013-03-04 20:49:22 -05:00
Russell Bryant 5d83d23cb7 Bump instance updated_at on network change.
Update add-fixed-ip and remove-fixed-ip code paths to update the
updated_at field of the instance, since from the user's perspective
through the API, they have made a change to the instance's
configuration.  In that case, it makes sense to expect that the
updated_at field gets changed.

Fix bug 1143466.

Change-Id: Icfd7d0b1b556795d94a22c1719727f8c9fc744f0
2013-03-04 20:45:42 -05:00