glance-cache-prefetcher is not working as threadpool is not set

Bug #2065087 reported by Abhishek Kekane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Critical
Unassigned

Bug Description

glance-cache-prefetcher is broken as it fails to set threadpool model which is essential to run this command line utility.

CRITICAL glance [None req-e769a210-dc42-4bbf-a953-658a85ff251d None None] Unhandled error: AssertionError
ERROR glance Traceback (most recent call last):
ERROR glance File "/opt/stack/data/venv/bin/glance-cache-prefetcher", line 10, in <module>
ERROR glance sys.exit(main())
ERROR glance File "/opt/stack/glance/glance/cmd/cache_prefetcher.py", line 63, in main
ERROR glance app.run()
ERROR glance File "/usr/lib/python3.10/contextlib.py", line 79, in inner
ERROR glance return func(*args, **kwds)
ERROR glance File "/opt/stack/glance/glance/image_cache/prefetcher.py", line 85, in run
ERROR glance pool = api_common.get_thread_pool('prefetcher', size=num_images)
ERROR glance File "/opt/stack/glance/glance/api/common.py", line 230, in get_thread_pool
ERROR glance def _get_thread_pool():
ERROR glance File "/opt/stack/glance/glance/api/common.py", line 201, in memoizer_wrapper
ERROR glance return memoizer(lock_name)
ERROR glance File "/opt/stack/data/venv/lib/python3.10/site-packages/oslo_concurrency/lockutils.py", line 412, in inner
ERROR glance return f(*args, **kwargs)
ERROR glance File "/opt/stack/glance/glance/api/common.py", line 197, in memoizer
ERROR glance _CACHED_THREAD_POOL[lock_name] = func()
ERROR glance File "/opt/stack/glance/glance/api/common.py", line 231, in _get_thread_pool
ERROR glance threadpool_cls = glance.async_.get_threadpool_model()
ERROR glance File "/opt/stack/glance/glance/async_/__init__.py", line 201, in get_threadpool_model
ERROR glance assert _THREADPOOL_MODEL
ERROR glance AssertionError

Changed in glance:
importance: Undecided → High
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/glance/+/918473

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/2024.1)

Fix proposed to branch: stable/2024.1
Review: https://review.opendev.org/c/openstack/glance/+/918635

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/2023.2)

Fix proposed to branch: stable/2023.2
Review: https://review.opendev.org/c/openstack/glance/+/918636

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/2023.1)

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/glance/+/918637

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

Reviewed: https://review.opendev.org/c/openstack/glance/+/918473
Committed: https://opendev.org/openstack/glance/commit/32ee57ccdeea90a86bce1e5e33d10fab115ed2d3
Submitter: "Zuul (22348)"
Branch: master

commit 32ee57ccdeea90a86bce1e5e33d10fab115ed2d3
Author: Abhishek Kekane <email address hidden>
Date: Tue May 7 18:05:24 2024 +0000

    Fix broken glance-cache-prefetcher utility

    glance-cache-preftecher utility was failing because it was not
    setting global threadpool model while initilizing the tool.

    Closes-Bug: #2065087
    Change-Id: I0c09dd7c0d81178ebf2aa5efd19c54866fc8791b

Changed in glance:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/2024.1)

Reviewed: https://review.opendev.org/c/openstack/glance/+/918635
Committed: https://opendev.org/openstack/glance/commit/99540a990fceca89d0e4e73493f4cc05dbd5441e
Submitter: "Zuul (22348)"
Branch: stable/2024.1

commit 99540a990fceca89d0e4e73493f4cc05dbd5441e
Author: Abhishek Kekane <email address hidden>
Date: Tue May 7 18:05:24 2024 +0000

    Fix broken glance-cache-prefetcher utility

    glance-cache-preftecher utility was failing because it was not
    setting global threadpool model while initilizing the tool.

    Closes-Bug: #2065087
    Change-Id: I0c09dd7c0d81178ebf2aa5efd19c54866fc8791b
    (cherry picked from commit 32ee57ccdeea90a86bce1e5e33d10fab115ed2d3)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/2023.2)

Reviewed: https://review.opendev.org/c/openstack/glance/+/918636
Committed: https://opendev.org/openstack/glance/commit/cec35e92bb36f2bfcdaf2cc1f05d7b5a0f3a07cc
Submitter: "Zuul (22348)"
Branch: stable/2023.2

commit cec35e92bb36f2bfcdaf2cc1f05d7b5a0f3a07cc
Author: Abhishek Kekane <email address hidden>
Date: Tue May 7 18:05:24 2024 +0000

    Fix broken glance-cache-prefetcher utility

    glance-cache-preftecher utility was failing because it was not
    setting global threadpool model while initilizing the tool.

    Closes-Bug: #2065087
    Change-Id: I0c09dd7c0d81178ebf2aa5efd19c54866fc8791b
    (cherry picked from commit 32ee57ccdeea90a86bce1e5e33d10fab115ed2d3)
    (cherry picked from commit 99540a990fceca89d0e4e73493f4cc05dbd5441e)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/2023.1)

Reviewed: https://review.opendev.org/c/openstack/glance/+/918637
Committed: https://opendev.org/openstack/glance/commit/70170d2a99f9d30bddcc55a9183133a16ed14c06
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 70170d2a99f9d30bddcc55a9183133a16ed14c06
Author: Abhishek Kekane <email address hidden>
Date: Tue May 7 18:05:24 2024 +0000

    Fix broken glance-cache-prefetcher utility

    glance-cache-preftecher utility was failing because it was not
    setting global threadpool model while initilizing the tool.

    Closes-Bug: #2065087
    Change-Id: I0c09dd7c0d81178ebf2aa5efd19c54866fc8791b
    (cherry picked from commit 32ee57ccdeea90a86bce1e5e33d10fab115ed2d3)
    (cherry picked from commit 99540a990fceca89d0e4e73493f4cc05dbd5441e)
    (cherry picked from commit cec35e92bb36f2bfcdaf2cc1f05d7b5a0f3a07cc)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 29.0.0.0b1

This issue was fixed in the openstack/glance 29.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.