Commit Graph

27351 Commits

Author SHA1 Message Date
Jenkins 34b3441e14 Merge "Use actual fake timestamp in API templates" 2014-04-30 22:48:20 +00:00
Jenkins 42aade4ed0 Merge "Normalize API extension updated timestamp format" 2014-04-30 22:48:05 +00:00
Jenkins c3794c8404 Merge "Regenerate API samples for GET /extensions" 2014-04-30 22:42:04 +00:00
Jenkins eed6dd1e6b Merge "libvirt: Make fakelibvirt.libvirtError match" 2014-04-30 14:27:51 +00:00
Jenkins 9b33819455 Merge "Add new ec2 volume db API calls" 2014-04-30 13:32:10 +00:00
Jenkins 8de938e5a5 Merge "Don't translate debug level logs in nova.conductor" 2014-04-30 13:24:26 +00:00
Jenkins af320b96cd Merge "Don't translate debug level logs in nova.cells" 2014-04-30 13:21:25 +00:00
Jenkins e0dfddd60d Merge "Don't translate debug level logs in nova.api" 2014-04-30 13:20:23 +00:00
Jenkins e3135c2b50 Merge "Don't translate debug level logs in nova.volume" 2014-04-30 13:16:24 +00:00
Jenkins 64bfdb6ad4 Merge "Create the image mappings BDMs earlier in the boot" 2014-04-29 23:40:33 +00:00
Jenkins fdddb81afb Merge "VMware: remove unneeded code" 2014-04-29 23:40:20 +00:00
Jenkins 459e89cf5c Merge "VMware: remove duplicate _fake_create_session code" 2014-04-29 23:40:07 +00:00
Gary Kotton e850be8bfa Don't translate debug level logs in nova.conductor
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).

Change-Id: Id270b6c7e020679c3e2e3931300e82ea3489e942
2014-04-29 18:19:20 +00:00
Gary Kotton f213ec7b25 Don't translate debug level logs in nova.cells
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).

Change-Id: Idb346d04f24cbbc19b6e41af6e4782ac1c49d3b8
2014-04-29 11:17:42 -07:00
Mark McLoughlin 6d88be2049 Use actual fake timestamp in API templates
The 2011-01-01T01:02:03Z is seen throughout the images API sample
tests because it is hard-coded in the fake image service. In some
of the API templates, we include the timestamp rather than matching
against a regexp but in many we don't. Let's consistently match
against the actual timestamp we know to expect.

Full context here:

  http://lists.openstack.org/pipermail/openstack-dev/2014-April/033971.html

Change-Id: I727c0aabac0e32b435068c37d535daa8c983364c
2014-04-29 14:51:01 +01:00
Mark McLoughlin 3409c0e26d Normalize API extension updated timestamp format
It's unusual to include a '+00:00' offset in an ISO8601 timestamp
rather than just using the 'Z' suffix. It's also very weird for our
API to be returning timestamps which aren't in UTC.

Let's make these timestamps consistent with other timestamps by
using UTC always and representing that with a 'Z' suffix. Also,
enforce this in the API sample tests by using a new 'isotime' regexp.

A small number of the extensions in the API sample templates
specified the exact timestamp, so templatize those before regenerating
the API samples for GET /extensions.

Full context here:

  http://lists.openstack.org/pipermail/openstack-dev/2014-April/033971.html

Change-Id: Idf429e55e4ae13738ac531a25ce54b20d395410d
2014-04-29 14:50:33 +01:00
Mark McLoughlin 702e57d0d6 Regenerate API samples for GET /extensions
In a subsequent commit, I make a change which requires regenerating
this API sample but doing so shows up a bunch of unrelated changes.
This commit simply regenerates the API sample without any functional
changes to highlight the non-functional sample changes.

Change-Id: I5fafff90f20af17d787039568245f598e500405e
2014-04-29 14:50:06 +01:00
Jenkins 2acd7fbe85 Merge "Fix a typo in compute/manager::remove_volume_connection()" 2014-04-29 05:17:03 +00:00
Jenkins 3c0ffbc35a Merge "Remove comments and to-do for quota inconsistency" 2014-04-29 01:35:29 +00:00
Jenkins 296f2fa183 Merge "Improved logs for add/remove security group rules." 2014-04-28 10:54:30 +00:00
Jenkins 226c472dad Merge "Fixed many typos." 2014-04-28 09:18:08 +00:00
Gary Kotton 8b894c3565 Hacking: add rule number to HACKING.rst
Commit ac8bce63f8 added hacking rules
N319. This was not documented in the file HACKING.rst.

Change-Id: Ibf7917aaada88db5afe1387859a387481ec05118
Closes-bug: #1313322
2014-04-27 05:03:33 -07:00
Xavier Queralt 38b348ee66 Create the image mappings BDMs earlier in the boot
Refactor the processing of BDMs defined in the image (either as a block
device mapping in the properties or mappings of blank devices) and move
it to the same method where the rest of BDMs are processed.

Partial-bug: #1297325
Change-Id: Ida0ddb6efcb0014890762df000eaea679f9b1d7b
2014-04-26 21:30:05 +02:00
OpenStack Proposal Bot d2c5dcd6e0 Imported Translations from Transifex
Change-Id: I7ee83b391ff267feb43e16748b855df788d4908a
2014-04-26 06:13:49 +00:00
Alex Gaynor b055e16846 Fixed many typos.
These were found using: https://github.com/intgr/topy

Change-Id: Ia4e14508c285d95ab4eaeabbde032ecc5e7c9e4b
2014-04-25 21:47:41 -07:00
Jenkins 8604b7c0d7 Merge "Spice proxy config setting to be read from the spice group in nova.conf" 2014-04-25 23:54:34 +00:00
Aaron Rosen 369881f0bb VMware: remove unneeded code
Change-Id: Ia5ef0e48227ad81407c452a4f57677f2a3b7848c
2014-04-25 15:58:33 -07:00
Jenkins aac6290c70 Merge "Remove warn log in quota function on API layer" 2014-04-25 22:38:33 +00:00
Jenkins 92dd1fb05b Merge "Set default auth_strategy to keystone" 2014-04-25 21:23:05 +00:00
Jenkins 36b6c1e7ed Merge "Fix typo in unit tests" 2014-04-25 21:21:58 +00:00
Jenkins 17fe07772b Merge "replace NovaException with VirtualInterfaceCreate when neutron fails" 2014-04-25 16:49:22 +00:00
Jenkins cf157c8f35 Merge "Remove a bogus and unnecessary docstring" 2014-04-25 16:48:06 +00:00
Jenkins af9a790daa Merge "Deprecate nova-manage flavor subcommand" 2014-04-25 16:46:46 +00:00
Stuart McLaren 1be9a01bae Fix typo in unit tests
A couple of unit tests misspelt 'factory'.

Fixes bug 1312776

Change-Id: I1c3a7ba63671aff4d866d0501c941ce637238546
2014-04-25 14:28:34 +00:00
Jenkins 745a8749d3 Merge "Don't translate debug level logs in nova.network" 2014-04-25 14:01:03 +00:00
Nikola Dipanov c983317a3b Remove a bogus and unnecessary docstring
A docstring in the Cinder API check_attached method was wrong, and is
quite unnecessary as well since the method is pretty much self
explanatory.

Change-Id: I179611bc627d49a4ffaa58f27dd1b7dcb33c6870
2014-04-25 14:27:51 +02:00
Gary Kotton fbc1a1606b Don't translate debug level logs in nova.api
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).

Change-Id: Ifb04bf41a47f485e8c668632d3a6ac51e02a16f8
2014-04-25 01:35:41 -07:00
Gary Kotton e64f30f423 Don't translate debug level logs in nova.volume
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).

Change-Id: Ib529afea4d1696d8905e2d533803562130950d83
2014-04-25 01:03:05 -07:00
Aaron Rosen 9978daa11c VMware: remove duplicate _fake_create_session code
This patch pulls the _fake_create_session method out so it can be reused
across tests rather than duplicated it.

Change-Id: Ie3979a84568571b2f1f63e01c6c5fb6966f0333a
Closes-bug: 1312472
2014-04-24 23:01:31 -07:00
Jenkins 6ab053de94 Merge "DescribeInstances in ec2 shows wrong image-message" 2014-04-25 03:18:41 +00:00
Jenkins 006c831779 Merge "Fix bad param name in method docstring" 2014-04-24 23:16:22 +00:00
Jenkins 5f6e329c55 Merge "Remove legacy block device usage in ec2 API" 2014-04-24 20:18:59 +00:00
Rick Harris 78156a7650 libvirt: Make fakelibvirt.libvirtError match
When test code uses `libvirtError`, it may refer to
`libvirt.libvirtError` or `fakelibvirt.libvirtError` depending on
whether `libvirt-python` is installed.

The existing code had incompatible `__init__` singatures between the
two, meaning that a test could pass locally but fail when run on
Jenkins.

The solution is to make `fakelibvirt.libvirtError` match libvirt 1.2.3
exactly.

A convenience function, `make_libvirtError`, is introduced so that
exceptions can still be created in one shot.

Change-Id: I5aaecc57504c4aea3c049610ef188978c25cfdc4
Closes-Bug: 1305186
2014-04-24 14:18:33 -05:00
Russell Bryant e5d23a7393 Add new ec2 volume db API calls
The existing API calls for the EC2 volume ID mappings only returned
the EC2 ID or the UUID, not the full mapping.  We really want APIs
that return the whole mapping for use with a nova object.  This patch
adds those APIs which will be used by the VolumeMapping nova object.

Change-Id: I86361a557254dbddeae2ea49e986add813e5a934
2014-04-24 17:20:40 +00:00
Nikola Dipanov cceffa33e2 Remove legacy block device usage in ec2 API
This patch makes the single place that would get the block device
mappings from the database, not convert objects to legacy format,

Also fixes fake values in tests.

Change-Id: I77ecd8782deeec42963b5b1dd16bd85923b4d261
2014-04-24 17:20:40 +00:00
Dan Smith 16f4c5bf97 Deprecate instance_get_active_by_window_joined() from conductor
This deprecates the instance_get_active_by_window_joined() method
from conductor which is no longer used.

Related to blueprint compute-manager-objects-juno

Change-Id: Ia9ce0cf49180806da64cc034ad12ddf2b3f1c424
2014-04-24 08:52:59 -07:00
Dan Smith d73d62c261 Deprecate instance_get_all_by_filters() from conductor
This deprecates the instance_get_all_by_filters() method from
conductor, which is no longer used.

This also removes a test that was mocking the conductor method,
but that really tests nothing at all. Perhaps a new test to ensure
that the period=0 case is handled properly is in order, but this
test definitely wasn't doing that.

Related to blueprint compute-manager-objects-juno

Change-Id: I1e7bc19296d1773bbc2f5f9e77a1faf0e6ac1fe6
2014-04-24 08:52:59 -07:00
Jenkins 3fc411235a Merge "VMWare - Check for compute node before triggering destroy" 2014-04-24 14:53:21 +00:00
Jenkins c85a17447e Merge "Make instance_exists() take an instance, not instance_name" 2014-04-24 09:04:55 +00:00
Gary Kotton 8c663cfca4 Don't translate debug level logs in nova.network
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).

Change-Id: I8973992d0dd2348f9c657c3caa1cc9c7d79a4c7b
2014-04-24 01:45:05 -07:00