Commit Graph

27456 Commits

Author SHA1 Message Date
Morgan Fainberg a67fb7703b Add mailmap entry
Add mailmap entry for my email address

Change-Id: Ia46c28c86ef3f440556b1b027d2bf0a7f3e721c5
2014-05-07 12:14:26 -07:00
Jenkins 181b29eba4 Merge "Use Field in fixed_ip" 2014-05-07 18:52:52 +00:00
Jenkins 9b1160ab5a Merge "Fix broken version responses" 2014-05-07 17:44:50 +00:00
Jenkins 11e78517d1 Merge "Improve conductor error cases when unshelving" 2014-05-07 17:35:10 +00:00
Jenkins edac193a89 Merge "Add x-openstack-request-id to nova v3 responses" 2014-05-07 01:10:23 +00:00
Jenkins 26f673f3c2 Merge "Make cells use Fault obj for create" 2014-05-06 22:32:18 +00:00
Jenkins 2d35c8042d Merge "Updated from global requirements" 2014-05-06 21:42:57 +00:00
Jenkins 6cbb6f0c64 Merge "Don't translate debug level logs in nova.spice, storage, tests and vnc" 2014-05-06 18:37:59 +00:00
Yunhong Jiang 4d3ad0631c Use Field in fixed_ip
In fixed_ip object, we use IPV4AndV6Address, which is a FieldType
instead of Field.

Create a Field for IPV4AndV6Address and use it in the fixed_ip object.

Change-Id: I0f369a70f755bc7e290edb96656c7c0cb2f3a00a
2014-05-06 10:45:35 -07:00
Jenkins dcd024ed76 Merge "Dedup devref on unit tests" 2014-05-06 17:13:36 +00:00
Jenkins f1462d7e1f Merge "Make live_migration use instance objects" 2014-05-06 15:38:05 +00:00
Jenkins e990d9f0e1 Merge "Remove unnecessary passing of task_state to check_instance_state" 2014-05-06 13:07:00 +00:00
Jenkins 9fdc2de700 Merge "Include pending task in log message on skip sync_power_state" 2014-05-06 12:27:48 +00:00
Jenkins f9bb7be91f Merge "objects: remove unused utils module" 2014-05-06 09:56:17 +00:00
Jenkins aa18ed084d Merge "Don't translate debug level logs in objectstore, pci, rdp, servicegroup" 2014-05-06 05:48:31 +00:00
Jenkins df69ef4aa0 Merge "Don't translate debug level logs in cloudpipe, hacking, ipv6, keymgr" 2014-05-06 05:48:19 +00:00
Jenkins 6cd9c4753e Merge "Fix calls to mock.assert_not_called()" 2014-05-06 05:42:31 +00:00
Jenkins 4c8386cc85 Merge "libvirt: Stub O_DIRECT in test if not supported" 2014-05-06 04:44:26 +00:00
Jenkins 6b5f59d77b Merge "VMware: reduce unit test times" 2014-05-06 03:04:16 +00:00
Jenkins 50af33499a Merge "Improve hacking rule to avoid author markers" 2014-05-06 03:04:03 +00:00
Jenkins c5c0b764b3 Merge "Update block_device_info to contain swap and ephemeral disks" 2014-05-06 01:31:45 +00:00
Jenkins a1a9d7b78f Merge "Remove duplicated import in unit test" 2014-05-05 23:29:15 +00:00
Jenkins 325657801e Merge "Raise HTTPForbidden from os-floating-ips API rather than 404" 2014-05-05 22:02:08 +00:00
Jenkins daec6c39b0 Merge "Raise descriptive error for over volume quota" 2014-05-05 21:23:32 +00:00
Jenkins 3cb31d9441 Merge "Add fault wrapper for rescue function" 2014-05-05 20:20:18 +00:00
Jenkins 61c5b29c35 Merge "Don't translate debug level logs in nova.cert, console and consoleauth" 2014-05-05 17:16:57 +00:00
Jenkins 2080e1ca5b Merge "Don't translate debug level logs in nova.cmd and nova.db" 2014-05-05 17:16:44 +00:00
Jenkins d41c3573d2 Merge "Don't translate debug level logs in nova.objects" 2014-05-05 17:16:32 +00:00
Jenkins 9d999e77e2 Merge "Don't translate debug level logs in nova.compute" 2014-05-05 17:14:06 +00:00
Matt Riedemann 50f743d1ee Raise HTTPForbidden from os-floating-ips API rather than 404
The os-floating-ips extension was catching and handling a 404
and 403 in the same block and raising HTTPNotFound for both.

This change separates the 404 and 403 cases so HTTPForbidden
is returned in the 403 case.  For the 404 case, the test is
updated to raise the proper NovaException and a new test is
added for the 403 Forbidden case.

Change-Id: Id0daf2d61c6960d845d3b7980f96228fece41128
2014-05-05 13:47:12 +00:00
Sahid Orentino Ferdjaoui 18938d283c Improve hacking rule to avoid author markers
The case with the tag "moduleauthor" is not handled when
checking to avoid author makers.
Also fix the position when the tag Author is used.

Change-Id: I17b07b9f5448f9cbb4c5705f655c5392316a6239
Closes-Bug: #1314176
2014-05-05 14:35:20 +02:00
Sahid Orentino Ferdjaoui c58f2393b1 Improve conductor error cases when unshelving
This commit handles different cases when the key 'shelved_image_id'
is not defined or None. Also it tries to improve the error messages.

Closes-Bug: #1307416
Change-Id: Ia2d0a183eefccdfd6f612d86f60cd2930c1a4b23
2014-05-05 12:17:46 +02:00
Joe Gordon a4947243d1 Dedup devref on unit tests
We already have a document on how to run unit tests, so
development.environment should just point to that document instead of
trying to summarize it.  Keeping this information in one less places
makes it easier to make sure the page is up to date (which
development.environment is not -- no mention of tox).

Change-Id: I9aecf439b6145b035b3457559ddb187058f5057b
2014-05-04 20:22:07 -07:00
Matt Riedemann 92d92c7fe1 Fix calls to mock.assert_not_called()
There is no assert_not_called() method in mock, as described here:

https://code.google.com/p/mock/issues/detail?id=159

Fix these calls to use the mock.called attribute instead.

Closes-Bug: #1316167

Change-Id: I865463244ebfc45e1f940c74e1afbb9084930bb3
2014-05-04 19:05:44 -07:00
Gary Kotton 25e5ba09f2 VMware: reduce unit test times
A number of tests would take longer than a second.

Closes-bug: #1315870

Change-Id: I4d5c9fac460278135ab1c2c7876f3ac6e6f3d4a6
2014-05-04 06:14:27 -07:00
Jenkins 89fd077042 Merge "Deprecate instance_fault_create() from conductor" 2014-05-03 00:25:47 +00:00
Leandro I. Costantino aff26ba2ca Remove duplicated import in unit test
A couple of unit tests were importing twice mock or mox.
This patch just remove the duplicated import.

Change-Id: I0c66746348e184a3846cadd40d7d7cbb7d594564
2014-05-02 20:31:25 -03:00
Joe Gordon affbbca5af Include pending task in log message on skip sync_power_state
To better understand why sync_power_state is being skipped include the
pending task name in the log message.

Change-Id: I832a3d5820efab301e12610b28ca2a1e5cfd946a
2014-05-02 12:41:48 -07:00
Chris Behrens 0d9a2b9de2 Make cells use Fault obj for create
Add support into InstanceFault.create() to handle where we need to
duplicate any faults in the API cells. Convert the cells code to use
InstanceFault.create()

NOTE: This happens to fix an oversight where we accidentally left the
update_cells=False kwarg off of the db call in the cells code.

Change-Id: Iec11b8259aaecba055a6d5636ab60dfa0dbb6c83
2014-05-02 12:17:16 -07:00
Jenkins 6df520049d Merge "Remove conductor usage from add_instance_fault_from_exc()" 2014-05-02 18:20:44 +00:00
Jenkins e495afb6ed Merge "Add create() method to InstanceFault object" 2014-05-02 18:20:31 +00:00
Jenkins 1614f03ebb Merge "Remove use of service_* conductor calls from xenapi host.py" 2014-05-02 18:20:18 +00:00
Rick Harris 63b0accd89 libvirt: Stub O_DIRECT in test if not supported
`os.O_DIRECT` is only defined on platforms that support direct I/O. On
Macs, which don't support direct I/O in this way, `os.O_DIRECT` will
raise an `AttributeError`.

We can still test the code-path, however, by just stubbing out the
value on platforms where it's not supported.

Closes-Bug: 1286958

Change-Id: I8f10d6dfc4a63b6a961006b029b828e703870e46
2014-05-02 12:23:33 -05:00
Jenkins 9aee382c5b Merge "Remove unnecessary wrapper for 5 compute APIs" 2014-05-02 17:21:22 +00:00
Dan Smith 38fdd8e6b2 Deprecate instance_fault_create() from conductor
This method is no longer used and is deprecated for Juno.

Related to blueprint virt-objects-juno

Change-Id: Ib7feb215e0c79524be272315a235a4745339860d
2014-05-02 07:41:06 -07:00
Dan Smith f23498d7a2 Remove conductor usage from add_instance_fault_from_exc()
This makes add_instance_fault_from_exc() use the InstanceFault
object instead of a raw conductor call. This is actually a
minor change except that all callers of this method must now
stop passing the conductor API, and tests must return something
valid from the mocked call.

Related to blueprint virt-objects-juno

Change-Id: I49b17c1ef3d14fd36f016c37d88287e62126bf68
2014-05-02 07:41:02 -07:00
Jenkins 473bf13762 Merge "objects: restore some datetime field comments" 2014-05-02 14:24:05 +00:00
Dan Smith cf6b0fdbff Add create() method to InstanceFault object
This allows creating InstanceFaults through the object interface.

Related to blueprint virt-objects-juno

Change-Id: Iedde2e220127778fa6252d310f9e73c8506f605e
2014-05-02 07:10:47 -07:00
Dan Smith 5c58a69910 Remove use of service_* conductor calls from xenapi host.py
This removes use of some service calls in the conductor by xenapi's
host.py module and replaces them with object usage. Existing tests
are sufficient to confirm the same behavior remains.

Related to blueprint virt-objects-juno

Change-Id: I908cca4fa1d297c5c9b1d84ae7ebe7452a30ba12
2014-05-02 07:02:29 -07:00
Jenkins e03a2c84cb Merge "Optimize validate_networks to query neutron only when needed" 2014-05-02 13:21:15 +00:00