preserve pxelinux.cfg ?
by Tom Brown
Is it possible to have cobbler not blat pxelinux.cfg but merely add to
it or delete from it?
We have a situation where the same build box is needed to PXE different
systems, jumpstart etc, but i dont want to not be able to use cobbler.
Anything that gets added into there not by cobbler gets removed when a
sync is run.
Any ideas on if this could work?
thanks
15 years
[PATCH] Removed support for pre-1.6 connections.
by Darryl L. Pierce
With this patch, the Ruby bindings are no longer backwards compatible
with pre-1.6 Cobbler installations.
Signed-off-by: Darryl L. Pierce <dpierce(a)redhat.com>
---
contrib/ruby/lib/cobbler/base.rb | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/contrib/ruby/lib/cobbler/base.rb b/contrib/ruby/lib/cobbler/base.rb
index df84ac1..47dce63 100644
--- a/contrib/ruby/lib/cobbler/base.rb
+++ b/contrib/ruby/lib/cobbler/base.rb
@@ -120,17 +120,6 @@ module Cobbler
puts "Connection: writable=#{writable}" if @@debug
@@connection ||= XMLRPC::Client.new2("http://#{@@hostname}/cobbler_api")
- # in pre-1.5 versions, a separate path was used for writable calls
- # TODO: remove this code in 1.6 (dlp)
- version = remote_version
- puts "Remote version: #{version}" if @@debug
- if writable &&
- version < 1.5 &&
- !(@(a)connection.instance_variable_get('@path') =~ /rw$/)
- puts "Older version detected: connecting to R/W endpoint" if @@debug
- @@connection = XMLRPC::Client.new2("http://#{@@hostname}/cobbler_api_rw")
- end
-
return @@connection
end
--
1.6.0.6
15 years
[PATCH] dhcp template option host-name instead hostname
by Vreman, Peter
The hostname option in dhcpd.conf is called 'option host-name' and not 'option hostname'.
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
15 years
[PATCH] fix dhcp template generation
by Vreman, Peter
The dhcp template generation is broken when there is no dns-name for interfaces set. The attached patch fixes this problem and does some cleanup to the code. Also the entries are now named with the system record name and interface instead of generic<idx>. This makes debugging the template easier.
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
15 years
Changes to cobbler auto-discovery backend, cobbler-register implementation
by Michael DeHaan
On my system, I have a network configuration where eth0 is a real
interface, lo is a loopback (obvious), and "london" is a bridge around eth0.
What I found out was that the cobbler-register script, as well as the
autodetection in koan, did not correctly find my MAC address, because
rhpl.ethtool saw the bridge
as active, but the actual MAC address I cared about was eth0.
Solution: Change the code around a fair amount.
What this means: Potentially, if you run cobbler-register, if can pick
up some interfaces that are /not/ active, according to standard
definitions, but the logic to figure all
of this out from ethtool is a bit complex. Basically it means
cobbler-register could, in some /desktop/ cases, create interfaces named
wlan0, wlanmaster, etc.
I think in server cases the likelihood of this being a problem is zero,
and that's where cobbler-register is used, so I think this is not a bad
thing.
On the plus side, making this change (for those that can understand
it... it's complicated!) means that cobbler-server autodection now
works, so the following kinds of reinstalls
now work as expected, even if you have some bridges set up:
"koan --server=cobbler.example.org --replace-self"
(If any system records are found matching any IP/MACs found on the
system, reinstall that system record)
AND
"koan --server=cobbler.example.org --update-files"
(Update files for the system as defined in cobbler).
The logic for discovering MACs/IPs here is looser -- here it's not a
problem if we accidentally find wireless devices, and we also search for
all IPs/MACs, not just for things that
are "non-bridgey".
Perhaps in the future we teach cobbler's system records to be able to
create bridges, in which case, we may also register the bridge objects
with cobbler-register.
For all that find the above confusing, I think we can ignore it, though
if it made sense to you, and you had a question, let me know ... it may
be easier just to see what's changed in git.
--Michael
15 years
The koan live CD returns!
by Michael DeHaan
Well, not quite.
Jeremy Katz has figured out the proper magic-foo we need to change to
the grubby invocation, so we can now use the koan live CD once again
with some minor tweaks, coming shortly.
The koan live CD is nice because it (A) autodiscovers systems, acting as
a PXE simultator, (B) unlike "cobbler buildiso" output you never ever
have to reburn it.
It doesn't offer support for asking what profile you want to install
(yet) if the system isn't defined in Cobbler ... like a proper PXE
simulator, but I see that as being pretty easy to add.
Look for this to be coming back soon. Buildiso support is useful and
works on all hardware, where the live CD always may not, so it's staying
around too.
--Michael
15 years
[PATCH] Change to network_config snippet to ignore bond masters
by James Cammarata
Available via my github:
commit 90e57b0fcb5b828777abba24e15de0b11372eb8b
Author: James Cammarata <jimi(a)sngx.net>
Date: Tue May 5 19:19:31 2009 -0500
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
15 years
webui edit pages in firefox on 1024x768
by Vreman, Peter
The edit page content is displayed below the sidebar in Firefox. With IE7 the content is correctly displayed on the right of the sidebar.
Maybe someone with CSS knowledge can look at it.
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
15 years
[PATCH] webui generic multiple delete and generic save
by Vreman, Peter
Please find a patch attached building on top of the generic list patch I sent before:
- multiple delete support (still missing a recursive checkbox)
- generic copy and rename
- cleanup of the edit/rename/copy in generic edit (it is now implemented like I already did for the systems in the old 1.6.x webui)
- generic save method based on the get_fields
I noticed that the names (e.g. ksmeta<>ks_meta, dhcptag<>dhcp_tag) in the get_fields() are different from the names in the remote_methods() list. This creates conflicts and fails to save the fields. Maybe the remote_method names need to be adjusted or even be replaced by the new get_fields() structure.
Regards,
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
15 years
netboot enable does not work without sync with new dhcp template
by Vreman, Peter
Changing the netboot to enable does not work anymore without running the sync command. The reason is that the dhcp template does not generate the next_server and filename lines for a host when netboot is disabled.
My proposal is to split the code single sync.run() into multiple methods .run_dhcp(), .run_dns() and .run_files(). The .run() will then call all the specific methods.
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
15 years