Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MGMT-18464: MGMT-18452: Add validations to make iSCSI disk eligible #819

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adriengentil
Copy link
Contributor

@adriengentil adriengentil commented Nov 8, 2024

This PR adds 2 checks before making iSSI disks be be eligible as
installation disk.

MGMT-18464: Check the state of the disk, we need to ensure that it is
"running" otherwise the installtion of RHCOS will fail on the disk.

MGMT-18464: Check if the discovery as been booted using iBFT, this check
ensure that the iSCSI disk is actually a disk on which we will be able
to boot from.

This PR adds 2 checks before making iSSI disks be be eligible as
installation disk.

MGMT-18464: Check the state of the disk, we need to ensure that it is
"running" otherwise the installtion of RHCOS will fail on the disk.

MGMT-18464: Check if the discovery as been booted using iBFT, this check
ensure that the iSCSI disk is actually a disk on which we will be able
to boot from.
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 8, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Nov 8, 2024

@adriengentil: This pull request references MGMT-18464 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.18.0" version, but no target version was set.

In response to this:

This PR adds 2 checks before making iSSI disks be be eligible as
installation disk.

MGMT-18464: Check the state of the disk, we need to ensure that it is
"running" otherwise the installtion of RHCOS will fail on the disk.

MGMT-18464: Check if the discovery as been booted using iBFT, this check
ensure that the iSCSI disk is actually a disk on which we will be able
to boot from.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Nov 8, 2024
Copy link

openshift-ci bot commented Nov 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: adriengentil

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 8, 2024
@adriengentil
Copy link
Contributor Author

/cc @AlonaKaplan @eifrach @rccrdpccl

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 79.31034% with 12 lines in your changes missing coverage. Please review.

Project coverage is 59.75%. Comparing base (d599caa) to head (830ae75).

Files with missing lines Patch % Lines
src/inventory/disks.go 79.31% 7 Missing and 5 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #819      +/-   ##
==========================================
+ Coverage   59.44%   59.75%   +0.30%     
==========================================
  Files          74       74              
  Lines        3842     3891      +49     
==========================================
+ Hits         2284     2325      +41     
- Misses       1389     1393       +4     
- Partials      169      173       +4     
Files with missing lines Coverage Δ
src/inventory/disks.go 87.76% <79.31%> (-0.60%) ⬇️

@adriengentil
Copy link
Contributor Author

adriengentil commented Nov 8, 2024

/hold
Might had to add some more tests

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 8, 2024
ibftTargetNameFile := filepath.Join(ibftBasePath, file.Name(), "target-name")
ibftTargetData, err := d.dependencies.ReadFile(ibftTargetNameFile)
if err != nil {
logrus.WithError(err).Errorf("Failed to read iSCSI target name in iBFT")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logrus.WithError(err).Errorf("Failed to read iSCSI target name in iBFT")
logrus.WithError(err).Errorf("Failed to read iSCSI target name in iBFT")
continue

Copy link

openshift-ci bot commented Nov 8, 2024

@adriengentil: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/edge-subsystem-test 830ae75 link true /test edge-subsystem-test

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants