External DHCP Server integration with foreman

Hi All,

Iam following *
http://projects.theforeman.org/projects/smart-proxy/wiki/ISC_DHCP* to setup
smart proxy for external dhcp server.
iam not seeing dhcp_server entry on the foreman-proxy/settings.yaml file,
if this entry require, please share the syntax.

if anyone share the procedure , will be very helpful.

Thanks ,
Mahesh K

Hi All,

We have enabled foreman-proxy for external dhcp server, able to see dhcp in
smart proxy. Still, proxy not suggesting the ip while creating the vm and
vm getting fail to create with following error.

Unable to save
Create DHCP Settings for mahesh-testing-abcddfs.test.com task failed with
the following error: 400 Bad Request

log file :

I, [2013-07-29T21:55:53.227830 #20176] INFO – : TFTP: entry for
00:1a:4a:a8:7a:00 created successfully
I, [2013-07-29T21:57:31.105331 #20176] INFO – : TFTP: entry for
00:1a:4a:a8:7a:00 created successfully
E, [2013-07-29T21:58:12.566375 #20176] ERROR – : Unable to find the DHCP
configuration or lease files
E, [2013-07-29T21:59:29.871303 #20413] ERROR – : Unable to find the DHCP
configuration or lease files
E, [2013-07-29T22:00:41.211461 #20413] ERROR – : Unable to find the DHCP
configuration or lease files

Kindly Suggest.

Regards,
Mahesh K

··· On Tuesday, 30 July 2013 07:54:02 UTC+1, mahesh.k...@specsavers.com wrote: > > Hi All, > > Iam following * > http://projects.theforeman.org/projects/smart-proxy/wiki/ISC_DHCP* to > setup smart proxy for external dhcp server. > iam not seeing dhcp_server entry on the foreman-proxy/settings.yaml file, > if this entry require, please share the syntax. > > if anyone share the procedure , will be very helpful. > > > Thanks , > Mahesh K >

Hi,

here is mine foreman proxy config file related to DHCP

:dhcp: true
:dhcp_vendor: isc
:dhcp_config: /etc/dhcp/dhcpd.conf
:dhcp_leases: /var/lib/dhcpd/dhcpd.leases

which works for foreman-proxy-1.2.0

··· On Monday 29 of July 2013 23:54:02 mahesh.kurukantla@specsavers.com wrote: > Hi All, > > Iam following * > http://projects.theforeman.org/projects/smart-proxy/wiki/ISC_DHCP* to setup > smart proxy for external dhcp server. > iam not seeing dhcp_server entry on the foreman-proxy/settings.yaml file, > if this entry require, please share the syntax. > > if anyone share the procedure , will be very helpful. > > > Thanks , > Mahesh K


Marek

Hi Marek,

Thanks for your response, we have enabled dhcp proxy with suggested
setting. We can see now the smart proxy shows,dhcp also init.

Still foreman is not suggesting the ip for server, while creating the vm
and also getting the following error while creating the VM.

Unable to save
Create DHCP Settings for firest-vm.uk.specsavers.com task failed with the
following error: 400 Bad Request
Failed to destroy a compute RHEV-M (oVirt) instance
firest-vm.uk.specsavers.com: Cannot remove VM: The disks
firest-vm-uk-specsavers-com_Disk1 are locked. Please try again in a few
minutes.

Please Suggest.

Regards,
Mahesh K

··· On Tuesday, 30 July 2013 09:23:01 UTC+1, Marek Hulán wrote: > > On Monday 29 of July 2013 23:54:02 mahesh.k...@specsavers.comwrote: > > Hi All, > > > > Iam following * > > http://projects.theforeman.org/projects/smart-proxy/wiki/ISC_DHCP* to > setup > > smart proxy for external dhcp server. > > iam not seeing dhcp_server entry on the foreman-proxy/settings.yaml > file, > > if this entry require, please share the syntax. > > > > if anyone share the procedure , will be very helpful. > > > > > > Thanks , > > Mahesh K > > Hi, > > here is mine foreman proxy config file related to DHCP > > :dhcp: true > :dhcp_vendor: isc > :dhcp_config: /etc/dhcp/dhcpd.conf > :dhcp_leases: /var/lib/dhcpd/dhcpd.leases > > which works for foreman-proxy-1.2.0 > > -- > Marek >

This suggests an error while Foreman attempted to contact the smart
proxy server, check /var/log/foreman-proxy/proxy.log. It's possible the
proxy is misconfigured and unable to read a file, or communicate with
dhcpd over OMAPI etc.

··· On 30/07/13 10:57, mahesh.kurukantla@specsavers.com wrote: > > Unable to save > > # Create DHCP Settings for firest-vm.uk.specsavers.com task failed with > the following error: 400 Bad Request


Dominic Cleal
Red Hat Engineering

Thannk you, i have added ompi_key to the setting.yaml file, seems to be
going ahead.

Failed with following error. Please help.

Unable to save
mac value is blank!
Regards,
Mahesh K

··· On Tuesday, 30 July 2013 11:01:05 UTC+1, Dominic Cleal wrote: > > On 30/07/13 10:57, mahesh.k...@specsavers.com wrote: > > > > Unable to save > > > > # Create DHCP Settings for firest-vm.uk.specsavers.com task failed with > > the following error: 400 Bad Request > > This suggests an error while Foreman attempted to contact the smart > proxy server, check /var/log/foreman-proxy/proxy.log. It's possible the > proxy is misconfigured and unable to read a file, or communicate with > dhcpd over OMAPI etc. > > -- > Dominic Cleal > Red Hat Engineering >