Skip to content

Commit d14ae3a

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Avoid using image with kernel in BDM large request func test"
2 parents 6b60cae + cacca20 commit d14ae3a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

nova/tests/functional/test_boot_from_volume.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,12 @@ def test_boot_from_volume_10_servers_255_volumes_2_images(self):
196196
# We only care about API performance in this test case so stub out
197197
# conductor to not do anything.
198198
self.useFixture(nova_fixtures.NoopConductorFixture())
199-
images = self.api.get_images()
200-
image1 = images[0]['id']
201-
image2 = images[1]['id']
199+
# NOTE(gibi): Do not use 'c905cedb-7281-47e4-8a62-f26bc5fc4c77' image
200+
# as that is defined with a separate kernel image, leading to one extra
201+
# call to nova.image.api.API.get from compute.api
202+
# _handle_kernel_and_ramdisk()
203+
image1 = 'a2459075-d96c-40d5-893e-577ff92e721c'
204+
image2 = '76fa36fc-c930-4bf3-8c8a-ea2a2420deb6'
202205
server = self._build_minimal_create_server_request(
203206
self.api, 'test_boot_from_volume_10_servers_255_volumes_2_images')
204207
server.pop('imageRef')

0 commit comments

Comments
 (0)