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
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
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
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
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
Commit ac8bce63f8 added hacking rules
N319. This was not documented in the file HACKING.rst.
Change-Id: Ibf7917aaada88db5afe1387859a387481ec05118
Closes-bug: #1313322
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
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
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
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
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
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
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
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
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
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
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