Comment 2 for bug 1099980

Revision history for this message
Sushma Korati (sushma-korati) wrote :

I am able to reproduce this issue with the above given steps.

But when I delete the distro and re-run puppet, both the profiles and distro are getting automatically created.
$cobbler list
distros:
   precise-x86_64

profiles:
   precise-x86_64
   precise-x86_64-auto
------

Reason:
This is because internally puppet scripts use "cobbler-ubuntu-import" command.

Issue:
If we re-run puppet apply without deleting the distro, "cobbler-ubuntu-import" command throws the below error:
$cobbler-ubuntu-import precise-x86_64
skipping import, as distro name already exists: precise-x86_64

$ puppet apply -v /etc/puppet/manifests/site.pp
<Execute successfully without errors>

Solution:
By adding a "exec" resource,we can check if "*-auto" profile exists else re-create. But the default profile should exists for creating the "*-auto" profile.

Checking the puppet scripts.