Comment 3 for bug 1775491

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/573107
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=cc59f9d9887a6424f0e963567802ecd3ed696b7c
Submitter: Zuul
Branch: master

commit cc59f9d9887a6424f0e963567802ecd3ed696b7c
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
    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.

    Change-Id: Ic59a12f3fbcb7ef1972c03cb0c92d08a0a35498b
    Closes-Bug: #1775491