[katello-devel] Running katello-configure multiple times
Mike Orazi
morazi at redhat.com
Fri Dec 2 15:48:07 UTC 2011
On Fri, 2011-12-02 at 16:27 +0100, Lukas Zapletal wrote:
> Hello,
>
> it seems few folks are trying to run katello-configure multiple times.
>
> I believe Rails seed script (or our "rake setup" task) do not support
> this, I would recommend to prevent this with a simple lock file.
>
> For me it shows:
>
> rake aborted!
> Validation failed: Name must be unique within an organization scope
>
> if I run it 2nd time or more.
>
> OR
>
> We could make our rake setup task idempotent. If I can remember
> correctly, we had this already.
>
> Opinions?
>
iirc aeolus-configure currently uses a lock file -- it was just way
easier at the time.
If you end up making the rake task idempotent I'd love to hear about it,
and would probably try to find a way to keep things consistent between
the projects.
Thanks,
Mike
More information about the katello-devel
mailing list