Project

General

Profile

Bug #30628

Receptor-satellite isn't able to deal with jobs where all the hosts are unknown to satellite

Added by Adam Ruzicka about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
-

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1867399

Description of problem:
When the host's list are not known to satellite, the receptor throws an error `node work Error encountered while handling the response, replying with an error message ('hosts')`.

ERROR 2020-08-07 11:17:40,596 node work Error encountered while handling the response, replying with an error message ('hosts')
ERROR 2020-08-07 11:17:40,597 node work [' File "/usr/lib/python3.6/site-packages/receptor/work.py", line 100, in handle\n work_exec.result()\n', ' File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 425, in result\n return self.__get_result()\n', ' File "/usr/lib64/python3.6/concurrent/futures/_base.py", line 384, in __get_result\n raise self._exception\n', ' File "/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run\n result = self.fn(*self.args, **self.kwargs)\n', ' File "/usr/lib/python3.6/site-packages/receptor_satellite/worker.py", line 303, in execute\n run(Run.from_raw(queue, payload, satellite_api, logger).start())\n', ' File "/usr/lib/python3.6/site-packages/receptor_satellite/worker.py", line 294, in run\n return loop.run_until_complete(coroutine)\n', ' File "/usr/lib64/python3.6/asyncio/base_events.py", line 484, in run_until_complete\n return future.result()\n', ' File "/usr/lib/python3.6/site-packages/receptor_satellite/worker.py", line 226, in start\n self.update_hosts(response["body"]["targeting"]["hosts"])\n'

Version-Release number of selected component (if applicable):
Satellite 6.8 snap 11

How reproducible:
Always

Steps to Reproduce:
1
2.
3.

Actual results:
Receptor-satellite isn't able to deal with jobs where all the hosts are unknown to satellite

Expected results:
Receptor-satellite shouldn't throw an error message for the hosts that are not known to the satellite.

Additional info:
Note: I used fake receptor and data.json to repro this issue.

Associated revisions

Revision 428e0442 (diff)
Added by Maria Agaphontzev about 2 years ago

Fixes #30628 - show empty hosts in job invocation api

History

#1 Updated by Adam Ruzicka about 2 years ago

  • Subject changed from Receptor-satellite isn't able to deal with jobs where all the hosts are unknown to satellite to Receptor-satellite isn't able to deal with jobs where all the hosts are unknown to satellite
  • Pull request https://github.com/theforeman/foreman_remote_execution/pull/525 added

#2 Updated by The Foreman Bot about 2 years ago

  • Fixed in Releases foreman_remote_execution 4.0.0 added

#3 Updated by Maria Agaphontzev about 2 years ago

  • Status changed from New to Closed

#4 Updated by Adam Ruzicka about 2 years ago

  • Fixed in Releases foreman_remote_execution 3.3.6 added

Also available in: Atom PDF