cobbler replicate not working with distros
by Manuel.Laesser@swisslife.ch
Hi All,
I tried to would like to use cobbler sync but unfortunately I'm not able to rsync my only distro. Everything will be synced but for the distro I got an @ERROR: Unknown module. I also miss --delete option in rsync because otherwise files deleted on the master won't be deleted on the slave. Is there also a way to tunnel rsync through ssh?
The output looks like this.
[root@slave ks_mirror]# cobbler replicate --master=master --distros=centos62-minimal-x86_64 --prune
task started: 2012-05-08_082341_replicate
task started (id=Replicate, time=Tue May 8 08:23:41 2012)
cobbler_master = master
profile_patterns = []
system_patterns = []
omit_data = False
sync_all = False
using CLI defined master
XMLRPC endpoint: http://master/cobbler_api
test ALPHA
test BETA
Querying Both Servers
remote names struct is {'profile': [], 'repo': [], 'image': [], 'distro': ['centos62-minimal-x86_64']}
* Finding Explicit distro Matches
?: seeing if centos62-minimal-x86_64 looks like centos62-minimal-x86_64
* Finding Explicit profile Matches
* Finding Explicit repo Matches
* Finding Explicit image Matches
* Adding Profiles Required By Systems
* Adding Profiles Required By SubProfiles
* Adding Distros Required By Profiles
* Adding Repos Required By Profiles
* Adding Images Required By Systems
transfer list for distro is ['centos62-minimal-x86_64']
transfer list for profile is []
transfer list for repo is []
transfer list for image is []
Removing Objects Not Stored On Master
Rsyncing distros
running: rsync -avzH master::distro-centos62-minimal-x86_64 /var/www/cobbler/ks_mirror/centos62-minimal-x86_64
received on stdout:
received on stderr: @ERROR: Unknown module 'distro-centos62-minimal-x86_64'
rsync error: error starting client-server protocol (code 5) at main.c(1530) [receiver=3.0.6]
rsync failed
Rsyncing repos
Rsyncing distro repo configs
running: rsync -avzH master::cobbler-distros/config /var/www/cobbler/ks_mirror
received on stdout: receiving incremental file list
sent 38 bytes received 66 bytes 208.00 bytes/sec
total size is 0 speedup is 0.00
received on stderr:
Rsyncing kickstart templates & snippets
running: rsync -avzH master::cobbler-kickstarts /var/lib/cobbler/kickstarts
received on stdout: receiving incremental file list
sent 40 bytes received 174 bytes 428.00 bytes/sec
total size is 9848 speedup is 46.02
received on stderr:
running: rsync -avzH master::cobbler-snippets /var/lib/cobbler/snippets
received on stdout: receiving incremental file list
sent 38 bytes received 779 bytes 1634.00 bytes/sec
total size is 57183 speedup is 69.99
received on stderr:
Rsyncing triggers
running: rsync -avzH master::cobbler-triggers /var/lib/cobbler/triggers
received on stdout: receiving incremental file list
sent 90 bytes received 964 bytes 702.67 bytes/sec
total size is 0 speedup is 0.00
received on stderr:
Adding Objects Not Stored On Local
adding distro centos62-minimal-x86_64
Updating Objects Newer On Remote
Syncing
Done
*** TASK COMPLETE ***
Thank you very much for your help.
Manuel
11 years, 12 months
New stuff
by James Cammarata
I've just merged two major branches of work into master. Neither of
these will be in 2.2.3, but will be in 2.4.x.
First is the branch containing changes to the power commands, which
going forward will use STDIN to pass arguments to the fence commands.
In addition to this, going forward only the fence_* commands will be
available for use through cobbler. The biggest impact of this will be
the fact that ipmitool can no longer be used directly, so people will
need to migrate to the fence_ipmilan tool (which uses ipmitool under
the hood anyway). I believe that was the only non-fence agent utility
that was available for use, but if there are others they will require
the same forced migration.
The biggest benefit of this new method is no more templates will be
required for simple use. Templates can be used optionally by creating
an /etc/cobbler/power/fence_<cmd> template, which will let you set
more options than the defaults required.
Second is the capability to change settings dynamically without a
restart of cobblerd has been merged in as well.
# cobbler setting --help
usage
=====
cobbler setting edit
cobbler setting report
In order to use this capability, you must add the option
"allow_dynamic_settings: 1" to /etc/cobbler/settings and then restart
cobblerd. From that point on, you can use the edit command or the web
GUI to change settings and they will take effect immediately without a
restart.
The largest caveat for using dynamic settings is the possibility of
corrupting your settings file. Right now, we're using augeas to
regenerate the YAML config, but due to the fact that the settings file
has grown organically over the years, it has very inconsistent white
space indents for lists and hashes. Augeas uses a fixed width and
won't touch existing lines, so it can break things when the white
space isn't consistent. To fix this, "cobbler check" will suggest this
command to cleanup the settings file:
"sed -i 's/^[[:space:]]\+/ /' /etc/cobbler/settings"
If you use dynamic settings, you should run this command (after making
a backup of course) to ensure you won't run into issues.
This is a stop-gap solution, and I'm considering making 2.4 the
version that will finally move settings to a JSON file. A recent
contribution enabled "pretty printing" of JSON, so it makes the files
much more readable than they are currently. Combined with the ability
to change settings dynamically (and to get info about them on the
fly), there really isn't a need for the YAML config anymore, which
will greatly simplify things. I had already hacked in the capability
to store the settings along with everything else in MongoDB, so having
all of cobbler's data in the same format will allow more things like
that.
Anyway, enjoy, and feedback is always appreciated!
12 years
cobbler and memtest
by mad
Hello,
I just wanted to create a memtest profile with the documentation
https://github.com/cobbler/cobbler/wiki/Memtest
The result is:
# cobbler image add --name=memtest86+ --file=/boot/memtest86+-4.10 --image-
type=direct
### ERROR ###
Unexpected remote error, check the server side logs for further info
<type 'exceptions.AttributeError'>:'NoneType' object has no attribute
'os_version'
# cobbler --version
Cobbler 2.2.2
Anybody knows the problem or how to solve that?
Thanks in advance
mad
12 years
Cobbler 2.2.1 master -> slave configuration
by Russ Lavoy
Hello,
I have a question regarding keeping the repos clean... for some reason my repositories on my main cobbler server (the one that has internet access) are smaller in size than my other downstream cobbler servers. is this because the rsync --delete flag is not used so it cleans up the RPMs that are no longer there?
Not sure why this is happening.
Thanks !
12 years
Re: [cobbler] cobbler and memtest
by mad
Hi James
> I recently just installed 2.2,2 and memtest was auto detected after I
> installed it and ran a cobbler sync.
>
> You might want to give that a shot as well.
That is what I tried first. Did not work. :-(
mad
--
Marc WINKELMANN Phone: +49 721 9497-2554
COMSOFT GmbH Fax: +49 721 9497-129
Wachhausstrasse 5a http://www.comsoft.aero
76227 Karlsruhe, Germany mailto:Marc.Winkelmann@comsoft.aero
Managing Directors: Manfred Jlg, Manfred Schmid
Commercial Registry: Mannheim HRB 102488
--- Disclaimer ---------------------------------------------------------
This mail contains private or confidential information for the eyes of
the addressee(s) named within this mail only.
Any distribution or usage, in whole or in part, is strictly prohibited.
If the context of this message indicates that you may have received this
mail by error, please immediately contact and notify the sender and
delete this mail from your computers as well as from your mail server.
Thank you!
------------------------------------------------------------------------
12 years
Snippet for using Management classes
by James Clendenan
Hi Everyone,
For some reason, I'm having trouble crafting a snippet to use the
management classes in a script. (Version 2.2.2)
I'm basicly using the management classes to install specific sets of
packages, and I was sure I had done this before at an old location but
can't remember how I did it.
Anyone got a sample they can share for managing packages to install based
on the management classes?
Thanks,
James
12 years