<ProtocolError for localhost:25151/cobbler_api: 404 Not Found>
by John Paget Bourke
Hi,
When I run
koan --list=profiles -s localhost
I get the following error
root@Config cobbler]# koan --list=profiles -s localhost
- looking for Cobbler at http://localhost:25151/cobbler_api
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/koan/utils.py", line 542, in
__try_connect
xmlrpc_server.ping()
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1243, in request
headers
ProtocolError: <ProtocolError for localhost:25151/cobbler_api: 404 Not
Found>
If I try to see if the server is running and listening, the server is ok
[root@Config cobbler]# netstat -an | grep 25151
tcp 0 0 127.0.0.1:25151 0.0.0.0:*
LISTEN
tcp 0 0 127.0.0.1:25151 127.0.0.1:57483
TIME_WAIT
But returns nothing .
[root@Config cobbler]# curl http://localhost:25151/cobbler_api
curl: (52) Empty reply from server
I am using the web GUI and it works ok, no problems.
When I try to use koan or curl and check the logs
[root@Config cobbler]# curl http://localhost:25151/cobbler_api
curl: (52) Empty reply from server
[root@Config cobbler]# date
Sun Oct 30 05:30:55 UTC 2011
[root@Config cobbler]# ls -l
total 1792
drwxr-xr-x. 2 root root 4096 Oct 6 02:24 anamon
-rw-r--r--. 1 root root 1806499 Oct 30 04:50 cobbler.log
-rw-r--r-- 1 root root 73 Oct 29 00:24 install.log
drwxr-xr-x. 2 root root 4096 Oct 6 02:24 kicklog
drwxr-xr-x. 2 root root 4096 Oct 6 02:24 syslog
drwxr-xr-x. 2 root root 4096 Oct 30 04:40 tasks
[root@Config cobbler]# cd /etc/httpd/logs/
[root@Config logs]# ls -l
total 3172
-rw-r--r-- 1 root root 10904 Oct 30 04:45 access_log
-rw-r--r--. 1 root root 789779 Oct 30 02:43 access_log-20111030
-rw-r--r-- 1 root root 32638 Oct 30 05:20 error_log
-rw-r--r--. 1 root root 2403267 Oct 30 03:06 error_log-20111030
The logs do not seem to be affected.
The versions I am running are
[root@Config cobbler]# rpm -qa | grep cobbler
cobbler-2.2.1-1.el6.noarch
cobbler-web-2.2.1-1.el6.noarch
[root@Config cobbler]# rpm -qa | grep koan
koan-2.2.1-1.el6.noarch
In the modules.conf I have
[authentication]
#module = authn_denyall
module = authn_configfile
[authorization]
module = authz_allowall
So I am a bit lost. Any thoughts ?
Thanks
John
10 years, 2 months
Windows install with Cobbler
by Janet.Conkle@afscn.com
Has anyone been successful in installing windows using cobbler? I've
found a few things on the net but nothing definitive. I need a tool
that will install baseline images on lab boxes of both the linux and
Windows flavors.
Janet Conkle
ETG
x5343
11 years, 5 months
ESXi5 system builds via cobbler
by Eddie Velez
I am working with our development lab to install ESXi5 on system via cobbler. ESXi4 and ESXi5 are different in the they boot I have modified /usr/lib/python2.4/site-packages/cobbler/pxegen.py to handle this and created templates to make sure correct boot options are inserted to tftp boot file. The problem I am facing is coping all necessary files into /tftpboot/images directory and make sure they don't get deleted next time I do a cobbler sync. Can some please point me to which file I have to modify to copy data to directory.
________________________________
Eddie Velez
Sr. UNIX System Administrator
2650 N 1st Suit 300
San Jose, CA, 95135
408.904.4136 Office
408.307.1632 Mobile
http://www.emulex.com<http://www.emulex.com/>
[Description: Emulex]<http://www.emulex.com/emulex-connects/>
This message contains Emulex confidential information intended only for specific recipients and is not to be forwarded to anyone else. If you have received this message in error, please delete it immediately. Thank you.
11 years, 6 months
Can Koan be used to pxeboot a vCenter 5 VM?
by Daniel Kertby
Hi all.
I have read the man manual page for Koan and also searched for an
answer but haven't been wiser.
Is it possible to use koan to reset (or power on if off) then issue a
pxeboot for a vCenter 5 VM?
Im not interested to let Koan create the VM.
Thanks in advance,
Daniel
11 years, 7 months
Upating variables from a %pre script
by Matt Bryant
All,
I was wondring if someone could point me in the right direction Is it
possible to update a vaiable in kickstart file give user input in a %pre
script. Basically i have a varibale buildType and whilst I can override
the default value of the profile using ksmeta input when adding a system
to cobbler would like to also be able to override given user input from
%pre script.
Have tried just about everything i can think of including creating a
file ks.settings which held the variations
#set global $buildType = "value"
#set global buildType ="value"
#set buildType = "value"
#set $buildType = "value"
then doing a #include but that doesnt seem to work ...
Is there in fact a way this can be done ??
Any help appreciated.
rgds
Matt B.
11 years, 7 months
Re: [cobbler] Upating variables from a %pre script
by Matt Bryant
Adrian,
Thats what I thought but I was getting an error and in fact the
kickstart was bombing out with an error and from what i could see it was
as if the include file was trying to be sourced before it actually existed.
Whats interesting is that after seeing your reply I tweaked the
kickstart so instead of saying somthign like
#if $userConfig == "1"
$SNIPPET('spacewalk/1/user_input')
%include /tmp/ks.settings
#end if
which completed failed I changed to
#if $userConfig == "1"
%pre --interpreter /usr/bin/python
$SNIPPET('spacewalk/1/user_input')
%end
%include /tmp/ks.settings
#end if
Now, this didnt fully work but at least it didnt crash out either ....
at the end of the snippet i had a file /tmp/ks.settings with
#set global $buildType = "CUSTOMER"
which to my mind should update the kickstrt profiles buildType variable
but the code later in the kickstart
ie
#if $buildType != "INTERNAL"
$SNIPPET('spacewalk/1/packages.customer')
#end if
suggests otherwise ie the extra packages in the snippet are not
installed ...
Its starting to get a little frustrating since from all that I have read
this should work ,,,,
rgds
Matt B
On 30/08/12 18:42, Adrian Cruceru wrote:
> Hi Matt,
>
> In kickstart file you could use:
>
> %include /tmp/configvalue.txt
>
> And in %pre you could just add whatever you want in that file, given
> kickstart syntax.
> i.e: echo "bootloader --location=mbr" > /tmp/configvalue.txt
>
> Regards,
> Adrian
>
> On 08/30/2012 07:43 AM, Matt Bryant wrote:
>> All,
>>
>> I was wondring if someone could point me in the right direction Is it
>> possible to update a vaiable in kickstart file give user input in a
>> %pre script. Basically i have a varibale buildType and whilst I can
>> override the default value of the profile using ksmeta input when
>> adding a system to cobbler would like to also be able to override
>> given user input from %pre script.
>>
>> Have tried just about everything i can think of including creating a
>> file ks.settings which held the variations
>>
>> #set global $buildType = "value"
>> #set global buildType ="value"
>> #set buildType = "value"
>> #set $buildType = "value"
>>
>> then doing a #include but that doesnt seem to work ...
>>
>> Is there in fact a way this can be done ??
>>
>> Any help appreciated.
>>
>> rgds
>>
>> Matt B.
>>
>> _______________________________________________
>> Anaconda-devel-list mailing list
>> Anaconda-devel-list(a)redhat.com
>> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
>>
>
11 years, 7 months
Could not retrieve catalog from remote server
by Bai Shen
I'm trying to get puppet to connect to my puppetmaster, but I keep getting
the same error.
err: Could not retrieve catalog from remote server: SSL_connect returned=1
errno=0 state=SSLv3 read server certificate B: certificate verify failed
I've made sure ntpd is running during the kickstart and that the times are
the same on both machines. I've also ran puppet cert --clean --all on the
puppetmaster. I have the puppetmaster set to autosign all certs.
Any ideas what I'm missing? Everything I've found says to make sure the
clocks are the same, which I've already done. I did see one post talking
about an issue with Ruby 1.9.2, but I'm running 1.8.7.
Thanks.
11 years, 7 months
Cobbler Web not retaining System MAC address (Bai Shen)
by Eldred, Doug
> Found my problem. I didn't realize that I had to add an interface before
> assigning a MAC.
Yes, it's all too easy to spend a lot of time creating a network setup only to lose it all because you failed to supply ONE value somewhere. I've had similar problems in the past. It's a lot easier, faster, more reliable, etc. to use the CLI to create or make major changes to system objects (and perhaps others as well). On the flip side, the GUI makes it fairly easy to create multiple network interfaces, something I have yet to figure out from the CLI self-help and documentation.
Regards,
Doug
----
MC Linux Infrastructure, 970-898-0411, Fort Collins 3UR8 (MS 57)
"The single biggest problem in communication is the illusion that it has taken place." -- George Bernard Shaw
11 years, 7 months
Cobbler Web not retaining System MAC address
by Bai Shen
If I add a system using the following, it keeps the MAC address.
cobbler system add --name=string --profile=string --mac=AA:BB:CC:DD:EE:FF
But if I set a MAC address using Cobbler Web, it doesn't save it.
Has anyone else ran into this? Is it a bug or am I doing something wrong?
Thanks.
11 years, 7 months
is it possible to have 2 initrd files for a single distro?
by Mark Christian
I would like the append line in PXE conf to look like:
append initrd=/images/cent5.6/initrd.img,/images/cent5.6/dd.img
...note the dd.img file is included along with the standard initrd.img
I maintain certain older releases on new hardware, and being able to inject a NIC driver into PXE boot is helpful. I don't see an obvious way to accomplish this with cobbler 2.2.3. Can Cobbler sync the 2 initrd's to /tftpboot/images/$distro/ and template the needed PXE config?
Example PXE install with 2 initrd.img:
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/5...
--Mark
Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
11 years, 8 months