Bug 2102371 - Openshift-Ansible RHEL 8 CI update
Summary: Openshift-Ansible RHEL 8 CI update
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.12
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.12.0
Assignee: Brent Barbachem
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks: 2105056
TreeView+ depends on / blocked
 
Reported: 2022-06-29 19:32 UTC by Brent Barbachem
Modified: 2023-01-17 19:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-17 19:51:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 12399 0 None Merged Bug 2102371: Migrate CI to CentOS Stream 8 2022-07-07 22:13:28 UTC
Github openshift openshift-ansible pull 12405 0 None open Bug 2102371: Remove bad python scripts and deps to python2 2022-07-07 19:43:38 UTC
Red Hat Product Errata RHSA-2022:7399 0 None None None 2023-01-17 19:51:38 UTC

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


Note You need to log in before you can comment on or make changes to this bug.