Bug 1906747

Summary: katello:receptor:extract_orgs: Not all the services have been started (Candlepin)
Product: Red Hat Satellite Reporter: Lukáš Hellebrandt <lhellebr>
Component: RH Cloud - Cloud ConnectorAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lukáš Hellebrandt <lhellebr>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: aruzicka
Target Milestone: UnspecifiedKeywords: Regression
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-14 07:21:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukáš Hellebrandt 2020-12-11 11:04:02 UTC
Description of problem:
When running the receptor installation job, it fails with the following error:

TASK [project-receptor.satellite_receptor_installer : Dump organization details] ***
  54:
fatal: [dhcp-2-161.vms.sat.rdu2.redhat.com]: FAILED! => {"changed": true, "cmd": ["foreman-rake", "katello:receptor:extract_orgs", "OUTPUT_FILE=/tmp/ansible.7sleWm"], "delta": "0:00:27.323026", "end": "2020-12-10 08:28:10.361233", "msg": "non-zero return code", "rc": 1, "start": "2020-12-10 08:27:43.038207", "stderr": "rake aborted!\nNot all the services have been started. Check the status report above and try again.\n/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.rc1/lib/katello/tasks/reimport.rake:10:in `block (2 levels) in <top (required)>'\n/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'\nTasks: TOP => katello:receptor:extract_orgs => katello:check_ping\n(See full trace by running task with --trace)", "stderr_lines": ["rake aborted!", "Not all the services have been started. Check the status report above and try again.", "/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.0.rc1/lib/katello/tasks/reimport.rake:10:in `block (2 levels) in <top (required)>'", "/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'", "Tasks: TOP => katello:receptor:extract_orgs => katello:check_ping", "(See full trace by running task with --trace)"], "stdout": "{:services=>\n  {:candlepin=>{:status=>\"ok\", :duration_ms=>\"27\"},\n   :candlepin_auth=>{:status=>\"ok\", :duration_ms=>\"31\"},\n   :foreman_tasks=>{:status=>\"ok\", :duration_ms=>\"3\"},\n   :katello_events=>\n    {:status=>\"ok\", :message=>\"0 Processed, 0 Failed\", :duration_ms=>\"0\"},\n   :candlepin_events=>\n    {:status=>\"FAIL\", :message=>\"Not running\", :duration_ms=>\"1\"},\n   :pulp=>{:status=>\"ok\", :duration_ms=>\"193\"},\n   :pulp_auth=>{:status=>\"ok\", :duration_ms=>\"78\"}},\n :status=>\"FAIL\"}", "stdout_lines": ["{:services=>", "  {:candlepin=>{:status=>\"ok\", :duration_ms=>\"27\"},", "   :candlepin_auth=>{:status=>\"ok\", :duration_ms=>\"31\"},", "   :foreman_tasks=>{:status=>\"ok\", :duration_ms=>\"3\"},", "   :katello_events=>", "    {:status=>\"ok\", :message=>\"0 Processed, 0 Failed\", :duration_ms=>\"0\"},", "   :candlepin_events=>", "    {:status=>\"FAIL\", :message=>\"Not running\", :duration_ms=>\"1\"},", "   :pulp=>{:status=>\"ok\", :duration_ms=>\"193\"},", "   :pulp_auth=>{:status=>\"ok\", :duration_ms=>\"78\"}},", " :status=>\"FAIL\"}"]}


This can also be reproduced by running: # foreman-rake katello:receptor:extract_orgs OUTPUT_FILE=/tmp/ansible.7sleWm

On snap <=5, you need to first apply fix for bug 1903626 to reproduce.

Version-Release number of selected component (if applicable):
6.9

How reproducible:
Deterministic

Steps to Reproduce:
1. Invoke receptor installation job (or the rake task)

Actual results:
Failure shown above

Expected results:
Succesfully passed receptor installation job

Comment 1 Adam Ruzicka 2020-12-14 07:21:06 UTC
Looks like a symptom of BZ1897360, closing as duplicate.

*** This bug has been marked as a duplicate of bug 1897360 ***