Provisioning Setup, not working :(

When I try and setup provisioning of an additional subnet on the foreman
server (Submit button here: http://i.imgur.com/i2mAbbi.png ) nothing
happens. Here is the output from foreman production.log

2016-09-12 16:02:36 [app] [I] Started POST "/foreman_setup/provisioners"
for 209.39.146.34 at 2016-09-12 16:02:36 +0000
2016-09-12 16:02:36 [app] [I] Processing by
ForemanSetup::ProvisionersController#create as HTML
2016-09-12 16:02:36 [app] [I] Parameters: {"utf8"=>"✓",
"authenticity_token"=>"8Qn/[FILTERED]/7g==",
"foreman_setup_provisioner"=>{"host_id"=>"1", "smart_proxy_id"=>"1",
"provision_interface"=>"eno50332176"}, "commit"=>"Submit"}
2016-09-12 16:02:36 [app] [D] Setting current user thread-local variable to
admin
2016-09-12 16:02:36 [app] [D] Setting current organization thread-local
variable to none
2016-09-12 16:02:36 [app] [D] Setting current location thread-local
variable to none
2016-09-12 16:02:36 [app] [I] Failed to save: Host has already been taken
2016-09-12 16:02:37 [app] [I] Rendered
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_setup-4.0.0/app/views/foreman_setup/provisioners/_step1.html.erb
(149.9ms)
2016-09-12 16:02:37 [app] [I] Rendered
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_setup-4.0.0/app/views/foreman_setup/provisioners/new.html.erb
within layouts/application (150.8ms)
2016-09-12 16:02:37 [app] [I] Rendered
layouts/_application_content.html.erb (0.6ms)
2016-09-12 16:02:37 [app] [I] Rendered home/_user_dropdown.html.erb
(11.9ms)
2016-09-12 16:02:37 [app] [I] Read fragment views/tabs_and_title_records-3
(0.3ms)
2016-09-12 16:02:37 [app] [I] Rendered home/_topbar.html.erb (25.6ms)
2016-09-12 16:02:37 [app] [I] Rendered layouts/base.html.erb (44.9ms)
2016-09-12 16:02:37 [app] [I] Completed 200 OK in 246ms (Views: 200.3ms |
ActiveRecord: 10.3ms)

Am I missing something?

The reason I am adding this is that I've setup 10.0.10.0 as one of the
provisioned networks and would like to add another because while trying to
"build" a system the dhcp records claim that the network I am adding to a
second interface on the host doesn't exist.

(from foreman-proxy log)
D, [2016-09-12T16:08:59.650945 #17996] DEBUG – : Added a subnet: 10.0.10.0
E, [2016-09-12T16:08:59.651239 #17996] ERROR – : Subnet 19X.XX.XX.0 not
found
D, [2016-09-12T16:08:59.651292 #17996] DEBUG – : Subnet 19X.XX.XX.0 not
found

The subnet entry exists in foreman but I presume that it requires it as a
"provisioned" type?

Either way any suggestions would be appreciated.

Still fighting with this. Anyone have any thoughts? Are we not suppose to
be able to provision more than one subnet or something?

> Still fighting with this. Anyone have any thoughts? Are we not suppose to
> be able to provision more than one subnet or something?

Please report a bug.

Note this plugin won't help you setting up additional provisioning
network, it can only help you with initial provisioning setup. It uses
our installer to do the configuration and it only supports one DHCP network.

In this case, I suggest you to add the network manually.

··· -- Later, Lukas #lzap Zapletal

Thanks for the details. I will try and get a bug report posted.

So, it doesn't support configuration of multiple networks (installer) but
if I manually do it will? I'll give that a shot.

··· On Friday, September 16, 2016 at 2:55:41 AM UTC-5, Lukas Zapletal wrote: > > > Still fighting with this. Anyone have any thoughts? Are we not suppose > to > > be able to provision more than one subnet or something? > > Please report a bug. > > https://github.com/theforeman/foreman_setup/issues > > Note this plugin won't help you setting up *additional* provisioning > network, it can only help you with *initial* provisioning setup. It uses > our installer to do the configuration and it only supports one DHCP > network. > > In this case, I suggest you to add the network manually. > > -- > Later, > Lukas #lzap Zapletal >

> So, it doesn't support configuration of multiple networks (installer) but
> if I manually do it will? I'll give that a shot.

Yes, basically you need to add DHCP subnet and define new Subnet in the
UI.

Or you need to add new Smart Proxy for another (different) DHCP process
if its on a different server/location. The same for TFTP, DNS …
depends on what you want to achieve.

··· -- Later, Lukas #lzap Zapletal