Summit Meetup
by James Cammarata
If any of you are here in Boston attending Red Hat's Summit and want
to meet up to talk cobbler, shoot me an email. I'm also planning on
attending the campground session "Linux Manageability & CIM
Technology" at 4:50pm tonight (room 301), so if you're there I'll be
the guy with the #cobbler hat on. I've already met Greg ("xaeth") and
a couple of other cobbler users, so if you see me wandering around say
hi.
James C.
11 years, 10 months
A question about pxe_just_once logic
by Zack Perry
Hi all,
I was building a CentOS 6.2 host that supports 9 CentOS 6.2 KVM guests. One of the guest is the management node that runs cobbler 2.2.2.
I have always been using the pxe_just_once in /etc/cobbler/settings, but it's been a while since I have touched cobbler, and I got into troubles initially, described below.
Given the way we do, I have never used koan to setup virtual machines. I just use a simple Python script to parse a guest XML template file, and creates all necessary guest XML files and a shell script to run the corresponding the 'cobbler system add --name=...' commands. We do this since we want to use the same way as for physical nodes.
But this time, I got in troubles PXE booting the 1st guest immediately.
Checking it further, I found in the management node's /var/lib/tftpboot/pxeboot.cfg, the PXE boot file shows "dynamic" content, like this:
[...]
ks=http://192.168.123.3/cblr/svc/op/ks/system/vc1
[...]
AFAIR, it should be like this:
DEFAULT local
PROMPT 0
TIMEOUT 0
TOTALTIMEOUT 0
ONTIMEOUT local
LABEL local
LOCALBOOT -1
Puzzled, I thought it for a while, and decided to do the following:
cobbler system edit --name=vc1 --netboot-enabled=0
and then cobbler sync
Lo and behold, the corresponding PXE conf file now became correct.
I then did a
cobbler system edit --name=vc1 --netboot-enabled=1
and on the host, issued a
sudo virsh start vc1
followed by a
sudo virt-viewer vc1
Everything went as anticipated afterwards.
Sure, I got around the issue, but IMHO this part is confusing.
I think that it's just unreasonable to use the sequence (netboot-enabled=0; cobbler sync; netboot-enabled=1) that I did above to enable a freshly defined node to PXE boot. There should be a third state just for a fresh install.
Or, did I misunderstand anything?
Regards,
Zack
11 years, 10 months
Re: [cobbler] Quick Q regarding cobbler's Web UI HTTPS setup?
by Zack Perry
Hi James,
[...]
> You'll need to add a vhost or other SSL (443) entry for that.
Like below?
225 # Per-Server Logging:
226 # The home of a custom SSL log file. Use this when you want a
227 # compact non-error SSL logfile on a virtual host basis.
228 CustomLog logs/ssl_request_log \
229 "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
230
231 </VirtualHost>
232 <VirtualHost _default_:443>
233
234 <LocationMatch "^/cobbler/web/*">
235 RewriteEngine on
236 RewriteRule ^(.*) https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
237 </LocationMatch>
238
239 </VirtualHost>
No dice still :-(
Regards,
Zack
11 years, 10 months
Quick Q regarding cobbler's Web UI HTTPS setup?
by Zack Perry
I have been just using the plain HTTP + the digest auth for the Web UI access. I don't use the UI much, but today a colleague wanted me to setup the HTTPS access.
Looking at http://cobbler.github.com/manuals/2.2.3/6_-_Web_Interface.html
It seemed to be straightforward. I added only the following statements to the end of /etc/httpd/conf.d/ssl.conf
<LocationMatch "^/cobbler/web/*">
RewriteEngine on
RewriteRule ^(.*) https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
</LocationMatch>
But then my test of trying to access https://.../cobbler_web I got got
Not Found
The requested URL /cobbler_web was not found on this server.
Checking /var/log/httpd/ssl/ssl_error.log:
[Wed Jun 27 09:43:54 2012] [error] [client ip RADACTED] File does not exist: /var/www/html/cobbler_web
[Wed Jun 27 09:43:59 2012] [error] [client ip RADACTED] File does not exist: /var/www/html/cobbler_web
[Wed Jun 27 09:44:11 2012] [error] [client ip RADACTED] File does not exist: /var/www/html/cobbler_web
The following is what I have done to ssl.conf. Numbers are line numbers:
225 # Per-Server Logging:
226 # The home of a custom SSL log file. Use this when you want a
227 # compact non-error SSL logfile on a virtual host basis.
228 CustomLog logs/ssl_request_log \
229 "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
230
231 <LocationMatch "^/cobbler/web/*">
232 RewriteEngine on
233 RewriteRule ^(.*) https://%{SERVER_NAME}/%{REQUEST_URI} [R,L]
234 </LocationMatch>
235
236 </VirtualHost>
I checked and double-checked, but couldn't spot anything wrong. Thanks in advance for any hints.
Regards,
Zack
11 years, 10 months
Error when starting cobbler under RHEL 6.3
by Mackell, Thomas O
When I start the cobblerd daemon, I see the following messages displayed on the console:
# service cobblerd start
Starting cobbler daemon: Traceback (most recent call last):
File "/usr/bin/cobblerd", line 76, in main
api = cobbler_api.BootAPI(is_cobblerd=True)
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 130, in __init__
self.deserialize()
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 898, in deserialize
return self._config.deserialize()
File "/usr/lib/python2.6/site-packages/cobbler/config.py", line 266, in deserialize
raise CX("serializer: error loading collection %s. Check /etc/cobbler/modules.conf" % item.collection_type())
CX: 'serializer: error loading collection profile. Check /etc/cobbler/modules.conf'
[ OK ]
[root@local ~]# cobbler check
cobblerd does not appear to be running/accessible
This system is running RHEL 6.3, This issue was also happening under the 6.2, before I upgraded it to 6.3
I took a look at the modules.conf file and did not see any issues.
Any ideas as to resolve this?
Thomas Mackell
11 years, 10 months
Kickstart bug forces the use of old-style networking
by Eric Chennells
Hello,
I have encountered this bug
https://bugzilla.redhat.com/show_bug.cgi?id=817116#c2 , where during PXE
install I get the following error:
"ERROR: The following problem occurred on line 0 of the kickstart file:
Unable to open input kickstart file: Could not open/read
file:///tmp/pre_install_network_config"
The above bugzilla page advises to use "old-style" networking in order to
bypass this bug. I think that old-style networking just means not defining
the MAC address of the system, is that correct? By not setting the MAC
address the kickstart says it is using "old-style". This does result in
the pxe install working fine. Which is good.
The problem is that now my systems don't have MAC addresses set and are
not being assigned the IP that I specified with --ip-address when defining
the system, the DHCP server is just handing out the next available IP.
Also no pxe file (/var/lib/tftpboot/pxelinux.cfg) is being created that
corresponds with the MAC address of the system (obviously sense it is not
aware of what the MAC should be).
Also, not sure if this is related, but I have set "pxe_just_once: 1" in
/etc/cobbbler/settings, but this seems to have no affect, and the
"netboot_enabled" is not being set to false after the first PXE.
Versions:
Cobbler version 2.2.2.
Scientific Linux 6.1
Thanks for any advice anyone can provide.
Eric
Notice of Confidentiality: The information transmitted is intended only for the
person or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, re-transmission, dissemination or other use of
or taking of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited. If you received this in error
please contact the sender immediately by return electronic transmission and then
immediately delete this transmission including all attachments without copying,
distributing or disclosing the same.
11 years, 10 months
Re: [cobbler] cobbler Digest, Vol 48, Issue 32
by Eldred, Doug
Thanks. Empirically if you force the existing EL6 koan RPM to install despite the Python mismatch, then move the koan/ subdirectory into the 2.7 Python location, it all works.
Regards,
Doug
----
MC Linux Infrastructure, 970-898-4860, Fort Collins 3UR8 (MS 57)
"Be the change you wish to see in the world." -- Gandhi
-----Original Message-----
From: cobbler-bounces(a)lists.fedorahosted.org [mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of cobbler-request(a)lists.fedorahosted.org
Sent: Tuesday, June 26, 2012 6:00 AM
To: cobbler(a)lists.fedorahosted.org
Subject: cobbler Digest, Vol 48, Issue 32
Send cobbler mailing list submissions to
cobbler(a)lists.fedorahosted.org
To subscribe or unsubscribe via the World Wide Web, visit
https://fedorahosted.org/mailman/listinfo/cobbler
or, via email, send a message with subject or body 'help' to
cobbler-request(a)lists.fedorahosted.org
You can reach the person managing the list at
cobbler-owner(a)lists.fedorahosted.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of cobbler digest..."
Today's Topics:
1. koan for Python 2.7 (Eldred, Doug)
2. Re: koan for Python 2.7 (Jörgen Maas)
----------------------------------------------------------------------
Message: 1
Date: Mon, 25 Jun 2012 17:14:31 +0000
From: "Eldred, Doug" <doug.eldred(a)hp.com>
To: "cobbler(a)lists.fedorahosted.org" <cobbler(a)lists.fedorahosted.org>
Subject: [cobbler] koan for Python 2.7
Message-ID:
<D86CF1D2733AD84EBF12FF60827B12593A062C01(a)G4W3215.americas.hpqcorp.net>
Content-Type: text/plain; charset="us-ascii"
Is there a version of koan available yet that uses Python 2.7 instead of 2.6?
Regards,
Doug
----
MC Linux Infrastructure, 970-898-4860, Fort Collins 3UR8 (MS 57)
"Be the change you wish to see in the world." -- Gandhi
------------------------------
Message: 2
Date: Mon, 25 Jun 2012 19:17:14 +0200
From: Jörgen Maas <jorgen.maas(a)gmail.com>
To: cobbler mailing list <cobbler(a)lists.fedorahosted.org>
Subject: Re: [cobbler] koan for Python 2.7
Message-ID:
<CAL3dZDcNLtfyN060bw=UWEP4dk+-BNWo+8X5YnZ-6MHMmaojXw(a)mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
On Mon, Jun 25, 2012 at 7:14 PM, Eldred, Doug <doug.eldred(a)hp.com> wrote:
> Is there a version of koan available yet that uses Python 2.7 instead of
> 2.6?
>
>
Yes, e.g. on Fedora17. Are you having problems with Koan and python 2.6 ??
--
Grtz,
Jörgen Maas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://fedorahosted.org/pipermail/cobbler/attachments/20120625/2e589f3c/...>
------------------------------
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
End of cobbler Digest, Vol 48, Issue 32
***************************************
11 years, 10 months
koan for Python 2.7
by Eldred, Doug
Is there a version of koan available yet that uses Python 2.7 instead of 2.6?
Regards,
Doug
----
MC Linux Infrastructure, 970-898-4860, Fort Collins 3UR8 (MS 57)
"Be the change you wish to see in the world." -- Gandhi
11 years, 10 months
Successful Install of Fedora 17, But More Questions
by Bob Cochran
Hi!
I just used cobbler to install Fedora 17 x86_64 on my laptop, and it
worked quite nicely! I copied the sample.ks kickstart provided by
cobbler to sample1.ks file and modified that to comment out the skipx
line thinking this would get me a graphical install:
# skipx
My laptop booted pxelinux.0, but then I got error messages from dracut
such as this:
dracut Warning: no suitable images
dracut Warning: unable to process initqueue
After some thinking and research about this I realized that the profile
I added named "Fedora-17-x86_64" was not pointing at a kickstart file,
so I edited it:
cobbler profile edit name=Fedora-17-x86_64
--kickstart=/var/lib/cobbler/kickstarts/sample1.ks
Then I tried another installation attempt. This stopped abruptly with
the error message:
The following error was found while parsing the kickstart configuration
file:
Section %pre does not end with %end
So I added %end to the end of the %pre, %packages and %post.
This got me a successful and basic non-gui installation. I was able to
reboot, login as the root user, and do a yum update.
I have some questions. I want this laptop computer to start interface
'wlan0' (the wireless card) most of the time and connect to ssid
'hygrophila' if possible. If it is plugged in to a wired connection,
interface eth0, then it should prefer that instead, and I want to assign
it a static ip address. How do I do this? Do I pass a network string
through the cobbler system I have defined for this laptop?
Or, should I be passing system-specific settings through "snippets"?
Evidently, I am going to need to edit sample1.ks a few times and then do
a fresh install on the laptop after each round of editing the kickstart,
until I get it correct. I assume that if I change the "system" entry
netboot-enabled=false to netboot-enabled=true, this will let me try out
a fresh install and see if I got it right.
Likewise, if I want to set the hostname of the laptop, I should be doing
this through the system entry, rather than through the kickstart.
Thanks
Bob Cochran
11 years, 10 months