nvmeof connector: race condition in create_hostnqn

Bug #1961253 reported by Brian Rosmaita
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-brick
Triaged
Medium
Unassigned

Bug Description

Gorka noticed this in reviewing a change to os_brick/privileged/nvmeof.py:

create_hostnqn() checks for the existence of a file containing a previously generated hostnqn, and if it's not there, generates a new one and writes the file. This function needs a file lock, because 2 threads/processes could be checking for the existence of the file, not find it, and both proceed to create the hostnqn.

Changed in os-brick:
status: New → Triaged
importance: Undecided → Medium
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.