Skip to content

Set "self.fips" before use and allow False value#761

Merged
rnetser merged 8 commits into
RedHatQE:mainfrom
oharan2:fips
Jan 16, 2025
Merged

Set "self.fips" before use and allow False value#761
rnetser merged 8 commits into
RedHatQE:mainfrom
oharan2:fips

Conversation

@oharan2
Copy link
Copy Markdown
Contributor

@oharan2 oharan2 commented Jan 13, 2025

This PR resolves the following error:

Failed to execute with Error 'AwsIpiCluster' object has no attribute 'fips'

Which occurs when using --destroy-clusters-from-install-data-directory (for example):

The var self.user_input.destroy_from_s3_bucket_or_local_directory is being set and the function _ipi_download_installer (triggered here) uses self.fips before set.

Also, this PR allows self.fips to be set to False, which may happen when user input includes fips=false;.. in the cluster config, instead of just checking for existence.

@redhat-qe-bot
Copy link
Copy Markdown
Collaborator

Report bugs in Issues

The following are automatically added:

  • Add reviewers from OWNER file (in the root of the repository) under reviewers section.
  • Set PR size label.
  • New issue is created for the PR. (Closed when PR is merged/closed)
  • Run pre-commit if .pre-commit-config.yaml exists in the repo.

Available user actions:

  • To mark PR as WIP comment /wip to the PR, To remove it from the PR comment /wip cancel to the PR.
  • To block merging of PR comment /hold, To un-block merging of PR comment /hold cancel.
  • To mark PR as verified comment /verified to the PR, to un-verify comment /verified cancel to the PR.
    verified label removed on each new commit push.
  • To cherry pick a merged PR comment /cherry-pick <target branch to cherry-pick to> in the PR.
    • Multiple target branches can be cherry-picked, separated by spaces. (/cherry-pick branch1 branch2)
    • Cherry-pick will be started when PR is merged
  • To build and push container image command /build-and-push-container in the PR (tag will be the PR number).
    • You can add extra args to the Podman build command
      • Example: /build-and-push-container --build-arg OPENSHIFT_PYTHON_WRAPPER_COMMIT=<commit_hash>
  • To add a label by comment use /<label name>, to remove, use /<label name> cancel
  • To assign reviewers based on OWNERS file use /assign-reviewers
  • To check if PR can be merged use /check-can-merge
  • to assign reviewer to PR use /assign-reviewer @<reviewer>
Supported /retest check runs
  • /retest tox: Retest tox
  • /retest build-container: Retest build-container
  • /retest python-module-install: Retest python-module-install
  • /retest all: Retest all
Supported labels
  • hold
  • verified
  • wip
  • lgtm

@redhat-qe-bot
Copy link
Copy Markdown
Collaborator

ILpinto can not be added as reviewer. 422 {"message": "Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the RedHatQE/openshift-cli-installer repository.", "documentation_url": "https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request", "status": "422"}

@redhat-qe-bot redhat-qe-bot requested a review from myakove January 13, 2025 13:08
@oharan2
Copy link
Copy Markdown
Contributor Author

oharan2 commented Jan 13, 2025

/verified

Comment thread openshift_cli_installer/libs/clusters/ipi_cluster.py Outdated
@redhat-qe-bot2
Copy link
Copy Markdown

ILpinto can not be added as reviewer. 422 {"message": "Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the RedHatQE/openshift-cli-installer repository.", "documentation_url": "https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request", "status": "422"}

@redhat-qe-bot1
Copy link
Copy Markdown

ILpinto can not be added as reviewer. 422 {"message": "Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the RedHatQE/openshift-cli-installer repository.", "documentation_url": "https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request", "status": "422"}

@oharan2
Copy link
Copy Markdown
Contributor Author

oharan2 commented Jan 13, 2025

/verified

Comment thread openshift_cli_installer/libs/clusters/ipi_cluster.py
@redhat-qe-bot1
Copy link
Copy Markdown

ILpinto can not be added as reviewer. 422 {"message": "Reviews may only be requested from collaborators. One or more of the users or teams you specified is not a collaborator of the RedHatQE/openshift-cli-installer repository.", "documentation_url": "https://docs.github.com/rest/pulls/review-requests#request-reviewers-for-a-pull-request", "status": "422"}

@oharan2
Copy link
Copy Markdown
Contributor Author

oharan2 commented Jan 14, 2025

/verified

Comment thread openshift_cli_installer/libs/clusters/ipi_cluster.py
Comment thread openshift_cli_installer/libs/clusters/ipi_cluster.py
@rnetser rnetser merged commit 4e970e3 into RedHatQE:main Jan 16, 2025
@rh-bot-1
Copy link
Copy Markdown

New container for quay.io/redhat_msi/openshift-cli-installer:latest published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants