Project

General

Profile

Actions

Bug #5786

closed

Adding second subnet doesn't add it in the foreman-proxy

Added by Jorick Astrego about 10 years ago. Updated about 10 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When I try to add a second subnet, I cannot use this subnet:

ProxyAPI::ProxyException
ERF12-7947 [ProxyAPI::ProxyException]: Unable to retrieve DHCP subnet ([RestClient::ResourceNotFound]: 404 Resource Not Found) for proxy https://foreman.xxxx.xxxx:8443/dhcp
lib/proxy_api/dhcp.rb:20:in `rescue in subnet'
lib/proxy_api/dhcp.rb:18:in `subnet'
app/models/concerns/foreman/thread_session.rb:33:in `clear_thread'
lib/middleware/catch_json_parse_errors.rb:9:in `call'

In the foreman-proxy (https://foreman.xxxxxx.xxx:8443/dhcp) only the first subnet is listed and I am unable to use the second subnet..

In the logs, I see the following:

Started PUT "/subnets/2" for xx.xxx.xxx.xx at 2014-05-19 13:02:21 +0200
Processing by SubnetsController#update as /*
Parameters: {"utf8"=>"✓", "search"=>"", "authenticity_token"=>"
**********************", "subnet"=>{"name"=>"iNet", "network"=>"yyy.yyy.yy.yy", "mask"=>"255.255.255.192", "gateway"=>"zzz.zzz.zzz.zz", "dns_primary"=>"zzz.zzz.zzz.zz", "dns_secondary"=>"zzz.zzz.zzz.zz", "from"=>"zzz.zzz.zzz.zz", "to"=>"zzz.zzz.zzz.zz", "vlanid"=>"", "domain_ids"=>["", "2", ""], "dhcp_id"=>"1", "tftp_id"=>"1", "dns_id"=>"1"}, "id"=>"2"}
Redirected to https://foreman.xxx.xxx/subnets
Completed 302 Found in 52ms (ActiveRecord: 35.9ms)

Actions

Also available in: Atom PDF