diff --git a/fuel_agent/manager.py b/fuel_agent/manager.py index 8a72c928..18e74865 100644 --- a/fuel_agent/manager.py +++ b/fuel_agent/manager.py @@ -239,8 +239,10 @@ class Manager(object): utils.udevadm_trigger_blocks() for flag in prt.flags: pu.set_partition_flag(prt.device, prt.count, flag) + utils.udevadm_trigger_blocks() if prt.guid: pu.set_gpt_type(prt.device, prt.count, prt.guid) + utils.udevadm_trigger_blocks() # If any partition to be created doesn't exist it's an error. # Probably it's again 'device or resource busy' issue. if not os.path.exists(prt.name): diff --git a/fuel_agent/tests/test_manager.py b/fuel_agent/tests/test_manager.py index c4ee06cc..440a9bd6 100644 --- a/fuel_agent/tests/test_manager.py +++ b/fuel_agent/tests/test_manager.py @@ -1341,7 +1341,7 @@ class TestManagerMultipathPartition(unittest2.TestCase): for call in mock_utils_wait.mock_calls: self.assertEqual(call, mock.call(attempts=10)) - self.assertEqual(len(mock_utils_trigger.call_args_list), 8) + self.assertEqual(len(mock_utils_trigger.call_args_list), 24) self.assertEqual(mock_make_label.mock_calls, [ mock.call('/dev/mapper/12312', 'gpt'),