Project

General

Profile

Actions

Bug #19321

open

Unable to delete a host due to DHCP orchestration failure with older smart proxy

Added by Ohad Levy about 7 years ago. Updated about 6 years ago.

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

Description

2017-04-19T16:38:03 a77e59ce [app] [I] Delete DHCP reservation dummy.example.com for dummy.example.com-52:54:00:6f:64:c1/10.35.27.136
2017-04-19T16:38:03 a77e59ce [app] [W] Remove DHCP Settings for dummy.example.com task failed with the following error: ERF12-0635 [ProxyAPI::ProxyException]: Unable to delete DHCP entry for 52:54:00:6f:64:c1 ([RestClient::NotFound]: 404
 | ProxyAPI::ProxyException: ERF12-0635 [ProxyAPI::ProxyException]: Unable to delete DHCP entry for 52:54:00:6f:64:c1 ([RestClient::NotFound]: 404 Not Found) for proxy http://h01.example.com:8443/dhcp
 | /git/foreman/lib/proxy_api/dhcp.rb:96:in `rescue in delete'
 | /git/foreman/lib/proxy_api/dhcp.rb:94:in `delete'
 | /git/foreman/lib/net/dhcp/record.rb:21:in `destroy'
 | /git/foreman/app/models/concerns/orchestration/dhcp.rb:67:in `block in del_dhcp'
 | /git/foreman/app/models/concerns/orchestration/dhcp.rb:67:in `each'
 | /git/foreman/app/models/concerns/orchestration/dhcp.rb:67:in `all?'
 | /git/foreman/app/models/concerns/orchestration/dhcp.rb:67:in `del_dhcp'
 | /git/foreman/app/models/concerns/orchestration.rb:216:in `execute'
 | /git/foreman/app/models/concerns/orchestration.rb:144:in `block in process'
 | /git/foreman/app/models/concerns/orchestration.rb:136:in `each'
 | /git/foreman/app/models/concerns/orchestration.rb:136:in `process'
 | /git/foreman/app/models/concerns/orchestration.rb:60:in `on_destroy'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:432:in `block in make_lambda'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:228:in `call'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:228:in `block in halting_and_conditional'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:506:in `call'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:506:in `block in call'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:506:in `each'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:506:in `call'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:778:in `_run_destroy_callbacks'
 | /gems/gems/activerecord-4.2.8/lib/active_record/callbacks.rb:292:in `destroy'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:281:in `block in destroy'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
 | /gems/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:220:in `transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:281:in `destroy'
 | /gems/gems/activerecord-4.2.8/lib/active_record/persistence.rb:185:in `destroy!'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/has_many_association.rb:171:in `each'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/has_many_association.rb:171:in `delete_records'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/collection_association.rb:532:in `remove_records'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/collection_association.rb:525:in `block in delete_or_destroy'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/collection_association.rb:190:in `block in transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:220:in `transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/collection_association.rb:189:in `transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/collection_association.rb:525:in `delete_or_destroy'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/collection_association.rb:286:in `destroy'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/collection_association.rb:230:in `destroy_all'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/has_many_association.rb:27:in `handle_dependency'
 | /gems/gems/activerecord-4.2.8/lib/active_record/associations/builder/association.rb:146:in `block in add_destroy_callbacks'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:448:in `instance_exec'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:448:in `block in make_lambda'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:164:in `call'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:164:in `block in halting'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:504:in `call'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:504:in `block in call'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:504:in `each'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:504:in `call'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
 | /gems/gems/activesupport-4.2.8/lib/active_support/callbacks.rb:778:in `_run_destroy_callbacks'
 | /gems/gems/activerecord-4.2.8/lib/active_record/callbacks.rb:292:in `destroy'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:281:in `block in destroy'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
 | /gems/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:220:in `transaction'
 | /gems/gems/activerecord-4.2.8/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
...

Related issues 2 (0 open2 closed)

Related to Foreman - Refactor #19295: Use new proxy API for getting information from DHCPClosedMarek Hulán04/18/2017Actions
Is duplicate of Foreman - Bug #22925: REGRESSION: foreman fails to delete a host when getting a 404 from a proxyDuplicate03/18/2018Actions
Actions

Also available in: Atom PDF