Output:
==============================
Failed 12 tests - output below:
==============================
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_localboot
--------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 433, in test_deploy_partition_image_localboot
self._test_deploy_partition_image(boot_option="local")
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 420, in _test_deploy_partition_image
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='local', commit=True),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='local', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_localboot_bios
-------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 444, in test_deploy_partition_image_localboot_bios
boot_mode="bios")
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 420, in _test_deploy_partition_image
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='local', commit=True),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='local', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_preserve_ephemeral
-----------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 783, in test_deploy_partition_image_preserve_ephemeral
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.make_partitions('/dev/fake', 128, 64, 256, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=False),
call.is_block_device('/dev/fake-part3'),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part3'),
call.mkfs(dev='/dev/fake-part2', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part3')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.make_partitions('/dev/fake', 128, 64, 256, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=False, disk_label=None),
call.is_block_device('/dev/fake-part3'),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part3'),
call.mkfs(dev='/dev/fake-part2', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part3')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_netboot_bios
-----------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 440, in test_deploy_partition_image_netboot_bios
boot_mode="bios")
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 420, in _test_deploy_partition_image
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_netboot_uefi
-----------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 448, in test_deploy_partition_image_netboot_uefi
boot_mode="uefi")
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 420, in _test_deploy_partition_image
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='uefi', boot_option='netboot', commit=True),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='uefi', boot_option='netboot', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_with_ephemeral
-------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 711, in test_deploy_partition_image_with_ephemeral
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 256, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True),
call.is_block_device('/dev/fake-part3'),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part3'),
call.mkfs(dev='/dev/fake-part2', fs='swap', label='swap1'),
call.mkfs(dev='/dev/fake-part1', fs='exttest', label='ephemeral0'),
call.block_uuid('/dev/fake-part3')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 256, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part3'),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part3'),
call.mkfs(dev='/dev/fake-part2', fs='swap', label='swap1'),
call.mkfs(dev='/dev/fake-part1', fs='exttest', label='ephemeral0'),
call.block_uuid('/dev/fake-part3')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_wo_boot_option_and_wo_boot_mode
------------------------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 436, in test_deploy_partition_image_wo_boot_option_and_wo_boot_mode
self._test_deploy_partition_image()
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 420, in _test_deploy_partition_image
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_with_configdrive
---------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 861, in test_deploy_partition_image_with_configdrive
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call._get_configdrive('http://1.2.3.4/cd', '12345678-1234-1234-1234-1234567890abcxyz', tempdir=None),
call.make_partitions('/dev/fake', 128, 0, 0, 10, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.dd(<ANY>, '/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.block_uuid('/dev/fake-part2')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call._get_configdrive('http://1.2.3.4/cd', '12345678-1234-1234-1234-1234567890abcxyz', tempdir=None),
call.make_partitions('/dev/fake', 128, 0, 0, 10, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.dd('configdrive-path', '/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.block_uuid('/dev/fake-part2')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_without_swap
-----------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 631, in test_deploy_partition_image_without_swap
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 0, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part1'),
call.block_uuid('/dev/fake-part1')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 0, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part1'),
call.block_uuid('/dev/fake-part1')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_localboot_uefi
-------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 559, in test_deploy_partition_image_localboot_uefi
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='uefi', boot_option='local', commit=True),
call.is_block_device('/dev/fake-part3'),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.mkfs(dev='/dev/fake-part1', fs='vfat', label='efi-part'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part3'),
call.mkfs(dev='/dev/fake-part2', fs='swap', label='swap1')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='uefi', boot_option='local', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part3'),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.mkfs(dev='/dev/fake-part1', fs='vfat', label='efi-part'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part3'),
call.mkfs(dev='/dev/fake-part2', fs='swap', label='swap1')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_without_boot_option
------------------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 427, in test_deploy_partition_image_without_boot_option
self._test_deploy_partition_image()
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 420, in _test_deploy_partition_image
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
ironic.tests.unit.drivers.modules.test_deploy_utils.PhysicalWorkTestCase.test_deploy_partition_image_netboot
------------------------------------------------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 430, in test_deploy_partition_image_netboot
self._test_deploy_partition_image(boot_option="netboot")
File "ironic/tests/unit/drivers/modules/test_deploy_utils.py", line 420, in _test_deploy_partition_image
self.assertEqual(disk_utils_calls_expected, disk_utils_mock.mock_calls)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 362, in assertEqual
self.assertThat(observed, matcher, message)
File "/home/vlad/ironic/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 447, in assertThat
raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
actual = [call.get_image_mb('/tmp/xyz/image'),
call.is_block_device('/dev/fake'),
call.destroy_disk_metadata('/dev/fake', '12345678-1234-1234-1234-1234567890abcxyz'),
call.make_partitions('/dev/fake', 128, 64, 0, 0, '12345678-1234-1234-1234-1234567890abcxyz', boot_mode='bios', boot_option='netboot', commit=True, disk_label=None),
call.is_block_device('/dev/fake-part2'),
call.is_block_device('/dev/fake-part1'),
call.populate_image('/tmp/xyz/image', '/dev/fake-part2'),
call.mkfs(dev='/dev/fake-part1', fs='swap', label='swap1'),
call.block_uuid('/dev/fake-part2')]
Fix proposed to branch: master /review. openstack. org/288044
Review: https:/