Device tag tests (test_device_tagging.py) has hard coded
sleep with default cache time of metadata service. That cache
time is configurable on nova side (metadata_cache_expiration).
So instead of sleep with hard code value, we should go with the wait
loop to fetch the metadata info for verification. For safer side,
build_timeout is being used as max time to fetch the expected metadata
info otherwise test will fail with timeout.
Reviewed: https:/ /review. openstack. org/573107 /git.openstack. org/cgit/ openstack/ tempest/ commit/ ?id=cc59f9d9887 a6424f0e9635678 02ecd3ed696b7c
Committed: https:/
Submitter: Zuul
Branch: master
commit cc59f9d9887a642 4f0e963567802ec d3ed696b7c
Author: Ghanshyam <email address hidden>
Date: Thu Jun 7 06:57:57 2018 +0000
Fix race condition in device tag testing
Device tag tests (test_device_ tagging. py) has hard coded cache_expiratio n).
sleep with default cache time of metadata service. That cache
time is configurable on nova side (metadata_
So instead of sleep with hard code value, we should go with the wait
loop to fetch the metadata info for verification. For safer side,
build_timeout is being used as max time to fetch the expected metadata
info otherwise test will fail with timeout.
Change-Id: Ic59a12f3fbcb7e f1972c03cb0c92d 08a0a35498b
Closes-Bug: #1775491