Project

General

Profile

Actions

Bug #5772

closed

What is the URL discover_host is really supposed to POST the facts to?

Added by Konstantin Orekhov about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Not exactly a bug, but maybe it is at least in terms of the documentation.

This paragraph of discover README (https://github.com/theforeman/foreman_discovery#grace-note-testing) says that facts are being posted to {foreman-host}/fact_values/create?type=Host::Discovered (presumably over HTTP). However, the discover_host script mentioned in the same section uses "{foreman-host}/discovers" URL to upload the facts to - https://github.com/theforeman/foreman_discovery/blob/develop/extra/discover_host#L59

What makes things even worse is none of 2 above URLs actually work for me (running Foreman 1.4.2 under passenger w/ruby193 SCL on RHEL 6.4).

Example from access.log:

{foreman-host} - - [16/May/2014:16:46:06 0700] "POST /discovers HTTP/1.1" 400 92 "" "-" {foreman-host} - - [16/May/2014:16:48:02 0700] "POST /fact_values/create?type=Host::Discovered HTTP/1.1" 404 728 "" "-"

But discover_host script does not seems to recognize the fact that operation failed, so it just hangs there forever.

Your advice is greatly appreciated.
Thanks!


Related issues 1 (0 open1 closed)

Related to Smart Proxy - Bug #5907: ip auto-suggestion broken after dhcp changesClosedGreg Sutcliffe05/23/2014Actions
Actions

Also available in: Atom PDF