In reference to the ilo pieces we should have a look at the code for fence ilo for the cluster project. This will give the necessary bits to write ilo code for cobbler
------------------- Joseph Boyer Jr. Liquidnet Holdings Inc. Enterprise Technology Services Joseph.Boyer@liquidnet.com T: +1 646.660.8352 C: +1 646.284.8394
-----Original Message----- From: Michael DeHaan [mailto:mdehaan@redhat.com] Sent: Thursday, November 13, 2008 01:35 PM Eastern Standard Time To: cobbler mailing list Subject: Re: WebUI operations page
Vreman, Peter - Acision wrote:
I think the Netboot Enable option is hidden too much between other settings in the edit systems page. The option has major impact on system behaviour if the nodes are always using PXE boot. An example of a situation that can happen. A user selects a profile and marks the checkbox for a node. Nothing happens at first. But a week later the node crashes with a kernel panic and reboots. Now the system will be redeployed.
A solution might be to not only disable the PXE after deployment, but also change the profile assigned to the system.
I'm not sure if you're aware, but the pxe_just_once setting in /etc/cobbler/settings is designed to prevent this from happening. It toggles the netboot flag automatically after finishing installing the system.
If you were, I thought it beared repeating for everyone else's context and in case they weren't aware of this.
Enabling the netboot and assigning a profile is an operation and not a node configuration. Is it possible to create a operations page.
In the operations page you can then do the actions like:
set active profile
enable netboot, with also a trigger that allows a script to
be called that modifies bootorder at the node through ILO.
(optional) additional features like reboot automatic
through ILO
Actions button like reboot
Example layout:
System Netboot Active Profile Profile Option Actions
Node1 X Localboot Reboot Poweron Poweroff
Node2 X Saveimage node2-20081113.img Reboot Poweron Poweroff
Node3 RHEL4.6 webserver Reboot Poweron Poweroff
Node4 X RHEL4.6 Reboot Poweron Poweroff
Node5 X Loadimage node5-20081031.img Reboot Poweron Poweroff
In the system edit page you can then select multiple profiles that are allowed for the node.
Do you think this is a good idea? How hard is it to implement the parts:
I think it's an excellent idea, and can be done by making modifications to the existing "list systems" page.
WebUI with dropdown boxes
Add ILO support
There have been talks about doing this, though the one project to simplify the setup of the ILO bits wasn't ever created. Do you have ideas on what tools you would use to implement this and how configuration of the cobbler-system to power management tools would be handled?
I believe the suggestions revolved around using the fence scripts from our cluster tools though those aren't available seperately IIRC.
It could be done as simply as having a field for "poweron command" and "poweroff" command, couldn't it? Then we could enable those buttons if those fields were set.
cobbler system list | grep lab3 | xargs -n1 --replace cobbler system edit --name={} --poweron-command="..."
???
Want to take a crack at adding this?
I think if we do this we also want the following commands to work:
cobbler system edit --name=foo --power=on --netboot-enabled=1 cobbler system edit --name=foo --power=off
Add (customizable) Actions to call a shell scripts
Not sure what you mean by this last one, though something like the above may work well.
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.
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
cobbler@lists.fedorahosted.org