my work on the web ui
by Greg Swift
So you can follow along here:
https://github.com/gregswift/cobbler.git
or
git://github.com/gregswift/cobbler.git
So far I've only applied a few more cleanup patches aside from all of the
stuph i posted to the list yesterday.
So.. James and I have had a few short conversations about his plans for
cleaning up the web ui of cobbler... He'd already been thinking about and
planning it and I just decided to help. I threw together those mockups from
last weekend, and the few responses seem to have been positive.
i'm not really trying to change actual functionality right now, I'm just
trying to help bring the interface towards his goal of more standard
html+css. so i'm picking up little pieces, and the big bit i'm doing is
restructuring the html away from tables and fieldsets towards divs. Except
for tabular data... tabular data should still be tables. The closest to a
functional change I was looking at was the drop down action list on left
hand side.. and i'm holding off on that for a bit. Occasionally, i am
throwing in a slight change for the sake of consistency and such. I'll
gladly make a note and explain those changes.
Along the way i've found a few little artifacts floating around and have
been submitting patches for those, because they are actually things that
should be fixed regardless of how the re-write work comes along.
12 years, 10 months
Cobbler 2.0.11-2
by Scott Henson
Some may have noticed that the Cobbler 2.0.11-1 release did not have a
change log update in the spec file. This release fixes that.
--
Scott Henson
Red Hat CIS Operator
WVU Alum BSAE/BSME
12 years, 11 months
[PATCH] Use :// as separator for virsh URIs
by Alexander Todorov
Hi folks,
I believe that virsh power URIs are inconsistent with libvirt. You have to enter
e.g. qemu+ssh:server to get qemu+ssh://server. This is inconsistent with
libvirt/virsh commands. I believe this simple patch fixes it.
--
Alexander.
12 years, 12 months
anamon fail after reload
by Greg Swift
I've got anamon enabled on my systems and I noticed that when I reload
the system, if I'm watching the console, immediately after it boots
for the first time and comes to the login prompt it gets a traceback
to the console. Here is the traceback:
Traceback (most recent call last):
File "/usr/local/sbin/anamon", line 275, in ?
anamon_loop()
File "/usr/local/sbin/anamon", line 224, in anamon_loop
wf.update()
File "/usr/local/sbin/anamon", line 121, in update
self.uploadWrapper()
File "/usr/local/sbin/anamon", line 106, in uploadWrapper
if session.upload_log_data(name, self.alias, sz, offset, data):
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 1147, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
return u.close()
File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "exceptions.OSError:[Errno 2] No such file
or directory: '/var/log/cobbler/anamon/systemname'">
And its right... there is no /var/log/cobbler/anamon/systemname...
but there isn't even a /var/log/cobbler.
I do have both {pre,post}_anamon in my kickstart template.
tried googling a bit, didn't find anything useful, but could have just
had the wrong search phases. any suggestions?
-greg
ps. shouldn't matter, but I did go to 2.0.11 last week, but I can't
say for certain this was not happening before last week. I don't
normally watch the console.. and haven't really needed to look at the
anamon output in a while.
13 years
[PATCH] Create more condensed s390 parm files
by Tim Hardeck
This change allows the utilization of all 80 characters per line in
s390 parm files which makes them more condensed.
It should now also be possible to use parameters that are longer than
80 characters like for example long installation urls and similar.
I have removed the strip function because it is not needed anymore and
might also result in problems with this change.
The leading space could be also removed with an additional if else
expression but I think it is not worth it.
Signed-off-by: Tim Hardeck <thardeck(a)suse.de>
---
templates/pxe/s390x_parm.template | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/templates/pxe/s390x_parm.template b/templates/pxe/s390x_parm.template
index f536c0d..5e47f02 100644
--- a/templates/pxe/s390x_parm.template
+++ b/templates/pxe/s390x_parm.template
@@ -10,12 +10,12 @@
## =====================================
#set $output_str=""
#for $item in $argList
-#if $len($output_str) + $len($item) >= 80
-#echo "%s\n" % $output_str.strip()
-#set $output_str = ""
-#end if
#set $output_str = "%s %s" % ($output_str, $item)
+#if $len($output_str) >= 80
+#echo "%s\n" % $output_str[0:80]
+#set $output_str = $output_str[80:$len($output_str)]
+#end if
#end for
#if $len($output_str) > 0
-#echo "%s\n" % $output_str.strip()
+#echo "%s\n" % $output_str
#end if
--
1.7.3.4
13 years
running "scripts" via koan
by Greg Swift
So I've got a scenario what it would be very useful for koan to
initiate an external script, scripts that do things like:
1: detach all attached LUNs except for the root OS'
2: un-register from the satellite server
3: I'm sure there is something else that'd be useful
1 could probably be done as a triggered script on the cobbler server
if I stored the UUID of the LUN in cobbler, but 2 requires live
information on the system being rebuilt to perform.
So what I'm thinking is that it would be kewl if there was a cobbler
trigger like system installed by koan, the files could be distributed
via homegrown RPMs, debs, or just by a cobbler or a config management
tool.
Anyone have any thoughts on this concept? I don't know that I'll have
a chance to try and implement it anytime soon.. i've still gotta
finish the web ui work, but I'm interested in the concept.
-greg/xaeth
13 years
[PATCH] Add possibility to interrupt zPXE and to enter CMS
by Tim Hardeck
This change should make it easier to interrupt zPXE when it is
used as the default profile.
As long as a user is connected a ten second timer is run at the
beginning of zPXE to give the possibility to exit zPXE and
enter CMS.
Signed-off-by: Tim Hardeck <thardeck(a)suse.de>
---
scripts/zpxe.rexx | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/scripts/zpxe.rexx b/scripts/zpxe.rexx
index 2050b18..24ec755 100644
--- a/scripts/zpxe.rexx
+++ b/scripts/zpxe.rexx
@@ -59,6 +59,22 @@ userid = translate(id, lower, upper)
'cp set run on'
'cp set pf11 retrieve forward'
'cp set pf12 retrieve'
+
+/* Make it possible to interrupt zPXE and to enter CMS even with a
+ specific user profile present
+*/
+if (dsc <> 'DSC') then do /* user is connected */
+ say ''
+ say 'Enter a non-blank character and ENTER (or two ENTERs) within 10'
+ say ' seconds to interrupt zPXE.'
+ 'WAKEUP +00:10 (CONS'
+ /* Check for interrupt */
+ if rc = 6 then do
+ say 'Interrupt: entering CMS.'
+ pull /* Clear Stack */
+ exit
+ end
+end
/* Check for config file */
if lines(config) > 0 then do
--
1.7.3.4
13 years
Cobbler 2.0.11
by Scott Henson
I've released Cobbler 2.0.11 today. Lots of bug fixes are included in
this release. It can be found in the usual places[0]. Please provide
karma in Bodhi[1]. It should hit the various testing repositories in the
next day or so. Thanks to all those who contributed to this release.
SHA256 sums:
b7b5eb143eead40a06152a6515f87c29f523098fe7d3e7d4fecbf31ace7a08e5 cobbler-2.0.11-1.el5.src.rpm
d3c870e373d6f6dcf5b1986ca48d003abb5b53cfbf5df7aab85e98f6d41c6bba cobbler-2.0.11.tar.gz
[0] - http://shenson.fedorapeople.org/cobbler/
[1] - https://admin.fedoraproject.org/updates/search/cobbler-2.0.11-1
--
Scott Henson
Red Hat CIS Operator
WVU Alum BSAE/BSME
13 years