[Spacewalk-list] kickstart tree after repo sync using

Waldirio Manhães Pinheiro waldirio at gmail.com
Wed Oct 8 13:56:05 UTC 2014


Hello Friends,

Thanks for all answers.

I understood the necessity to create manually the structure to implement
kickstart, btw according the command spacewalk-repo-sync, in manual page we
can see

--sync-kickstart
              Attempt  to  create  kickstartable tree (distribution) if
there is subdirectory
              images/pxeboot/ under repoâs URL.

So I was looking for in backend python scripts and IMHO, I believe the
command should create a directory
/var/satellite/rhn/kickstart/<org_id>/<label>

So what I did was

1. Create a simple structure like a dvd, with 5 packages only, recreated
the repodata and move the directory images (to test the script)

####
[root at spacewalk reposync]# spacewalk-repo-sync -c base01  --url=
http://192.168.0.177/repo/6.x --sync-kickstart
#### Channel label: base01 ####
Repo URL: http://192.168.0.177/repo/6.x
Packages in repo:                 5
No new packages to sync.
Repo http://192.168.0.177/repo/6.x has 0 errata.
ERROR: kickstartable tree not detected (no
http://192.168.0.177/repo/6.x/images/pxeboot/)
Sync completed.
Total time: 0:00:00
####

Ok, was not found the directory images/pxeboot

after, I rollback the directory and run the command again

####
[root at spacewalk reposync]# spacewalk-repo-sync -c base01  --url=
http://192.168.0.177/repo/6.x --sync-kickstart
#### Channel label: base01 ####
Repo URL: http://192.168.0.177/repo/6.x
Packages in repo:                 5
No new packages to sync.
Repo http://192.168.0.177/repo/6.x has 0 errata.
ERROR: null value in column "label" violates not-null constraint

Sync completed.
Total time: 0:00:00
####

Ok, about the error "ERROR: null value in column "label" violates not-null
constraint" I found a BZ and patch

https://bugzilla.redhat.com/show_bug.cgi?id=1070866
https://bugzilla.redhat.com/attachment.cgi?id=868600&action=diff

According the BZ/Patch, the command cannot be executed by cli, so I just
created via webUi, works fine "according logs in reposync", but was not
generated/created a new dir in kickstart directory.


To conclude, in SW environment, the command spacewalk-repo-sync, when
configured by webUi should or not create any kickstart directory (tree) if
in the source there is the directory images/pxeboot ?!

Sorry for a long email, but this is a simple question that I really
appreciate the "gurus" comments.

______________
B'Regards
Waldirio
msn: waldirio at gmail.com
Skype: waldirio
Site: www.waldirio.com.br
Blog: blog.waldirio.com.br
LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
PGP: www.waldirio.com.br/public.html

On Wed, Oct 8, 2014 at 4:19 AM, Tomas Lestach <tlestach at redhat.com> wrote:

> I think you miss a step to create a kickstart distribution.
> Check
> 3.1.2.2. Kickstart Trees / Procedure 3.2. Installing Kickstart Trees
> Manually
> of
>
> https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.6/html/Getting_Started_Guide/chap-Getting_Started_Guide-System_Provisioning.html#sect-Reference_Guide-Introduction_to_Kickstart-Kickstart_Explained
>
> Regards,
> --
> Tomas Lestach
> Red Hat Satellite Engineering, Red Hat
>
>
> ----- Original Message -----
> > From: "Waldirio Manhães Pinheiro" <waldirio at gmail.com>
> > To: spacewalk-list at redhat.com
> > Sent: Wednesday, October 8, 2014 4:17:54 AM
> > Subject: [Spacewalk-list] kickstart tree after repo sync using
> >
> >
> >
> > Dear friends, good morning
> >
> >
> >
> > After create a repo/base channel and sync with flag
> > "--sync-kickstart" checked (via cli or webUi), I can't see the
> > kickstart tree when creating a new ks profile.
> >
> >
> >
> > IMHO should appear automatically the structure of the OS that we had
> > a complete download/sync. That´s correct ?!
> >
> >
> > I'm using spacewalk 2.2
> >
> >
> > Bellow my steps
> >
> >
> > 1. Create a new repo
> > 2. Create a new channel and link with repo
> > 3. Synchronize the channel
> > 4. After complete, try to create a new ks profile
> >
> >
> > What appear when I try to create a new ks
> > In Base Channel appear: No Kickstartable Channel found.
> > In Kickstartable Tree: No trees were found for the selected channel
> >
> >
> > What I wish :)
> > Show the ks structure for the version that was realized the
> > download/sync, for example, CentOS6.5
> >
> >
> > I can create the structure manually and this works fine, but I really
> > believe, just selecting the option --sync-kickstart should works.
> > That's correct ?!
> >
> >
> > Bellow a command sample to sync
> > # spacewalk-repo-sync -crepo1 --url=
> > http://mirror.globo.com/centos/6.5/os/x86_64/ --sync-kickstart
> >
> >
> > Thanks for your help!
> >
> > ______________
> > B'Regards
> > Waldirio
> > msn: waldirio at gmail.com
> > Skype: waldirio
> > Site: www.waldirio.com.br
> > Blog: blog.waldirio.com.br
> > LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
> > PGP: www.waldirio.com.br/public.html
> > _______________________________________________
> > Spacewalk-list mailing list
> > Spacewalk-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/spacewalk-list
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20141008/557c64e0/attachment.htm>


More information about the Spacewalk-list mailing list