[Pulp-list] working directories proposal

Dennis Kliban dkliban at redhat.com
Mon Dec 15 19:37:35 UTC 2014


What we have now: 

  - Storage directory defined here [0]

  - The above value is used to create a path for working directories here [1]

Proposed changes:

  - Add a new config value in the 'server' section called 'working_directory'.  It's default value would be /var/lib/storage

  - Change common utils [1] to use ['server']['working_dirctory'] config as base path.  

  - Create 'working_directories' collection in database. 

  - Add a check to repository_working_dir [2] and the rest of *_working_dir methods to determine if this method is called from a task.  If it is, add the task id, worker id, and path to 'working_directories' collection.  

  - Create a period task that will check for any tasks in final state with existing working directories and delete them.  This will need to take into account that the directories exist on a specific worker.  



Does this make sense?



[0] https://github.com/dkliban/pulp/blob/master/server/pulp/server/config.py#L85

[1] https://github.com/pulp/pulp/blob/master/server/pulp/server/managers/repo/_common.py#L264

[2] https://github.com/pulp/pulp/blob/master/server/pulp/server/managers/repo/_common.py#L82




More information about the Pulp-list mailing list