[Spacewalk-list] Spacewalk-list Digest, Vol 57, Issue 10

Todd_Walters at unigroupinc.com Todd_Walters at unigroupinc.com
Fri Feb 8 16:16:59 UTC 2013


DB migration - Postgres - Spacewalk 1.8 (Tom Brown)
Re: Spacewalk-list Digest, Vol 57,               Issue 9 (template issue)

Tom - for postgres, pg_dump and pg_restore work great.  For  embedded 
Oracle we run a back up script using db-control, which from man pages says 
" db-control - utility for managing the RHN Satellite database"   You can 
use this to restore as well.

Backup
------------
su - oracle -c 'logdir=/logs/techserv;
                backupdir=/software/backups;
                d=db-backup-$(date "+%F");
                log=$logdir/$d.log;
                mkdir -p $backupdir/$d;
                db-control backup $backupdir/$d;
                db-control verify $backupdir/$d' >> $log 2>&1

Restore from man page for db-control
-----------------
db-control  restore DIRNAME
            Restores the database from backup kept in DIRNAME.  Database 
must be stopped for this
            command to run successfully.

            Before restoring, the files in DIRNAME are verified.  Once all 
files are verified
            successfully, the restore runs.  Once the restore is 
completed, the database may be
            started and run normally.



Jonathan,

Glad that worked for you. For the syslinux, I know when I ran a cobbler 
get-loaders I got the wrong syslinux which caused syslinux error and I had 
problems when I ran cobbler buildiso. To resolve this I updated and copied 
the menu.c32 to /var/lib/cobbler/loaders which resolved my issue. Not sure 
if this syslinux is same problem you seen? Here's link 
https://fedorahosted.org/cobbler/ticket/606


Thanks,

Todd Walters
Sr System Software Programmer / Linux








Today's Topics:

   5. Re: Spacewalk-list Digest, Vol 57,                 Issue 9 (template 
issue)
      (Jonathan Scott)

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

Message: 5
Date: Fri, 8 Feb 2013 11:04:04 -0500
From: Jonathan Scott <lists at xistenz.org>
To: spacewalk-list <spacewalk-list at redhat.com>
Subject: Re: [Spacewalk-list] Spacewalk-list Digest, Vol 57, Issue 9
                 (template issue)
Message-ID:
 <CAPT3h8ncTs+WHSpTybod83D5BZbokvbLZ-hJaJwO8_QDGp6yyg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thank you for the nudge in the right direction. I don't know why I didn't
try to isolate it that way to begin with. You're 100% correct; there was 
an
unhappy snippet. Once isolated and removed from the post file the 
kickstart
compiled properly. I blew away, resync'd cobbler (found an error about
missing syslinux package... not sure why that didn't install as part of 
the
spacewalk install if it's a requirement), re-added the snippet, and we're
good to go.

Thanks again!
Jonathan


On Fri, Feb 8, 2013 at 9:37 AM, <Todd_Walters at unigroupinc.com> wrote:

> Hello Jonathan,
>
> I have experienced this issue a few times with snippets. Usually I had
> some error in my snippet and then it seemed to mess up the whole 
kickstart
> profile I was trying to attach it to. If I remember I had to delete that
> snippet and kickstart profile, run cobbler sync, recreate kickstart
> profile,( just cloned and that worked), then rebuild snippet making sure 
it
> was ok. Then would place in my kickstart script and when I clicked 
template
> it worked. I had tried several times, and like I mentioned if I got 
those
> errors below once, only way I was able to resolve was to both rebuild
> snippet and profile.
>
> Thanks,
> Todd Walters
> Sr System Software Programmer / Linux
> ------------------------------
>
> Message: 5
> Date: Fri, 8 Feb 2013 08:28:53 -0500
> From: Jonathan Scott <lists at xistenz.org>
> To: spacewalk-list <spacewalk-list at redhat.com>
> Subject: Re: [Spacewalk-list] Kickstart script generation error with
>    snippet   "template"
> Message-ID:
>    <CAPT3h8=Lg_ZXq=BbCy6FNtS9B-aY8=5oZ=4_cJPa9EaOPGpJsw at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Anyone have any insight? I'm dead in the water here.
>
> Thanks,
> Jonathan
>
>
> On Wed, Feb 6, 2013 at 10:27 AM, Jonathan Scott <lists at xistenz.org> 
wrote:
>
> > Good Morning,
> >
> > I just tried to build a new kickstart profile on my freshly patched
> > Spacewalk 1.8 install, only to be greeted with the following error:
> >
> >
> > # *** ERROR ***
> > #
> > # There is a templating error preventing this file from rendering
> correctly.
> > #
> > # This is most likely not due to a bug in Cobbler and is something you
> can fix.
> > #
> > # Look at the message below to see what things are causing problems.
> > #
> > # (1) Does the template file reference a $variable that is not 
defined?
> > # (2) is there a formatting error in a Cheetah directive?
> > # (3) Should dollar signs ($) be escaped that are not being escaped?
> > #
> > # Try fixing the problem and then investigate to see if this message 
goes
> > # away or changes.
> > #
> > #
> > # 'ascii' codec can't decode byte 0xe2 in position 3786: ordinal not 
in
> range(128)
> > #   File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line
> 139, in render
> > #     data_out = t.respond()
> > #
> > #   File
> "cheetah_DynamicallyCompiledCheetahTemplate_1360163568_47_92820.py", 
line
> 750, in respond
> > #
> > #   File
> "cheetah_DynamicallyCompiledCheetahTemplate_1360163568_47_92820.py", 
line
> 207, in __errorCatcher21
> > #
> > #   File "<string>", line 1, in <module>
> > #
> > #   File "/usr/lib/python2.6/site-packages/cobbler/template_api.py",
> line 335, in SNIPPET
> > #     result = BuiltinTemplate.SNIPPET(self, file)
> > #
> > #   File "DynamicallyCompiledCheetahTemplate.py", line 85, in SNIPPET
> > #
> > #   File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", 
line
> 1583, in _handleCheetahInclude
> > #     nestedTemplateClass = compiler.compile(source=source, file=file)
> > #
> > #   File "/usr/lib/python2.6/site-packages/cobbler/template_api.py",
> line 292, in compile
> > #     return Cheetah.Template.Template.compile(*args, **kwargs)
> > #
> > #   File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", 
line
> 737, in compile
> > #     settings=(compilerSettings or {}))
> > #
> > #   File "/usr/lib/python2.6/site-packages/cobbler/template_api.py",
> line 132, in __init__
> > #     Cheetah.Compiler.ModuleCompiler.__init__(self, *args, **kwargs)
> > #
> > #   File "/usr/lib64/python2.6/site-packages/Cheetah/Compiler.py", 
line
> 1575, in __init__
> > #     source = unicode(source)
> > #
> >
> > It seems to be associated with the "Template" portion of the pre/post
> > script section calling out to my snippets (which work on my older 1.7
> > install without issue). Unchecking this checkbox resolves the issue, 
but
> > breaks my kickstart methodology. I did some googling and found that 
this
> > was a bug in cobbler2-2.0.10 and was supposed to be resolved in
> > cobbler2-2.0.11, however, I have cobbler2-2.0.11-4 installed and it 
seems
> > to have persisted. Any ideas as to how I can get this resolved?
> >
> > Thanks,
> > Jonathan
> >
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> 
https://www.redhat.com/archives/spacewalk-list/attachments/20130208/cc88f757/attachment.html

> >
>
> ------------------------------
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
> End of Spacewalk-list Digest, Vol 57, Issue 9
> *********************************************
>
>
>
>
>
> ########################################################################
> The information contained in this message, and any attachments thereto,
> is intended solely for the use of the addressee(s) and may contain
> confidential and/or privileged material.  Any review, retransmission,
> dissemination, copying, or other use of the transmitted information is
> prohibited.  If you received this in error, please contact the sender
> and delete the material from any computer.  UNIGROUPINC.COM
> ########################################################################
>
>
> _______________________________________________
> 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: <
https://www.redhat.com/archives/spacewalk-list/attachments/20130208/e224d1b1/attachment.html
>

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

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

End of Spacewalk-list Digest, Vol 57, Issue 10
**********************************************


######################################################################## 
The information contained in this message, and any attachments thereto, 
is intended solely for the use of the addressee(s) and may contain 
confidential and/or privileged material.  Any review, retransmission, 
dissemination, copying, or other use of the transmitted information is 
prohibited.  If you received this in error, please contact the sender 
and delete the material from any computer.  UNIGROUPINC.COM 
########################################################################
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20130208/8cac0b73/attachment.htm>


More information about the Spacewalk-list mailing list