Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2102371

Summary: Openshift-Ansible RHEL 8 CI update
Product: OpenShift Container Platform Reporter: Brent Barbachem <bbarbach>
Component: InstallerAssignee: Brent Barbachem <bbarbach>
Installer sub component: openshift-ansible QA Contact: Gaoyun Pei <gpei>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: yselkowi
Version: 4.12   
Target Milestone: ---   
Target Release: 4.12.0   
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: 2023-01-17 19:51:09 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:
Bug Depends On:    
Bug Blocks: 2105056    

Description Brent Barbachem 2022-06-29 19:32:11 UTC
Thanks for opening a bug report!
Before hitting the button, please fill in as much of the template below as you can.
If you leave out information, it's harder to help you.
Be ready for follow-up questions, and please respond in a timely manner.
If we can't reproduce a bug we might close your issue.
If we're wrong, PLEASE feel free to reopen it and explain why.

Version:

$ openshift-install version
4.11

Platform:

#Please specify the platform type: aws, libvirt, openstack or baremetal etc.
gcp

Please specify:
* IPI (automated install with `openshift-install`. If you don't know, then it's IPI)
* UPI (semi-manual installation on customized infrastructure)
IPI

What happened?

#Enter text here.
The GCP/hosts.py script was updated to python3 and the requirements for running the script are missing as well as documentation on how to use the script.

The missing packages include: pycrypto >= 2.6, apache-libcloud.

**Note: pycrypto may not be necessary. 

#See the troubleshooting documentation (https://github.com/openshift/installer/blob/master/docs/user/troubleshooting.md) for ideas about what information to collect.

There is no troubleshooting documentation or documentation at all in this directory. Clean this up by adding documentation about the script as well as some of the required and option environment variables used through out the script.

REQUIRED:
GCE_EMAIL
GCE_PEM_FILE_PATH

OPTIONAL:
GCE_PROJECT
GCE_ZONE
GCE_INI_PATH
GCE_TAGGED_INSTANCES
INVENTORY_IP_TYPE

# If the installer fails to create resources (https://github.com/openshift/installer/blob/master/docs/user/troubleshooting.md#installer-fails-to-create-resources), attach the relevant portions of your `.openshift_install.log.`
# If the installer fails to bootstrap the cluster (https://github.com/openshift/installer/blob/master/docs/user/troubleshootingbootstrap.md), attach the bootstrap log bundle.
# If the installer fails to complete installation after bootstrapping completes (https://github.com/openshift/installer/blob/master/docs/user/troubleshooting.md#installer-fails-to-initialize-the-cluster), attach the must-gather log bundle using `oc adm must-gather`

# Always at least include the `.openshift_install.log`

What did you expect to happen?

Ability to execute the hosts.py script

How to reproduce it (as minimally and precisely as possible)?

$ your-commands-here

python (updates to python3) hosts.py 

Anything else we need to know?

#Enter text here.

Comment 1 Brent Barbachem 2022-06-30 19:57:55 UTC
Removed the unnecessary files rather than trying to fix them since it wouldn't work without back porting old files.

Comment 2 Brent Barbachem 2022-07-05 17:31:02 UTC
The script in question can be removed solving this BZ. The script requires python2 before and that can also be removed from dependencies.

Comment 5 Gaoyun Pei 2022-07-11 07:10:45 UTC
Checked on the latest 4.12 workers-rhel8 CI job
https://storage.googleapis.com/origin-ci-test/logs/periodic-ci-openshift-release-master-nightly-4.12-e2e-aws-workers-rhel8/1546288278045462528/build-log.txt
it's failing with the following error. Although it's not related to the centos:stream8 changes, still assign it back to get it fixed to make the CI successful, thanks. 


        "        \"errorMessage\": \"error launching instance: The key pair 'openshift-dev' does not exist\",",
        "        \"errorReason\": \"InvalidConfiguration\",",
        "        \"lastUpdated\": \"2022-07-11T00:54:47Z\",",

Comment 6 Yaakov Selkowitz 2022-07-11 19:00:14 UTC
The 4.11 and 4.12 periodic jobs have been red for quite some time, clearly not related to the recent changes.  I would suggest we limit the scope of this BZ to the pre-commit E2E tests, and handle that particular issue separately.

Comment 7 Gaoyun Pei 2022-07-12 00:40:11 UTC
Sure, so let me move this as VERIFIED then, thanks.

Comment 8 Yaakov Selkowitz 2022-07-12 19:13:10 UTC
https://github.com/openshift/release/pull/30352 should fix the periodic jobs.

Comment 11 errata-xmlrpc 2023-01-17 19:51:09 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.12.0 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-2022:7399