cobbler replicate won't
by Dan White
A clueless one seeking clues.
[root]# cobbler replicate --systems=* --master=192.168.93.16
task started: 2013-03-19_104835_replicate
task started (id=Replicate, time=Tue Mar 19 10:48:35 2013)
cobbler_master = 192.168.93.16
profile_patterns = []
system_patterns = ['*']
repo_patterns = []
image_patterns = []
mgmtclass_patterns = []
package_patterns = []
file_patterns = []
omit_data = False
sync_all = False
using CLI defined master
XMLRPC endpoint: http://192.168.93.16/cobbler_api
test ALPHA
test BETA
Exception occured: socket.error
Exception value: (111, 'Connection refused')
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 89, in run
rc = self._run(self)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 217, in runner
self.logger
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 994, in replicate
sync_all = sync_all
File "/usr/lib/python2.4/site-packages/cobbler/action_replicate.py", line 359, in run
self.local.ping()
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "/usr/lib64/python2.4/xmlrpclib.py", line 1129, in request
self.send_content(h, request_body)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1243, in send_content
connection.endheaders()
File "/usr/lib64/python2.4/httplib.py", line 804, in endheaders
self._send_output()
File "/usr/lib64/python2.4/httplib.py", line 685, in _send_output
self.send(msg)
File "/usr/lib64/python2.4/httplib.py", line 652, in send
self.connect()
File "/usr/lib64/python2.4/httplib.py", line 636, in connect
raise socket.error, msg
!!! TASK FAILED !!!
HOWEVER, The following python script works just fine:
#!/usr/bin/python
import xmlrpclib
server = xmlrpclib.Server("http://192.168.93.16/cobbler_api")
print server.get_systems()
I have the following settings on both Cobbler servers:
xmlrpc_port: 25151
xmlrpc_rw_enabled: 1
xmlrpc_rw_port: 25151
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
11 years, 1 month
overriding name_servers_search
by Robert Jacobson
I'd like to override a profile-set variable for one particular system,
but I can't figure out how to do it. For the system, I want to
completely replace name_servers_search with "foo.com", but when I put in
'foo.com' for name_servers_search for the system (using the web
interface), it just appended it to the profile's value list rather than
replacing it:
# cobbler profile dumpvars --name=feds | grep name_servers_search
default_name_servers_search : []
name_servers_search : ['gsfc.nasa.gov', 'nasa.gov']
# cobbler system dumpvars --name=test | grep name_servers_search
default_name_servers_search : []
name_servers_search : ['gsfc.nasa.gov', 'nasa.gov', 'foo.com']
Platform: cobbler-2.2.3-2.el6.noarch, cobbler-web-2.2.3-2.el6.noarch
(EPEL) on RHEL6.4
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Robert Jacobson Robert.C.Jacobson(a)nasa.gov
Lead System Admin Solar Dynamics Observatory (SDO)
Bldg 14, E222 (301) 286-1591
11 years, 1 month
Cobbler Power commands
by David Leach
Hi,
We're trying to use cobbler as a tool to power down hosts and power them
up in mass whenever we need to do an image update or just for a downtime.
One issue which is a little frustrating is if you run a power command on
a bunch of hosts and one fails, the command fails at that point. I know
there was a feature request made 6 months ago to fix this, but I was
wondering if there was a work around for this.
11 years, 1 month
Can't find /tmp/pre_install_network_config error on kickstart in F18
by Bret Wortman
I've been trying to troubleshoot this on F18/Cobbler 2.2.3 for two days now
and could use whatever input anyone might have.
I'm using a modified version of the sample.ks kickstart which works great
on F17 and, by copying it and changing the repo stanzas is otherwise
unchagned for F18. I get the above error when booting.
Switch to Ctrl-Alt-F2 and in that console I can confirm that the file isn't
there. I try the commands in the %pre section that are supposed to create
it and discover that "ifconfig" isn't in my path. It doesn't seem to exist
anywhere in the execution environment my system is sitting in at that point
(or in that console, anyway).
I know the MAC is correct -- is this really a problem in that F18 just
doesn't have ifconfig available, or is something else amiss?
Thanks!
*
*
*Bret Wortman*
<http://damascusgrp.com/>
http://damascusgrp.com/ <http://bretwortman.com/>
http://twitter.com/BretWortman
11 years, 1 month
Cannot get everything started on a new buildout
by Dan White
I have two Cobbler Servers - one old one I set up almost two years ago, and another one I am currently trying to build from scratch.
The problem is that I cannot get the new one started up properly.
Cobbler 2.2.3 on 64 bit RHEL 5
Here are some of the problems :
I am not using RHEL's httpd due to local practice of having multiple "stove-pipe" web stacks on each server.
The apache instance is in /opt/site/cobbler/data/apache instead of /var/www
On the old Cobbler, I used RHEL-httpd and sym-linked /var/www/(cobbler/ cobbler_webui_content) to another partition.
On the old one, I was running everything from the hardware IP
On the new one, I am using a vhost
On the old one, netstat says I have one httpd listening on <host-ip>:80, and one listening on 0.0.0.0:443
On the new one, I have one httpd listening on <host-ip>:80, and one listening on <host-ip>:443
Both have a listener on 127.0.0.1:25151 (python)
The first problem is that everything works on the old one and on the new one, I get this:
[root ~]# cobbler sync
httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cobbler/cli.py", line 184, in check_setup
s.ping()
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "/usr/lib64/python2.4/xmlrpclib.py", line 1137, in request
headers
ProtocolError: <ProtocolError for 10.1.1.134:80/cobbler_api: 302 Found>
>From the other end, the Web UI comes up but I cannot get past the login screen and I see no errors in the logs.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
11 years, 1 month
Unable to koan ANY profiles.
by Ronald J. Yacketta
Not sure whats wrong, imported SL 6.3 like I have many times in the past without issue. Go to koan SL 6.3 and now I get
koan --server=SERVER --virt --profile=SL-6.3-x86_64 --virt-name=koan_test -virt-type=qemu --virt-path=/mnt/sas3_6
- looking for Cobbler at http://eSERVER:80/cobbler_api
- reading URL: http://SERVER/cblr/svc/op/ks/profile/SL-6.3-x86_64
install_tree: http://SERVER/scientific6.3-64
libvirtd (pid 3210) is running...
<type 'exceptions.KeyError'>
'image_type'
File "/usr/lib/python2.6/site-packages/koan/app.py", line 250, in main
k.run()
File "/usr/lib/python2.6/site-packages/koan/app.py", line 390, in run
self.virt()
File "/usr/lib/python2.6/site-packages/koan/app.py", line 746, in virt
return self.net_install(after_download)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 635, in net_install
after_download(self, profile_data)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 744, in after_download
self.virt_net_install(profile_data)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 1325, in virt_net_install
(uuid, create_func, fullvirt, can_poll) = self.virt_choose(pd)
File "/usr/lib/python2.6/site-packages/koan/app.py", line 1413, in virt_choose
if (self.image is not None) and (pd["image_type"] == "virt-clone"):
Not sure WTF happened, but NONE of my profiles work now every single one tosses the above koan error. I can list profiles, dumpvars even gen ks without issue.
Any thoughts before I deep six this ~2 year old Cobbler install???
-Ron
11 years, 1 month
Build Report throws 500 Error
by Tom Brown
Hi
I have enabled build reporting but at the end of the ks when the post install trigger is run the following occurs in the apache log
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] mod_wsgi (pid=7347): Exception occurred processing WSGI script '/var/www/cobbler/svc/services.py'.
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] Traceback (most recent call last):
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/var/www/cobbler/svc/services.py", line 83, in application
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] content = func( **form )
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib/python2.6/site-packages/cobbler/services.py", line 152, in trig
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] rc = self.remote.run_install_triggers(mode,"system",system,ip)
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return self.__send(self.__name, args)
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] verbose=self.__verbose
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return self._parse_response(h.getfile(), sock)
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] return u.close()
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] raise Fault(**self._stack[0])
[Mon Mar 11 17:18:43 2013] [error] [client 192.168.10.5] Fault: <Fault 1: "<type 'exceptions.NameError'>:global name 'config' is not defined">
I get a 500 Internal Server Error on the wget -
This is on cobbler-2.2.3-2.el6.noarch
thanks
11 years, 1 month
No more tabs, cannot add/remove repos via web interface
by Orion Poplawski
Running:
server: cobbler-2.4.0-beta3.el6.noarch
client: Fedora 18 with Firefox
For a while now (don't remember when it changed), I cannot add or remove items
from the repos list on a profile.
Also, it seems I no longer have separate tabs, but just a list of all the options.
Anyone else seeing this?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder Office FAX: 303-415-9702
3380 Mitchell Lane orion(a)nwra.com
Boulder, CO 80301 http://www.nwra.com
11 years, 1 month