Project

General

Profile

Bug #3788

Reboot proxy command does not work on oVirt image

Added by Lukas Zapletal almost 7 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
High
Category:
-
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

It just does not reboot :-) As simple as that.

History

#1 Updated by Lukas Zapletal almost 7 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by Lukas Zapletal almost 7 years ago

  • Status changed from Ready For Testing to Assigned

Damn scratch that

#3 Updated by Dominic Cleal almost 7 years ago

  • Target version changed from 1.10.0 to 1.9.3

#4 Updated by Lukas Zapletal almost 7 years ago

  • Status changed from Assigned to Ready For Testing

#5 Updated by Greg Sutcliffe almost 7 years ago

Works great, apart from a tiny error in the foreman logs:

ForemanDiscovery: Rebooting 5254008fae8f.sapphire.elysium.emeraldreverie.org as its being discovered and assigned
Failed to reboot: 500 Internal Server Error

Nothing seems broken, the host correctly reboots and provisions - I suspect the format of the result of the API call to the proxy on the discovered node for reboot isn't what Foreman is expecting.

#6 Updated by Lukas Zapletal almost 7 years ago

Hmmm and do we expect a response? Because now it is systemd driven (maybe faster). I am under impression that the moment the shutdown command is executed, proxy service can be starting down. Requests that are being processed may be reporting 500 error.

I am doing some tests to confirm this is the behavior of Sinatra/webrick and if so, we would like to put 500 into the list of expected results :-D

#7 Updated by Lukas Zapletal almost 7 years ago

Ok the error is: Permission denied - /dev/tty1

In lib/proxy/log.rb on this line

@@logger = Logger.new(SETTINGS.log_file, 6, 1024*1024*10)

It's because I configured proxy log to /dev/tty1.

The fix is to either chmod 777 /dev/tty1 or to put "foreman" into tty group

[root@localhost ~]# ll /dev/tty1*
crw--w---- 1 root tty 4,  1 Jan  6 14:51 /dev/tty1

#8 Updated by Dmitri Dolguikh almost 7 years ago

  • Target version changed from 1.9.3 to 1.9.2

#9 Updated by Lukas Zapletal almost 7 years ago

  • Status changed from Ready For Testing to Resolved

Also available in: Atom PDF