FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 04-19-2008, 05:51 PM
Pablo Iranzo Gómez
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Hi
Attached are a patch for cobbler missing the config entry to
submited isc_set_host_name with default to 0.

The patch for Koan is for being used with newer versions of
cobbler 0.9x after Michael's patch for "svc/op=ks", as the path for the
kickstart which koan uses, is "hard-coded".

I think that the behaviour should be cobbler to provided the URL
for the kickstart, removing dependencies between cobbler and koan, or at
least, provide version number from cobbler to koan "client", for koan to
construct URL's for kickstart, kernel, etc appropiately. ¿omments?

Regards
Pablo



--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará____________________________________________ ___
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-19-2008, 05:58 PM
Pablo Iranzo Gómez
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Regarding this upgrade...

Koan can now replace boot entry for reprovision a system but
during the upgrade from cobbler 0.8 to 0.9, I found another problem:

Cobbler repos are not longer valid... so any single system which
was kickstarted with cobber and keeps the repos provided by it, should be
"tweaked".

As a profile (associated to a system) can be updated from time to
time...
¿what do you think about "koan --upgrade-repos"

That will update system repos to the ones associated with current
profile, or for safety, to installation profile repos, but based on new
cobbler provide information, overwriting actual ones for the good ones.

Regards
Pablo



--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Sat, 19 Apr 2008, Pablo Iranzo Gómez wrote:

>
> Hi
> Attached are a patch for cobbler missing the config entry to
> submited isc_set_host_name with default to 0.
>
> The patch for Koan is for being used with newer versions of
> cobbler 0.9x after Michael's patch for "svc/op=ks", as the path for the
> kickstart which koan uses, is "hard-coded".
>
> I think that the behaviour should be cobbler to provided the URL
> for the kickstart, removing dependencies between cobbler and koan, or at
> least, provide version number from cobbler to koan "client", for koan to
> construct URL's for kickstart, kernel, etc appropiately. ¿omments?
>
> Regards
> Pablo
>
>
>
> --
> Pablo Iranzo Gómez
> (http://Alufis35.uv.es/~iranzo/)
> (PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
> --
> Postulado de Boling sobre la Ley de Murphy:
>
> Si se encuentra bien, no se preocupe. Se le pasará

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-19-2008, 08:55 PM
Pablo Iranzo Gómez
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Hi
I've seen that Koan puts kickstart inside the initrd.img and
references it as file:ks.cfg, but I don't know the reason for this.

In order to enable auto-registration (based on
pxelinux.cfg/defaults entries), the ks should we changed by this diff on
koan/app.py:


--------------------------------------------------------------------

@@ -782,7 +779,7 @@ class Koan:
if not os.path.exists("/sbin/grubby"):
raise InfoException, "grubby is not installed"
k_args =
self.safe_load(profile_data,'kernel_options',defau lt=')
- k_args = k_args + " ks=file:ks.cfg"
+ k_args = k_args + " ks=" + profile_data["kickstart"]

kickstart = self.safe_load(profile_data,'kickstart')

--------------------------------------------------------------------

So the ks= would be constructed with the cobbler-provided ks

Regards
Pablo





--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Sat, 19 Apr 2008, Pablo Iranzo Gómez wrote:

>
> Hi
> Attached are a patch for cobbler missing the config entry to
> submited isc_set_host_name with default to 0.
>
> The patch for Koan is for being used with newer versions of
> cobbler 0.9x after Michael's patch for "svc/op=ks", as the path for the
> kickstart which koan uses, is "hard-coded".
>
> I think that the behaviour should be cobbler to provided the URL
> for the kickstart, removing dependencies between cobbler and koan, or at
> least, provide version number from cobbler to koan "client", for koan to
> construct URL's for kickstart, kernel, etc appropiately. ¿omments?
>
> Regards
> Pablo
>
>
>
> --
> Pablo Iranzo Gómez
> (http://Alufis35.uv.es/~iranzo/)
> (PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
> --
> Postulado de Boling sobre la Ley de Murphy:
>
> Si se encuentra bien, no se preocupe. Se le pasará

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-19-2008, 10:36 PM
Pablo Iranzo Gómez
 
Default Patches for cobbler and koan (for cobbler 0.9x)

After aplying this patch: (previous mail + extended for koan -r):
--------------------
diff --git a/koan/app.py b/koan/app.py
index dba6c65..b5837c5 100755
--- a/koan/app.py
+++ b/koan/app.py
@@ -534,13 +534,10 @@ class Koan:
# initialise the profile, from the server if any
if self.profile:
profile_data = self.get_profile_xmlrpc(self.profile)
- filler = "kickstarts"
elif self.system:
profile_data = self.get_system_xmlrpc(self.system)
- filler = "kickstarts_sys"
else:
profile_data = {}
- filler = None

if self.no_cobbler:
# if the value given to no_cobbler has no url protocol
@@ -563,8 +560,8 @@ class Koan:
if profile_data.has_key("kickstart"):

# fix URLs
- if filler and profile_data["kickstart"].startswith("/"):
- profile_data["kickstart"] = "http://%s/cblr/%s/%s/ks.cfg"
% (profile_data['server'], filler, profile_data['name'])
+ if profile_data["kickstart"].startswith("/"):
+ profile_data["kickstart"] =
"http://%s/cblr/svc/?op=ks&profile=%s" % (profile_data['server'],
profile_data['profile'])

# find_kickstart source tree in the kickstart file
self.get_install_tree_from_kickstart(profile_data)
@@ -782,7 +779,7 @@ class Koan:
if not os.path.exists("/sbin/grubby"):
raise InfoException, "grubby is not installed"
k_args =
self.safe_load(profile_data,'kernel_options',defau lt=')
- k_args = k_args + " ks=file:ks.cfg"
+ k_args = k_args + " ks=" + profile_data["kickstart"]

kickstart = self.safe_load(profile_data,'kickstart')
----------------------------



I'm getting:


# koan -s 172.26.0.254 -V Xen -v --profile=wks-CentOS
'profile'

Any hint on what I did wrong?

Thanks
Pablo




--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Sat, 19 Apr 2008, Pablo Iranzo Gómez wrote:

>
> Hi
> Attached are a patch for cobbler missing the config entry to
> submited isc_set_host_name with default to 0.
>
> The patch for Koan is for being used with newer versions of
> cobbler 0.9x after Michael's patch for "svc/op=ks", as the path for the
> kickstart which koan uses, is "hard-coded".
>
> I think that the behaviour should be cobbler to provided the URL
> for the kickstart, removing dependencies between cobbler and koan, or at
> least, provide version number from cobbler to koan "client", for koan to
> construct URL's for kickstart, kernel, etc appropiately. ¿omments?
>
> Regards
> Pablo
>
>
>
> --
> Pablo Iranzo Gómez
> (http://Alufis35.uv.es/~iranzo/)
> (PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
> --
> Postulado de Boling sobre la Ley de Murphy:
>
> Si se encuentra bien, no se preocupe. Se le pasará

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-19-2008, 10:46 PM
Pablo Iranzo Gómez
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Forgot, this just happens if specifying --profile on command line.

If doing specifying "system" I got:

libvir: XML error : line 10: EntityRef: expecting ';'
libvir: Xen Daemon error : XML description for domain is not well formed or invalid
virDomainCreateLinux() failed XML description for domain is not well
formed or invalid

Regards
Pablo



--
Pablo Iranzo Gómez
(http://Alufis35.uv.es/~iranzo/)
(PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
--
Postulado de Boling sobre la Ley de Murphy:

Si se encuentra bien, no se preocupe. Se le pasará

On Sun, 20 Apr 2008, Pablo Iranzo Gómez wrote:

> After aplying this patch: (previous mail + extended for koan -r):
> --------------------
> diff --git a/koan/app.py b/koan/app.py
> index dba6c65..b5837c5 100755
> --- a/koan/app.py
> +++ b/koan/app.py
> @@ -534,13 +534,10 @@ class Koan:
> # initialise the profile, from the server if any
> if self.profile:
> profile_data = self.get_profile_xmlrpc(self.profile)
> - filler = "kickstarts"
> elif self.system:
> profile_data = self.get_system_xmlrpc(self.system)
> - filler = "kickstarts_sys"
> else:
> profile_data = {}
> - filler = None
>
> if self.no_cobbler:
> # if the value given to no_cobbler has no url protocol
> @@ -563,8 +560,8 @@ class Koan:
> if profile_data.has_key("kickstart"):
>
> # fix URLs
> - if filler and profile_data["kickstart"].startswith("/"):
> - profile_data["kickstart"] = "http://%s/cblr/%s/%s/ks.cfg"
> % (profile_data['server'], filler, profile_data['name'])
> + if profile_data["kickstart"].startswith("/"):
> + profile_data["kickstart"] =
> "http://%s/cblr/svc/?op=ks&profile=%s" % (profile_data['server'],
> profile_data['profile'])
>
> # find_kickstart source tree in the kickstart file
> self.get_install_tree_from_kickstart(profile_data)
> @@ -782,7 +779,7 @@ class Koan:
> if not os.path.exists("/sbin/grubby"):
> raise InfoException, "grubby is not installed"
> k_args =
> self.safe_load(profile_data,'kernel_options',defau lt=')
> - k_args = k_args + " ks=file:ks.cfg"
> + k_args = k_args + " ks=" + profile_data["kickstart"]
>
> kickstart = self.safe_load(profile_data,'kickstart')
> ----------------------------
>
>
>
> I'm getting:
>
>
> # koan -s 172.26.0.254 -V Xen -v --profile=wks-CentOS
> 'profile'
>
> Any hint on what I did wrong?
>
> Thanks
> Pablo
>
>
>
>
> --
> Pablo Iranzo Gómez
> (http://Alufis35.uv.es/~iranzo/)
> (PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
> --
> Postulado de Boling sobre la Ley de Murphy:
>
> Si se encuentra bien, no se preocupe. Se le pasará
>
> On Sat, 19 Apr 2008, Pablo Iranzo Gómez wrote:
>
> >
> > Hi
> > Attached are a patch for cobbler missing the config entry to
> > submited isc_set_host_name with default to 0.
> >
> > The patch for Koan is for being used with newer versions of
> > cobbler 0.9x after Michael's patch for "svc/op=ks", as the path for the
> > kickstart which koan uses, is "hard-coded".
> >
> > I think that the behaviour should be cobbler to provided the URL
> > for the kickstart, removing dependencies between cobbler and koan, or at
> > least, provide version number from cobbler to koan "client", for koan to
> > construct URL's for kickstart, kernel, etc appropiately. ¿omments?
> >
> > Regards
> > Pablo
> >
> >
> >
> > --
> > Pablo Iranzo Gómez
> > (http://Alufis35.uv.es/~iranzo/)
> > (PGPKey Available on http://www.uv.es/~iranzop/PGPKey.pgp)
> > --
> > Postulado de Boling sobre la Ley de Murphy:
> >
> > Si se encuentra bien, no se preocupe. Se le pasará
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-21-2008, 02:49 PM
Michael DeHaan
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Pablo Iranzo Gómez wrote:

Hi
Attached are a patch for cobbler missing the config entry to
submited isc_set_host_name with default to 0.

The patch for Koan is for being used with newer versions of
cobbler 0.9x after Michael's patch for "svc/op=ks", as the path for the
kickstart which koan uses, is "hard-coded".

I think that the behaviour should be cobbler to provided the URL
for the kickstart, removing dependencies between cobbler and koan, or at
least, provide version number from cobbler to koan "client", for koan to
construct URL's for kickstart, kernel, etc appropiately. ¿omments?

Regards
Pablo





Well, the sync code reorganization is still in progress, and as per
ticket 108 which I opened up on myself, there is lots of testing to do
yet


It looks like your first koan patch is to an older version than what I
had checked in, so that will not be applied. I will apply the second
one about the default value missing from settings.




------------------------------------------------------------------------

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-21-2008, 02:51 PM
Pablo Iranzo Gómez
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Thanks!
Pablo
PD: Koan code was pulled from git, did you finally created a devel
branch or just one "master"?


El lun, 21-04-2008 a las 10:49 -0400, Michael DeHaan escribió:
> Pablo Iranzo Gómez wrote:
> > Hi
> > Attached are a patch for cobbler missing the config entry to
> > submited isc_set_host_name with default to 0.
> >
> > The patch for Koan is for being used with newer versions of
> > cobbler 0.9x after Michael's patch for "svc/op=ks", as the path for the
> > kickstart which koan uses, is "hard-coded".
> >
> > I think that the behaviour should be cobbler to provided the URL
> > for the kickstart, removing dependencies between cobbler and koan, or at
> > least, provide version number from cobbler to koan "client", for koan to
> > construct URL's for kickstart, kernel, etc appropiately. ¿omments?
> >
> > Regards
> > Pablo
> >
> >
> >
>
> Well, the sync code reorganization is still in progress, and as per
> ticket 108 which I opened up on myself, there is lots of testing to do
> yet
>
> It looks like your first koan patch is to an older version than what I
> had checked in, so that will not be applied. I will apply the second
> one about the default value missing from settings.
>
>
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > et-mgmt-tools mailing list
> > et-mgmt-tools@redhat.com
> > https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools@redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
--

Pablo Iranzo Gómez (Pablo.Iranzo@redhat.com)
RHCE/Global Profesional Services Consultant Spain
Phone: +34 645 01 01 49 (CET/CEST)
GnuPG KeyID: 0xFAD3CF0D
---
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain
Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-21-2008, 02:57 PM
Michael DeHaan
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Pablo Iranzo Gómez wrote:

Hi
I've seen that Koan puts kickstart inside the initrd.img and
references it as file:ks.cfg, but I don't know the reason for this.



The reason for this is that when Anaconda restarts the NICs for the
first time after
BIOS, there is a rather short DHCP timeout, and depending on network
issues (such
as portfast config), the system may not consistantly achieve DHCP before
timeout.
This workaround allows for --replace-self to /always/ work because
network connectivity

is not needed to retrieve the kickstart.

See http://fedoraproject.org/wiki/Anaconda/NetworkIssues



In order to enable auto-registration (based on
pxelinux.cfg/defaults entries), the ks should we changed by this diff on
koan/app.py:

It is true that this will bypass auto-registration, but this will only
affect reinstalls, which do not update the regisration information
anyway. My main concern for auto-registration is initial machine
provisioning and new virt machines, so I suspect this is not a huge
limitation.


We could /possibly/ add a helper flag for --replace-self called
"--embed-kickstart" and make the default to not do that, though as many
times as it comes up, I believe the kickstart embedding is useful.


Now, folks might ask "why not just do registration via a wget" in %pre,
but that's apparently not valid because mac address information is not
passed along in %pre scripts -- and we do want that data.





--------------------------------------------------------------------

@@ -782,7 +779,7 @@ class Koan:
if not os.path.exists("/sbin/grubby"):
raise InfoException, "grubby is not installed"
k_args =
self.safe_load(profile_data,'kernel_options',defau lt=')
- k_args = k_args + " ks=file:ks.cfg"
+ k_args = k_args + " ks=" + profile_data["kickstart"]

kickstart = self.safe_load(profile_data,'kickstart')

--------------------------------------------------------------------

So the ks= would be constructed with the cobbler-provided ks

Regards
Pablo








_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-21-2008, 02:59 PM
Michael DeHaan
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Pablo Iranzo Gómez wrote:

Forgot, this just happens if specifying --profile on command line.

If doing specifying "system" I got:

libvir: XML error : line 10: EntityRef: expecting ';'
libvir: Xen Daemon error : XML description for domain is not well formed or invalid
virDomainCreateLinux() failed XML description for domain is not well
formed or invalid

Regards
Pablo






As I mentioned earlier, there is a more recent version in git that
already has some of this in, so I'm not applying the above.


That being said, I'm also not done with comprehensive testing on all of
this newness, so I would advise waiting a bit. Soon


--Michael


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-21-2008, 03:02 PM
Michael DeHaan
 
Default Patches for cobbler and koan (for cobbler 0.9x)

Pablo Iranzo Gómez wrote:

Thanks!
Pablo
PD: Koan code was pulled from git, did you finally created a devel
branch or just one "master"?



Koan still only has a 'master', since it does not change very often.
It is a good idea to branch it when we start doing

stable for koan at 1.0.

--Michael




El lun, 21-04-2008 a las 10:49 -0400, Michael DeHaan escribió:


Pablo Iranzo Gómez wrote:


Hi
Attached are a patch for cobbler missing the config entry to
submited isc_set_host_name with default to 0.

The patch for Koan is for being used with newer versions of
cobbler 0.9x after Michael's patch for "svc/op=ks", as the path for the
kickstart which koan uses, is "hard-coded".

I think that the behaviour should be cobbler to provided the URL
for the kickstart, removing dependencies between cobbler and koan, or at
least, provide version number from cobbler to koan "client", for koan to
construct URL's for kickstart, kernel, etc appropiately. ¿omments?

Regards
Pablo




Well, the sync code reorganization is still in progress, and as per
ticket 108 which I opened up on myself, there is lots of testing to do
yet


It looks like your first koan patch is to an older version than what I
had checked in, so that will not be applied. I will apply the second
one about the default value missing from settings.





------------------------------------------------------------------------

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

------------------------------------------------------------------------


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 07:34 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org