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

Brian Bouterse bbouters at redhat.com
Wed Feb 27 13:42:22 UTC 2019


I don't know why we're using absolute paths. Option 2 makes sense to me. +1

On Wed, Feb 27, 2019 at 8:27 AM David Davis <daviddavis at redhat.com> wrote:

> 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
>>
> _______________________________________________
> 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/0aecb8bd/attachment.htm>


More information about the Pulp-dev mailing list