Tautology in libvirt driver cleanup method
Bug #1544103 reported by
Timofey Durakov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Confirmed
|
Low
|
Unassigned |
Bug Description
for clean up phase in driver destroy_disks parameter is calculated in compute manager https:/
destroy_disks = not is_shared_
Then in libvirt driver cleanup method there is expression
https:/
if destroy_disks or is_shared_
which doesn't make sense as its tautology and always evaluated to True.
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | nobody → Sana Khan (sana.khan) |
Changed in nova: | |
assignee: | Sana Khan (sana.khan) → Timofey Durakov (tdurakov) |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Confirmed |
Changed in nova: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
The expression 'if destroy_disks or is_shared_ block_storage: '
will be a Tautology only when both the ifs are evaluated as true:
https:/ /github. com/openstack/ nova/blob/ 8615de1bb7afac8 ffbd7d9c8f8e723 5c49df9b39/ nova/compute/ manager. py#L5295- L5297 /github. com/openstack/ nova/blob/ 8615de1bb7afac8 ffbd7d9c8f8e723 5c49df9b39/ nova/virt/ libvirt/ driver. py#L1115- L1116
https:/
For other cases, it won't be a Tautology.