Bug 1951670

Summary: Error gathering bootstrap log after pivot: The bootstrap machine did not execute the release-image.service systemd unit
Product: OpenShift Container Platform Reporter: Alexander Chuzhoy <sasha>
Component: InstallerAssignee: Eran Cohen <ercohen>
Installer sub component: Single Node OpenShift QA Contact: Omri Hochman <ohochman>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified CC: aos-bugs, ercohen, mstaeble
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:02:18 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 Alexander Chuzhoy 2021-04-20 17:19:21 UTC
Error gathering bootstrap log after pivot: The bootstrap machine did not execute the release-image.service systemd unit 

Version:
4.8.0-0.nightly-2021-04-20-101404:


Steps to reproduce:

Try to collect bootstrap logs after pivot.


Result:

/root/installer/bin/openshift-install gather bootstrap --bootstrap api.ashoshan-0.qe.lab.redhat.com --master api.ashoshan-0.qe.lab.redhat.com --log-level=debug
DEBUG OpenShift Installer 4.8.0-0.nightly-2021-04-20-101404 
DEBUG Built from commit 3cee5f9d844e773fe102c53d7f50186566a93165 
DEBUG Fetching Bootstrap SSH Key Pair...           
DEBUG Loading Bootstrap SSH Key Pair...            
DEBUG Using Bootstrap SSH Key Pair loaded from state file 
DEBUG Reusing previously-fetched Bootstrap SSH Key Pair 
INFO Pulling debug logs from the bootstrap machine 
DEBUG Added /root/.ssh/id_rsa to installer's internal agent 
DEBUG Added /tmp/bootstrap-ssh223356826 to installer's internal agent 
DEBUG /usr/local/bin/installer-gather.sh: line 4: /usr/local/bin/bootstrap-cluster-gather.sh: No such file or directory 
DEBUG Gathering bootstrap service records ...      
DEBUG cp: cannot stat '/var/log/openshift/*': No such file or directory 
DEBUG Gathering bootstrap systemd summary ...      
DEBUG Gathering bootstrap failed systemd unit status ... 
DEBUG Gathering bootstrap journals ...             
DEBUG Gathering bootstrap containers ...           
DEBUG Gathering rendered assets...                 
DEBUG cp: cannot stat '/var/opt/openshift/': No such file or directory 
DEBUG rm: missing operand                          
DEBUG Try 'rm --help' for more information.        
DEBUG rm: missing operand                          
DEBUG Try 'rm --help' for more information.        
DEBUG Using /etc/kubernetes/bootstrap-secrets/kubeconfig as KUBECONFIG 
DEBUG /usr/local/bin/installer-gather.sh: line 77: cluster_bootstrap_gather: command not found 
DEBUG Including existing bootstrap bundle /var/log/log-bundle-bootstrap.tar.gz 
DEBUG Gather remote logs                           
DEBUG Gathering master systemd summary ...         
DEBUG Gathering master failed systemd unit status ... 
DEBUG Gathering master journals ...                
DEBUG Gathering master containers ...              
DEBUG Waiting for logs ...                         
DEBUG Log bundle written to /var/home/core/log-bundle-20210420131451.tar.gz 
INFO Bootstrap gather logs captured here "/root/installer/bin/log-bundle-20210420131451.tar.gz" 
ERROR The bootstrap machine did not execute the release-image.service systemd unit 


Expected result - no error.

Comment 1 Eran Cohen 2021-04-21 15:35:49 UTC
Log collection works fine just need to get rid of this misleading error.

Comment 3 Alexander Chuzhoy 2021-05-10 17:22:54 UTC
Version:
4.8.0-0.nightly-2021-05-10-092939

[kni@r640-u09 ~]$ ./installer/bin/openshift-install gather bootstrap --bootstrap api.qe3.kni.lab.eng.bos.redhat.com --master api.qe3.kni.lab.eng.bos.redhat.com
INFO Pulling debug logs from the bootstrap machine 
INFO Bootstrap gather logs captured here "/home/kni/log-bundle-20210510105509.tar.gz" 
[kni@r640-u09 ~]$ echo $?
0
[kni@r640-u09 ~]$ ls -la /home/kni/log-bundle-20210510105509.tar.gz
-rw-rw-r--. 1 kni kni 4116526 May 10 10:55 /home/kni/log-bundle-20210510105509.tar.gz



Note:
The output:
INFO Pulling debug logs from the bootstrap machine 
INFO Bootstrap gather logs captured here "/home/kni/log-bundle-20210510105509.tar.gz" 

Actually goes to stderr and not stdout.

Comment 6 errata-xmlrpc 2021-07-27 23:02:18 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2438