Running Cobbler on AIX platform
by Mackell, Thomas O
Is there any problems with running cobbler on an AIX platform?
Any experience out there with this setup?
Tom Mackell
14 years, 8 months
simple authz_ownership example not working
by Paul Company
The following does NOT work: why?
# vi /etc/cobbler/modules.conf
[authentication]
module = authn_passthru
[authorization]
module = authz_ownership
:wq!
# vi /etc/cobbler/users.conf
[admins]
admin = ""
cobbler = ""
pcompany(a)EXAMPLE.COM = ""
:wq!
# vi /etc/httpd/conf.d/cobbler.conf
LoadModule auth_kerb_module modules/mod_auth_kerb.so
<Directory "/var/www/cobbler/web/">
AuthType Kerberos
AuthName "Kerberos Login"
KrbServiceName HTTP
Krb5Keytab /etc/httpd/conf.d/HTTP.keytab
KrbAuthRealms EXAMPLE.COM
Require valid-user
SetHandler mod_python
PythonAuthenHandler index
PythonHandler index
PythonPath "sys.path + ['/var/www/cobbler/web/']"
PythonDebug on
</Directory>
:wq!
# /etc/init.d/cobblerd restart
# /etc/init.d/httpd restart
Browse to the Web UI and login as pcompany(a)EXAMPLE.COM:
(1) Logging in as pcompany(a)EXAMPLE.COM works fine.
BUT
(2) pcompany(a)EXAMPLE.COM can only list things!
pcompany(a)EXAMPLE.COM can't add anything!
It behaves as if cobbler doesn't see pcompany(a)EXAMPLE.COM in user.conf.
Any ideas?
How do I debug this?
14 years, 8 months
Modifying Web UI
by Paul Company
I'm running cobbler 1.6.6 on RHEL 5.3.
Three Questions:
Q1: Is there a way to have the Web UI behavior change according to the
person that logs in?
For example, I'd like it if user "foo" has full access to everything,
but user "bar" to only be able to create systems.
Listing distros, profiles, and repos is ok, but I don't want
bar to have the ability to add or delete distros, profiles or repos.
Q2: Has anyone customized the "Add System" web page?
I'm not a web programmer but I'd like to simplify/customize
the "Add System" page so it's simpler for our end user.
I'd to add fields like "Location" and have the values entered
show up as --ksmeta values; so if you enter Location: nyc,
that would get processed into --ksmeta="loc=nyc"
Also, things like, if one chooses a profile that isn't a vm profile,
then don't show the VM stuff. Or if power management
is disabled, don't show the power management stuff. etc.
Q3: Should I wait for cobbler 2.0 which uses Django?
Or should I plow ahead with the current mod_python stuff?
Any tips/information/examples on developing mod_python or Django web
pages would be a big help.
Thanks,
Paul
14 years, 8 months
authz_ownership not working with authn_passthru + Kerberos
by Paul Company
The following works:
# vi /etc/cobbler/modules.conf
[authentication]
module = authn_configfile
[authorization]
module = authz_ownership
:wq!
# htdigest /etc/cobbler/users.digest "Cobbler" pcompany
Adding user pcompany in realm Cobbler
New password: <some-passwd>
Re-type new password: <some-passwd>
# vi /etc/cobbler/users.conf
[admins]
admin = ""
cobbler = ""
pcompany = ""
:wq!
# vi /etc/httpd/conf.d/cobbler.conf
<Directory "/var/www/cobbler/web/">
AuthType Basic
AuthName Cobbler
Require valid-user
SetHandler mod_python
PythonAuthenHandler index
PythonHandler index
PythonPath "sys.path + ['/var/www/cobbler/web/']"
PythonDebug on
</Directory>
:wq!
# /etc/init.d/cobblerd restart
# /etc/init.d/httpd restart
Browse to the Web UI and login as pcompany:
(1) Logging in as pcompany works fine.
(2) pcompany has full permissions to list/copy/modify/new/remove/save
on distros, profiles, systems, repos, kickstarts
(3) If I remove pcompany from users.conf, then pcompany can only list
things; pcompany can't add anything!
Which is expected!
==============
The following does NOT work: why?
# vi /etc/cobbler/modules.conf
[authentication]
module = authn_passthru
[authorization]
module = authz_ownership
:wq!
# vi /etc/cobbler/users.conf
[admins]
admin = ""
cobbler = ""
pcompany(a)EXAMPLE.COM = ""
:wq!
# vi /etc/httpd/conf.d/cobbler.conf
<Directory "/var/www/cobbler/web/">
AllowOverride AuthConfig
AuthType Kerberos
AuthName "Kerberos Login"
KrbServiceName HTTP
Krb5Keytab /etc/httpd/conf.d/HTTP.keytab
KrbAuthRealms EXAMPLE.COM
Require valid-user
SetHandler mod_python
PythonAuthenHandler index
PythonHandler index
PythonPath "sys.path + ['/var/www/cobbler/web/']"
PythonDebug on
</Directory>
:wq!
# /etc/init.d/cobblerd restart
# /etc/init.d/httpd restart
Browse to the Web UI and login as pcompany:
(1) Logging in as pcompany(a)EXAMPLE.COM works fine.
BUT
(2) pcompany(a)EXAMPLE.COM can only list things; pcompany(a)EXPERTCITY.COM
can't add anything!
Any ideas?
14 years, 8 months
Error using "cobbler replicate" with symbolic links
by Paul Company
I'm using cobbler version 1.6.6 on RHEL 5.3
Our hosts have a small /var partition and a large /usr partition.
So I did the following:
# mkdir -p /usr/www
# mv /var/www/cobber /usr/www/cobbler
# ln -s /usr/www/cobbler /var/www/cobbler
This causes the following error when replicating:
# cobbler replicate --master=cobbler1.mydomain.com --full-data-sync
XMLRPC endpoint: http://cobbler1.mydomain.com/cobbler_api
----- Copying Distros
----- Rsyncing Distribution Trees
- rsync -avz cobbler1.mydomain.com:/var/www/cobbler/ks_mirror /var/www/cobbler
root(a)cobbler1.mydomain.com's password:
receiving file list ... done
rsync: mkdir "/var/www/cobbler" failed: File exists (17)
rsync error: error in file IO (code 11) at main.c(509) [receiver=2.6.8]
rsync failed
If I remove the symbolic link, the replication command runs, but /var
is too small to handle the size of the distribution.
Any ideas?
I tried running the command manually with the rsync -K option but that
didn't work - gave the same error.
Paul
14 years, 8 months
Bug in sub-profile creation?
by James Cammarata
I am trying to create sub-profiles, and ran into this error:
# cobbler profile add --name=rhel4.6-i386-vm --inherit=rhel4.6-i386
--in-place --ksmeta=is_vm=1
object does not support item assignment
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 83, in
main
rc = BootCLI().run(sys.argv)
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 61, in
run
return self.loader.run(args)
File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line 122, in
run
return fn.run()
File "/usr/lib/python2.4/site-packages/cobbler/modules/cli_profile.py",
line 135, in run
obj.set_ksmeta(self.options.ksmeta,self.options.inplace)
File "/usr/lib/python2.4/site-packages/cobbler/item.py", line 193, in
set_ksmeta
self.ks_meta[key] = value[key]
In my environment, VMware based hosts get much less disk space so we have
special partitioning snippets for them. If I take off the --ksmeta
assignment, the add works fine, so it looks like you can't modify the
ksmeta while doing a subprofile creation.
Is this a bug, or expected behavior?
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
14 years, 8 months
So, I haven't been getting email from Bugzilla/Trac...
by Michael DeHaan
If you've filed something in Trac and not gotten a reply/comment ...
apparently I haven't been getting emails from Bugzilla /or/ Trac when
items are opened -- -- though I am seeing them when I'm commenting on
items now. I'm trying to figure out if it's a mail filtering problem or
what.
Anyway, this just goes to reinforce things...
If you have a question, ask the mailing list.
If you have a patch or idea, post to
cobbler-devel(a)lists.fedorahosted.org. Patches attached to Trac will
not be acted on promptly, the mailing list definitely will.
If a problem has not been posted to the mailing list, for all practical
purposes doesn't exist.
The reason for this is to include as many people as possible in the
discussions and development of Cobbler -- Trac/Bugzilla are read by a
few, but anyone can help
troubleshoot or help review a patch, or may have better ideas about how
to resolve a problem than just me.
I'm closing some things that are duplicates or items we are going to fix
on 2.0, or other items that we are just not likely to work on -- if you
do have an idea for something I'm closing as "won't fix" though, and
wish to supply code, let's talk about it.
--Michael
14 years, 9 months
XMLRPC perl question
by Derek T. Yarnell
So I was trying to do some XMLRPC perl programming and I was reading
the 'pydoc cobbler.remote' page.
get_profiles(self, page=None, results_per_page=None, token=None, **rest)
Returns all cobbler profiles as an array of hashes.
I was trying to utilize this RPC call and I seem to get something
different back that doesn't make sense. Array of hashes means to me
that we should get back a array of hashes but that does not seem to be
what I am getting out.
Here is the code that I think this should give back me the profiles
but I think I am missing something,
---- Code
#!/usr/bin/perl
use strict;
use XMLRPC::Lite;
# Build the connection
my $xmlrpc = XMLRPC::Lite -> proxy('https://mica.umiacs.umd.edu/cobbler_api')
;
# Login to cobbler xmlrpm and get session token back.
my $token = $xmlrpc->login($username, $password)->result();
my @profiles = $xmlrpc->get_profiles($token);
my $k;
my $p;
foreach $p (@profiles) {
foreach $k (keys %$p) {
print $k."=".$$p{$k}."\n";
}
}
---- Output
_content=ARRAY(0x17f694a0)
_context=XMLRPC::Lite=HASH(0x17a6aa00)
_current=ARRAY(0x17e6b150)
---- Cobbler output
# cobbler profile list
redhat_4.8_as-i386
redhat_4.8_as-x86_64
redhat_4.8_as-xen-i386
redhat_4.8_as-xen-x86_64
redhat_4_as-i386
redhat_4_as-x86_64
redhat_5.3_client-i386
redhat_5.3_client-x86_64
redhat_5.3_client-xen-i386
redhat_5.3_client-xen-x86_64
redhat_5.3_server-i386
redhat_5.3_server-x86_64
redhat_5.3_server-xen-i386
redhat_5.3_server-xen-x86_64
redhat_5_client-i386
redhat_5_client-x86_64
redhat_5_server-i386
redhat_5_server-x86_64
rescue-redhat_4.8_as-i386
rescue-redhat_4.8_as-x86_64
rescue-redhat_5.3_client-i386
rescue-redhat_5.3_client-x86_64
rescue-redhat_5.3_server-i386
rescue-redhat_5.3_server-x86_64
Derek Yarnell
UNIX Systems Administrator
University of Maryland
Institute for Advanced Computer Studies
14 years, 9 months
Xen VM and Static IP
by Paras pradhan
Hi,
I have created a profile using
cobbler profile add --name=myxenprofile --distro=centos-xen-x86_64
--kickstart=/opt/guest2-vm--ks.cfg
ks file looks like:
-----
install
nfs --server=nfsserver --dir=/centos64
lang en_US.UTF-8
network --device eth0 --bootproto static --ip X.X.X.40 --netmask
255.255.255.0 --gateway X.X.X.5 --nameserver X.X.X.93 --hostname
vmguest --onboot=on
rootpw --iscrypted $1$k5/VMCHk$Ykdy/1qdt3GL2s490jvGP/
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc America/Chicago
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux --drives=xvda
#part /boot --fstype ext3 --size=100 --ondisk=xvda
#part pv.2 --size=0 --grow --ondisk=xvda
#volgroup VolGroup00 --pesize=32768 pv.2
#logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
#logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00
--size=528 --grow --maxsize=1056
%packages
@editors
@text-internet
@dialup
@core
@base
device-mapper-multipath
-----
At the client side (where I want my VM to be created), I did
koan --virt --server=cobblerserver --profile=myxenprofile --nogfx
..
But why the installation procedure is not taking X.X.X.40 and asking
me to enter ip, mask, gw and dns?
What's wrong this ?
Thanks
Paras.
14 years, 9 months
cannot find kickstart while installing system
by Jakub Hrozek
Hi,
I've got a problem installing a cobbler system -- Anaconda would end
with an error message "Could not open kickstart file or included file
named None".
The system is based on a profile and I'm able to install virt guests
with koan based on this profile[1] with no problems.
I've also verified that the kickstart passed to the newly created guest
(I can see the ks= parameter in the domain XML definition) exists and
can be downloaded using wget from within Anaconda.
I'm not sure where to start looking since the domain definition looks
sane, the profile works.. FWIW, I'm using cobbler-1.6.6 on Fedora 10
host, trying to install F10 or F11 guests.
Any pointers would be appreciated,
Jakub
[1] koan --virt --server=cobbler.example.com --profile=Fedora-11-x86_64
--virt-name=foo
14 years, 9 months