[Pulp-dev] Changing path of media dir of pulp3 (not hardcoded /var/lib/pulp)

David Davis daviddavis at redhat.com
Wed Feb 27 13:26:41 UTC 2019


By default, django stores relative paths in the database. I'm curious as to
why we're using absolute paths?

If there's not a reason we need to use absolute paths, then +1 to option 2.

David


On Wed, Feb 27, 2019 at 1:06 PM Pavel Picka <ppicka at redhat.com> wrote:

> Hello
>
> as working on #4380 I get to state I can change the path from
> '/var/lib/pulp' to whatever I need but getting hard time to receive old
> files (when got new location/mount) as artifacts has saved absolute path in
> the DB.
> My suggestions are:
> 1) easy way - user can do change only once before first run/use of pulp
> 2) my favorite - redo models to save only relative path and add base
> directory later at runtime from settings
> 3) hard way - offline db migration (when pulp is not running) to change
> path of artifacts in DB
>
> I would like to ask about your suggestions, opinions and ideas on this how
> to move this forward.
>
> --
> Pavel Picka
> Red Hat
> _______________________________________________
> Pulp-dev mailing list
> Pulp-dev at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-dev/attachments/20190227/7008dd46/attachment.htm>


More information about the Pulp-dev mailing list