Project

General

Profile

Actions

Support #21917

closed

ERF12-2357 [ProxyAPI::ProxyException]: Unable to set DNS entry ([RestClient::BadRequest]: 400 Bad Request)

Added by Christian Setzer over 6 years ago. Updated over 6 years ago.

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

Description

when creating a host i get an error with the dns on the smart proxy .. katello 3.5 and foreman 1.16

D, [2017-12-10T04:49:54.734154 ] DEBUG -- : Rack::Handler::WEBrick is invoked.
D, [2017-12-10T04:49:54.736510 8888df9a] DEBUG -- : verifying remote client 192.168.1.135 against trusted_hosts ["qsc-katello.inside.local", "qsc-katello-proxy.inside.local"]
D, [2017-12-10T04:49:54.739531 8888df9a] DEBUG -- : running /usr/bin/nsupdate k /etc/rndc.key
D, [2017-12-10T04:49:54.744043 8888df9a] DEBUG -
: nsupdate: executed - server 127.0.0.1
D, [2017-12-10T04:49:54.744270 8888df9a] DEBUG -- : nsupdate: executed - update add lee-waithe.1002.local. 86400 A 10.102.100.8
D, [2017-12-10T04:49:54.773779 8888df9a] DEBUG -- : nsupdate: errors
Answer:

;; >>HEADER<< opcode: UPDATE, status: NOTAUTH, id: 62770

;; flags: qr ra; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 1

;; ZONE SECTION:

;. IN SOA

;; TSIG PSEUDOSECTION:

rndc-key. 0 ANY TSIG hmac-md5.sig-alg.reg.int. 1512877794 300 16 SD/1/P5dD8DTQVGecPUgMQ== 62770 NOERROR 0

E, [2017-12-10T04:49:54.774265 8888df9a] ERROR -- : Update errors: Answer:

;; >>HEADER<< opcode: UPDATE, status: NOTAUTH, id: 62770

;; flags: qr ra; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 1

;; ZONE SECTION:

;. IN SOA

;; TSIG PSEUDOSECTION:

rndc-key. 0 ANY TSIG hmac-md5.sig-alg.reg.int. 1512877794 300 16 SD/1/P5dD8DTQVGecPUgMQ== 62770 NOERROR 0

D, [2017-12-10T04:49:54.774316 8888df9a] DEBUG -- : Update errors: Answer:

;; >>HEADER<< opcode: UPDATE, status: NOTAUTH, id: 62770

;; flags: qr ra; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 1

;; ZONE SECTION:

;. IN SOA

;; TSIG PSEUDOSECTION:

rndc-key. 0 ANY TSIG hmac-md5.sig-alg.reg.int. 1512877794 300 16 SD/1/P5dD8DTQVGecPUgMQ== 62770 NOERROR 0

(Proxy::Dns::Error)
/usr/share/foreman-proxy/modules/dns_nsupdate/dns_nsupdate_main.rb:56:in `nsupdate_disconnect'
/usr/share/foreman-proxy/modules/dns_nsupdate/dns_nsupdate_main.rb:18:in `do_create'
/usr/share/foreman-proxy/modules/dns_common/dns_common.rb:30:in `create_a_record'
/usr/share/foreman-proxy/modules/dns/dns_api.rb:25:in `block in &lt;class:Api&gt;'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in `call'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1611:in `block in compile!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `[]'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `block (3 levels) in route!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:994:in `route_eval'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:975:in `block (2 levels) in route!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1015:in `block in process_route'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in `catch'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1013:in `process_route'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:973:in `block in route!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in `each'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:972:in `route!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1085:in `block in dispatch!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `block in invoke'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `catch'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `invoke'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1082:in `dispatch!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in `block in call!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `block in invoke'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `catch'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1067:in `invoke'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:907:in `call!'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:895:in `call'
/usr/share/gems/gems/rack-1.6.4/lib/rack/commonlogger.rb:33:in `call'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:219:in `call'
/usr/share/foreman-proxy/lib/proxy/log.rb:109:in `call'
/usr/share/foreman-proxy/lib/proxy/request_id_middleware.rb:9:in `call'
/usr/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:in `call'
/usr/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:in `call'
/usr/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
/usr/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in `call'
/usr/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in `call'
/usr/share/gems/gems/rack-1.6.4/lib/rack/nulllogger.rb:9:in `call'
/usr/share/gems/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/show_exceptions.rb:25:in `call'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:182:in `call'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:2013:in `call'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `block in call'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1787:in `synchronize'
/usr/share/gems/gems/sinatra-1.4.8/lib/sinatra/base.rb:1487:in `call'
/usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in `block in call'
/usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `each'
/usr/share/gems/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `call'
/usr/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:153:in `call'
/usr/share/gems/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
/usr/share/ruby/webrick/httpserver.rb:138:in `service'
/usr/share/ruby/webrick/httpserver.rb:94:in `run'
/usr/share/ruby/webrick/server.rb:295:in `block in start_thread'
I, [2017-12-10T04:49:54.774765 8888df9a] INFO -- : 192.168.1.135 - - [10/Dec/2017:04:49:54 +0100] "POST /dns/ HTTP/1.1" 400 316 0.0384

D, [2017-12-10T04:49:54.816189 ] DEBUG -- : close: 192.168.1.135:57460
D, [2017-12-10T04:49:54.837606 ] DEBUG -- : accept: 192.168.1.135:57462
D, [2017-12-10T04:49:54.839976 ] DEBUG -- : Rack::Handler::WEBrick is invoked.
D, [2017-12-10T04:49:54.840657 8888df9a] DEBUG -- : verifying remote client 192.168.1.135 against trusted_hosts ["qsc-katello.inside.local", "qsc-katello-proxy.inside.local"]
D, [2017-12-10T04:49:54.843123 8888df9a] DEBUG -- : omshell: executed - set hardware-address = 00:50:56:ad:93:c3
D, [2017-12-10T04:49:54.843314 8888df9a] DEBUG -- : nil
D, [2017-12-10T04:49:54.843425 8888df9a] DEBUG -- : omshell: executed - open
D, [2017-12-10T04:49:54.843501 8888df9a] DEBUG -- : nil
D, [2017-12-10T04:49:54.843585 8888df9a] DEBUG -- : omshell: executed - remove
D, [2017-12-10T04:49:54.843654 8888df9a] DEBUG -- : nil
D, [2017-12-10T04:49:54.860276 ] DEBUG -- : caught :modify event on /var/lib/dhcpd/dhcpd.leases.
D, [2017-12-10T04:49:54.867579 ] DEBUG -- : Deleted a reservation: 10.102.100.8:00:50:56:ad:93:c3:lee-waithe.1002.local
D, [2017-12-10T04:49:54.870006 8888df9a] DEBUG -- : Removed DHCP reservation for lee-waithe.1002.local => lee-waithe.1002.local (10.102.100.8 / 00:50:56:ad:93:c3)
I, [2017-12-10T04:49:54.870374 8888df9a] INFO -- : 192.168.1.135 - - [10/Dec/2017:04:49:54 +0100] "DELETE /dhcp/10.102.0.0/mac/00:50:56:ad:93:c3 HTTP/1.1" 200 - 0.0298

D, [2017-12-10T04:49:54.872299 ] DEBUG -- : close: 192.168.1.135:57462

Actions #1

Updated by Anonymous over 6 years ago

  • Tracker changed from Bug to Support
  • Project changed from Foreman to Smart Proxy
  • Category deleted (DNS)

Make sure that dns zones and views are configured correctly. I would also suggest to execute nsupdate manually to make sure updates work before trying the same via smart-proxy.

Actions #2

Updated by Anonymous over 6 years ago

  • Status changed from New to Resolved

I'm closing the ticket due to lack of activity. Please create a new issue/aks the question on the irc should the problem re-appear.

Actions

Also available in: Atom PDF