TypeError: object of type 'object' has no len() from resources_from_request_spec when cells are down
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Compute (nova) |
Low
|
Matt Riedemann | ||
| Train |
Low
|
Unassigned |
Bug Description
Seen here:
cell1 is down so the call to scatter_
https:/
which results in an error here:
The HostManager.
Matt Riedemann (mriedem) wrote : | #1 |
Fix proposed to branch: master
Review: https:/
Changed in nova: | |
status: | Triaged → In Progress |
OpenStack Infra (hudson-openstack) wrote : | #3 |
Fix proposed to branch: master
Review: https:/
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Choi-Sung-Hoon (knu-cse) |
Change abandoned by Choi-Sung-Hoon (<email address hidden>) on branch: master
Review: https:/
Fix proposed to branch: master
Review: https:/
Change abandoned by Choi-Sung-Hoon (<email address hidden>) on branch: master
Review: https:/
Reason: Following Brin Zhang's comment, I abandon this change.
Changed in nova: | |
assignee: | Choi-Sung-Hoon (knu-cse) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Choi-Sung-Hoon (knu-cse) |
Changed in nova: | |
assignee: | Choi-Sung-Hoon (knu-cse) → Matt Riedemann (mriedem) |
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit 0d9622f581e830e
Author: Matt Riedemann <email address hidden>
Date: Fri Dec 20 10:03:23 2019 -0500
Handle cell failures in get_compute_
get_
function but was not handling the case that a failure result
was returned, which could be the called function raising some
exception or the cell timing out. This causes issues when the
caller of get_compute_
ComputeNodeList back and can do something like len(nodes) on it
which fails when the result is not iterable.
To be clear, if a cell is down there are going to be problems
which likely result in a NoValidHost error during scheduling, but
this avoids an ugly TypeError traceback in the scheduler logs.
Change-Id: Ia54b5adf0a125a
Closes-Bug: #1857139
Changed in nova: | |
status: | In Progress → Fix Released |
http:// logstash. openstack. org/#dashboard/ file/logstash. json?query= message% 3A%5C%22Excepti on%20during% 20message% 20handling% 3A%20TypeError% 3A%20object% 20of%20type% 20'object' %20has% 20no%20len( )%5C%22% 20AND%20tags% 3A%5C%22screen- n-sch.txt% 5C%22&from= 7d