Project

General

Profile

Actions

Bug #947

open

Foreman UI doesn't report omapi_key error properly

Added by Marcello de Sousa over 13 years ago. Updated over 3 years ago.

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

Description

If the omapi_key is incorrect (I forced an incorrect key) Foreman's interface is not reporting the error.
In the proxy.log (in debug mode) I can see the error:

(...)
E, [2011-05-03T17:51:57.835019 #10819] ERROR -- : Omshell failed:
> > > obj: <null>
, > obj: host
, > obj: host
, hardware-address = 00:0c:29:38:71:62
, > can't open object: connection reset by peer
, obj: host
, hardware-address = 00:0c:29:38:71:62
, > can't destroy object: not connected
, obj: host
, hardware-address = 00:0c:29:38:71:62
, >
E, [2011-05-03T17:51:57.835393 #10819] ERROR -- : Failed to remove DHCP reservation for  => 192.168.115.156 / 00:0c:29:38:71:62: No response from DHCP


Related issues 2 (0 open2 closed)

Related to Smart Proxy - Bug #853: If used with the proxy, the dhcpd server is open for connections from any serverClosedOhad Levy04/18/2011Actions
Related to Smart Proxy - Bug #1366: key conflict from omshell are not reportedClosedMikael Fridh12/04/2011Actions
Actions #1

Updated by Ohad Levy about 13 years ago

  • Target version changed from 0.3 to 1.0
Actions #2

Updated by Mikael Fridh about 13 years ago

Looks similar to this pull request:
https://github.com/theforeman/smart-proxy/pull/9

Basically, need to regex match some more of the omshell errors.

Actions #3

Updated by Ohad Levy over 12 years ago

  • Target version deleted (1.0)
Actions #4

Updated by Ohad Levy almost 9 years ago

  • Description updated (diff)
  • Assignee set to Anonymous

Dmitri - is this still correct after the refactoring ?

Actions #5

Updated by Lukas Zapletal over 3 years ago

This is how it looks like when a key is not valid:

$ omshell
> key fldskjfdslkj dGVzdAo=
> server localhost
> connect
dhcpctl_connect: no more

We should catch this error.

Actions #6

Updated by Anna Vítová over 3 years ago

  • Assignee changed from Anonymous to Anna Vítová
Actions #7

Updated by Lukas Zapletal over 3 years ago

  • Project changed from Smart Proxy to Foreman
  • Category changed from DHCP to DHCP
  • Triaged changed from No to Yes

This appears to be correct on the proxy and needs to be fixed in Foreman core.

Actions #8

Updated by Anna Vítová over 3 years ago

  • Assignee deleted (Anna Vítová)
Actions

Also available in: Atom PDF