@lockutils.synchronized('storage-registry-lock', 'nova-', external=True)
def get_storage_users(storage_path):
 d = {}
 id_path = os.path.join(storage_path, 'compute_nodes')
 if os.path.exists(id_path):
  with open(id_path) as f:
   d = json.loads(f.read())
 recent_users = []
 for node in d:
  if ((time.time() - d[node]) < TWENTY_FOUR_HOURS):
   recent_users.append(node)
 return recent_users

@ lockutils . synchronized ( 'storage-registry-lock' , 'nova-' , external = True ) def get_storage_users ( storage_path ) : d = { } id_path = os . path . join ( storage_path , 'compute_nodes' ) if os . path . exists ( id_path ) : with open ( id_path ) as f : d = json . loads ( f . read ( ) ) recent_users = [ ] for node in d : if ( ( time . time ( ) - d [ node ] ) < TWENTY_FOUR_HOURS ) : recent_users . append ( node ) return recent_users
get a list of all the users of this storage path .