FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 04-29-2008, 01:58 PM
Pablo Iranzo Gómez
 
Default COBBLER patch for DHCP host creation/deletion without restarting ISC DHCP

Hi all
Regarding ticket: https://fedorahosted.org/cobbler/ticket/85

I'm submitting a patch that will need extra work from any of you
willing to

This patch introduces two new setting options: omapi and omapi_port

omapi is a protocol spoke by DHCP to perform real-time modification to
entries without restarting the daemon, for doing so, it needs a new
setting in your dhcp.template "omapi port" and restart of the server.

After that, the code for generating the DHCP config just send those
commands directly and avoids final dhcp restart.

Thinks lacking:

- Error checking if dhcp has no omapi enabled and cobbler configuration
says so
- No dhcp started
- no password authentication enabled (described in omshell)
- Port used is 647 as it's defined in SELinux for DHCP, but not sure if
used for any other thing... but for me, it works.

You can check if this works this way:

-creating the entries in /var/lib/cobbler/settings
and /etc/cobbler/dhcp.template.

- Running cobbler sync to write new entry with "omapi port"
for /etc/dhcpd.conf

- Stopping dhcpd

- Editing /etc/dhcpd.conf and remove all host definitions created by
cobbler

- Emptying /var/lib/dhcpd/dhcpd.leases

- Starting dhcpd

After this, you can run cobbler sync and have a look at
"/var/lib/dhcpd/dhcpd.leases" and have a look at the new "host" entries
which will have a "dynamic" stating that have been generated dinamically
with OMAPI.

As the new DHCPD.conf is generated as it was before, in case of a
system restart, the host will be still there.

Please, patches and comments are very welcome

Pablo
--

Pablo Iranzo Gómez (Pablo.Iranzo@redhat.com)
RHCE/Global Profesional Services Consultant Spain
Phone: +34 645 01 01 49 (CET/CEST)
GnuPG KeyID: 0xFAD3CF0D
---
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain
Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-29-2008, 02:16 PM
Michael DeHaan
 
Default COBBLER patch for DHCP host creation/deletion without restarting ISC DHCP

Pablo Iranzo Gmez wrote:

Hi all
Regarding ticket: https://fedorahosted.org/cobbler/ticket/85

I'm submitting a patch that will need extra work from any of you
willing to

This patch introduces two new setting options: omapi and omapi_port

omapi is a protocol spoke by DHCP to perform real-time modification to
entries without restarting the daemon, for doing so, it needs a new
setting in your dhcp.template "omapi port" and restart of the server.

After that, the code for generating the DHCP config just send those
commands directly and avoids final dhcp restart.

Thinks lacking:

- Error checking if dhcp has no omapi enabled and cobbler configuration
says so
- No dhcp started
- no password authentication enabled (described in omshell)
- Port used is 647 as it's defined in SELinux for DHCP, but not sure if
used for any other thing... but for me, it works.

You can check if this works this way:

-creating the entries in /var/lib/cobbler/settings
and /etc/cobbler/dhcp.template.


- Running cobbler sync to write new entry with "omapi port"
for /etc/dhcpd.conf

- Stopping dhcpd

- Editing /etc/dhcpd.conf and remove all host definitions created by
cobbler

- Emptying /var/lib/dhcpd/dhcpd.leases

- Starting dhcpd

After this, you can run cobbler sync and have a look at
"/var/lib/dhcpd/dhcpd.leases" and have a look at the new "host" entries
which will have a "dynamic" stating that have been generated dinamically
with OMAPI.

As the new DHCPD.conf is generated as it was before, in case of a
system restart, the host will be still there.

Please, patches and comments are very welcome

Pablo

------------------------------------------------------------------------


_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools


Very nice!


Does anyone want to take a look at testing this?

I'm looking at applying most of the submitted patches later this week
(this week has been excellent in terms of cobbler contributions, thanks
everyone!) -- when we do it would be nice to have this on the Wiki,
including instructions of what you have to add to
/etc/cobbler/dhcp.template to enable omshell.


Comments on error bits:

- Error checking if dhcp has no omapi enabled and cobbler configuration
says so

This probably generates an error from DHCP, which is probably sufficient given that if you are enabling the omapi
bits that can be part of the instructions.

- No dhcp started

Cobbler check should look for this if manage_dhcp is enabled. So we should be covered there.

- no password authentication enabled (described in omshell)

How do the passwords work?

- Port used is 647 as it's defined in SELinux for DHCP, but not sure if
used for any other thing... but for me, it works.

It appears to be reserved for "DHCP failover" in /etc/services so I
think we're good to go.


Thanks again!

--Michael

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 04-29-2008, 02:26 PM
Pablo Iranzo Gómez
 
Default COBBLER patch for DHCP host creation/deletion without restarting ISC DHCP

Hi

El mar, 29-04-2008 a las 10:16 -0400, Michael DeHaan escribió:
> Very nice!
>
> Does anyone want to take a look at testing this?
>
> I'm looking at applying most of the submitted patches later this week
> (this week has been excellent in terms of cobbler contributions, thanks
> everyone!) -- when we do it would be nice to have this on the Wiki,
> including instructions of what you have to add to
> /etc/cobbler/dhcp.template to enable omshell.

It's on template in RPM, will fill a wiki page I promise!


> Comments on error bits:
>
> - Error checking if dhcp has no omapi enabled and cobbler configuration
> says so
>
> This probably generates an error from DHCP, which is probably sufficient given that if you are enabling the omapi
> bits that can be part of the instructions.

Yes, exactly two errors per defined host , no error if it didn't
worked but didn't complained

>
> - No dhcp started
>
> Cobbler check should look for this if manage_dhcp is enabled. So we should be covered there.

Nice

>
> - no password authentication enabled (described in omshell)
>
> How do the passwords work?

Ala DNSSEC way... not tested, but you're supposed to use that shema for
authentication


> - Port used is 647 as it's defined in SELinux for DHCP, but not sure if
> used for any other thing... but for me, it works.
>
> It appears to be reserved for "DHCP failover" in /etc/services so I
> think we're good to go.

If not, we should ask for another port enabled in DHCP SELinux
policy... anyone using dhcp failover with cobbler?


Thanks for your comments!
Pablo

--

Pablo Iranzo Gómez (Pablo.Iranzo@redhat.com)
RHCE/Global Profesional Services Consultant Spain
Phone: +34 645 01 01 49 (CET/CEST)
GnuPG KeyID: 0xFAD3CF0D
---
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain
Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 09:31 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org