cellv2_delete_host when host not found by ComputeNodeList
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Mike Chen | ||
Queens |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
Problematic Situation:
1 check the hosts visible to nova compute
nova hypervisor-list
id hypervisor hostname state status
xx compute2 up enbled
2 check the hosts visible to cellv2
nova-manage cell_v2 list_hosts
cell name cell uuid hostname
cell1 xxxx compute1
cell1 xxxx compute2
Here compute1 that actually does not exist (like renamed) still remains in cell_mappings
3 now try to delete host compute1
nova-manage cell_v2 delete_host --cell_uuid xxxx --host compute1
then the following error is shown:
Traceback (most recent call last):
File "/usr/lib/
ret = fn(*fn_args, **fn_kwargs)
File "/usr/lib/
nodes = objects.
File "/usr/lib/
result = fn(cls, context, *args, **kwargs)
File "/usr/lib/
use_
File "/usr/lib/
return f(*args, **kwargs)
File "/usr/lib/
return db.compute_
File "/usr/lib/
return IMPL.compute_
File "/usr/lib/
return f(context, *args, **kwargs)
File "/usr/lib/
raise exception.
ComputeHostNotF
Not quite sure the exact way to reproduce it, but I think it would be nicer to allow the delete_host
operation for situations like this.
Changed in nova: | |
assignee: | nobody → Chen (chenn2) |
tags: | added: cells |
tags: | added: nova-manag |
tags: |
added: nova-manage removed: nova-manag |
Changed in nova: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/582171
Review: https:/