ironic: power sync loop makes way too many API calls
Bug #1793556 reported by
Jim Rollenhagen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Jim Rollenhagen | ||
Rocky |
Fix Committed
|
Medium
|
Jim Rollenhagen |
Bug Description
The ironic driver does not use its local cache of node data for the get_info call, which is used during the instance power sync. This results in N API calls per power sync loop, where N is the number of instances managed by the compute service doing the sync.
We should aim to use the cache and reduce this to one or less API calls.
Changed in nova: | |
assignee: | nobody → Jim Rollenhagen (jim-rollenhagen) |
status: | New → In Progress |
tags: | added: ironic |
Changed in nova: | |
importance: | Undecided → Medium |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/602127 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=9d5fb1b58e9 08ccacbbbf29341 918d0b0588a36f
Committed: https:/
Submitter: Zuul
Branch: master
commit 9d5fb1b58e908cc acbbbf29341918d 0b0588a36f
Author: Jim Rollenhagen <email address hidden>
Date: Wed Sep 12 12:11:30 2018 -0600
ironic: stop hammering ironic API in power sync loop
Use our node cache to look up the node for an instance, if we have it.
If we can't find it, fall back to hitting ironic's API.
This should be relatively up-to-date info, as it is refreshed on every
resource tracker loop.
Closes-Bug: #1793556 d42dbb8fe54949f aab89995a7e
Change-Id: I0069cbc327d952