Commit Graph

27194 Commits

Author SHA1 Message Date
Joe Gordon ac8bce63f8 Don't translate debug level scheduler logs
Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This is to help prioritize log
translation. Furthermore translation has a performance overhead, even if
the log isn't used (since nova doesn't support lazy translation yet).

Remove unnecessary debug level log translation in the scheduler to
comply with our translation policy. This has the added benefit of making
the scheduler slightly faster too.

Add a local hacking rule to enforce this.

Change-Id: Ie1068d2d2c7c37f27c62d0e4e5a64a1a504af9f5
2014-04-18 10:53:49 -07:00
Jenkins 468b24b43b Merge "Disable nova-manage network commands with Neutron V2" 2014-04-17 12:38:41 +00:00
Jenkins a6026da744 Merge "Remove the unused _validate_device_name()" 2014-04-17 10:30:59 +00:00
Jenkins d7d68732ae Merge "Added test cases in ConfKeyManagerTestCase to verify fixed_key." 2014-04-17 08:49:44 +00:00
Jenkins 5d4919e4c3 Merge "Fix up import of conductor" 2014-04-17 08:45:29 +00:00
OpenStack Jenkins c439939996 Merge "Imported Translations from Transifex" 2014-04-17 08:39:41 +00:00
Jenkins 1094234483 Merge "Deprecate network_migrate_instance_* from conductor" 2014-04-17 05:00:08 +00:00
Jenkins 117c6e5ba7 Merge "Deprecate aggregate_host_* operations in conductor" 2014-04-17 04:59:00 +00:00
Jenkins ed8df80288 Merge "Pass configured auth strategy to neutronclient" 2014-04-17 04:54:19 +00:00
Jenkins 7b8d451558 Merge "Remove nova-clear-rabbit-queues" 2014-04-17 04:48:10 +00:00
Jenkins 95b1737bf1 Merge "Remove unneeded call to fetch network info on shutdown" 2014-04-17 02:40:39 +00:00
Sam Morrison 5427630f73 Fix up import of conductor
Need to import API from nova.conductor not from nova.conductor.api
directly. This is needed so the is_local flag can be used to
determine the conductor API to use (local or rpc)

Change-Id: I9a45a705a39050b296936edc486db5c2f0aae4dc
Closes-Bug: #1308811
2014-04-17 12:03:10 +10:00
Jenkins eeb2de6095 Merge "Convert instance_usage_audit() periodic task to objects" 2014-04-16 23:45:46 +00:00
Jenkins 57c4a7f9d3 Merge "Define constants for the VIF model types" 2014-04-16 20:41:16 +00:00
Jenkins 0608039793 Merge "Use debug level logging in unit tests, but don't save them." 2014-04-16 20:06:02 +00:00
Jenkins 0e080bdcdb Merge "Remove duplicate code from nova.db.sqlalchemy.utils" 2014-04-16 17:09:56 +00:00
Jenkins be1294a034 Merge "Return to using network_api directly for migrations" 2014-04-16 15:23:42 +00:00
Mohammed Naser a581823ece Disable nova-manage network commands with Neutron V2
When using nova-manage with neutron v2 API, all CRUD operations
should be done directly against the neutron API, rather than
using nova-manage.

Change-Id: I663bd06eb50872f16fc9889dde917277739fefce
Closes-Bug: #1019895
2014-04-16 14:00:15 +00:00
Jenkins e396c3384f Merge "Instance groups: add method get_by_hint" 2014-04-16 06:46:17 +00:00
Dan Smith c0246af3c9 Deprecate network_migrate_instance_* from conductor
This deprecates network_migrate_instance_start() and
network_migrate_instance_finish() from conductor, which are no
longer used.

Related to blueprint compute-manager-objects-juno

Change-Id: I01d7d502e8e8016cef3006ceddbcb31bccc4baf8
2014-04-15 15:26:16 -07:00
Dan Smith 010e9dbd12 Deprecate aggregate_host_* operations in conductor
This marks aggregate_host_add() and aggregate_host_delete() as
deprecated in conductor.

Related to blueprint compute-manager-objects-juno

Change-Id: Icb84a730c737160ba194586a523f18c4dcf1c96d
2014-04-15 15:26:16 -07:00
Dan Smith 8bc2b8006f Convert instance_usage_audit() periodic task to objects
This makes the instance_usage_audit() periodic task use the
InstanceList object to get the list of instances in the window
instead of using a raw conductor api.

Related to blueprint compute-manager-objects-juno

Change-Id: Ib267d742e26b2d4285003619c5e5dedae8ec1035
2014-04-15 15:26:16 -07:00
Dan Smith 3bdd9b8edf Return to using network_api directly for migrations
Previously, we added indirection APIs in conductor to wrap network
methods that still had direct-to-database calls that compute
manager couldn't make. Now that those are cleaned up, we can
remove the use of the indirection layer (and the layer itself from
conductor) and go direct to network_api again.

Related to blueprint compute-manager-objects-juno

Change-Id: Ia76552f49adf9b0d0128f08e3f99953560d8aa64
2014-04-15 15:26:16 -07:00
Dan Smith 869b435dca Make _is_multi_host() use objects
This makes the network api _is_multi_host() method use objects
instead of direct database access so that compute manager can
call it directly.

Note that the previous unit tests for this method used the
random.choice() method to selectively test the is/is-not multihost
case. Unit tests should not be non-deterministic like this, for
coverage and stability reasons. This patch pulls out the two
possibilities for each into separate cases to ensure both are
tested.

Related to blueprint compute-manager-objects-juno

Change-Id: I432a759a666948f2cfaa29d82f749dc9a39141be
2014-04-15 15:26:16 -07:00
Aaron Rosen c47900064f Remove unneeded call to fetch network info on shutdown
There is no reason to fetch the network_info from the network api on shutdown
since we can just pull it out of the local cache. There are probably other
places where this call to the network api call can be removed but this patch
just handles the case for shutdown.

Note: the following test was removed 'test_terminate_no_fixed_ips' as
the call to the network api is no longer done so this test would be the
same as test_terminate_no_network.

Closes-bug: #1288392

Change-Id: Ifbf751739c215e566926719f481c03e2c064163a
2014-04-15 12:46:58 -07:00
Jenkins 2960a5af57 Merge "xenapi: Cleanup tar process on glance error" 2014-04-15 18:17:08 +00:00
Gary Kotton bff8604fd2 Instance groups: add method get_by_hint
In order to support backward compatibility a new method
'get_by_hint' has been added. This method will check if the
hint is a uuid and if no it will return get_by_uuid else it
will return get_by_name.

Change-Id: I728bf3454dc5a5367e21f242281719c1a967269a
Partial-bug: #1303360
2014-04-15 09:01:59 -07:00
OpenStack Jenkins 2e9ced05e1 Imported Translations from Transifex
Change-Id: Ifc91c846cb4f48d821edf1cf637aeff793af40d9
2014-04-15 06:13:53 +00:00
Jenkins 4e55546cfc Merge "Allow -1 as the length of "get console output" API" 2014-04-15 00:07:25 +00:00
Jenkins a6b166f88a Merge "xenapi: add a test for _get_partitions" 2014-04-14 22:29:35 +00:00
Jenkins 133f3c7a82 Merge "Make compute manager use network api method return values" 2014-04-14 22:28:41 +00:00
Jenkins c86758b763 Merge "Move _get_locations to module level plus tests" 2014-04-14 21:48:39 +00:00
Jenkins 8bcb241242 Merge "Refactor unit tests for image service CRUD" 2014-04-14 21:47:42 +00:00
Jenkins 1439c038de Merge "Don't explode if we fail to unplug VIFs after a failed boot" 2014-04-14 20:57:34 +00:00
Jenkins 88ca6c63e2 Merge "Bypass the database if limit=0 for server-list requests" 2014-04-14 20:30:09 +00:00
Jenkins 66e4e32f8b Merge "Make quota rollback checks more robust in conductor tests" 2014-04-14 18:25:43 +00:00
Jenkins 0cf8a414cf Merge "Revert "Fix network-api direct database hits in metadata server"" 2014-04-14 18:22:01 +00:00
Jenkins d752adeee0 Merge "Make aggregate host operations use Aggregate object" 2014-04-14 18:02:15 +00:00
Jenkins 1435649bc0 Merge "Convert poll_rescued_instances() periodic task to objects" 2014-04-14 18:01:17 +00:00
Jenkins 49adda077a Merge "Make update_available_resource() use objects" 2014-04-14 18:00:00 +00:00
Jenkins e779ceb144 Merge "Add get_by_service() method to ComputeNodeList object" 2014-04-14 17:58:58 +00:00
Jenkins e705349588 Merge "Add with_compute_node to service_get()" 2014-04-14 17:58:08 +00:00
Jenkins f585f9af35 Merge "Make _get_compute_info() use objects" 2014-04-14 17:53:27 +00:00
Dan Smith b3225581be Don't explode if we fail to unplug VIFs after a failed boot
Libvirt currently attempts to unplug VIFs after destroying an
instance, which can fail if the instance was never built
properly in the first place. This patch makes it ignore errors
when trying to tear down VIFs during that cleanup. Failure
in this case would block the deletion of the instance (which
should never happen) and any real failures aren't something
we could do anything about.

Closes-bug: #1306718

Change-Id: I84a4433c3959b8f14e0259be0aa51da1654006c8
2014-04-14 10:06:24 -07:00
Dan Prince 3a91554650 Revert "Fix network-api direct database hits in metadata server"
This reverts commit 79ab96e34b.

This commit broke the Nova metadata API when using neutron.

Change-Id: I6855b03f00492fdf51e18c0dcb0a73590a71b374
Closes-bug: #1307582
2014-04-14 11:57:56 -04:00
Jenkins 7a1b8ff31d Merge "ec2: Convert instance_get_by_uuid calls to objects" 2014-04-14 14:51:55 +00:00
Jenkins 56687ab966 Merge "libvirt: remove_logical_volumes should remove each separately" 2014-04-14 13:04:55 +00:00
Dirk Mueller b63db53ab1 Remove nova-clear-rabbit-queues
It was already non-functional since
https://review.openstack.org/#/c/40355/

Change-Id: I56b19a49c123b73b6b3a5c4fc5f29864c6fd3b98
Closes-Bug: #1307460
2014-04-14 13:44:46 +02:00
Ken'ichi Ohmichi 8e5577f52f Allow -1 as the length of "get console output" API
Current "get console output" API does not allow -1 as the length and
returns a BadRequest response if receiving it. The other APIs(quota)
considers -1 as an unlimited value.
This patch allows -1 as the length for API consistency.

DocImpact

Change-Id: Idf88a238d1b0e545ebab5be872269b1b1030cc56
Related-Bug: #1295426
2014-04-14 20:25:04 +09:00
Jay Pipes 9048078fcc Move _get_locations to module level plus tests
Moves the nova.image.glance.GlanceImageService._get_locations object
method into module level scope (the self argument was unused) and
adds full unit tests for the nova.image.glance._get_location() function.

Change-Id: Ib386330b70abe1e0353f1fafa3e68bc3e7a2d1b1
Partial-bug: #1293938
2014-04-13 10:16:30 -04:00