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 06-03-2008, 08:39 PM
Michael DeHaan
 
Default Cobbler 1.0.1 (minor fixes)

Since 1.0.1 was a big release, I decided to do a quick bugfix release to
close some of the items found in the first week by all of you on the lists.
There may be another bugfix release 1.0.2 depending on what gets
reported. Meanwhile work will continue on 1.1.X (devel branch) --
items with easy workarounds that are in borderline bug/enhancement
territory will probably be fixed there instead.


- Tue Jun 03 2008 - 1.0.1
- Fix misformatted warning in "check" (with inherited profiles)
- Do not have RPM own tftpboot, just generate files in TFTP dir as detected
- Default arches to 'i386' not 'x86' for consistency, esp. in import
- When querying kickstart templates, do not return directories
- Make triggers for add/delete work for renames and copies (same triggers)
- Do not cache snippets so they can be tweaked w/o starting the service
- Make manpage reference /etc/cobbler/settings, not /var/lib
- Added manage_forward_zones/manage_reverse_zones to included config file

There is a new source RPM for cobbler available at

http://cobbler.et.redhat.com/download

No update for koan is needed and this will all hit the mirrors eventually

Thanks!

--Michael



_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-03-2008, 08:51 PM
"Joseph Boyer Jr."
 
Default Cobbler 1.0.1 (minor fixes)

FYI:

Just built cobbler 1.0.1 on RHEL 5.1 with all the latest updates and cobbler 1.0.1 errors on install FYI: cobbler 1.0.0-2 built and works.....

# rpm -ivh /usr/src/redhat/RPMS/noarch/cobbler-1.0.1-1.noarch.rpm
Preparing... ########################################### [100%]
1:cobbler ########################################### [100%]
Traceback (most recent call last):
File "/usr/bin/cobbler", line 17, in ?
import cobbler.cobbler as app
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 18, in ?
import api
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 17, in ?
import config
File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 23, in ?
import collection_distros as distros
File "/usr/lib/python2.4/site-packages/cobbler/collection_distros.py", line 17, in ?
import collection
File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line 129
self.api.profiles().add(k, save=True, with_sync=with_sync, with_triggers=with_triggers,save=True)
SyntaxError: duplicate keyword argument
ny0ckss01:/var/www
# cobbler check
Traceback (most recent call last):
File "/usr/bin/cobbler", line 17, in ?
import cobbler.cobbler as app
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 18, in ?
import api
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 17, in ?
import config
File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 23, in ?
import collection_distros as distros
File "/usr/lib/python2.4/site-packages/cobbler/collection_distros.py", line 17, in ?
import collection
File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line 129
self.api.profiles().add(k, save=True, with_sync=with_sync, with_triggers=with_triggers,save=True)
SyntaxError: duplicate keyword argument

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394

-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Tuesday, June 03, 2008 4:40 PM
To: 'et-mgmt-tools@redhat.com'
Subject: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Since 1.0.1 was a big release, I decided to do a quick bugfix release to
close some of the items found in the first week by all of you on the lists.
There may be another bugfix release 1.0.2 depending on what gets
reported. Meanwhile work will continue on 1.1.X (devel branch) --
items with easy workarounds that are in borderline bug/enhancement
territory will probably be fixed there instead.

- Tue Jun 03 2008 - 1.0.1
- Fix misformatted warning in "check" (with inherited profiles)
- Do not have RPM own tftpboot, just generate files in TFTP dir as detected
- Default arches to 'i386' not 'x86' for consistency, esp. in import
- When querying kickstart templates, do not return directories
- Make triggers for add/delete work for renames and copies (same triggers)
- Do not cache snippets so they can be tweaked w/o starting the service
- Make manpage reference /etc/cobbler/settings, not /var/lib
- Added manage_forward_zones/manage_reverse_zones to included config file

There is a new source RPM for cobbler available at

http://cobbler.et.redhat.com/download

No update for koan is needed and this will all hit the mirrors eventually

Thanks!

--Michael



_______________________________________________
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 06-03-2008, 08:54 PM
Michael DeHaan
 
Default Cobbler 1.0.1 (minor fixes)

Joseph Boyer Jr. wrote:

FYI:

Just built cobbler 1.0.1 on RHEL 5.1 with all the latest updates and cobbler 1.0.1 errors on install FYI: cobbler 1.0.0-2 built and works.....

# rpm -ivh /usr/src/redhat/RPMS/noarch/cobbler-1.0.1-1.noarch.rpm
Preparing... ########################################### [100%]
1:cobbler ########################################### [100%]
Traceback (most recent call last):
File "/usr/bin/cobbler", line 17, in ?
import cobbler.cobbler as app
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 18, in ?
import api
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 17, in ?
import config
File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 23, in ?
import collection_distros as distros
File "/usr/lib/python2.4/site-packages/cobbler/collection_distros.py", line 17, in ?
import collection
File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line 129
self.api.profiles().add(k, save=True, with_sync=with_sync, with_triggers=with_triggers,save=True)
SyntaxError: duplicate keyword argument
ny0ckss01:/var/www
# cobbler check
Traceback (most recent call last):
File "/usr/bin/cobbler", line 17, in ?
import cobbler.cobbler as app
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 18, in ?
import api
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 17, in ?
import config
File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 23, in ?
import collection_distros as distros
File "/usr/lib/python2.4/site-packages/cobbler/collection_distros.py", line 17, in ?
import collection
File "/usr/lib/python2.4/site-packages/cobbler/collection.py", line 129
self.api.profiles().add(k, save=True, with_sync=with_sync, with_triggers=with_triggers,save=True)
SyntaxError: duplicate keyword argument

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394

-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Tuesday, June 03, 2008 4:40 PM
To: 'et-mgmt-tools@redhat.com'
Subject: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Since 1.0.1 was a big release, I decided to do a quick bugfix release to
close some of the items found in the first week by all of you on the lists.
There may be another bugfix release 1.0.2 depending on what gets
reported. Meanwhile work will continue on 1.1.X (devel branch) --
items with easy workarounds that are in borderline bug/enhancement
territory will probably be fixed there instead.

- Tue Jun 03 2008 - 1.0.1
- Fix misformatted warning in "check" (with inherited profiles)
- Do not have RPM own tftpboot, just generate files in TFTP dir as detected
- Default arches to 'i386' not 'x86' for consistency, esp. in import
- When querying kickstart templates, do not return directories
- Make triggers for add/delete work for renames and copies (same triggers)
- Do not cache snippets so they can be tweaked w/o starting the service
- Make manpage reference /etc/cobbler/settings, not /var/lib
- Added manage_forward_zones/manage_reverse_zones to included config file

There is a new source RPM for cobbler available at

http://cobbler.et.redhat.com/download

No update for koan is needed and this will all hit the mirrors eventually

Thanks!

--Michael



_______________________________________________
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



Something that is apparently legal in Python 2.5. Yikes.

I'll rebuild it ASAP.

--Michael

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-03-2008, 09:29 PM
Michael DeHaan
 
Default Cobbler 1.0.1 (minor fixes)

Michael DeHaan wrote:

Joseph Boyer Jr. wrote:

FYI:

Just built cobbler 1.0.1 on RHEL 5.1 with all the latest updates and
cobbler 1.0.1 errors on install FYI: cobbler 1.0.0-2 built and
works.....





Something that is apparently legal in Python 2.5. Yikes.

I'll rebuild it ASAP.

--Michael


Here's a fix for the duplicate argument problem:

http://cobbler.et.redhat.com/download/cobbler-1.0.1-2.src.rpm

Unit tests and basic commands work for me, let me know if you find
anything else.


--Michael


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-03-2008, 09:30 PM
"Joseph Boyer Jr."
 
Default Cobbler 1.0.1 (minor fixes)

GREAT!

Thanks!

I will build and test it now.

Cheers,
joe

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Tuesday, June 03, 2008 5:29 PM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Michael DeHaan wrote:
> Joseph Boyer Jr. wrote:
>> FYI:
>>
>> Just built cobbler 1.0.1 on RHEL 5.1 with all the latest updates and
>> cobbler 1.0.1 errors on install FYI: cobbler 1.0.0-2 built and
>> works.....
>>
>>
>
> Something that is apparently legal in Python 2.5. Yikes.
>
> I'll rebuild it ASAP.
>
> --Michael

Here's a fix for the duplicate argument problem:

http://cobbler.et.redhat.com/download/cobbler-1.0.1-2.src.rpm

Unit tests and basic commands work for me, let me know if you find
anything else.

--Michael


_______________________________________________
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 06-03-2008, 10:23 PM
"Joseph Boyer Jr."
 
Default Cobbler 1.0.1 (minor fixes)

Looks good thanks again.

However now back to my original issue....

I am having a problem with kickstart templates that are using snippets. If I have snippets in my ks template cobbler will not render the ks and hence the install fails.

Here is the error from the web interface:
Mod_python error: "PythonHandler services"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)

File "/var/www/cobbler/svc/services.py", line 82, in handler
content = func( **form )

File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose

File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
return u.close()

File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
raise Fault(**self._stack[0])

Fault:


And here is the error from the HTTP server when anaconda trys to pull down the ks template from the server

<pre>
Mod_python error: "PythonHandler services"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)

File "/var/www/cobbler/svc/services.py", line 82, in handler
content = func( **form )

File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose

File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1281, in _parse_response
p.feed(response)

File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)

ExpatError: not well-formed (invalid token): line 219, column 5

</pre>

Let me know more info. I would be happy to show my snippets and ks templates. I have some cool stuff...

At least I think so :-)

PS. This all work find in 8.3 not so in 1.x

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Joseph Boyer Jr.
Sent: Tuesday, June 03, 2008 5:31 PM
To: Fedora/Linux Management Tools
Subject: RE: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

GREAT!

Thanks!

I will build and test it now.

Cheers,
joe

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Tuesday, June 03, 2008 5:29 PM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Michael DeHaan wrote:
> Joseph Boyer Jr. wrote:
>> FYI:
>>
>> Just built cobbler 1.0.1 on RHEL 5.1 with all the latest updates and
>> cobbler 1.0.1 errors on install FYI: cobbler 1.0.0-2 built and
>> works.....
>>
>>
>
> Something that is apparently legal in Python 2.5. Yikes.
>
> I'll rebuild it ASAP.
>
> --Michael

Here's a fix for the duplicate argument problem:

http://cobbler.et.redhat.com/download/cobbler-1.0.1-2.src.rpm

Unit tests and basic commands work for me, let me know if you find
anything else.

--Michael


_______________________________________________
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
 
Old 06-03-2008, 10:26 PM
"Joseph Boyer Jr."
 
Default Cobbler 1.0.1 (minor fixes)

OH forgot to mention I suspect the issue to be that /var/lib/cobbler/snippets is not accessible by the http server. If I move the snippets directory some where accessible by apache than the ks template will be render but the none of the snippets are ran????



Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Joseph Boyer Jr.
Sent: Tuesday, June 03, 2008 6:24 PM
To: Fedora/Linux Management Tools
Subject: RE: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Looks good thanks again.

However now back to my original issue....

I am having a problem with kickstart templates that are using snippets. If I have snippets in my ks template cobbler will not render the ks and hence the install fails.

Here is the error from the web interface:
Mod_python error: "PythonHandler services"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)

File "/var/www/cobbler/svc/services.py", line 82, in handler
content = func( **form )

File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose

File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
return u.close()

File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
raise Fault(**self._stack[0])

Fault:


And here is the error from the HTTP server when anaconda trys to pull down the ks template from the server

<pre>
Mod_python error: "PythonHandler services"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)

File "/var/www/cobbler/svc/services.py", line 82, in handler
content = func( **form )

File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose

File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1281, in _parse_response
p.feed(response)

File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)

ExpatError: not well-formed (invalid token): line 219, column 5

</pre>

Let me know more info. I would be happy to show my snippets and ks templates. I have some cool stuff...

At least I think so :-)

PS. This all work find in 8.3 not so in 1.x

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Joseph Boyer Jr.
Sent: Tuesday, June 03, 2008 5:31 PM
To: Fedora/Linux Management Tools
Subject: RE: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

GREAT!

Thanks!

I will build and test it now.

Cheers,
joe

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Tuesday, June 03, 2008 5:29 PM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Michael DeHaan wrote:
> Joseph Boyer Jr. wrote:
>> FYI:
>>
>> Just built cobbler 1.0.1 on RHEL 5.1 with all the latest updates and
>> cobbler 1.0.1 errors on install FYI: cobbler 1.0.0-2 built and
>> works.....
>>
>>
>
> Something that is apparently legal in Python 2.5. Yikes.
>
> I'll rebuild it ASAP.
>
> --Michael

Here's a fix for the duplicate argument problem:

http://cobbler.et.redhat.com/download/cobbler-1.0.1-2.src.rpm

Unit tests and basic commands work for me, let me know if you find
anything else.

--Michael


_______________________________________________
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
 
Old 06-04-2008, 01:45 PM
Michael DeHaan
 
Default Cobbler 1.0.1 (minor fixes)

Joseph Boyer Jr. wrote:

OH forgot to mention I suspect the issue to be that /var/lib/cobbler/snippets is not accessible by the http server. If I move the snippets directory some where accessible by apache than the ks template will be render but the none of the snippets are ran????



That's not the problem as cobblerd reads that directory, not Apache.
Removing it will obviously keep it from being found.


What you likely have is a Cheetah syntax error, which I'm not sure why
you didn't have before, but that's likely it. You should
be able to find more information in /var/log/cobbler/cobbler.log.
Paste the last few tracebacks and we'll see what's up.


--Michael





-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Joseph Boyer Jr.
Sent: Tuesday, June 03, 2008 6:24 PM
To: Fedora/Linux Management Tools
Subject: RE: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Looks good thanks again.

However now back to my original issue....

I am having a problem with kickstart templates that are using snippets. If I have snippets in my ks template cobbler will not render the ks and hence the install fails.

Here is the error from the web interface:
Mod_python error: "PythonHandler services"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)

File "/var/www/cobbler/svc/services.py", line 82, in handler
content = func( **form )

File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose

File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
return u.close()

File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
raise Fault(**self._stack[0])

Fault:


And here is the error from the HTTP server when anaconda trys to pull down the ks template from the server

<pre>
Mod_python error: "PythonHandler services"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)

File "/var/www/cobbler/svc/services.py", line 82, in handler
content = func( **form )

File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose

File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1281, in _parse_response
p.feed(response)

File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)

ExpatError: not well-formed (invalid token): line 219, column 5

</pre>

Let me know more info. I would be happy to show my snippets and ks templates. I have some cool stuff...



_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 06-04-2008, 02:32 PM
"Joseph Boyer Jr."
 
Default Cobbler 1.0.1 (minor fixes)

Hi Mike...

Here are the trace backs from wget http://10.0.254.169/cblr/svc/op/ks/system/ny0dlab01, and /var/log/cobbler/cobbler.log

Wget ks template...

<pre>
Mod_python error: "PythonHandler services"

Traceback (most recent call last):

File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)

File "/var/www/cobbler/svc/services.py", line 82, in handler
content = func( **form )

File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose

File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)

File "/usr/lib64/python2.4/xmlrpclib.py", line 1281, in _parse_response
p.feed(response)

File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
self._parser.Parse(data, 0)

ExpatError: not well-formed (invalid token): line 219, column 5

</pre>

Cobbler.log

2008-06-04 10:24:16,738 - remote - login succeeded; user(jboyer@LNHOLDINGS.COM)
2008-06-04 10:24:16,815 - remote - get_profiles; user(?)
2008-06-04 10:24:18,633 - remote - generate_kickstart; user(?)
2008-06-04 10:24:18,634 - api - generate_kickstart
2008-06-04 10:24:18,817 - api - Exception occured: exceptions.NameError
2008-06-04 10:24:18,817 - api - Exception value: global name '_' is not defined
2008-06-04 10:24:18,822 - api - Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/kickgen.py", line 80, in generate_kickstart_for_profile
data = self.templar.render(kfile, meta, None, g)
File "/usr/lib/python2.4/site-packages/cobbler/templar.py", line 88, in render
print _("There appears to be an formatting error in the template file.")

thanks,
joe

Joseph Boyer Jr
Enterprise Technology Services
Liquidnet Holdings, Inc.
Joseph.Boyer@liquidnet.com
T +1 646.660.8352
C +1 646.284.8394


-----Original Message-----
From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Michael DeHaan
Sent: Wednesday, June 04, 2008 9:45 AM
To: Fedora/Linux Management Tools
Subject: Re: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)

Joseph Boyer Jr. wrote:
> OH forgot to mention I suspect the issue to be that /var/lib/cobbler/snippets is not accessible by the http server. If I move the snippets directory some where accessible by apache than the ks template will be render but the none of the snippets are ran????
>

That's not the problem as cobblerd reads that directory, not Apache.
Removing it will obviously keep it from being found.

What you likely have is a Cheetah syntax error, which I'm not sure why
you didn't have before, but that's likely it. You should
be able to find more information in /var/log/cobbler/cobbler.log.
Paste the last few tracebacks and we'll see what's up.

--Michael


>
>
> -----Original Message-----
> From: et-mgmt-tools-bounces@redhat.com [mailto:et-mgmt-tools-bounces@redhat.com] On Behalf Of Joseph Boyer Jr.
> Sent: Tuesday, June 03, 2008 6:24 PM
> To: Fedora/Linux Management Tools
> Subject: RE: [et-mgmt-tools] [ANNOUNCE] Cobbler 1.0.1 (minor fixes)
>
> Looks good thanks again.
>
> However now back to my original issue....
>
> I am having a problem with kickstart templates that are using snippets. If I have snippets in my ks template cobbler will not render the ks and hence the install fails.
>
> Here is the error from the web interface:
> Mod_python error: "PythonHandler services"
>
> Traceback (most recent call last):
>
> File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
> result = object(req)
>
> File "/var/www/cobbler/svc/services.py", line 82, in handler
> content = func( **form )
>
> File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
> data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
> return self.__send(self.__name, args)
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
> verbose=self.__verbose
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
> return self._parse_response(h.getfile(), sock)
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
> return u.close()
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
> raise Fault(**self._stack[0])
>
> Fault:
>
>
> And here is the error from the HTTP server when anaconda trys to pull down the ks template from the server
>
> <pre>
> Mod_python error: "PythonHandler services"
>
> Traceback (most recent call last):
>
> File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
> result = object(req)
>
> File "/var/www/cobbler/svc/services.py", line 82, in handler
> content = func( **form )
>
> File "/usr/lib/python2.4/site-packages/cobbler/services.py", line 70, in ks
> data = self.remote.generate_kickstart(profile,system,REMO TE_ADDR,REMOTE_MAC)
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
> return self.__send(self.__name, args)
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
> verbose=self.__verbose
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
> return self._parse_response(h.getfile(), sock)
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 1281, in _parse_response
> p.feed(response)
>
> File "/usr/lib64/python2.4/xmlrpclib.py", line 527, in feed
> self._parser.Parse(data, 0)
>
> ExpatError: not well-formed (invalid token): line 219, column 5
>
> </pre>
>
> Let me know more info. I would be happy to show my snippets and ks templates. I have some cool stuff...
>

_______________________________________________
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 06-04-2008, 03:00 PM
Michael DeHaan
 
Default Cobbler 1.0.1 (minor fixes)

Joseph Boyer Jr. wrote:

Hi Mike...

Here are the trace backs from wget http://10.0.254.169/cblr/svc/op/ks/system/ny0dlab01, and /var/log/cobbler/cobbler.log

Wget ks template...

ExpatError: not well-formed (invalid token): line 219, column 5

</pre>

Cobbler.log

2008-06-04 10:24:16,738 - remote - login succeeded; user(jboyer@LNHOLDINGS.COM)
2008-06-04 10:24:16,815 - remote - get_profiles; user(?)
2008-06-04 10:24:18,633 - remote - generate_kickstart; user(?)
2008-06-04 10:24:18,634 - api - generate_kickstart
2008-06-04 10:24:18,817 - api - Exception occured: exceptions.NameError
2008-06-04 10:24:18,817 - api - Exception value: global name '_' is not defined
2008-06-04 10:24:18,822 - api - Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/kickgen.py", line 80, in generate_kickstart_for_profile
data = self.templar.render(kfile, meta, None, g)
File "/usr/lib/python2.4/site-packages/cobbler/templar.py", line 88, in render
print _("There appears to be an formatting error in the template file.")




Can you email me your template file? (http://cobbler.pastebin.com
works pretty well for this... perhaps you want to join #cobbler on
irc.freenode.net and share it)


It appears that there is something wrong about a "_", and around 219,
but without looking at the file it's hard to say.


--Michael


_______________________________________________
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 03:23 AM.

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