Fire in the hole...
by Michael DeHaan
Do not expect the devel branch to work at this time.
We're in the process of doing some /extremely/ cool things, for
instance, I deleted some 2000 lines of code yesterday and the program
still did what it originally did. Today I hope to delete close to the
same amount.
However it's going to take a little while to get things going again.
The end result is it's going to be a TON easier to add new fields, and
Cobbler is going to be a lot leaner of a program.
The Python API itself (not api.py, but below) may experience slight
changes, though we will ensure the XMLRPC API remains compatible.
This does, effectively, make 1.8 very "2.0-ey" in spirit. We might in
fact call this 2.0.
--Michael
14 years, 12 months
mac_address vs mac_address_eth0 variable in snippets
by Alex Davies
Hi All,
Quick question/observation:
[root@prov snippets]# cobbler system dumpvars --name=svn | grep mac
'mac_address': '00:0c:29:f3:0f:d8',
'mac_address_eth0': '00:0c:29:f3:0f:d8',
...
Using this in a snippet, I would expect both to print the MAC address,
however only the interface level MAC works:
#print $getVar('$mac_address', 'TESTing')
#print $getVar('$mac_address_eth0', 'TESTing')
In fact, the output is as follows:
#print Nothing
#print 00:0c:29:9d:8d:b9
I'm running Cobbler 1.6.2 (Centos/5; EPEL RPM).
While i'm quite sure there is a sensible reason for this, it seems confusing
that dumpvars does not provide a list of variables that can be used in
getVar. The excellent "Install VMWare kernel" snippet @
https://fedorahosted.org/cobbler/wiki/KickstartSnippets (Written by Matt
Hyclak) should also be updated to use _eth0 if this is intended behaviour..
Many thanks,
ALex
14 years, 12 months
pxelinux.cfg/default
by Corey Garst
Is there a way to regenerate the file /tftpboot/pxelinux.cfg/default for
cobbler? I've removed Spacewalk and I think it took this file with it.
Corey Garst
14 years, 12 months
Locally Mirrored Repo
by Corey Garst
I'm getting set up with Cobbler and noticed an option to mirror a repo.
By default, where do the Cobbler repo mirrors live? Can this path be
changed?
Thanks-
Corey Garst
14 years, 12 months
Cobbler not able to import multiple iso images for a given distro
by Gareth Armstrong
Hello Folks,
I am still new to cobbler but finding it to be very powerful and am
beginning to get a feel for things. However I have a couple of problems
WRT cobbler not being able to import multiple iso images for a single
distro. My apologies if this has already been dealt with in the past.
So what is he on about? Here at HP, I have a setup using "mrepo" which
manages the mounting of the various RHEL, SLES and Debian versions that
we have in-house to provide deployment/install trees for our lab.
For simplicity and compatibility reasons, I am not currently going to
transfer all of these mounted iso to cobbler's management but use
cobbler's import and --available-as options instead. For info, I am
running cobbler 1.6.4 on Rhel5.3 x86_64.
This works like a treat for Rhel5 where mrepo mounts a single DVD iso.
However, this fails apart when it comes to older versions of Rhel4 where
I only have access to CD iso images. So my mrepo tree looks like the
following:
# ll /var/www/mrepo/*rhel4-U4-es-i386*/
drwxr-xr-x 2 root root 4096 Jan 22 10:41 base
*drwxrwsr-x 6 root root 18432 Aug 3 2006 disc1
drwxrwsr-x 3 root root 2048 Aug 3 2006 disc2
drwxrwsr-x 3 root root 2048 Aug 3 2006 disc3
drwxrwsr-x 3 root root 2048 Aug 3 2006 disc4
drwxrwsr-x 3 root root 2048 Aug 3 2006 disc5*
lrwxrwxrwx 1 root root 50 Feb 28 2007 HEADER.shtml ->
../../../../usr/share/mrepo/html/HEADER.repo.shtml
drwxr-xr-x 2 root root 4096 Apr 26 2007 iso
lrwxrwxrwx 1 root root 50 Feb 28 2007 README.shtml ->
../../../../usr/share/mrepo/html/README.repo.shtml
drwxr-xr-x 4 root root 94208 May 12 16:30 RPMS.os
And cobbler hickups here:
# cobbler import --path=/var/www/mrepo/rhel4-U4-es-i386/ --name=rhel4.4-es \
--arch=i386 --available-as=http://my.host.com/mrepo/rhel4-U4-es-i386/
---------------- (adding distros)
- found content (breed=redhat) at
/var/www/mrepo/rhel4-U4-es-i386/disc1/images/pxeboot
- architectures found at
/var/www/mrepo/rhel4-U4-es-i386/disc1/RedHat/RPMS: []
Given arch (i386) not found on imported tree
/var/www/mrepo/rhel4-U4-es-i386/disc1/RedHat/RPMS
So my guess for the first response that I will get back from the list is
that cobbler only supports importing from a single mounted DVD iso
image, true? The code in action_import.py seems to support this. Will
cobbler ever support importing from multiple iso for a given distro?
Should I begin taking a shot at this?
I hacked the action_import.py code a little to uncomment the additional
traces but was surprised that it did not take the passed --arch=i386
option as gospel. This started me on the journey of why isn't the arch
being used or correctly identified.
I saw that the .discinfo file is used to extract a timestamp, so I was
wondering why couldn't that also be used to extract the arch info for
an iso. On Rhel5 and Fedora 6+ you also have the .treeinfo file which
could be parsed by ConfigParser. The tree.py module from the snake
project could of use here and does that already.
https://fedorahosted.org/snake/browser/snake/tree.py
Could some of the kind souls on the list give me a pointer or two on
where to begin my journey.
Many thanks in advance,
Gareth
--
14 years, 12 months
Bug? virt-paths and VG's
by Matt Ford
Apologies this isn't a little more comprehensive a bug report. Two odd
behaviours...
First if I create a system profile with a virt path value of "s4-xen-vg",
then the chcon -t virt... operation fails as it puts too many hyphens in the
argument to the device path eg., /dev/mapper/s4--xen.
Second, if I create a system with a virt path setting like this then
/dev/s4-xen-vg/robfrank then cobbler with no such volume group. It's not a
volume group it's a logical volume and I'd like to be able to specify that
as the install point rather than let cobbler manage it for me (actually I
don't now, I am happy to let cobbler manage it, but I don't feel as though
cobller should mind about this).
Again sorry I have no output. Using cobbler 1.6.2, on CentOS 5.3 from Epel
repo.
Matt.
14 years, 12 months
get-fields cleanup
by Michael DeHaan
I'm currently fixing up the get fields infrastructure, to simply things
and keep from having hundreds of lines of sprawl in each file if i
can. This was honestly stuff I wanted to look at for 2.0, but I think
we need to contain the complexity before it gets to be too much.
I'll also try to get these features working for images and repos, and
also the CLI.
I will probably be removing the concept of "order" among other things.
Anyway, it is probably not a good time to be working on the above, for
fear merging will become "interesting".
Fair warning.
--Michael
14 years, 12 months
Re: standalone
by Joe G
I thought of that, but I don't have the resources yet, server, bandwidth, disk space. My cobbler machine is my first repo server.
It's all on my wish list though.
I made a couple of machines of the dvd, almost perfect, I have to adjust the kickstart a little.
Great work on this, it's really going to make my life easier. It's going to be so easy a end user can do it, which is what I'm going for.
Thanks again.
Joe
--- On Tue, 5/12/09, Michael DeHaan <mdehaan(a)redhat.com> wrote:
> From: Michael DeHaan <mdehaan(a)redhat.com>
> Subject: Re: standalone
> To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
> Date: Tuesday, May 12, 2009, 8:51 AM
> Joe G wrote:
> >
> >
> > Here's the line that worked for me.
> >
> > repo --name=base1
> --baseurl=file:///mnt/source/Workstation
> >
> > I guess you could add VT the same way if you wanted
> to.
> >
> >
> > The bandwidth in our other offices (DSL) make it
> impractical to do a network install, witch is why I'm so
> happy with --standalone.
> >
> > Thanks for your help.
> >
> > Joe
> >
> >
> >
> This is, depending on complexity, a good reason to use
> "cobbler
> replicate" and establish a second cobbler server, mirroring
> the first,
> at the second site.
>
> --Michael
>
>
> > --- On Sun, 5/10/09, Michael DeHaan <mdehaan(a)redhat.com>
> wrote:
> >
> >
> >> From: Michael DeHaan <mdehaan(a)redhat.com>
> >> Subject: Re: standalone
> >> To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
> >> Date: Sunday, May 10, 2009, 10:07 AM
> >> Joe G wrote:
> >>
> >>> Just as an update.
> >>>
> >>> I think my problem has more to do with the
> anaconda
> >>>
> >> then cobbler.
> >>
> >>> What I have been doing is listing all the rpms
> on the
> >>>
> >> dvd individually in the kickstart file, including
> the rpms
> >> in the Workstation directory.
> >>
> >>> When I do a network install, it works fine
> because the
> >>>
> >> repos are set up and it can get all the files.
> >>
> >>> When I try to do a standalone install, with
> all the
> >>>
> >> rpms listed individually, it can not find any of
> the rpms in
> >> the Workstation directory. It looks like anaconda
> is hard
> >> coded to only look in the Client directory.
> >>
> >>>
> >>>
> >> Anaconda is not hard coded. I
> suspect
> >> you'd have to specify more repo
> >> directives with "file:///" that reference the
> extra CD
> >> content.
> >> Really the standalone stuff should probably be
> documented
> >> that it only
> >> handles base packages. If this
> is in a
> >> office environment, though,
> >> there's really no reason to not use "cobbler
> buildiso" in
> >> normal network
> >> install mode.
> >>
> >>> Thus far I have had trouble setting IP
> addresses and
> >>>
> >> having the installs work, because the machine are
> to be set
> >> up in other offices using different network
> schemes.
> >>
> >>>
> >>>
> >> This is definitely not a Cobbler problem; you'll
> probably
> >> want different
> >> kickstarts.
> >>
> >>
> >>
> >>> Thanks for your help. I'll let you know
> my
> >>>
> >> solution when I come up with one.
> >>
> >>> Joe
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> --- On Mon, 4/27/09, James Cammarata <jimi(a)sngx.net>
> >>>
> >> wrote:
> >>
> >>>
> >>>
> >>>> From: James Cammarata <jimi(a)sngx.net>
> >>>> Subject: Re: standalone
> >>>> To: "Joe G" <jophey(a)yahoo.com>
> >>>> Cc: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
> >>>> Date: Monday, April 27, 2009, 11:16 PM
> >>>>
> >>>> On Mon, 27 Apr 2009 19:19:10 -0700 (PDT),
> Joe G
> >>>>
> >> <jophey(a)yahoo.com>
> >>
> >>>> wrote:
> >>>>
> >>>>
> >>>>> James,
> >>>>>
> >>>>> Thanks for the reply.
> >>>>>
> >>>>> The command I use to make the iso
> is"cobbler
> >>>>>
>
> >> buildiso
> >>
> >>>>> --distro=RH5.3client-x86_64
> --standalone"
> >>>>>
> >>>>> I tried it with --source/path to iso
> with the
> >>>>>
>
> >> same
> >>
> >>>>>
> >>>>>
>
> >>>> result.
> >>>>
> >>>>
> >>>>> Thanks
> >>>>>
> >>>>> Joe
> >>>>>
> >>>>>
>
> >>>> Try specifying the --tempdir as well, and
> after
> >>>>
> >> the build
> >>
> >>>> is done look at
> >>>> the contents of that directory. Also
> make
> >>>>
> >> sure that
> >>
> >>>> you're using an
> >>>> official release ISO and not a custom
> made
> >>>>
> >> one. I
> >>
> >>>> know we've had issues
> >>>> with people using custom rolled CD's
> before.
> >>>>
> >>>> --
> >>>> This message has been scanned for viruses
> and
> >>>> dangerous content by MailScanner, and is
> >>>> believed to be clean.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> _______________________________________________
> >>> cobbler mailing list
> >>> cobbler(a)lists.fedorahosted.org
> >>> https://fedorahosted.org/mailman/listinfo/cobbler
> >>>
> >>>
> >> _______________________________________________
> >> cobbler mailing list
> >> cobbler(a)lists.fedorahosted.org
> >> https://fedorahosted.org/mailman/listinfo/cobbler
> >>
> >>
> > _______________________________________________
> > cobbler mailing list
> > cobbler(a)lists.fedorahosted.org
> > https://fedorahosted.org/mailman/listinfo/cobbler
> >
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
>
14 years, 12 months
Re: RHN Updates
by Christopher Dale
Message: 3
Date: Mon, 11 May 2009 16:42:54 -0400
From: Michael DeHaan <mdehaan(a)redhat.com>
Subject: Re: RHN Updates
To: cobbler mailing list <cobbler(a)lists.fedorahosted.org>
Message-ID: <4A088DCE.2060602(a)redhat.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Christopher Dale wrote:
> I have created a local mirror of the rhel53 updates. I do not have
> Satellite of Space Walk installed. Is it possible to get updates
> working through yum to my updates repo? I do have entitlements.
> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
>
Cobbler can manage yum repositories. Run createrepo on a directory and
it's a yum repo.
--Michael
Hmm, I might have been chasing the wrong issue. I failed to watch the
reposync. It looks like it is failing, but am I not sure why.
Ideas?
truncated...
Error opening package - getPackage/tar-1.15.1-23.0.1.el5.x86_64.rpm
6329/6933 -
getPackage/net-snmp-libs-5.3.1-19.el5_1.3.x86_64.rpm
Error opening package -
getPackage/xml-commons-which-1.3.02-0.b2.7jpp.10.x86_64.rpm
6334/6933 -
getPackage/dbus-libs-1.1.2-12.el5.x86_64.rpm
Error opening package - getPackage/wireshark-0.99.6-1.el5.x86_64.rpm
python: ./rpmio_internal.h:502: c2f: Assertion `fd && fd->magic ==
0x04463138' failed.
- creating: /var/www/cobbler/repo_mirror/rhel-x86_64-server-5/config.repo
[root@imperia-mgmt rhel-x86_64-server-5]#
14 years, 12 months
Re: standalone
by Joe G
Here's the line that worked for me.
repo --name=base1 --baseurl=file:///mnt/source/Workstation
I guess you could add VT the same way if you wanted to.
The bandwidth in our other offices (DSL) make it impractical to do a network install, witch is why I'm so happy with --standalone.
Thanks for your help.
Joe
--- On Sun, 5/10/09, Michael DeHaan <mdehaan(a)redhat.com> wrote:
> From: Michael DeHaan <mdehaan(a)redhat.com>
> Subject: Re: standalone
> To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
> Date: Sunday, May 10, 2009, 10:07 AM
> Joe G wrote:
> > Just as an update.
> >
> > I think my problem has more to do with the anaconda
> then cobbler.
> >
> > What I have been doing is listing all the rpms on the
> dvd individually in the kickstart file, including the rpms
> in the Workstation directory.
> >
> > When I do a network install, it works fine because the
> repos are set up and it can get all the files.
> >
> > When I try to do a standalone install, with all the
> rpms listed individually, it can not find any of the rpms in
> the Workstation directory. It looks like anaconda is hard
> coded to only look in the Client directory.
> >
>
> Anaconda is not hard coded. I suspect
> you'd have to specify more repo
> directives with "file:///" that reference the extra CD
> content.
> Really the standalone stuff should probably be documented
> that it only
> handles base packages. If this is in a
> office environment, though,
> there's really no reason to not use "cobbler buildiso" in
> normal network
> install mode.
> > Thus far I have had trouble setting IP addresses and
> having the installs work, because the machine are to be set
> up in other offices using different network schemes.
> >
>
> This is definitely not a Cobbler problem; you'll probably
> want different
> kickstarts.
>
>
> > Thanks for your help. I'll let you know my
> solution when I come up with one.
> >
> > Joe
> >
> >
> >
> >
> >
> > --- On Mon, 4/27/09, James Cammarata <jimi(a)sngx.net>
> wrote:
> >
> >
> >> From: James Cammarata <jimi(a)sngx.net>
> >> Subject: Re: standalone
> >> To: "Joe G" <jophey(a)yahoo.com>
> >> Cc: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
> >> Date: Monday, April 27, 2009, 11:16 PM
> >>
> >> On Mon, 27 Apr 2009 19:19:10 -0700 (PDT), Joe G
> <jophey(a)yahoo.com>
> >> wrote:
> >>
> >>> James,
> >>>
> >>> Thanks for the reply.
> >>>
> >>> The command I use to make the iso is"cobbler
> buildiso
> >>> --distro=RH5.3client-x86_64 --standalone"
> >>>
> >>> I tried it with --source/path to iso with the
> same
> >>>
> >> result.
> >>
> >>> Thanks
> >>>
> >>> Joe
> >>>
> >> Try specifying the --tempdir as well, and after
> the build
> >> is done look at
> >> the contents of that directory. Also make
> sure that
> >> you're using an
> >> official release ISO and not a custom made
> one. I
> >> know we've had issues
> >> with people using custom rolled CD's before.
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by MailScanner, and is
> >> believed to be clean.
> >>
> >>
> >>
> > _______________________________________________
> > cobbler mailing list
> > cobbler(a)lists.fedorahosted.org
> > https://fedorahosted.org/mailman/listinfo/cobbler
> >
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
>
14 years, 12 months