Potential for NameError when logging volume encryptor

Bug #1679717 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Low
Unassigned

Bug Description

This change introduced the possibility for a NameError if "control_location" is not in kwargs:

https://review.openstack.org/#/c/393901/12/nova/volume/encryptors/__init__.py@82

Tags: volumes
Matt Riedemann (mriedem)
tags: added: volumes
Changed in nova:
status: New → Triaged
Revision history for this message
Matt Riedemann (mriedem) wrote :

I guess this is low priority since control_location is required for an encryption type in cinder:

https://github.com/openstack/cinder/blob/master/cinder/api/contrib/volume_type_encryption.py#L62

https://github.com/openstack/cinder/blob/master/cinder/api/contrib/volume_type_encryption.py#L70

So we wouldn't really hit this case anyway, but we are checking for it in the nova code.

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

Fix proposed to branch: master
Review: https://review.openstack.org/453265

Changed in nova:
assignee: nobody → Lee Yarwood (lyarwood)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Lee Yarwood (<email address hidden>) on branch: master
Review: https://review.openstack.org/453265
Reason: I37ffc90c0bd57029fced251b5cfd7cd4318a0292 is dropping this code from Nova.

Revision history for this message
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing
the status back to the previous state and unassigning. If
there are active reviews related to this bug, please include
links in comments.

Changed in nova:
status: In Progress → Triaged
assignee: Lee Yarwood (lyarwood) → nobody
Revision history for this message
Matt Riedemann (mriedem) wrote :

The code was moved from nova to os-brick so marked as won't fix.

Changed in nova:
status: Triaged → Won't Fix
no longer affects: nova/ocata
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.