Create DHCP Settings for NAME.DOMAIN task failed with the following error: 400 Bad Request

Hi,
When trying to provision a node i have the following error? Create DHCP
Settings for 000ffe7553e8.cell task failed with the following error: 400
Bad Request

I seen before something about sinatra, but not sure what/how to fix this?

The foreman-proxy log shows:
/usr/share/foreman-proxy/bin/smart-proxy:44
D, [2013-11-19T15:36:33.208919 #1577] DEBUG – : Reading config file
/etc/dhcp/dhcpd.conf
D, [2013-11-19T15:36:33.232344 #1577] DEBUG – : Loading subnets for
127.0.0.1
D, [2013-11-19T15:36:33.232449 #1577] DEBUG – : Added
192.168.0.0/255.255.255.0 to 127.0.0.1
E, [2013-11-19T15:36:33.232841 #1577] ERROR – : No Subnet detected for:
"192.168.0.0192.168.0.0"
D, [2013-11-19T15:36:33.232897 #1577] DEBUG – :
/usr/share/foreman-proxy/bin/…/lib/proxy/dhcp/server.rb:96:in addRecord' /usr/share/foreman-proxy/bin/../lib/proxy/dhcp/server/isc.rb:26:inaddRecord'
/usr/share/foreman-proxy/bin/…/lib/dhcp_api.rb:91:in POST /dhcp/:network' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1211:incall'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1211:in compile!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in[]'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in route!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:801:inroute_eval'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in route!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:822:inprocess_route'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:820:in catch' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:820:inprocess_route'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:784:in route!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:783:ineach'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:783:in route!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:886:indispatch!'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:719:in call!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:ininvoke'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in catch' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:ininvoke'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:719:in call!' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:705:incall'
/usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:21:in call' /usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb:22:incall'
/usr/lib/ruby/vendor_ruby/rack/protection/path_traversal.rb:16:in call' /usr/lib/ruby/vendor_ruby/rack/protection/json_csrf.rb:17:incall'
/usr/lib/ruby/vendor_ruby/rack/protection/base.rb:47:in call' /usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb:22:incall'
/usr/lib/ruby/vendor_ruby/rack/logger.rb:15:in call' /usr/lib/ruby/vendor_ruby/rack/head.rb:9:incall'
/usr/lib/ruby/vendor_ruby/sinatra/showexceptions.rb:21:in call' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1334:incall'
/usr/lib/ruby/vendor_ruby/sinatra/base.rb:1416:in synchronize' /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1334:incall'
/usr/lib/ruby/vendor_ruby/rack/handler/webrick.rb:59:in service' /usr/lib/ruby/1.8/webrick/httpserver.rb:104:inservice'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in run' /usr/lib/ruby/1.8/webrick/server.rb:173:instart_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in start' /usr/lib/ruby/1.8/webrick/server.rb:162:instart_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in start' /usr/lib/ruby/1.8/webrick/server.rb:92:ineach'
/usr/lib/ruby/1.8/webrick/server.rb:92:in start' /usr/lib/ruby/1.8/webrick/server.rb:23:instart'
/usr/lib/ruby/1.8/webrick/server.rb:82:in start' /usr/lib/ruby/vendor_ruby/rack/handler/webrick.rb:13:inrun'
/usr/share/foreman-proxy/bin/…/lib/sinatra-patch.rb:43:in `run!'
/usr/share/foreman-proxy/bin/smart-proxy:44

Should also have said OS is Ubuntu 13.04

··· On Tuesday, November 19, 2013 3:40:46 PM UTC, Alan Sergeant wrote: > > Hi, > When trying to provision a node i have the following error? Create DHCP > Settings for 000ffe7553e8.cell task failed with the following error: 400 > Bad Request > > I seen before something about sinatra, but not sure what/how to fix this? > > The foreman-proxy log shows: > /usr/share/foreman-proxy/bin/smart-proxy:44 > D, [2013-11-19T15:36:33.208919 #1577] DEBUG -- : Reading config file > /etc/dhcp/dhcpd.conf > D, [2013-11-19T15:36:33.232344 #1577] DEBUG -- : Loading subnets for > 127.0.0.1 > D, [2013-11-19T15:36:33.232449 #1577] DEBUG -- : Added > 192.168.0.0/255.255.255.0 to 127.0.0.1 > E, [2013-11-19T15:36:33.232841 #1577] ERROR -- : No Subnet detected for: > "192.168.0.0192.168.0.0" > D, [2013-11-19T15:36:33.232897 #1577] DEBUG -- : > /usr/share/foreman-proxy/bin/../lib/proxy/dhcp/server.rb:96:in `addRecord' > /usr/share/foreman-proxy/bin/../lib/proxy/dhcp/server/isc.rb:26:in > `addRecord' > /usr/share/foreman-proxy/bin/../lib/dhcp_api.rb:91:in `POST /dhcp/:network' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1211:in `call' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1211:in `compile!' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in `[]' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in `route!' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:801:in `route_eval' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:785:in `route!' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:822:in `process_route' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:820:in `catch' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:820:in `process_route' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:784:in `route!' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:783:in `each' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:783:in `route!' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:886:in `dispatch!' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:719:in `call!' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in `invoke' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in `catch' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:871:in `invoke' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:719:in `call!' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:705:in `call' > /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:21:in `call' > /usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb:22:in `call' > /usr/lib/ruby/vendor_ruby/rack/protection/path_traversal.rb:16:in `call' > /usr/lib/ruby/vendor_ruby/rack/protection/json_csrf.rb:17:in `call' > /usr/lib/ruby/vendor_ruby/rack/protection/base.rb:47:in `call' > /usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb:22:in `call' > /usr/lib/ruby/vendor_ruby/rack/logger.rb:15:in `call' > /usr/lib/ruby/vendor_ruby/rack/head.rb:9:in `call' > /usr/lib/ruby/vendor_ruby/sinatra/showexceptions.rb:21:in `call' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1334:in `call' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1416:in `synchronize' > /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1334:in `call' > /usr/lib/ruby/vendor_ruby/rack/handler/webrick.rb:59:in `service' > /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' > /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' > /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start' > /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' > /usr/lib/ruby/1.8/webrick/server.rb:95:in `start' > /usr/lib/ruby/1.8/webrick/server.rb:92:in `each' > /usr/lib/ruby/1.8/webrick/server.rb:92:in `start' > /usr/lib/ruby/1.8/webrick/server.rb:23:in `start' > /usr/lib/ruby/1.8/webrick/server.rb:82:in `start' > /usr/lib/ruby/vendor_ruby/rack/handler/webrick.rb:13:in `run' > /usr/share/foreman-proxy/bin/../lib/sinatra-patch.rb:43:in `run!' > /usr/share/foreman-proxy/bin/smart-proxy:44 >

That looks like a broken version of sinatra, indeed - what version is the
proxy using?

··· On 19 November 2013 15:40, Alan Sergeant wrote:

Hi,
When trying to provision a node i have the following error? Create DHCP
Settings for 000ffe7553e8.cell task failed with the following error: 400
Bad Request

I seen before something about sinatra, but not sure what/how to fix this?

Sorry, but where would i find that out?

I can see in /usr/lib/ruby/vendor_ruby/sinatra/version.rb is 1.3.2

··· On Tuesday, November 19, 2013 3:48:21 PM UTC, Greg Sutcliffe wrote: > > On 19 November 2013 15:40, Alan Sergeant <aserg...@gmail.com > > wrote: > >> Hi, >> When trying to provision a node i have the following error? Create DHCP >> Settings for 000ffe7553e8.cell task failed with the following error: 400 >> Bad Request >> >> I seen before something about sinatra, but not sure what/how to fix this? >> > > That looks like a broken version of sinatra, indeed - what version is the > proxy using? >

System gems is the default - and 1.3.2 is definitely broken. Get the
package from our repo :slight_smile:

··· On 19 November 2013 15:50, Alan Sergeant wrote:

Sorry, but where would i find that out?

I can see in /usr/lib/ruby/vendor_ruby/sinatra/version.rb is 1.3.2

Sorry to bring up a new post, but your repo for precise doesnt appear to
have a newer version of ruby-sinatra. You debian repos do, but not your
ubuntu ones. Am i missing something?

··· On Tuesday, November 19, 2013 9:59:27 AM UTC-6, Greg Sutcliffe wrote: > > On 19 November 2013 15:50, Alan Sergeant <aserg...@gmail.com > > wrote: > >> Sorry, but where would i find that out? >> >> I can see in /usr/lib/ruby/vendor_ruby/sinatra/version.rb is 1.3.2 >> > > System gems is the default - and 1.3.2 is definitely broken. Get the > package from our repo :) >

According to packages.ubuntu.com, Precise has version 1.2.6 in the
repo, which I think is fine.

··· On 12 February 2014 05:19, Mark Chaney wrote: > Sorry to bring up a new post, but your repo for precise doesnt appear to > have a newer version of ruby-sinatra. You debian repos do, but not your > ubuntu ones. Am i missing something?