bad rsync module management?
by Duncan Hutty
I'm working on getting a replication slave going and I'm having some
trouble, and I'm trying to determine whether my assumptions are broken and
I'm misunderstanding or whether (my?) cobbler is broken.
I'll try to put it as simply as I can:
If the cobbler master has foo in the output of `cobbler repo list` and the
replication log on my slave has 'repo': ['foo'] in the remote names struct
and foo is in the 'transfer list for repo', how come I get "@ERROR:
Unknown module 'repo-foo'" from cobbler replicate --repos=foo?
Here's what I did:
cmaster# cobbler repo list
foo
bar
baz
cslave# cobbler replicate --repos='foo' --master=cmaster.example.com
Querying Both Servers
remote names struct is {'profile':[
<snip>
],'repo':['foo',
<snip>
]
<snip>
Rsyncing distros
Rsyncing repos
running: rsync -avzH cmaster.example.com::repo-foo
/var/www/cobbler/repo_mirror/foo
received on stdout:
received on stderr: @ERROR: Unknown module 'repo-foo'
And then I verified the rsync modules:
cslave# rsync --list-only cmaster.example.com::
cobbler-distros All Cobbler Distros
cobbler-repos All Cobbler Distros
cobbler-kickstarts Cobbler Kickstarts
cobbler-snippets Cobbler Snippets
cobbler-triggers Cobbler Triggers
repo-bar Cobbler Repo bar
repo-baz Cobbler Repo baz
distro-bar Cobbler Distro bar
distro-baz Cobbler Distro baz
But no entry for repo-foo!
Any suggestions for how to troubleshoot/fix?
Thanks,
--
Duncan Hutty
10 years, 8 months
Fwd: Error before I log into cobbler web
by Sapan Ganguly
Does anyone know why I get this error below before I even get a change to
login to cobbler web? I'm trying to run v2.4. I've set it up to use PAM
authentication but I get this same problem when I try and use authn_testing
in modules.conf too.
In the non-copy and paste view of the error I spotted this -
/usr/lib64/python2.4/xmlrpclib.py in __call__
1. # supports "nested" methods (e.g. examples.getStateName)
2. def __init__(self, send, name):
3. self.__send = send
4. self.__name = name
5. def __getattr__(self, name):
6. return _Method(self.__send, "%s.%s" % (self.__name, name))
7. def __call__(self, *args):
1. return self.__send(self.__name, args) ...
1.
2. ##
3. # Standard transport class for XML-RPC over HTTP.
4. # <p>
5. # You can create custom transports by subclassing this method, and
6. # overriding selected methods.
▼ Local vars <http://repos.dev.mss.ai.pri/cobbler_web#>
Variable Value args ('', -1) self Error in formatting: <Fault 1:
"cobbler.cexceptions.CX:'unknown remote method'">
Copy and paste view -
Django Version: 1.1.4
Python Version: 2.4.3
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'cobbler_web']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.csrf.middleware.CsrfMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware')
Traceback:
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in
get_response
99. response = callback(request, *callback_args,
**callback_kwargs)
File "/usr/share/cobbler/web/cobbler_web/views.py" in index
58. if not test_user_authenticated(request): return
login(request,next="/cobbler_web", expired=True)
File "/usr/share/cobbler/web/cobbler_web/views.py" in
test_user_authenticated
1255. token = remote.login("", utils.get_shared_secret())
File "/usr/lib64/python2.4/xmlrpclib.py" in __call__
1096. return self.__send(self.__name, args)
File "/usr/lib64/python2.4/xmlrpclib.py" in __request
1383. verbose=self.__verbose
File "/usr/lib64/python2.4/xmlrpclib.py" in request
1147. return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.4/xmlrpclib.py" in _parse_response
1286. return u.close()
File "/usr/lib64/python2.4/xmlrpclib.py" in close
744. raise Fault(**self._stack[0])
Exception Type: Fault at /
Exception Value: <Fault 1: "cobbler.cexceptions.CX:'login failed'">
10 years, 8 months
help with cobbler import of debian wheezy via remote/rsync path
by Drew Morone
Hey all,
I'm new to this list, and to cobbler.
I'm able to run a successful cobbler import against a local distro (basically I mounted the first DVD iso from http://cdimage.debian.org/debian-cd/7.1.0/amd64/iso-dvd/ ) using the following command:
cobbler import --name=wheezy --breed=debian --os-version=wheezy --path=/mnt/cdrom
That command imports wheezy-x86_64, wheezy-gtk-x86_64, wheezy-xen-x86_64
This is all fine, but that's not really what I want to do.
I want to be able to import from a remote path. I've found lots of sites recommending the parameters, and none of them work. Here's my current command line:
cobbler import --name=wheezy --breed=debian --arch=x86_64 --os-version=wheezy --path="rsync://ftp.us.debian.org/debian/dists/wheezy/main/installer-amd64/curren..."
The result is:
task started: 2013-10-02_124212_import
task started (id=Media import, time=Wed Oct 2 12:42:12 2013)
No signature matched in /var/www/cobbler/ks_mirror/wheezy-x86_64
!!! TASK FAILED !!!
What's weird was that a couple of days ago, that same (I think) command line WAS importing, but it was a whole ton of stuff I didn't want, eg.:
wheezy-dists-squeeze-mainer-20110106+squeeze4+b2-cdrom-gtk-x86_64
wheezy-dists-squeeze-mainer-20110106+squeeze4+b2-cdrom-x86_64
wheezy-dists-squeeze-mainer-20110106+squeeze4+b2-cdrom-xen-x86_64
wheezy-dists-squeeze-mainer-20110106+squeeze4+b3-cdrom-gtk-x86_64
wheezy-dists-squeeze-mainer-20110106+squeeze4+b3-cdrom-x86_64
wheezy-dists-squeeze-mainer-20110106+squeeze4+b3-cdrom-xen-x86_64
for every architecture and every release and every distribution (like
Now it just doesn't work at all, just errors out with the "TASK FAILED" error. I tried blowing away /var/www/cobbler/ks_mirror/wheezy-x86_64
Am I using the wrong method, or rsync path, or something else? I tried checking the maillist archives but didn't find anything.
Thanks
Drew
10 years, 8 months
Repeating Installation of Box
by Shekh Tusdiq
Hi,
I am facing issue with cobbler, its repeating installation booting again by
dhcp & repeating the process. i set pxe_boot = 1.
Could you please suggest how to proceed further.
Thanks & Regards
Shekh
10 years, 8 months
multiple pxeprofile templates
by Sarakaitis, Eric
I want to add another pxeprofile_esxi.template and call it pxeprofile_esxiserial.template
This is because I need to specify serial console redirection during the install
How can I do this?
____________________________
Eric Sarakaitis
Sr. Systems Engineer
419.303.4624
Eric.Sarakaitis(a)cbts.net<mailto:Eric.Sarakaitis@cbts.net>
[cid:48B8E67F-CF3C-4E66-8CB1-A313ED654D22]
[cid:0D340B0D-ED73-454F-A515-A53CD9F9C2D3]
10 years, 8 months
RHEL6: how is the installed initramfs set up?
by David Lee
For RHEL6 I'm trying to gain an understanding of controlling the building of "/boot/initramfs-<version>.img" in a cobbler install. (For RHEL5 folk, this is roughly analogous to "mkinitrd".)
Our ultimate aim is for the final system to have a slightly modified version of this "initramfs". At present, we do this after cobbler has already installed the system, by adding a file defining our modification into "/etc/dracut.conf.d", then running "dracut" and rebooting.
But it would be nice if we could do this earlier on, at the end of the cobbler installation itself.
I guess that the cobbler process already invokes "dracut" somehow. Is this correct? If so, then it might be possible for us to arrange delivery of our "/etc/dracut.conf.d" file during cobbler post-install, but before that dracut run occurs.
Hints and clues as to how cobbler controls dracut are welcome, please!
(By the way: cobbler version 2.0.11, if that makes a difference. Yes, I know, it's very old; we plan to update in a couple of months.)
-- David Lee
10 years, 8 months
Trigger Registration
by Mike Eklund
Is it possible for new style triggers to register with more then one event?
Regards,
Mike E.
10 years, 9 months
Rendering oddness in 2.4.0
by Corey Kovacs
I recently bestowed the virtues of cobbler unto a colleague who has, like
many, decided it's the best thing since sliced bread. Good so far...
After he had been working with it for a while, he experienced a problem
which was keeping his lower per_* snippets from overriding the top level
counterparts.
For example, he has
snippets/post_install
and also
snippets/per_system/post_install/mysystem01.
In both files he had (unbeknownst before the override) unescaped "$" chars.
When the per_system post_install snippet was not applied, everything
rendered correctly. However when a specific host was specified in order to
get the overriding snippet, the rendering failed.
So, to recap, two copies of the same messed up snippet were in place. The
top level one rendered correctly, the per_system one did not as cheetah
choked on the unescaped "$" signs.
Is this a know bug/feature?
Corey
10 years, 9 months
installing debian with koan --virt virt-install issue
by Tapp Darden
I've been trying to install debian to kvm/libvirt using koan. I've narrowed my problem down to virt-install.
this is the options koan provides to libvirt:
- ['virt-install', '--connect', 'qemu:///system', '--name', 'debian',
'--ram', '1024', '--vcpus', '1', '--autostart', '--vnc', '--virt-type',
'qemu', '--machine', 'pc', '--hvm', '--extra-args=ksdevice=link
lang=en_US url=http://<server
address>/cblr/svc/op/ks/system/debian text auto-install/enable=true
priority=critical ', '--location',
'http://<server address/cblr/links/debian-wheezy-net-x86_64/', '--arch',
'x86_64', '--os-variant', 'generic26', '--disk',
'path=/dev/mapper/default-debian--disk0,size=30,format=raw',
'--network', 'bridge=guests', '--wait', '0', '--noautoconsole']
this error it gives:
ERROR
Error validating install location: Could not find an installable
distribution at 'http://<server
address>/cblr/links/debian-wheezy-net-x86_64/'
when I mount the debian install CD (i've tried both "CD-1" and the netinst
CD) to a directory and point virt-install to that directory I get the
same result. In this case using "--location /mnt/cdrom"
However, if i use "--cdrom /path/to/iso" directly it works fine. So virt-install works with --cdrom but not with --location <url to cdrom
contents>
If i try with this option --location
http://ftp.us.debian.org/debian/dists/wheezy/main/installer-amd64/
(that i got from the virt-install man page) it works. i noticed that
that directory structure looks different than what cobbler installs to
http://<server address/cblr/links/debian-wheezy-net-x86_64/
So i'm thinking that for virt-install plus debian, there is install from
CDROM and there is install directly from a web server. but they are not
the same directories / files
I noticed that i can have the VM boot to the pxe menu and start a debian
install that way. However, the installer looks for a cdrom and fails if
it doesn't find it. Defeating the purpose of network install...
TL;DR, I'm trying to get cobbler to install Debian and failing. has anybody gotten this to work? any gotchas or tips?
p.s. i've also tried to manually setting the --os-variant to debiansqueeze
(virt-install doesn't know debianwheezy yet) but it hasn't helped
anything yet.
10 years, 9 months
Cobbler 2.4 with LDAP(AD) auth
by Danilo Chilene
Hello,
I'm trying setup Cobbler with LDAP(AD), below the configuration of
/etc/cobbler/modules.conf and /etc/cobbler/setup:
modules.conf:
[authentication]
module = authn_ldap
[authorization]
module = authz_allowall
setup:
ldap_server: "192.168.0.1"
ldap_base_dn: "dc=domain,dc=com"
ldap_port: 389
ldap_tls: 0
ldap_anonymous_bind: 0
ldap_search_bind_dn: 'CN=Admin,OU=Users,dc=domain,dc=com'
ldap_search_passwd: strangepassword'
ldap_search_prefix: 'sAMAccountName'
ldap_tls_cacertfile: ''
ldap_tls_keyfile: ''
ldap_tls_certfile: ''
Cobbler Version:
cobbler-2.4.0-1.el6.noarch
cobbler-web-2.4.0-1.el6.noarch
Error:
Mon Sep 30 14:47:05 2013 - INFO | Exception occured: <class
'ldap.FILTER_ERROR'>
Mon Sep 30 14:47:05 2013 - INFO | Exception value: {'desc': 'Bad search
filter'}
Mon Sep 30 14:47:05 2013 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 2049, in
_dispatch
return method_handle(*params)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1840, in
login
if self.__validate_user(login_user,login_password):
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1737, in
__validate_user
return self.api.authenticate(input_user,input_password)
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 1012, in
authenticate
rc = self.authn.authenticate(self,user,password)
File "/usr/lib/python2.6/site-packages/cobbler/modules/authn_ldap.py",
line 126, in authenticate
result = dir.search_s(basedn, ldap.SCOPE_SUBTREE, filter, [])
File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 516,
in search_s
return
self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 509,
in search_ext_s
msgid =
self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 505,
in search_ext
timeout,sizelimit,
File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 96,
in _ldap_call
result = func(*args,**kwargs)
I tried different search prefix or even disabled it and no success.
Any ideas on this?
Best Regards,
Danilo F. Chilene
10 years, 9 months