ironic/ironic/tests/unit/common
Dmitry Tantsur d3872cfcdd Fix a race condition in the hash ring code
We're handling hash rings and updated_at differently: one
is stored on the class level, the other - on instance. Apparently,
there is a race there, resulting in updated_at never updated.
Store hash rings and updated_at in one tuple, so that they're
always loaded and stored together.

Also remove double loading of the hash ring in _get_ring that
could contribute to the problem.

Change-Id: Ib659014e07549ae3d5ec7e69da318301f5994ca8
2020-09-28 17:15:28 +02:00
..
json_samples Fix: port attribute name propagate_uplink_status 2020-08-19 10:45:23 +08:00
__init__.py Prepare for functional testing 2015-09-28 21:27:01 +00:00
test_cinder.py Remove deprecated [cinder]url 2020-05-14 17:43:57 +02:00
test_context.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_driver_factory.py Deprecate the iscsi deploy interface 2020-09-22 15:39:36 +02:00
test_fsm.py Removes unnecessary utf-8 encoding 2017-01-11 19:35:41 +05:30
test_glance_service.py Switch Ironic to openstacksdk for Neutron 2020-08-19 10:48:17 +02:00
test_hash_ring.py Fix a race condition in the hash ring code 2020-09-28 17:15:28 +02:00
test_image_service.py Allow HttpImageService to accept custom certificate 2020-09-07 14:51:34 +00:00
test_images.py Iso booting via redfish virtual media 2020-07-10 08:43:17 -07:00
test_json_rpc.py Use TLS for json_rpc when configured 2020-07-30 17:20:24 +03:00
test_keystone.py Merge "Switch Ironic to openstacksdk for Neutron" 2020-09-07 15:41:31 +00:00
test_network.py Enforce autospec in common tests 2020-08-24 18:24:15 +02:00
test_neutron.py Merge "Switch Ironic to openstacksdk for Neutron" 2020-09-07 15:41:31 +00:00
test_nova.py Enforce autospec in common tests 2020-08-24 18:24:15 +02:00
test_policy.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_pxe_utils.py Merge "Use tempdirs for /tftpboot, /httpboot creation tests" 2020-09-24 09:54:09 +00:00
test_raid.py Software RAID: don't try to set local_gb to MAX 2020-07-03 14:27:05 +02:00
test_release_mappings.py Merge "Add RPC objects for deployment API" 2020-08-12 23:29:19 +00:00
test_rpc.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_rpc_service.py Remove locks before RPC bus is started 2020-07-28 08:03:21 -07:00
test_states.py Stop using six library 2019-12-23 09:38:25 +01:00
test_swift.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_utils.py Switch to unittest mock 2020-04-30 19:04:17 +02:00
test_wsgi_service.py Switch to unittest mock 2020-04-30 19:04:17 +02:00